stayintarkov / SIT.Docker

https://hub.docker.com/r/stayintarkov/stayintarkov
MIT License
23 stars 23 forks source link

Cant host online game #2

Closed Traceur70 closed 9 months ago

Traceur70 commented 9 months ago

Hi, First thanks you very much for your work. Now I can play solo, but if I host a game, I cant jump or fire.

I saw this error on the logs

2024-01-14 00:38:56 Checking server authorization for profile: e454cd2956fed4095388ba57
2024-01-14 00:38:56 e454cd2956fed4095388ba57 is not authorized in server: pmc5359ec5d13fcd8292fbec8a8

So I supposed AuthorizedUsers is not well updated when using SIT.Docker

console.log(`Checking server authorization for profile: ${profileId}`);
if(this.AuthorizedUsers.findIndex(x => x == profileId) === -1)
{
   console.log(`${profileId} is not authorized in server: ${this.ServerId}`);

   WebSocketHandler.Instance.closeWebSocketSession(profileId, CoopMatchEndSessionMessages.WEBSOCKET_TIMEOUT_MESSAGE);
   return;
}

FYI

Thanks

devbence commented 9 months ago

Hi! Possible solution, please try with an additional build-arg, as: --build-arg SIT=022caac252205e1b9ca30b3610884ad1b05d0dc1

Reason: The 0.14 branch was merged to SIT.Aki-Server-Mod's master, and the script pulls the latest of everything if not set otherwise.

I'll set this to the readme as well.

Traceur70 commented 9 months ago

Sorry, unstable commit from SIT coop mod Here is a PR with a little more precise readme : https://github.com/stayintarkov/SIT.Docker/pull/3