-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
big refactor #171
big refactor #171
Conversation
oh my fucking god does it commit the postbuild command |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails connecting to any gameserver rn
Fixed with 708bfed |
Includes standalone datatables from @BobTheBob9. Use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dedicated server fails to register with the master server. Tries to add itself multiple times (it's inconsistent); the first one works, but the other ones fail and breaks the auth process.
ns-aitdm-1 | [02:09:14] [info] changing mod search path from z:\tmp\ns490603817\R2Northstar\mods\Northstar.Custom\mod to R2Northstar/mods\Northstar.CustomServers
ns-aitdm-1 | [02:09:14] [info] SERVER CodeCallback CodeCallback_PostEntityInit called
ns-aitdm-1 | [02:09:14] [info] Not executing custom callbacks for CodeCallback CodeCallback_PostEntityInit
ns-aitdm-1 | [02:09:14] [info] [SERVER SCRIPT] Code Script: _init
ns-aitdm-1 | [02:09:14] [info] loading took 15.629472999999999s
ns-aitdm-1 | [02:09:15] [error] Failed reading masterserver response: got fastify error response
ns-aitdm-1 | [02:09:15] [error] {"success":false,"error":{"enum":"DUPLICATE_SERVER","msg":"A server with this port already exists for your IP address"}}
ns-aitdm-1 | [02:09:20] [error] Failed reading masterserver response: got fastify error response
ns-aitdm-1 | [02:09:20] [error] {"success":false,"error":{"enum":"DUPLICATE_SERVER","msg":"A server with this port already exists for your IP address"}}
{"time":"October 09 2022 02:09AM UTC","req":{"method":"POST","url":"/server/add_server?port=13314&authPort=13315&name=docker%209655a3f87b68%20testing%20server&description=go%20away&map=mp_colony02&playlist=aitdm&maxPlayers=12&password=","remotePort":40762},"msg":"incoming request"}
{"time":"October 09 2022 02:09AM UTC","req":{"method":"POST","url":"/server/add_server?port=13314&authPort=13315&name=docker%209655a3f87b68%20testing%20server&description=go%20away&map=mp_colony02&playlist=aitdm&maxPlayers=12&password=","remotePort":10064},"msg":"incoming request"}
{"time":"October 09 2022 02:09AM UTC","req":{"method":"POST","url":"/server/add_server?port=13314&authPort=13315&name=docker%209655a3f87b68%20testing%20server&description=go%20away&map=mp_colony02&playlist=aitdm&maxPlayers=12&password=","remotePort":64186},"msg":"incoming request"}
{"time":"October 09 2022 02:09AM UTC","req":{"method":"POST","url":"/server/update_values?id=a4ccf7b6afe1d16288025f26fd2a0764&port=13314&authPort=13315&name=docker%209655a3f87b68%20testing%20server&description=go%20away&map=mp_colony02&playlist=aitdm&playerCount=0&maxPlayers=12&password=","remotePort":22456},"msg":"incoming request"}
{"time":"October 09 2022 02:09AM UTC","req":{"method":"POST","url":"/server/update_values?id=a4ccf7b6afe1d16288025f26fd2a0764&port=13314&authPort=13315&name=docker%209655a3f87b68%20testing%20server&description=go%20away&map=mp_colony02&playlist=aitdm&playerCount=0&maxPlayers=12&password=","remotePort":40762},"msg":"incoming request"}
{"time":"October 09 2022 02:09AM UTC","req":{"method":"POST","url":"/server/update_values?id=a4ccf7b6afe1d16288025f26fd2a0764&port=13314&authPort=13315&name=docker%209655a3f87b68%20testing%20server&description=go%20away&map=mp_colony02&playlist=aitdm&playerCount=0&maxPlayers=12&password=","remotePort":31646},"msg":"incoming request"}
* Port ms presence reporter to std::async * Fix crash due to std::optional being assigned nullptr. * Fix formatting. * Wait 20 seconds if MS returns DUPLICATE_SERVER.
Fixed by the above PR. |
There seems to be an issue where other players cannot a refactor server and just "Authentication Failed" instead... Error on client
|
Also @emma-miler seems to have an issue with Northstar not launching properly on first run after cold start. |
The size check added in the refactor was incorrect: - 56306: expected pdata size based on the pdef - 512: allowance for trailing junk (r2 adds 137 bytes of trailing junk) - 100: for some wiggle room Co-Authored-By: pg9182 <96569817+pg9182@users.noreply.github.com>
player index jank
A certain someone forgot to put an `0x` in front of their hex number, meaning the offset is wrong. This would cause token to be leaked again
TODOs:
|
Seems like update values has some big delay on refactor not a blocking issue but should get fixed before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from update values regression, I didn't notice any issues in testing with dedi docker server and around 4-8 players on Hetzner CPX21.
(Did not check code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- No perf issues with the dedi on docker.
- Wine 7.0 works for the dedi after my backported fixes.
- Master server stuff works, auth works fine for both listen and dedi. Updated pdata max size is confirmed.
- Some races in the master server code, but shouldn't be a problem in practice and can be fixed later.
- aitdm, cp, and ttdm work fine (and the disconnect crash regression is fixed).
- gamemode_fd mods branch works fine.
- Dedi without rpaks for all but sp_coop seems to work fine, needs bob's latest mods commit.
- Reportedly issues with delays for update_values for playercount; I'll look into that soon.
- Client and server work fine with atlas.
No description provided.