feat: replace CreateHTTPRequest with CreateHTTPRequestScriptVM
Allows the game client to make HTTP API calls from a listen server (local lobby) instead of requiring a Steam dedicated server. CreateHTTPRequestScriptVM has the exact same API signature but works in both dedicated server and listen server contexts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,7 @@ function PlayerProfileManager.prototype.setupListeners(self)
|
||||
)
|
||||
end
|
||||
function PlayerProfileManager.prototype.createPlayerProfile(self, playerId, steamId, playerName)
|
||||
local request = CreateHTTPRequest("POST", SERVER_CONFIG.API_URL .. "/player")
|
||||
local request = CreateHTTPRequestScriptVM("POST", SERVER_CONFIG.API_URL .. "/player")
|
||||
setApiHeaders(nil, request)
|
||||
local dataToSend = {steam_id = steamId, player_name = playerName}
|
||||
request:SetHTTPRequestRawPostBody(
|
||||
|
||||
Reference in New Issue
Block a user