Skip to content

Commit

Permalink
Remove the steam_appid.txt file, this is generated by the server now …
Browse files Browse the repository at this point in the history
…as it changes.
  • Loading branch information
TLeonardUK committed Jan 7, 2024
1 parent 5a51d1f commit 73ea820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/Server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ foreach(config ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER ${config} config_upper)

# Write steam appid file, required for dedicated servers.
file(WRITE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_${config_upper}}/steam_appid.txt" "374320")
# Server writes this out automatically now.
#file(WRITE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_${config_upper}}/steam_appid.txt" "374320")

# Copy WebUI resources to output folder
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/../WebUI" DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_${config_upper}}")
Expand Down
2 changes: 1 addition & 1 deletion Source/Server/Server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ bool Server::Init()

Log("Initializing steam game server api.");

if (!SteamGameServer_Init(0, Config.AuthServerPort - 1, MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE, eServerModeAuthentication, "1.0.0.0"))
if (!SteamGameServer_Init(0, Config.LoginServerPort, MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE, eServerModeAuthentication, "1.0.0.0"))
{
Error("Failed to initialize steam game server api.");
return false;
Expand Down

0 comments on commit 73ea820

Please sign in to comment.