Source SDK

Source SDK

JessHawk36 7 May, 2014 @ 10:23pm
Could not load library client?
I've run into this error now with 3 different "Start a mod" tutorials. I'm trying to setup a multiplayer mod and when I go to debug the game I keep getting the Engine Error "Could not load library client. Try restarting. If that doesn't work, verify the cahce." Does anyone have any expereince with this error or know how to fix it?

Most of these tutorials are setup for single player but I've been trying to change the things mentioned to get mp to work. I've also tried using Visual Studio 10 and 13 and have used the VPC to construct the appropriate .sln files but I've made it to the same error.

The tutorials I've tried to follow:
https://www.youtube.com/watch?v=VJwNR0No-7w#t=458
https://developer.valvesoftware.com/wiki/Source_SDK_2013
http://gtm.you1.cn/sharedfiles/filedetails/?id=232923055
Last edited by JessHawk36; 7 May, 2014 @ 10:24pm
< >
Showing 1-9 of 9 comments
sloprano 8 May, 2014 @ 2:12am 
If you have been following the tutorials and build the solution without errors then the only thing I can gather from your error is that Visual Studio can't find the client and server .dll-files it needs to run the executable. The command or command arguments path might be mistyped.

Make sure that:
1. You are in debug configuration.

2. The Command arguent has the path to the hl2.exe in the Source SDK Base 2013 Multiplayer folder.

3. The Command arguments field at least contains "-allowdebug" and "-game (C:\Program Files(x86\Steam\steamapps\SourceMods\MyMod)".
Change the path so it corresponds with the path to the folder where your mod's gameinfo.txt is. You can also try adding -novid -console, -dev and -window as arguments.

4. The Working Directory has the path to the Source SDK Base 2013 MP folder: "C:\Program Files (x86)\Steam\steamapps\common\Source SDK Base 2013 Multiplayer\"

After thats checked you can try pressing "F5" and see if it compiles.


Alternatively, you can try working in "Release" mode and just changing the Output directory to your mod's bin folder, then launching your mod from steam with the "-allowdebug" and "-dev" argruments. If you go release mode you can't use Visual Studios' debugging tools, but you can still use the Write-technique by placing "DevMsg("Something happend!")" in whatever function you want to test and that string will be printed on the screen in-game when that function is invoked. (Make sure you have the "-dev" argrument under launch options for this to work)

Hope this works for you!
Last edited by sloprano; 8 May, 2014 @ 2:23am
JessHawk36 20 May, 2014 @ 7:24pm 
I'm thinking it has to do with my gameinfo.txt file. I'm trying to mod Hl2dm but I'm not sure how the gameinfo.txt system works.
Wazanator 20 May, 2014 @ 7:56pm 
Last edited by Wazanator; 20 May, 2014 @ 7:58pm
JessHawk36 20 May, 2014 @ 8:18pm 
OMFG IT LAUNCHED!!!!! Thank you both so much for the help :D
JessHawk36 20 May, 2014 @ 8:19pm 
I changed the gameinfo.txt to the one you provided Wazanator and it started right up :D
crt 5 Jun, 2015 @ 9:55am 
What the heck! That gameinfo.txt HAS GONE MISSING! I need it!
crt 5 Jun, 2015 @ 4:11pm 
That still didn't fix it... but I am getting the exact same error as him.
is there a way for me to fix my gameinfo for hl2/sdk2013sp? its not working ever since i upgraded it, and its always crashing the map after i run it, even moving the map to play it in halflife 2 it crashes the game when loaded. it gives me the library failed to load and gamekey not found, is there a way to fix it?
< >
Showing 1-9 of 9 comments
Per page: 1530 50