While briefing time getPlayerUID called by a dedicated server returns "" instead of SteamID -- for those players who reconnected or connected to the briefing after its start.
For those players who started to the briefing simultaneously with the server getPlayerUID works just fine.
Description
Description
Details
Details
- Severity
- Major
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- Dedicated Server
Steps To Reproduce
- Create in the mission folder initPlayerServer.sqf containig
diag_log format["JIP = '%1' / Briefing ID = '%2'",_this select 1,getPlayerUID (_this select 0)];
- Run dedicated server, setting presistent=1 or ask somebody to stay on the server while you disconnected
- Run mission to the briefing
- Go to the lobby by leaving the briefing and reconnect
- Disconnect from the server and reconnect to the briefing again
- Start the game and reconnect
Doing so you will see
step 3: JIP = false / Briefing ID = _STEAM ID HERE_
step 4,5: JIP = false / Briefing ID = ""
step 6: JIP = true / Briefing ID = _STEAM ID HERE_ - everything is fine after game starts
REPRO mission:
Additional Information
getPlayerUID in briefing time was such a nice stuff to create whitelists for players, restricting immediately some roles, side changes while the player is in connection stage.