Skip to content

Instantly share code, notes, and snippets.

@rjindael
Created June 13, 2023 07:21
Show Gist options
  • Save rjindael/76d5d58e1032bb747de2d29169bbd9fb to your computer and use it in GitHub Desktop.
Save rjindael/76d5d58e1032bb747de2d29169bbd9fb to your computer and use it in GitHub Desktop.
// null values can be anything
let envelope = {
"Mode": "GameServer",
"Settings": {
"PlaceId": placeId,
"PlaceFetchUrl": `http://${domain}/${null}/`,
"UniverseId": universeId,
"MatchmakingContextId": 1,
"CreatorId": userId,
"CreatorType": "User",
"GameId": null,
"MachineAddress": server.ip,
"PreferredPort": sever.port,
"PlaceVersion": placeVersion || assetVersion,
"BaseUrl": domain,
"GsmInterval": 10000,
"MaxPlayers": maxPlayers,
"MaxGameInstances": 1,
"ApiKey": place.apiKey,
"PreferredPlayerCapacity": preferredPlayerCapacity,
"PlaceVisitAccessKey": place.visitAccessKey
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment