Page 1 of 1
Problem with Map Configs
Posted:
Mon Apr 12, 2010 1:51 am
by Huggs
Everything seems to be running great EXCEPT for Map Configs.
I've tried every combination of parameters and still no luck.
Sometimes it seems to be working correctly, but mostly it follows no logic that I can see.
I have my maps in CSTRIKE\MAPS\
I have my Config files in CSTRIKE\MAPS\CFG
In the General Configs (cstrike\cfg\gungame51\included_addon_configs)
I have GG_DEATHMATCH
gg_deathmatch 0
gg_respawn_delay 2
GG_ELIMINATION
gg_elimination 0
gg_elimination_spawn 1
GG_WARMUP_ROUND
gg_warmup_round 1
gg_warmup_timer 45
gg_warmup_weapon "hegrenade"
gg_warmup_deathmatch 1
gg_warmup_elimination 0
I understand that Turbo mode is now automatically set by both Elimination and Deathmatch so I'll leave that out of the discussion for now.
I would be very happy if I could simply set the mode correctly between DM, Elim and Normal,
Optionally I like to be able to set the number of kills needed to advance, but that can wait.
I have stopped and restarted the server after changing the configs
Warmup Round works correctly
I've always had problems with maps configs and I would try some funny things to attempt to get them working -
I would reset all modes each map. If I wanted DM I would also set Elim to 0.
I don't believe this is necessary
Right after the warmup round I see the server display messages about the game mode (usually several) like -
gg_deathmatch set to 1
gg_elimination set to 0
I have several question about the order of execution and how it's SUPPOSED to work -
When does the map config get executed?
What is the relationship between the General Config and the individual map configs? Which has precedence?
Are the server messages I see after the Warmup Round from the map config?
Are the map configs remembered between maps or are they forgotten? Once I set a map to DM will all subsequent maps be DM unless it's changed?
Do certain maps only play in certain modes?
Here is a sample map config (config name matches map_name - gg_scoutzknivez_hc)-
gg_elimination 1
gg_multikill_override 1
When I run the map, just after the warmup round it says -
Server CVAR set gg_deathmatch 0
Server CVAR set gg_deadstrip 0
BUT the game runs as DeathMatch and the Kills needed to advance is set to 2
We use a Fast Download Redirector, but I don't think that would effect the server.
This is driving me crazy and I can't figure it out.
Any help or advice you can provide will be greatly appreciated.
Best Regards,
PCH
Re: Problem with Map Configs
Posted:
Mon Apr 12, 2010 2:11 am
by XE_ManUp
Re: Problem with Map Configs
Posted:
Mon Apr 12, 2010 3:56 am
by satoon101
XE_ManUp wrote: What is the relationship between the General Config and the individual map configs? Which has precedence? Can you help me out by what you mean by "general config"? The server.cfg runs once per map, just like the map configs do. I can't remember which order they are executed in. The autoexec.cfg is only executed when the server is loaded.
I do know that Event es_map_start fires prior to server.cfg, then the <mapname>.cfg (if there is one).
Satoon
Re: Problem with Map Configs
Posted:
Mon Apr 12, 2010 2:23 pm
by Huggs
OK, I'm beginning to understand.
The configs in included_addon_configs are basically "default" values.
The game modes are exclusive. DM turns Elim off and vice versa.
DM 0 and Elim 0 is Normal mode.
Turbo is automatically turned on by DM and Elim. Is it turned off by Normal mode? If Turbo is ON for a DM map and then I run a Normal map (no DM or Elim), is Turbo still on? I don't think there is a included_addon_configs config file to define a default for this CVAR.
How does the Warmup Round effect the Map Configuration?
If the map Config is executed as the map switches (let's say to ELIM), what happens when the Warmup Round (in DM mode) finishes? Does the map switch back to the configuration from the Map Config?
Is gg_multikill_override the CVAR that is used to control the number of kills required to advance?
Can you help me understand the execution order of the various Configs.
So far, based on your responses above -
Script Execution Order
===== server start ======
autoexec
==== map change ====
es_map_start
server.cfg
map.cfg
(where do these fit in? - what i called "general configs" above)
cstrike\cfg\gungame51
gg_en_config
gg_map_vote
gg_server
cstrike\cfg\gungame51\included_addon_configs
gg_elimination
gg_warmup_round
etc.
I don't mean to be a pain, but it's hard to understand what is happening and how things are supposed to work. Hopefully this may help others.
Best regards,
PCH
Posted:
Mon Apr 12, 2010 3:36 pm
by satoon101
Easiest way to test is add debug messages in the configs themselves to see when they are executing. What I did in the past to test the order of es_map_start, server.cfg, and <mapname>.cfg is the following.
Create a script that just has the following:
event es_map_start
{
es_dbgmsg 0 EVENT ES_MAP_START
}
Then, anywhere in your server.cfg:
And in a specific <mapname>.cfg
es_dbgmsg 0 MAPCONFIG.CFG
Then, start up the server on any map that isn't the one you added the debug message to. Then, es_load the es_map_start script, and changelevel to the map you used for the debug message. Look at the order in which each is executed in the server's console.
Now, to see when the GunGame configs are executed, add some debug messages to them as well. Actually, I would like to know this information as well for a script of mine. I won't be able to test myself until sometime tomorrow, so if you are able to test this today, could you please post the results here? It would be very much appreciated.
Satoon
Posted:
Mon Apr 12, 2010 3:43 pm
by Warren
Turbo is not loaded by any other addons. You must enable or disable it in your ../cfg/gungame51/included_addon_configs/gg_turbo.cfg.
Included_addon_configs are executed when GunGame is loaded. This is normally done in the autoexec.cfg.
gg_multikill_override does set the number of kills required per level.
gg_warmup_round may be storing the backups for elimination, dead strip, and turbo before you make your changes, therefore overwriting them when warmup ends. I can change warmup to start / get these backups a fraction of a second after es_map_start, to ensure your map configs are the ones that get backed up.
I'll be back in around in a few hours and I can make this change.
Posted:
Mon Apr 12, 2010 4:09 pm
by Huggs
Warren - I read about Turbo being automatically turned On in the included_addon_configs/gg_deathmatch.cfg and the gg_elimination.cfg comments. I don't have access to them just now, but I believe that is where I read that.
You said that -
"Included_addon_configs are executed when GunGame is loaded. This is normally done in the autoexec.cfg."
Is GunGame loaded before each map or just once on server startup?
If I don't explicitly set a CVAR in a map config, between maps do all of the CVARS default back to their included_addon_configs values?
Satoon - I'm at work now and won't be able to try anything until much later this evening and that is only if procrastinate my Income Tax Return still further.
Best regards,
PCH
Re:
Posted:
Mon Apr 12, 2010 8:24 pm
by Warren
Huggs wrote:I read about Turbo being automatically turned On in the included_addon_configs/gg_deathmatch.cfg and the gg_elimination.cfg comments. I don't have access to them just now, but I believe that is where I read that.
This was an error in the configuration files' explanations. It is resolved in
r413.
Huggs wrote:Is GunGame loaded before each map or just once on server startup?
If I don't explicitly set a CVAR in a map config, between maps do all of the CVARS default back to their included_addon_configs values?
If you load GunGame in your autoexec.cfg, it is loaded once when the server starts. The GunGame configuration files, including the included_addon_configs, are only executed once when GunGame is loaded.
I made a change to
gg_warmup_round in
r413 which will no longer have it interfering with what you were trying to set for deathmatch, elimination, and dead strip in map config files.
Re: Problem with Map Configs
Posted:
Mon Apr 12, 2010 9:37 pm
by Huggs
I used to write my map configs where I carefully managed these CVARS -
If I wanted to turn DM on....
gg_deathmatch 1 AND gg_elimination 0
This seems to be the correct approach right?
If you turn it on, you need to turn it off once you are done.
If I set gg_turbo 1 in a map config it will stay on until I reset it (even after the map changes).
As I understand your recent changes changes (r413) -
The map configs are stored before the warmup round starts and then executed after the warmup round completes.
Does this include -
DeathMatch
Elomination
Turbo
MultiKill_Override
These are the only ones I'm really interested in, but I imagine that others might want more...... (c8
You guys are the best!
I'll give the new version a shot ASAP.
Thanks,
PCH
Posted:
Mon Apr 12, 2010 9:53 pm
by Warren
What warmup does is it stores the CURRENT settings for mp_freezetime, gg_dead_strip, gg_deathmatch, and gg_elimination, and then when warmup finishes, restores them to what they were backed up as.
An issue you may have been having prior to r413 is that warmup would start and get all of these backups stored before your map config file executed, meaning the settings you changed for the four variables listed above would be reset to whatever they were stored as when warmup started. In r413 however, there is a delay to make sure your map config file is executed before we store backups for these 4 variables.
Re: Problem with Map Configs
Posted:
Tue Apr 13, 2010 12:23 am
by Huggs
It looks like the Major Modes (DM & Elim) are working in r413.
I'm not sure about Turbo (it didn't work once, but I want to test more)
I haven't looked at MultiKill yet at all.
Thanks Warren,
PCH
Re: Problem with Map Configs
Posted:
Tue Apr 13, 2010 2:43 am
by Huggs
The Map Configs are working!
DM, Elim, MultiKill (for sure)
and Turbo (pretty sure)
I overwrote most of my configs when I reinstalled and forgot where the Random Winner sounds belong.
The config file in C:\GunGame\cstrike\cfg\gungame51\sound_packs\random_sound_files\winner_sounds.txt
doesn't have any comments about where the sounds are supposed to go.
I had it working before the reinstall, but now it's not working.
There are 4 random sounds files included by default -
music/file1.mp3
Where is the music/ directory supposed to go?
A comment in the winner_sounds.txt would be helpful in a future release.
Thanks,
PCH