SRCDS Steam group


[Resolved] Changing a Defualt Gamemode
#1
Hello, I am here to give you as much information on my problem, if anyone could help that would be fantastic.

THE PROBLEM: When i start my server it is Automatically on Sandbox, but my server is a DarkRP server, (i can make it a DarkRP server by typing in a ulx command, but i want it to do it Automatically.)

MODS I AM USING: DarkRP 2.2.5 with some third party mods, Some irrelevant mods, ULX and ULiB admin mod and thats all the important stuff.

SERVER.CFG: people tell me you can change the server defualt gamemode by changing the server.cfg, by adding to commands specifically,
// settings
hostname "=KoL= Official Gmod Server"
rcon_password "chinchin"
sv_gamemode "DarkRP"
sv_defaultgamemode "DarkRP"
sv_password ""
sv_region 255
sv_lan 0
sv_logbans 0
sv_logecho 0
sv_logfile 1
sv_log_onefile 0
sv_noclipspeed 5
sv_noclipaccelerate 5

// features
sbox_allownpcs 0
sbox_godmode 0
sbox_plpldamage 0
sbox_playergod 0
sbox_noclip 0

// limits
sbox_maxprops 150
sbox_maxragdolls 5
sbox_maxnpcs 0
sbox_maxballoons 10
sbox_maxeffects 50
sbox_maxdynamite 0
sbox_maxlamps 20
sbox_maxthrusters 30
sbox_maxwheels 20
sbox_maxhoverballs 20
sbox_maxvehicles 0
sbox_maxbuttons 20
sbox_maxsents 20
sbox_maxemitters 5
sbox_maxspawners 3
sbox_maxturrets 0

// rates
sv_minrate 0
sv_maxrate 20000
decalfrequency 10
sv_maxupdaterate 66
sv_minupdaterate 10
net_maxfilesize 30

// various
log on
exec banned_ip.cfg
exec banned_user.cfg

pay close attention to the
sv_gamemode "DarkRP"
sv_defaultgamemode "DarkRP"
lines which i have added...

I would like to note that DarkRP is the name for the mod, because i have to type

"ulx map rpw_downtown_v2 DarkRP"

to change the gamemode when the server starts.

STARTUP LINE: I don't know if this is relevant on a Linux server but here is the line of code i use to start my server.

+map rpw_downtown_v3 -game garrysmod +maxplayers 16 +ip 202.157.178.214 -port 27015

(I find the port weird because the port is 27016 not 27015... but it still works fine)

OTHER INFO: I have a server provider ServerFFS but i full FTP access of everything



So help I want my server to have DarkRP as the default gamemode every time it starts
Reply
#2
Put the sv_gamemode "DarkRP" in the start up line with a plus infront of it. Like this:

Code:
+map rpw_downtown_v3 -game garrysmod +maxplayers 16 +ip 202.157.178.214 -port 27015 +sv_gamemode "DarkRP"
Reply
#3
(03-13-2011, 12:07 AM)realchamp Wrote:  Put the sv_gamemode "DarkRP" in the start up line with a plus infront of it. Like this:

Code:
+map rpw_downtown_v3 -game garrysmod +maxplayers 16 +ip 202.157.178.214 -port 27015 +sv_gamemode "DarkRP"

I really appreciate the help, But unfortunately it is not working for me. At first I did your code

Code:
+map rpw_downtown_v3 -game garrysmod +maxplayers 16 +ip 202.157.178.214 -port 27015 +sv_gamemode "DarkRP"

which crashed the server on start, so the i changed to this startup line

Code:
+map rpw_downtown_v3 +sv_gamemode "DarkRP" -game garrysmod +maxplayers 16 +ip 202.157.178.214 -port 27015

Which did not crash the server on start, but did not implement the change

So then i tried this line (also removing the "")

Code:
+sv_gamemode DarkRP +map rpw_downtown_v3  -game garrysmod +maxplayers 16 +ip 202.157.178.214 -port 27015 +sv_gamemode "DarkRP"

But that did no change, i even retried the first line, but this time it did not crash, but it did not work,

Finally I tried this line

Code:
+map rpw_downtown_v3 -game garrysmod +maxplayers 16 +ip 202.157.178.214 -port 27015 +sv_defualtgamemode "DarkRP"

And that also did not work

Again I appreciate the help, regardless. Smile

EDIT: also for more information i have no DarkRP content in Addons only in the Gamemodes folder
Reply
#4
Try adding it to your autoexec.cfg. It's executed upon loading the first map. If you do not have one, simply just create one insite the cfg directory. Smile
Reply
#5
(03-13-2011, 01:48 AM)realchamp Wrote:  Try adding it to your autoexec.cfg. It's executed upon loading the first map. If you do not have one, simply just create one insite the cfg directory. Smile

Again thanks for the help, unfortunately i solved the problem Toungue I was using the wrong command its not +sv_gamemode "DarkRP" its +sv_defaultgamemode "darkRP" inbetween the IP and the max players Toungue
Reply
#6
i trying to smply get the mode darkrp but it dosen't work when i start it says the sever that the gamemode is still sandbox, please help?
servers propities command is: C:\hlds\orangebox\srcds.exe map zombiesurvival_b11_rp -game garrysmod +maxplayers 24 +sv_defaultgamemode "DarkRP"+map zombiesurvival_b11_rp -game garrysmod +maxplayers 24 +sv_gamemode "DarkRP"

and the CFG:

// settings
hostname "Darkp rp (custom jobs/classes, shipments and addons ect)"
rcon_password "chinchin"
sv_gamemode "DarkRP"
sv_defaultgamemode "DarkRP"
sv_password ""
sv_region 255
sv_lan 0
sv_logbans 0
sv_logecho 0
sv_logfile 1
sv_log_onefile 0
sv_noclipspeed 5
sv_noclipaccelerate 5

// features
sbox_allownpcs 0
sbox_godmode 0
sbox_plpldamage 0
sbox_playergod 0
sbox_noclip 0

// limits
sbox_maxprops 150
sbox_maxragdolls 5
sbox_maxnpcs 0
sbox_maxballoons 10
sbox_maxeffects 50
sbox_maxdynamite 0
sbox_maxlamps 20
sbox_maxthrusters 30
sbox_maxwheels 20
sbox_maxhoverballs 20
sbox_maxvehicles 0
sbox_maxbuttons 20
sbox_maxsents 20
sbox_maxemitters 5
sbox_maxspawners 3
sbox_maxturrets 0

// rates
sv_minrate 0
sv_maxrate 20000
decalfrequency 10
sv_maxupdaterate 66
sv_minupdaterate 10
net_maxfilesize 30

// various
log on
exec banned_ip.cfg
exec banned_user.cfg

pay close attention to the
sv_gamemode "DarkRP"
sv_defaultgamemode "DarkRP"


please help me
Reply
#7
(02-06-2013, 06:23 PM)philipnks Wrote:  i trying to smply get the mode darkrp but it dosen't work when i start it says the sever that the gamemode is still sandbox, please help?
servers propeities command is: C:\hlds\orangebox\srcds.exe +map zombiesurvival_b11_rp -game garrysmod +maxplayers 24 +sv_defaultgamemode "DarkRP"

and the CFG:

// settings
hostname "Darkp rp (custom jobs/classes, shipments and addons ect)"
rcon_password "chinchin"
sv_gamemode "DarkRP"
sv_defaultgamemode "DarkRP"
sv_password ""
sv_region 255
sv_lan 0
sv_logbans 0
sv_logecho 0
sv_logfile 1
sv_log_onefile 0
sv_noclipspeed 5
sv_noclipaccelerate 5

// features
sbox_allownpcs 0
sbox_godmode 0
sbox_plpldamage 0
sbox_playergod 0
sbox_noclip 0

// limits
sbox_maxprops 150
sbox_maxragdolls 5
sbox_maxnpcs 0
sbox_maxballoons 10
sbox_maxeffects 50
sbox_maxdynamite 0
sbox_maxlamps 20
sbox_maxthrusters 30
sbox_maxwheels 20
sbox_maxhoverballs 20
sbox_maxvehicles 0
sbox_maxbuttons 20
sbox_maxsents 20
sbox_maxemitters 5
sbox_maxspawners 3
sbox_maxturrets 0

// rates
sv_minrate 0
sv_maxrate 20000
decalfrequency 10
sv_maxupdaterate 66
sv_minupdaterate 10
net_maxfilesize 30

// various
log on
exec banned_ip.cfg
exec banned_user.cfg

pay close attention to the
sv_gamemode "DarkRP"
sv_defaultgamemode "DarkRP"


please help me

Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)