Project settings
A new project needs almost nothing to play the framework: the plugin brings the engine settings it needs in its own config, and the framework's settings start from defaults that point at the Riftwood sample. This page says what you set for a packaged game, how your project replaces the sample's defaults, and which engine settings the plugin's config always makes.
Play Riftwood: nothing to set
Enable the plugin and open /PioneerMOBA/Sample/Riftwood/L_Riftwood, or /PioneerMOBA/Maps/L_MainMenu for the whole
match flow. Riftwood's World Settings name its game mode, and the framework's settings start from the sample's
champions, map and ward. See Play Riftwood.
For a packaged game
Open on the main menu
A packaged game opens on the project's Game Default Map, which in the Blank template is its OpenWorld map. Set it to the framework's main menu, so the game opens on the menu and goes from there to the match:
Project Settings > Maps & Modes > Game Default Map = /PioneerMOBA/Maps/L_MainMenu
In DefaultEngine.ini that is:
[/Script/EngineSettings.GameMapsSettings]
GameDefaultMap=/PioneerMOBA/Maps/L_MainMenu.L_MainMenu
To open on a menu of your own, give your map a scene, set its World Settings game mode to MobaMenuGameMode, and name it
as Menu Map in Project Settings > Pioneer MOBA Framework > Front End.
List the maps to package
A map is packaged only when the project lists it. To package Riftwood with its menus, add these under Project Settings > Packaging > List of maps to include in a packaged build:
/PioneerMOBA/Sample/Riftwood/L_Riftwood, the match;/PioneerMOBA/Maps/L_MainMenuand/PioneerMOBA/Maps/L_Lobby, the main menu and the lobby.
For a game of your own, list your match maps instead of L_Riftwood.
What a packaged game always includes
The plugin's config cooks these folders into every packaged game, because the framework finds their assets by folder or names them in code:
- the framework's
/PioneerMOBA/UI,/PioneerMOBA/Spells,/PioneerMOBA/Bots,/PioneerMOBA/Lanes,/PioneerMOBA/Vision,/PioneerMOBA/Economyand/PioneerMOBA/Jungle; - the sample's
/PioneerMOBA/Sample/Championsand/PioneerMOBA/Sample/Ward.
Content of your own that only a setting names, such as your champions, needs its folder added under **Project Settings
Packaging > Additional Asset Directories to Cook**; see Make a champion. Your folders come on top of the plugin's: the list only adds, so the plugin's folders are always cooked.
Replace the sample's defaults
These settings start from the sample's assets as defaults in the framework's code. A project replaces them with its own
in Project Settings, or in its own Config/DefaultGame.ini, and its value wins:
| Setting | Sample default | Where |
|---|---|---|
| Default Champion: the champion of a player who has not picked one, as in Play In Editor | Varra | The game mode, [/Script/PioneerMobaCore.MobaGameMode] in DefaultGame.ini; it is on no Project Settings page |
| Bot Champions: the champions bots take when they fill a match, a different one each on a team | the five sample champions | The game mode, as above |
| Match Map: the map a match from the lobby plays | L_Riftwood | Project Settings > Pioneer MOBA Framework > Match Flow |
| Champions: the champions champion select offers | the five sample champions | Project Settings > Pioneer MOBA Framework > Match Flow |
| Ward Class: the ward Blueprint | the sample's BP_Ward | Project Settings > Pioneer MOBA Framework > Vision |
| Recall Arrive Cue: the effect where a recall lands | GameplayCue.Sample.Recall.Arrive | Project Settings > Pioneer MOBA Framework > Economy |
| Champion Death Cue: the effect where a champion falls | GameplayCue.Sample.Champion.Death | Project Settings > Pioneer MOBA Framework > Match |
To play your own champions and map instead of the sample's:
[/Script/PioneerMobaCore.MobaGameMode]
DefaultChampion=/Game/Champions/Marlow/DA_Champion_Marlow.DA_Champion_Marlow
!BotChampions=ClearArray
+BotChampions=/Game/Champions/Marlow/DA_Champion_Marlow.DA_Champion_Marlow
[/Script/PioneerMobaUI.MobaMatchFlowSettings]
MatchMap=/Game/Maps/L_Arena.L_Arena
!Champions=ClearArray
+Champions=/Game/Champions/Marlow/DA_Champion_Marlow.DA_Champion_Marlow
[/Script/PioneerMobaVision.MobaVisionSettings]
WardClass=/Game/Wards/BP_MyWard.BP_MyWard_C
Every other setting of the framework, in Project Settings > Pioneer MOBA Framework, works the same way: your
project's value wins. So does the dedicated server's tick rate, NetServerMaxTickRate under
[/Script/OnlineSubsystemUtils.IpNetDriver] in DefaultEngine.ini, which the plugin leaves at the engine's default of
30; the framework is built and tested at 30.
A map of your own sets its game mode in its World Settings (GameMode Override: MobaGameMode or your subclass of
it); see Build a map.
What the plugin's config always sets
The plugin's own Config/Engine.ini, Game.ini and Input.ini are applied after your project's
DefaultEngine.ini, DefaultGame.ini and DefaultInput.ini, so what they set wins over your project's config. They
hold only the engine settings the framework needs, and your project's config cannot change these:
| Setting | Value | Why |
|---|---|---|
| Iris | net.Iris.UseIrisReplication=1 | The framework replicates with Iris. Start the game with -UseIrisReplication=0 on its command line to run once without it |
| Sub-object replication lists | net.SubObjects.DefaultUseSubObjectReplicationList=1 | Iris needs it |
| World Settings class | MobaWorldSettings | Every map's Pioneer MOBA Framework section |
| Game viewport client | CommonGameViewportClient | The framework's CommonUI screens |
| Client-side navigation | on | The champion walks on the frame of the click |
| Enhanced Input user settings | on | Each player's own keys are kept and saved |
To use another value, such as a World Settings class or a game viewport client of your own (derived from
MobaWorldSettings or CommonGameViewportClient), copy the plugin into your project's Plugins folder and edit the
copy's Config/Engine.ini; see Change the plugin's config.
Making these settings overridable from a project's own config comes in
1.1.
Lists that only add
Two lists in the plugin's Game.ini add their entries to your project's, and your project adds its own beside them:
- Gameplay Cue Notify Paths: the plugin adds
/PioneerMOBA/Sample/GameplayCues. Add your cue folders inDefaultGame.iniwith+GameplayCueNotifyPaths=. - Directories to always cook: the plugin adds the folders listed above. Add yours under Project Settings > Packaging > Additional Asset Directories to Cook.
Your project cannot take the plugin's entries out of these lists; a copy of the plugin can. See Leaving the sample out.
Where the framework's settings are
Every setting of the framework is in Edit > Project Settings > Pioneer MOBA Framework, on these pages:
| Page | What it holds | See |
|---|---|---|
| Combat | Attack speed cap, crit damage, the server's range leeway, knock-up height | Champions and combat |
| Match | Levels, XP, ability rank levels, death timers, corpses, bot controller class, fill with bots, common abilities, player state components | Champions and combat |
| Match Flow | Lobby map, match map, match rules, champion list, bans, phase times, spell pool, bots' spells, pings, surrender | Match flow and front end |
| Front End | Menu map, the screens, accept time, bot fill time, the match connector | Match flow and front end |
| Matchmaking | The matchmaking provider and its search settings | Match flow and front end |
| Lanes | Wave schedule, default minion class, minion net rate, aggro | Lanes, minions and structures |
| Jungle | Default monster class, Jungle Strike's growth per level, monster net rate | Jungle |
| Economy | Starting gold, passive gold, bounties, structure gold, item folders, inventory, fountain | Gold, items and shop |
| Vision | Sight radii, reveal time, ward class and lifetimes, brush look | Fog of war and vision |
| Networking | Reconnect | Multiplayer |
| Effects | Team colors | Effects and animation |
| Bots | Difficulties, the bots' StateTree, lane fill order, think rate, awareness | Bots |
| UI | HUD class, HUD theme, the main menu's title | HUD and theme |
Champions, spells and difficulties travel by index
Champions, summoner spells and bot difficulties travel over the network as their index in the Match Flow and Bots lists. A server and its clients must therefore run the same settings: package them with the same config.