source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

Build scripts for dedicated server with use of SteamGameServerHTTP

Open Myknakryu opened this issue 10 months ago • 2 comments

Description

Modified buildscript allows for building dedicated server linux64 binaries for hl2mp and tf2 against server versions of libtier0 and libvstdlib. Script requires user to provide both libraries from user from TF2 Dedicated Server install. This also includes modification to tf_gc_server.cpp allowing for use of SteamGameServerHTTP instead of SteamHTTP in dedicated server use case. Fixes issue https://github.com/ValveSoftware/source-sdk-2013/issues/715

Myknakryu avatar Feb 26 '25 03:02 Myknakryu

We can probably always use SteamGameServerHTTP on the server, no?

misyltoad avatar Feb 26 '25 03:02 misyltoad

Currently testing it, when changed to SteamGameServerHTTP only, game starts properly, client/ selfhosted server also works fine with proper connection to inventory server and handling any change in loadout. Should I commit changed version of tf_gc_server.cpp with only SteamGameServerHTTP?

Myknakryu avatar Feb 26 '25 03:02 Myknakryu

Yeah, probably just using only SteamGameServerHTTP would make code cleaner and not requiring Windows script for adding preprocessor define into vcxproj since /dedicated is not adding define to project on Windows. Not sure if there could be a case where having client selfhosted server using SteamHTTP would be undesirable.

Myknakryu avatar Feb 28 '25 02:02 Myknakryu