Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Apr 18, 2024 6:14 am
All times are UTC + 0
Adding a new Game Mode ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [14 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Mon Nov 02, 2020 4:57 am    Post subject:  Adding a new Game Mode ? Reply with quote  Mark this post and the followings unread

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
Code:
[Ground Combat]
CustomIniPath=INI\Map Code\Ground Combat.ini
ForcedSpawnIniOptions=Ground CombatForcedSpawnIniOptions

[Ground CombatForcedSpawnIniOptions]
GameMode=10

to the MPMaps.ini and this is the code for the Ground Combat.ini
Code:
[PCV]
TechLevel=11

[TELE]
TechLevel=11

[YURIPR]
TechLevel=11

[AMCV]
TechLevel=11

[SMCV]
TechLevel=11

[GHOST]
TechLevel=11

[BORIS]
TechLevel=11

[JUMPJET]
TechLevel=11

[CLEG]
TechLevel=11

[SPY]
TechLevel=11

[YURI]
TechLevel=11

[IVAN]
TechLevel=11

[TANY]
TechLevel=11

[YATECH]
TechLevel=11

[GATECH]
TechLevel=11

[NATECH]
TechLevel=11

[YAPSYT]
TechLevel=11

[GAOREP]
TechLevel=11

[GASPYSAT]
TechLevel=11

[NACLON]
TechLevel=11

[NANRCT]
TechLevel=11

[TESLA]
TechLevel=11

[ATESLA]
TechLevel=11

[NAMISL]
TechLevel=11

[GACSPH]
TechLevel=11

[GAWEAT]
TechLevel=11

[YAPPET]
TechLevel=11

[YAGNTC]
TechLevel=11
and put this in the Map Code folder but the new mode doesn't show up when I start the game.

What am I missing ?

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Mon Nov 02, 2020 7:12 am    Post subject: Reply with quote  Mark this post and the followings unread

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

Back to top
View user's profile Send private message
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Mon Nov 02, 2020 5:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Okay I added this code to the MPModes.ini

Code:
17=GUI:GroundCombat, STT:ModeGroundCombat, MPGround.ini, groundcombat, standard, true


And put the MPModes.ini and the Ground Combat.ini in the Red Alert 2 folder and when I start the game my mode is not listed.

Back to top
View user's profile Send private message
Virgil
Stealth Laser Trooper


Joined: 22 Jul 2018

PostPosted: Mon Nov 02, 2020 7:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

Have you tried to shrink [Ground CombatForcedSpawnIniOptions] to something shorter? I guess it is too long as a section name.

Back to top
View user's profile Send private message
silverwind
Cyborg Firebomber


Joined: 11 Jun 2016

PostPosted: Mon Nov 02, 2020 9:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

First of all, you're clearly editing Yuri's Revenge, so the game reads from mpmodesMD.ini, not mpmodes.ini.

adamstrange wrote:
17=GUI:GroundCombat, STT:ModeGroundCombat, MPGround.ini, groundcombat, standard, true


And put the MPModes.ini and the Ground Combat.ini in the Red Alert 2 folder and when I start the game my mode is not listed.



Rename the underlined file to the bold-formated file; and remove the striked-out part. Your mpmodesmd.ini should look look something like this:

Code:

[Battle]
17=GUI:GroundCombat, STT:ModeGroundCombat, MPGround.ini, standard, true


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.

Back to top
View user's profile Send private message
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Mon Nov 02, 2020 10:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

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

It doesn't work.

Back to top
View user's profile Send private message
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Tue Nov 03, 2020 12:17 am    Post subject: Reply with quote  Mark this post and the followings unread

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:

[MultiMaps]
xx=Maps/Yuri's Revenge/RiseoftheEast/4_well_of_wealth ;4

[Maps/Yuri's Revenge/RiseoftheEast/4_well_of_wealth]
Description=[RE] [4] Well of Wealth
Author=StolenTech, RaVaGe
GameModes=Competitive,Free For All,Battle,Unholy Alliance,Tournament,Team Alliance
Waypoint0=31078
Waypoint1=80032
Waypoint2=127079
Waypoint3=81128
MinPlayers=1
MaxPlayers=4
EnforceMaxPlayers=True
Size=0,0,78,80
LocalSize=2,4,74,75
PreviewSize=768,389

You can get waypoint info and size info directl from the .map file.

And change directories to suit where your map actually is and you'll be set.



mapsearchviaclient.png
 Description:
 Filesize:  50.96 KB
 Viewed:  1049 Time(s)

mapsearchviaclient.png



_________________

ayylmao on Discord

Back to top
View user's profile Send private message
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Sun Nov 08, 2020 9:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

XxpeddyxX
I don't understand because this means I have to add that line of code to every YR map there is.

But yet how is it that when I create a new map I can select any of Mooman's modes without having to add this code to the map ?

I want to add this too Mooman's modded rules.

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Nov 08, 2020 11:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

I tried to explain this...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Mon Nov 09, 2020 5:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

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

It doesn't work.

Back to top
View user's profile Send private message
4StarGeneral
General


Joined: 14 Sep 2006
Location: Limbo

PostPosted: Mon Nov 09, 2020 6:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Rename your Ground Combat.ini, or whatever the hell you named it, to MPGround.ini as you listed in mpmodesmd.ini
Code:
17=GUI:GroundCombat, STT:ModeGroundCombat, MPGround.ini, groundcombat, standard, true
. 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."

Back to top
View user's profile Send private message Send e-mail YouTube User URL
adamstrange
Tiberian Fiend


Joined: 07 Mar 2013

PostPosted: Mon Nov 09, 2020 8:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

What am I missing ?



gamemd 2020-11-09 15-12-20-42.jpg
 Description:
 Filesize:  385.86 KB
 Viewed:  924 Time(s)

gamemd 2020-11-09 15-12-20-42.jpg



Back to top
View user's profile Send private message
Virgil
Stealth Laser Trooper


Joined: 22 Jul 2018

PostPosted: Mon Nov 09, 2020 10:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

You are missing a .csf string with the name GroundCombat in GUI section, thus the hint "MISSING: GUI:GroundCombat".

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Tue Nov 10, 2020 3:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [14 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1914s ][ Queries: 15 (0.0113s) ][ Debug on ]