-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
bug: ND Core integration not saving phone numbers correctly #1141
Comments
Also having this issue. Investigated the script's handleUnloadPlayerEvent and deleteFromMaps but cannot find where this would lead to setting a Update |
How does ND Core even handle saving players? I'm guessing whatever method theyre using for saving characters is just overwriting this column which shouldn't be hard fix at all. You just need to save that portion too by updating db. Not really related to NPWD. |
ah, that would make sense but for the error screenshot i attached, could that be caused by what you mentioned or would that be an NPWD issue? |
Yes, ND Core is updating the phonenumber column to null. This is because the phonenumber isn't being set in the ND player data. |
Is it possible to assign the phonenumber to the player data within the ND_Core as a pass-thru or does this have to be done within NPWD with whatever number it generates within its own code? |
Maybe if we could get the phone number here https://github.com/project-error/npwd/blob/master/apps/game/server/players/player.service.ts#L208 |
(A lazy workaround for now) |
I tried doing that workaround but the error seems to keep popping up. It happens when players leave the server |
Development Issue
Unsure
Phone Version
3.13.0
Issue Description
when using the ND Core integration, if you change character or disconnect from the server,
phonenumber
in the database gets set to(NULL)
for the character that you were last onIssue Reproduction
Evidence
this is the error that comes up in server console when i disconnect from the server:
there doesn't appear to be any errors when i change character
logs when changing character: (didn't include anything that was "silly")
logs when disconnecting from server:
The text was updated successfully, but these errors were encountered: