Ulysses

Ulysses Stuff => Suggestions => Topic started by: Alex on January 28, 2009, 03:26:03 PM

Title: Gamemode Switcher
Post by: Alex on January 28, 2009, 03:26:03 PM
Hi guys, I was wondering if you could make a gamemode switcher for me. I want it to change the gamemode and map at a specific time and date.
Ex. When it's Tuesday the mod changes the server to DarkRP and to the map OMG_City_Final
then when it's Friday the mod changes the server to Sandbox and goes to the Gm_Flatgrass.

Will one of you make this for me plz?  ;D
Title: Re: Gamemode Switcher
Post by: JamminR on January 28, 2009, 08:51:15 PM
Hi Alex,
Though not a 'all in one' solution, SpBogie's 'UMaps (http://forums.ulyssesmod.net/index.php/topic,688.0.html)', combined with ULX's ability to set cfg/maps/<mapname>.ini files should be able to do what you want.
Use UMaps to change the maps at certain times. Use the <mapname>.ini to set gamemodes and settings.
In theory, should work.
Title: Re: Gamemode Switcher
Post by: Alex on January 28, 2009, 08:55:34 PM
Hi Alex,
Though not a 'all in one' solution, SpBogie's 'UMaps (http://forums.ulyssesmod.net/index.php/topic,688.0.html)', combined with ULX's ability to set cfg/maps/<mapname>.ini files should be able to do what you want.
Use UMaps to change the maps at certain times. Use the <mapname>.ini to set gamemodes and settings.
In theory, should work.
Oh cool thank you very much!  :-*
Title: Re: Gamemode Switcher
Post by: Alex on January 29, 2009, 10:05:20 AM
Ok, I know I'm a n00b now but what the command for changing the gamemode?
Title: Re: Gamemode Switcher
Post by: Alex on January 29, 2009, 01:04:50 PM
Ok, I did that with the command "sv_gamemode" but when UMaps changes the map the gamemode doesn't change. Can you help?
Title: Re: Gamemode Switcher
Post by: JamminR on January 29, 2009, 03:21:45 PM
Are you placing a file in cfg/maps/<mapname no .bsp>.ini
You would need an ini file for every map you had that you wanted to use that gamemode.
So, say you have a gamemode named I_Know_Jack
You have two maps. IKJ_1.bsp and IKJ_2.bsp

In your server cfg folder, you'd create a folder named maps
in gmod/cfg/maps, you'd create two text files, one named IKJ_1.ini and one named IKJ_2.ini
Inside each file you'd put sv_gamemode "I_Know_Jack"

Title: Re: Gamemode Switcher
Post by: Alex on January 29, 2009, 03:23:39 PM
Oh, you use quotes! Lol I forgot about those.
Brb going to test it.
Title: Re: Gamemode Switcher
Post by: Alex on January 29, 2009, 03:53:17 PM
Apparently it doesn't work on a listen sever.  :-\ So I'm going to wait for dedicated server then test it. Thanks Jam.