PDA

View Full Version : HTTP API - Session->Attributes->Privacy bugged?



Vincen
10-10-2017, 20:12
http://ip:9000/api/session/status?attributes



"result" : "ok",
"response" : {
"state" : "Running",
"name" : "Dev Server",
"joinable" : true,
"max_member_count" : 24,
"now" : 1507665930,
"attributes" : {
"ServerControlsSetup" : 0,
"ServerControlsTrack" : 1,
"ServerControlsVehicleClass" : 1,
"ServerControlsVehicle" : 0,
"GridSize" : 24,
"GridLayout" : 0,
"MaxPlayers" : 24,
"OpponentDifficulty" : 95,
"Flags" : 966529808,

"Privacy" : 0,

"DamageType" : 3
....
....
}


Privacy is always 0, with or without password and with or without "PASSWORD_PROTECTED" flag always returns 0.


The possible values are 0 to 2, with 0 meaning public, 1 for friends only and 2 for private

private = password-protected?

Dealman
17-10-2017, 04:59
You forgot this part;

Session privacy, defined when the session is created. Usually server*hosted sessions will be
public and use password*protection or blacklists/whitelists to control who can join them

I would imagine this flag is redundant for dedicated servers as friend invites seemingly don't work for them? When you host a P2P server directly via the game, you can set the privacy. Try setting it to 2, see if it disappears from server browser.