Author Topic: setting up game Mode on Gmod 10 using ULX  (Read 18297 times)

0 Members and 1 Guest are viewing this topic.

Offline Azrellion

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
setting up game Mode on Gmod 10 using ULX
« on: October 30, 2008, 10:06:10 AM »
I just today setup a dedicated server and im using ULX as my Admin Software.

I downloaded the GMStranded Game mode, and its all packed and ready i think (Very new to this)

Could anyone run me through or link me to a place that has a tutorial, on how to activate the Game Mode.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: setting up game Mode on Gmod 10 using ULX
« Reply #1 on: October 30, 2008, 11:43:32 AM »
Though your root question doesn't fully have to do with ULX, as an admin mod, we do have many helpful features than can work with gamemodes.

First, your question.
Do some google research on the Source srcds command line (and, they can be included in Source autoexec.cfg too) options "sv_defaultgamemode" and "sv_gamemode"
These might be Gmod specific only, as the very quick search I did seemed to only show Gmod.
Though, now thinking about it, I would hope other games use it such as Counter Strike Source, with all the different game modes CSS has available.

Now, on to ULX.
The simplest;
Our "ulx map <mapname> <gamemod>" command allows for changing of gamemodes when changing maps. Hardest part of that is knowing the exact gamemode name. (Some aren't so simple)
For instance, if I had a map called rm_track_and_field and gamemode that best worked with it called runningman, I could type
in console; "ulx map rm_track_and_field runningman"
Or chat; "!map rm_track_and_field runningman"

More advanced;
We provide map and gamemode specific setting capability in ULX.
Do this;
Go into your gmod/addons/ulx/cfg folder.
Copy the "maps" and "gamemodes" folders to your gmod/cfg folder
If you want (and haven't already), copy the server.ini from gmod/addons/ulx/cfg to gmod/cfg - then edit any settings in server.ini - they're well commented.
Then, read your gmod/cfg/maps/gm_construct.ini file.
and read the comment in gmod/cfg/gamemodes/sandbox.ini file.

Both of these allow you to have settings different for various gamemodes or maps.
Want <somemap> to ONLY play in <somegamemode> when it loads?
Using my example above, I'd create a file in gmod/cfg/maps called rm_track_and_field.ini
In that file, I'd add the line; "sv_gamemode" "runningman"
I might also turn off infinite aux power so no one could sprint all the time in that one map "sv_infinite_aux_power" "0"
(I don't remember if thats a valid Gmod command, but it works in HalfLife2)
Quote from: Fake rm_track_and_field.ini file
"sv_gamemode" "runningman"
"sv_infinite_aux_power" "0"

Then, I might want to change the default running speed for my runningman gamemode
Quote from: Fake runningman.ini file
"sv_sprintspeed" "999999"

Hope this gives you the basic idea
« Last Edit: October 30, 2008, 11:45:57 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming