ET map config

Post Reply
Clutch152
New to forums
New to forums
Posts: 5
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Oct 31, 2005 6:40 pm

ET map config

Post by Clutch152 »

I have a server currently running a custom campaign. I originally wanted to have my server play the north african campaign then switch to a custom map and I wanted it to have a different timelimit amung other stuff. How would I configure something like that?
Clutch152
New to forums
New to forums
Posts: 5
Joined: Mon Oct 31, 2005 6:40 pm

Post by Clutch152 »

do you people just not know?
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

I assume you would just put these commands into your campaign cycle.
When you throw in the custom map, include the cvars in that line.

set d# "set g_gametype # ; map yourcustommap ; set whatever_custom_command ; set whatever_other_custom_command ; set nextmap d#"

Something like that. You might have to set the custom commands before the map loads, I haven't played with it enough to know for sure.

Additionally, (for ET Pro only) on map changes, the server looks for a script named mapdefault_mapname.cfg to execute, where mapname is the name of the currently loaded map. If it is not found, it then looks for a script named mapdefault.cfg
Clutch152
New to forums
New to forums
Posts: 5
Joined: Mon Oct 31, 2005 6:40 pm

Post by Clutch152 »

yea i fiddled with all that hopeing that it would work but nothing has. that mapdefault_mapname thing didn't work either. :( everytyhing just ends up the same every time (the map loads up at its default 30 mins).
Clutch152
New to forums
New to forums
Posts: 5
Joined: Mon Oct 31, 2005 6:40 pm

Post by Clutch152 »

ok basically what happends is i'll load up the map and I look in the console it it shows it was changed to the time i wanted but farther down it says it was changed back to default. I cant figure out why.
User avatar
Edge100x
Founder
Founder
Posts: 13113
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

Did you remove the setting from everywhere else (such as other parts of server.cfg) after you made the change for it to be per-map?
Clutch152
New to forums
New to forums
Posts: 5
Joined: Mon Oct 31, 2005 6:40 pm

Post by Clutch152 »

I would but i dont know where else it would be. Its not in my server.cfg and its not in my etconfig.cfg and i took my mapdefault.cfg out. It still changes back to 30.
Post Reply