if , else if , else .. in rotation.txt ..need help

20 replies [Last post]
lectorgc_
lectorgc_'s picture
Offline
Joined: Aug 2010
Posts:
Re: if , else if , else .. in rotation.txt ..need help

Maybe xp_config should compares with "conf/fn1.cfg" instead "fn1.cfg"?

I have the enemy flag!

* lectorgc_ rolls the dice 2 times ⚅ ⚅ and gets 12

^t
smasherchif's picture
Offline
Joined: Oct 2009
Posts:
Re: if , else if , else .. in rotation.txt ..need help

it depends on what value you assign to xp_config. starting with some version (2.0?), it's not necessary to specify cfg folder in xp_config, unless you put your cfg to a different location than default one (conf subdir of excessiveplus dir).


.aNk/xXxp4l/:bR.Shady'XYN! wrote:
Fuck! I just thought of the most awesome pun about the BC vs Smurfs final game and the flames that followed :
"In Soviet Moldavia, Pole rages YOU"
like 2 months after Call me

3M'darkangel wrote:
// 09:30:49 27.06.2010, UNKNOWN LOCATION,
Name { "Biotoxin" }
IP { "localhost" }

SHUDDER wrote:
People are training hard to hide their autoshoot so well while gain enough skills to win (or at least compete on similar level) without them. This is getting insane or provoked. I feel like I would cut myself with Ockham's Razor if I claim a cheat there.

lectorgc_
lectorgc_'s picture
Offline
Joined: Aug 2010
Posts:
Re: if , else if , else .. in rotation.txt ..need help

Yes, but if your config located in default conf dir ("conf/cfgname.cfg"), you can load it by "load cfgname". And xp_config will be automatically changed to "conf/cfgname.cfg".

I have the enemy flag!

* lectorgc_ rolls the dice 2 times ⚅ ⚅ and gets 12

^t
smasherchif's picture
Offline
Joined: Oct 2009
Posts:
Re: if , else if , else .. in rotation.txt ..need help

well, if you manually set xp_config to a value without subdir, eg 'cfgname.cfg', it will remain as it is, regardless of whether cfg is located in conf subdir or excessiveplus dir. so, it still depends on the way you have set it.


.aNk/xXxp4l/:bR.Shady'XYN! wrote:
Fuck! I just thought of the most awesome pun about the BC vs Smurfs final game and the flames that followed :
"In Soviet Moldavia, Pole rages YOU"
like 2 months after Call me

3M'darkangel wrote:
// 09:30:49 27.06.2010, UNKNOWN LOCATION,
Name { "Biotoxin" }
IP { "localhost" }

SHUDDER wrote:
People are training hard to hide their autoshoot so well while gain enough skills to win (or at least compete on similar level) without them. This is getting insane or provoked. I feel like I would cut myself with Ockham's Razor if I claim a cheat there.

SHUDDER
shudder's picture
Offline
Joined: Feb 2010
Posts:
Re: if , else if , else .. in rotation.txt ..need help
)[///DI50|¯)ER▄_ wrote:

well couldn't figure it out, so just used another var instead. seems to work, but thanks for the help here.

Hard to figure out what you wanted to do because the syntax was illogical.
If you wanted to put config into hostname in posted (long already) rotation code it will need another condition set in every name that was defined there. If maps are specified in the same condition - you will have rotations further multiplied (x4 configs).

)[///DI50|¯)ER▄_
Offline
Joined: Jan 2011
Posts:
Re: if , else if , else .. in rotation.txt ..need help

Yes, I realize the code was errored. Just wanted to show the basic setup for it.

A working xp_config check call line in the if statement is all I was asking for, may just have confused everyone.

example of what should but doesn't work. It just busts through even though and loads q3dm8 like you had default.cfg running. My thinking is the problem is because xp_config is assigned a string value which it currently doesn't support.

if ( xp_config == sample.cfg ) {
/say works
q3dm8
} else {
/say fail
q3dm0
}

SHUDDER
shudder's picture
Offline
Joined: Feb 2010
Posts:
Re: if , else if , else .. in rotation.txt ..need help

Try as it was suggested (xp_config == "conf/name.cfg") cause that what's displaying when checking its value in console.

)[///DI50|¯)ER▄_
Offline
Joined: Jan 2011
Posts:
Re: if , else if , else .. in rotation.txt ..need help

I have done that one, plus many variations.. with/without quotes, with/without conf/, with/without .cfg, and with/without $xp_config

)[///DI50|¯)ER▄_
Offline
Joined: Jan 2011
Posts:
Re: if , else if , else .. in rotation.txt ..need help

I ended up just using the g_quadfactor value since I could use it as like a config id, so I don't really the xp_config check anymore. Would be nice to know I suppose.

easy
Developer
easy's picture
Offline
Joined: Sep 2003
Posts:
Re: if , else if , else .. in rotation.txt ..need help
)[///DI50|¯)ER▄_ wrote:

My thinking is the problem is because xp_config is assigned a string value which it currently doesn't support.

Yes, unfortunately, string comparison is not possible in pre 2.2 versions.