Jump to content

Custom cfg wrtie error


HIS-MOTHER

Recommended Posts

I have been trying to get TCA to write a line into a cfg.

 

I set it for Combobox (multibit)

 

I offer selections for weapon restrictions but they need to be written into one line like this

 

Example lines from a cfg below

 

BulletShovePower 200 // 100% bullet kick when shot

weaponavailable 0 %wrestrict% FFA TDM REN TREN TKOTH CTF

// current game settings

GameType FFA // default gametype

//Map 32dm_oil // default map

 

 

Within the variable %wrestrict% I need the tca custom config to allow me to select one or any number of the Mbit variables and write them with either a space or a comma in between so that the output will result in this.

 

 

BulletShovePower 200 // 100% bullet kick when shot

weaponavailable 0 m60 m16 l115 FFA TDM REN TREN TKOTH CTF

// current game settings

GameType FFA // default gametype

//Map 32dm_oil // default map

 

OR

 

BulletShovePower 200 // 100% bullet kick when shot

weaponavailable 0 m60,m16,l115 FFA TDM REN TREN TKOTH CTF

// current game settings

GameType FFA // default gametype

//Map 32dm_oil // default map

 

 

Either of these outputs is acceptable but it must be in one line. I am trying to do it as a Multiple selection within the custom area so as to not have a on or off selection line itm for each weapon.

TCA gives me a error if I try to get it to write a space or comma.

Dashes nor underscores will work, it needs to be a space or a comma.

Link to comment
Share on other sites

Fair enough, Thanks Kevin.

 

I will procede with making multiple comboboxe's for now since these BHDTS PS2 guys are crazier than the CSS crowd. :D My coder is on vacation so I can't modify my little remote Mgt. utility and I have to get them some sort of control.

 

Heaven forbid they get thunked on th head with a 203. LOL

Link to comment
Share on other sites

Just wanted to give you guys a update. I got this completely resolved.

 

I did what Luis suggested and worte in variables for %wrerstrict1% thru %wrestrict24%

 

The game CFG seemed to accept all that. I did find out that if TCA writes that ntbs null value in the cfg it didn't work. I just set the values and made it not required and nothing was checked as a default selection and if it is left that way TCA writes nothing to that varible. ie. it removes it altogether. Not sure if you guys designed it that way but it works great.

 

Thanks for all the help.

 

P.S.

 

My PS2 Psycho's are now pusing buttons like crazy. ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use