Source SDK

Source SDK

Running Dedicated Server of Personal Mod
So, I'm trying to get into modding. I followed this tutorial: moddb tutorial using Source SDK 2013, but doing a multiplayer mod instead of a singleplayer one.

If I debug in visual studio I can run the client and successfully create a listen server and play by myself. However, attempting to run it as a dedicated server causes it to just run a vanilla Half-Life 2 Deathmatch game instead.

My setup is:
my mod is named koala
a folder called steamcmd/
I copied the contents of SteamApps/common/Source SDK Base 2013 Dedicated Server/ into steamcmd
I copied the contents of mods/koala/game/mod_hl2mp/ into steamcmd/koala/

I run it from cmd inside the steamcmd directory:
srcds.exe -console -game koala +sv_pure 0 +map dm_lockdown

When steamcmd begins, it says:
Console initialized.
ConVarRef mat_dxlevel doesn't point to an existing ConVar
Game.dll loaded for "Half-Life 2 Deathmatch"
maxplayers set to 2
---------------------------------------------------
sv_pure value unchanged (current value is 0).
---------------------------------------------------
Network: IP XXXX.XXXX.XXXX.XXXX, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Error loading cfg/trusted_keys_base.txt
Error loading cfg/pure_server_minimal.txt
Executing dedicated server config file server.cfg
Map cycle file 'cfg/mapcycle.txt' was not found.
Precache of sprites/redglow1 ambigious (no extension specified)
Precache of sprites/redglow1 ambigious (no extension specified)
'cfg/motd.txt' not found; not loaded
'cfg/motd_text.txt' not found; not loaded
Initializing Steam libraries for secure Internet server
Logging into anonymous gameserver account.
'server.cfg' not present; not executing.
Connection to Steam servers successful.
Public IP is XXXX.XXXX.XXXX.XXXX
Assigned anonymous gameserver Steam ID XXXXXXXX
VAC secure mode is activated.

So, going into my client, I can see the server if I "add Server" under favorites, but it is listed as a Half-Life 2 Deathmatch server, so it will not appear in the server browser of my mod after I manually add it, because it is filtering based on my mod.
So, any ideas why my server is launching HL2 Deathmatch instead of koala? Did I miss deleting some file when I copied the Source SDK 2013 Dedicated Server over?
< >
Showing 1-8 of 8 comments
Dmitriy Feb 21, 2014 @ 1:40am 
example of dir structure
D:\server\srcsd.exe
D:\server\koala\gameinfo.txt
scoutcovertcomm Feb 21, 2014 @ 9:41am 
Yes, that is what I have.
The only gameinfo.txt is for koala, in steamcmd/koala/gameinfo.txt
violently Feb 22, 2014 @ 6:17am 
copy your mod to the srcds folder, call srcds.exe -game koala. I've never run srcds from inside steamcmd, perhaps that's your problem.
scoutcovertcomm Feb 28, 2014 @ 3:31pm 
Tried copying koala folder into Source SDK Base 2013 Dedicated Server/ and still got the same problem: still just shows up as a Half-Life 2 Deathmatch game
violently Mar 9, 2014 @ 12:29pm 
The windows srcds gui should have a drop-down to let you choose your game...
scoutcovertcomm Mar 27, 2014 @ 11:34am 
It does, but again, my game is only showing up as a Deathmatch server to other clients. Is there some other file besides gameinfo.txt that contributes to determining what "game" a server shows up as?
violently Mar 27, 2014 @ 3:41pm 
I think gameinfo.txt and the server.cfg contain all of the info that srcds needs. Make sure you change your server name in the server.cfg if you don't want the default one.

If you can't figure out the Windows srcds config, you can always build a Linux dedicated server in a VM or something. In the long term, I a Linux DDS would be easier to manage.
scoutcovertcomm Mar 28, 2014 @ 8:51am 
Okay, got it working. It appears just the lack of a server.cfg was causing it to default to an HL2 Deathmatch game instead of my mod. So adding a server.cfg file caused it to work (even though the server.cfg file doesn't specify the game type).
Interestingly this fixed launching it from the commandline (calling srcds.exe -game koala) but trying to run it from the Dedicated Server GUI still doesn't work even with server.cfg being added, but I don't really care about having the GUI working so this is fine.

Thanks for all the help!
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Feb 20, 2014 @ 5:46pm
Posts: 8