Skip to main content

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_MainMenu and /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/Economy and /PioneerMOBA/Jungle;
  • the sample's /PioneerMOBA/Sample/Champions and /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:

SettingSample defaultWhere
Default Champion: the champion of a player who has not picked one, as in Play In EditorVarraThe 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 teamthe five sample championsThe game mode, as above
Match Map: the map a match from the lobby playsL_RiftwoodProject Settings > Pioneer MOBA Framework > Match Flow
Champions: the champions champion select offersthe five sample championsProject Settings > Pioneer MOBA Framework > Match Flow
Ward Class: the ward Blueprintthe sample's BP_WardProject Settings > Pioneer MOBA Framework > Vision
Recall Arrive Cue: the effect where a recall landsGameplayCue.Sample.Recall.ArriveProject Settings > Pioneer MOBA Framework > Economy
Champion Death Cue: the effect where a champion fallsGameplayCue.Sample.Champion.DeathProject 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:

SettingValueWhy
Irisnet.Iris.UseIrisReplication=1The framework replicates with Iris. Start the game with -UseIrisReplication=0 on its command line to run once without it
Sub-object replication listsnet.SubObjects.DefaultUseSubObjectReplicationList=1Iris needs it
World Settings classMobaWorldSettingsEvery map's Pioneer MOBA Framework section
Game viewport clientCommonGameViewportClientThe framework's CommonUI screens
Client-side navigationonThe champion walks on the frame of the click
Enhanced Input user settingsonEach 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 in DefaultGame.ini with +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:

PageWhat it holdsSee
CombatAttack speed cap, crit damage, the server's range leeway, knock-up heightChampions and combat
MatchLevels, XP, ability rank levels, death timers, corpses, bot controller class, fill with bots, common abilities, player state componentsChampions and combat
Match FlowLobby map, match map, match rules, champion list, bans, phase times, spell pool, bots' spells, pings, surrenderMatch flow and front end
Front EndMenu map, the screens, accept time, bot fill time, the match connectorMatch flow and front end
MatchmakingThe matchmaking provider and its search settingsMatch flow and front end
LanesWave schedule, default minion class, minion net rate, aggroLanes, minions and structures
JungleDefault monster class, Jungle Strike's growth per level, monster net rateJungle
EconomyStarting gold, passive gold, bounties, structure gold, item folders, inventory, fountainGold, items and shop
VisionSight radii, reveal time, ward class and lifetimes, brush lookFog of war and vision
NetworkingReconnectMultiplayer
EffectsTeam colorsEffects and animation
BotsDifficulties, the bots' StateTree, lane fill order, think rate, awarenessBots
UIHUD class, HUD theme, the main menu's titleHUD 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.