:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Wed May 23, 2018 9:32 am
All times are UTC + 0
 Forum index » Modding Central » Tiberian Sun Editing Forum
Using DropDown option in TS Client for Map ini
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Tuc0
Rocket Infantry


Joined: 26 Sep 2016
Location: Slovakia

PostPosted: Mon May 21, 2018 7:37 am    Post subject:   Using DropDown option in TS Client for Map ini
Subject description: Help appreciated
Reply with quote

I am trying to add few more options into TS Client Skirmish/Multiplayer. I have managed to implement most of them, but I am not sure if it is possible to do this:
Can I make DropDown options to be applied to Map INI instead if Spawn INI?
I would like to add options to choose at what speed (time) shroud grows. Something like this:



I wish I had some basic knowledge and understand GameOption settings code in Github, what settings should be applied in GameOptions.ini

So is there any way to use DropDown options to change ShroudRate= for map?
I don't mind if it would be done with separate Game Option ini files for each ShroudRate option.

Back to top
View user's profile Send private message
Starkku
Tiberian Beast


Joined: 28 Dec 2007
Location: Finland

PostPosted: Mon May 21, 2018 7:53 am    Post subject: Reply with quote

Following should work if the TS Client is up to date, this feature was added fairly recently so I am uncertain of if that is actually the case.

Code:
[cmbShroudGrowth] ; Or whatever it is called in your GameOptions.ini
DataWriteMode=MAPCODE
Items=INI\Game Options\ShroudRate8.ini,INI\Game Options\ShroudRate12.ini,INI\Game Options\ShroudRate16.ini,INI\Game Options\ShroudRate20.ini,INI\Game Options\ShroudRate30.ini
ItemLabels=8,12,16,20,30


Basically in this case Items is list of the map code INI files, ItemLabels is list of strings that are displayed in the dropdown menu.
_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
Tuc0
Rocket Infantry


Joined: 26 Sep 2016
Location: Slovakia

PostPosted: Mon May 21, 2018 8:30 am    Post subject: Reply with quote

Starkku wrote:
Following should work if the TS Client is up to date, this feature was added fairly recently so I am uncertain of if that is actually the case.

Hm, looks like it isn't implemented in latest TS Client release yet.
I am using Version 5.43 (February 3, 2018), but client doesn't recognize ItemLabels= and displays INI paths instead.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Tiberian Sun Editing Forum
Jump to:  
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

Wildcard SSL Certificates
[ Time: 0.1259s ][ Queries: 13 (0.0164s) ][ Debug on ]