Posted: Mon Nov 02, 2020 4:57 am Post subject:
Adding a new Game Mode ?
I took a look at MooMan's Rules and wanted to create one similar to the Meat Grinder mode, except the one I want to make only allows Infantry to be bought.
I put my new mode called Ground Combat.ini in the Map Code folder, then added this
You need to update mpmodes.ini and specify under which category your mode shows up. Here you can attach your mode to standard gameplay, or only to maps that specify your specific mode.
Logistically because FA2 only knows pre-defined modes, it will delete your custom mode type in the map each save, so it's easier to stick to the known types at least for the naming. Since most people don't actually use all the modes as they depend on mods, you don't have to tie them to what they sound like, keeping in mind there are distinct categories for playing AI vs people. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
and make sure your mode's rules are in MPGround.ini.
This basically tells the game that any alterations from your game mode can be found in the file MPGround.ini (not Ground Combat.ini); that the game mode will be playable on all maps marked as 'standard', as well as randomly generated maps. QUICK_EDIT
Yes I removed the space between GROUND and COMBAT, making it one word and shorter than some other codes to GroundCombatForcedSpawnIniOptions as well as making it one word in the other .ini
If you are adding a new game mode to the client as you are you don't need to add anything to the game's actual files such as the ones above, that's extra, obsolete and old work and is only ever needed for single player mission maps.
You add your game mode as you did. However GameMode= is hardcoded iirc, you can't just make up your own, use 1 instead (for Battle) and force your own options via checkboxes or custom ini as you did.
Next you need to declare it on the map itself in(MPMaps.ini) like:
Yes I removed the space between GROUND and COMBAT, making it one word and shorter than some other codes to GroundCombatForcedSpawnIniOptions as well as making it one word in the other .ini
. If you did this, then take a screenshot of your file structure because it's clear theres a disconnect somewhere here. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
4StarGeneral
I did that and when I start the game this is what I get.
Also this is the code added to the mpmodesmd.ini
17=GUI:GroundCombat, STT:ModeGroundCombat, MPGround.ini, groundcombat, standard, true
and both mpmodesmd.ini and the GroundCombat.ini are in the same game folder.
MPMode change is done when you are modding the original game.
What you have asked in first post is for YR Client and XxpeddyxX has already explained it. I think a new mode is shown only if there is atleast 1 map for that mode. By using custom INI file for a new game mode, its content should be automatically included in the maps during launch.
For the client, MPMaps.ini is also like mission.ini where you make the client known which maps to be shown in the lobby based on game mode. In it, GameMode is defined for every listed map. If your new maps are not listed then add those under [MultiMaps] and add its definition with needed game mode. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum