Author Topic: Gamemode Switcher  (Read 3679 times)

0 Members and 1 Guest are viewing this topic.

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Gamemode Switcher
« 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
:) Alex T. :)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Gamemode Switcher
« Reply #1 on: January 28, 2009, 08:51:15 PM »
Hi Alex,
Though not a 'all in one' solution, SpBogie's 'UMaps', 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: Gamemode Switcher
« Reply #2 on: January 28, 2009, 08:55:34 PM »
Hi Alex,
Though not a 'all in one' solution, SpBogie's 'UMaps', 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!  :-*
:) Alex T. :)

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: Gamemode Switcher
« Reply #3 on: January 29, 2009, 10:05:20 AM »
Ok, I know I'm a n00b now but what the command for changing the gamemode?
:) Alex T. :)

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: Gamemode Switcher
« Reply #4 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?
:) Alex T. :)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Gamemode Switcher
« Reply #5 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"

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: Gamemode Switcher
« Reply #6 on: January 29, 2009, 03:23:39 PM »
Oh, you use quotes! Lol I forgot about those.
Brb going to test it.
:) Alex T. :)

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: Gamemode Switcher
« Reply #7 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.
:) Alex T. :)