IOQ3 problem with g_gametype being read from a cfg
Posted: Thu Oct 30, 2008 10:43 pm
I dunno if this is the right section to post this question so..Um
I have four server configs in my ioq3/baseq3 folder for each gametype (ffaserver.cfg duelserver.cfg tdmserver.cfg ctfserver.cfg) so that I can change the gametype and cvars that apply to that gametype at the end of a map to the next map Like for example, I'm playing ffa on q3dm11, then at the end of that match I want to switch to ctf so I \exec ctfserver.cfg, then \map q3ctf1. When I get to q3ctf1 the gametype is still at g_gametype 0 rather than g_gametype 4(which I have in the ctfserver.cfg). The only way to get it to switch gametype's is to type \exec ctfserver.cfg twice in the console, rather than once. If I type in g_gametype 4 by itself by hand once, then it switches fine, but if the g_gametype is from a .cfg I have to exec the .cfg twice. It's the same when switching to other gametype through those other .cfg's also. The gametype won't stick unless I exec the config twice in the console.
This problem doesn't exist if I am playing ioq3 vanilla(baseq3) or Osp mod in my ioquake3 folder. Cpma doesn't even mess around with g_gametype so that doesn't even apply to the problem. I get the problem when playing mod's like Coliseum mod and other kinds of mods that can run off of a vstr style rotation, but I don't use vstr maplist for them. I type it all through the console through executing cfg's so I can change the server to whatever I feel like playing at whatever time next. I know it's not the mods because I don't get the problem from running these style mods in normal Q3A so I'm not sure.
I use the configs because it switches multiple cvars at one time quicker, and I change my mind to often to play the same gametype for several maps in a row. I hope any of this makes any sense to someone.
-thx
I have four server configs in my ioq3/baseq3 folder for each gametype (ffaserver.cfg duelserver.cfg tdmserver.cfg ctfserver.cfg) so that I can change the gametype and cvars that apply to that gametype at the end of a map to the next map Like for example, I'm playing ffa on q3dm11, then at the end of that match I want to switch to ctf so I \exec ctfserver.cfg, then \map q3ctf1. When I get to q3ctf1 the gametype is still at g_gametype 0 rather than g_gametype 4(which I have in the ctfserver.cfg). The only way to get it to switch gametype's is to type \exec ctfserver.cfg twice in the console, rather than once. If I type in g_gametype 4 by itself by hand once, then it switches fine, but if the g_gametype is from a .cfg I have to exec the .cfg twice. It's the same when switching to other gametype through those other .cfg's also. The gametype won't stick unless I exec the config twice in the console.
This problem doesn't exist if I am playing ioq3 vanilla(baseq3) or Osp mod in my ioquake3 folder. Cpma doesn't even mess around with g_gametype so that doesn't even apply to the problem. I get the problem when playing mod's like Coliseum mod and other kinds of mods that can run off of a vstr style rotation, but I don't use vstr maplist for them. I type it all through the console through executing cfg's so I can change the server to whatever I feel like playing at whatever time next. I know it's not the mods because I don't get the problem from running these style mods in normal Q3A so I'm not sure.
I use the configs because it switches multiple cvars at one time quicker, and I change my mind to often to play the same gametype for several maps in a row. I hope any of this makes any sense to someone.
-thx