Map Configs workaround

Ask questions and share info about GunGame 5

Map Configs workaround

Postby Huggs » Sat Sep 11, 2010 9:47 pm

I've been whining here since v5 came out about map configs.
I don't mean to complain, but it's really bothered me.
We mix up our maps running some DM, some non-DM, and some Elim.
We also like to set Turbo and multikill_override on a per map basis.
Each map has a CFG file.
I have also created a custom admin menu page that allows us to control these manually.
It just hasn't worked. Even trying to manually set modes often did nothing.
I've tried everything and gotten some great advice from the guys here.

I was instructed to try adding "ES_DELAYED 2" before each command.
After the last update things started working better - we could now reliably set modes manually (via menu).
The maps however, still just did "whatever" when they started (not following map config).

We run a 45 second warmup round (in DM mode).
I now believe that this is where the problem starts.
The map configs are executed at the beginning of the map and then the mode switches to the warmup round settings.
I assume that it tries to set it back after the warmup round ends, but it does not set it back to the map config settings.
The map config settings are lost somewhere along the way.

Today I tried something different.
I set the ES_DELAYED to 50 seconds (so they would execute after the 45 sec warmup round) and it works!
I see all of the CVAR change messages and everything is set correctly.
As long as the command is executed after the warmup round finishes, all is well.
This is almost perfect except that the map configs don't take effect until the start of the next round.

I really don't want to be viewed as a whiner.
I really do appreciate all of your hard work.


I hope this helps,
PCH
I remember Todd - 'Let's Roll!'
Huggs

Private
Private
User avatar
 
Posts: 77
Joined: Tue Dec 29, 2009 4:28 am
Location: NJ

Postby satoon101 » Sat Sep 11, 2010 9:59 pm

Just to make sure, have you tried unloading GunGame every map change? Basically, put es_unload gungame51 in your server.cfg. Then, in each map cfg, put es_load gungame51 and then all place all of the cvars. Not sure if you have tried this or not, or if that still works properly. Please let us know if you have or your findings when you do.

Thanks,
Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re: Map Configs workaround

Postby PabloP » Sat Sep 11, 2010 10:05 pm

Wow... I thought i could do this a while back, except that i always had major problems when changing settings or reloading gg without a restart. You just gave me hope again :D . sry for jacking thread as ive been accused of... ill shutup
PabloP

Private 1st Class
Private 1st Class
 
Posts: 141
Joined: Tue Mar 02, 2010 1:02 am

Re:

Postby Huggs » Sun Sep 12, 2010 1:47 am

satoon101 wrote:Just to make sure, have you tried unloading GunGame every map change? Basically, put es_unload gungame51 in your server.cfg. Then, in each map cfg, put es_load gungame51 and then all place all of the cvars. Not sure if you have tried this or not, or if that still works properly. Please let us know if you have or your findings when you do.


I'll give it a shot this weekend - thanks!




PCH
I remember Todd - 'Let's Roll!'
Huggs

Private
Private
User avatar
 
Posts: 77
Joined: Tue Dec 29, 2009 4:28 am
Location: NJ

Postby Huggs » Sun Sep 12, 2010 2:13 am

I tried putting the es_unload in the SERVER.CFG and the es_load in the MAP.CFG.
GG never loaded.

There is some strange behavior around the warmup round.



PCH
Huggs

Private
Private
User avatar
 
Posts: 77
Joined: Tue Dec 29, 2009 4:28 am
Location: NJ

Postby satoon101 » Sun Sep 12, 2010 3:32 am

Ah, there are some strange issues with es_unload'ing gungame51 in the server.cfg. It didn't used to be this way. I was able to get it working properly by using the following in each map cfg file:
es_unload gungame51
<place gg cvars here>
es_delayed 5 es_load gungame51
Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re:

Postby PabloP » Sun Sep 12, 2010 3:58 am

satoon101 wrote:Ah, there are some strange issues with es_unload'ing gungame51 in the server.cfg. It didn't used to be this way. I was able to get it working properly by using the following in each map cfg file:
es_unload gungame51
<place gg cvars here>
es_delayed 5 es_load gungame51
Satoon


OK, by gg cvars, do you mean the ones that happen AFTER map is started for warmup,
or the ones that happen AFTER warmup,
or the ones that happen when map starts to load,
or do i sound like an idiot?? :?:
PabloP

Private 1st Class
Private 1st Class
 
Posts: 141
Joined: Tue Mar 02, 2010 1:02 am

Re:

Postby Huggs » Sun Sep 12, 2010 9:14 pm

satoon101 wrote:
es_unload gungame51
<place gg cvars here>
es_delayed 5 es_load gungame51
Satoon


I tried this with and without delays for the GG cvars - No Joy

I fiddled with the delayed parameter and for a 45 sec warmup round, a 50 sec delay is very good. Just after the warmup completes, the first round starts and during that initial second or so of waiting, the cvars kick in and trigger a round restart. This is good enough for me now. I'm not sure it's working the way you want it to, but it is now fine for my needs.


Thanks for the help,
PCH
I remember Todd - 'Let's Roll!'
Huggs

Private
Private
User avatar
 
Posts: 77
Joined: Tue Dec 29, 2009 4:28 am
Location: NJ

Re: Re:

Postby Huggs » Sun Sep 12, 2010 9:35 pm

OK, by gg cvars, do you mean the ones that happen AFTER map is started for warmup,
or the ones that happen AFTER warmup,
or the ones that happen when map starts to load,
or do i sound like an idiot?? :?:


What I am having problems with are the Map Configs.
You can have a custom map config file in which you can set the various modes etc on a per map basis.
This isn't working on my server with a warmup round.
I have fixed it by creating map configs that look like this -

(45 second warmup round)

es_delayed 50 gg_elimination 0
es_delayed 50 gg_deathmatch 1
es_delayed 50 gg_turbo 1
es_delayed 50 gg_multikill_override 2


This config file makes sure Elim is OFF and then sets DM on and Turbo on with multikill set to 2.

The trick for me was to delay the execution of the map configs until just when the map starts.
If you time it just right it will execute just before the first round starts (during the one second pause).


PCH
I remember Todd - 'Let's Roll!'
Huggs

Private
Private
User avatar
 
Posts: 77
Joined: Tue Dec 29, 2009 4:28 am
Location: NJ

Re: Map Configs workaround

Postby PabloP » Sun Sep 12, 2010 11:09 pm

Huggs wrote:
OK, by gg cvars, do you mean the ones that happen AFTER map is started for warmup,
or the ones that happen AFTER warmup,
or the ones that happen when map starts to load,
or do i sound like an idiot?? :?:


What I am having problems with are the Map Configs.
You can have a custom map config file in which you can set the various modes etc on a per map basis.
This isn't working on my server with a warmup round.
I have fixed it by creating map configs that look like this -

(45 second warmup round)

es_delayed 50 gg_elimination 0
es_delayed 50 gg_deathmatch 1
es_delayed 50 gg_turbo 1
es_delayed 50 gg_multikill_override 2


This config file makes sure Elim is OFF and then sets DM on and Turbo on with multikill set to 2.

The trick for me was to delay the execution of the map configs until just when the map starts.
If you time it just right it will execute just before the first round starts (during the one second pause).


PCH



nice, thank you very much, I'll try and screw around with it and see what i can do, and did you get it timed perfect or are you still trying?
PabloP

Private 1st Class
Private 1st Class
 
Posts: 141
Joined: Tue Mar 02, 2010 1:02 am

Re: Map Configs workaround

Postby Huggs » Mon Sep 13, 2010 12:23 am

For a 45 second warmup round, a 50 second es_delayed seems to work perfectly - your mileage may vary.



PCH


PS - I tweaked it to 51 seconds
I remember Todd - 'Let's Roll!'
Huggs

Private
Private
User avatar
 
Posts: 77
Joined: Tue Dec 29, 2009 4:28 am
Location: NJ

Re: Map Configs workaround

Postby PabloP » Thu Sep 16, 2010 12:43 am

Awesome ty very much huggs :D :) ;)
PabloP

Private 1st Class
Private 1st Class
 
Posts: 141
Joined: Tue Mar 02, 2010 1:02 am



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 32 guests