Open realCallMeJ opened 8 months ago
Also having this issue. Investigated the script's handleUnloadPlayerEvent and deleteFromMaps but cannot find where this would lead to setting a NULL
value...
Update
Another player notes it is specifically the nd_character
integration, as ND_Core alone doesn't do this.
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.
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 @Andyyy7666 would you be able to look into this?
but for the error screenshot i attached, could that be caused by what you mentioned or would that be an NPWD issue? cause that only happens when disconnecting from the server
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) Commented out line 194 NDCore/server/player.lua --self.phonenumber, so it does not overwrite the value set in DB on disconnect , sticks with static phone number set
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: