Thread: Old thread
View Single Post
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 07-11-2010 , 21:04   Re: SteamTools - SteamWorks for SourceMod
#15

Very cool stuff asherkin. Glad to see work being done with OSW.

Quote:
Originally Posted by asherkin View Post
Also, Valve changed some stuff slightly, this will not work on Windows servers with Steam installed and running. VoiDeD, voogru and I are all trying to fix this. This update adds a warning when this happens and unloads, previous ones will just crash.
This has to do with the steamclient library that the steam_api library is loading.

When the engine/game does SteamAPI_Init/InitSafe(), the steam_api library attempts to locate and load the steamclient.dll that's located in the steam directory. If it's unable to find it, it loads the one that resides within the server's engine bin directory.

For reasons I'm unsure of, the engine ends up loading both libraries in cases where Steam is installed on the game server, but it will end up using the one located next to the engine bins.

Then any attempt to use OSW to hook up proper interfaces won't work because the OSW code (or your own code) will most likely attempt to get the module handle for the Steam binary, which hasn't setup proper IPC so it won't have any pipes or users.

Long story short: Get the module handle for the steamclient located next to the engine bins.

*phew*

Last edited by VoiDeD; 07-11-2010 at 21:08.
VoiDeD is offline