Randomly not restoring

This is a longshot, but like 90% of the time this works perfectly... But randomly players do not respawn with any of their gear. Just default rock and torch spawn with no errors in console, no message in chat about inventory or anything I can find that gives an indication of what went wrong. 

 

Here is my config:

{
  "Give default items upon respawn if the players is having items restored": false,
  "Can drop active item on death": false,
  "Don't restore items if player commited suicide": false,
  "Wipe stored data when the map wipes": true,
  "Percentage of total items lost (Permission Name | Percentage (0 - 100))": {
    "restoreupondeath.default": {
      "Belt": 0,
      "Wear": 0,
      "Main": 0
    },
    "restoreupondeath.beltonly": {
      "Belt": 0,
      "Wear": 0,
      "Main": 0
    },
    "restoreupondeath.admin": {
      "Belt": 0,
      "Wear": 0,
      "Main": 0
    }
  },
  "Version": {
    "Major": 0,
    "Minor": 5,
    "Patch": 0
  }
}

 

Any ideas on why or what to look at would be greatly appreciated. 

I have the same issue! but noticed that some that could be the reason! i dont know why it happens for 0.01% if my players.

but it seems to be some network id stuff and this is what i seen*

when the only player it happend for logged in to the server it said:

(16:55:12) | NetworkId 76561198273***** is 8171*** (hesnamehere)  just censored hes name and id if he like to be anonymous 

so i think IT thinks hes another player maybe? its a way shorter ID than the normal steam ID, and IS 8171*** sounds like a npc id maybe?

he said he died in hes sleep and when he logged back on he didnt get hes stuff restored.

only happens for people with long distance for what i see so far, and its luckly rarely BUT its annoying :)

any clue? @WhiteThunder@k1lly0u

best

 

Luuxen

 

p.s i have the same config as above and never had these issue's other than the 0.01% of players

EnPqeXZ5LkRAw4E.png Luuxen

but it seems to be some network id stuff and this is what i seen*

when the only player it happend for logged in to the server it said:

(16:55:12) | NetworkId 76561198273***** is 8171*** (hesnamehere)  just censored hes name and id if he like to be anonymous 

so i think IT thinks hes another player maybe? its a way shorter ID than the normal steam ID, and IS 8171*** sounds like a npc id maybe?

The plugin does explicitly block restore if the player.userID is not a valid steam ID (is less than or equal to 76561############), but I'm not sure that's what's happening to that player (and I have no idea what could cause that if it's even possible), since the code that logs that message is as follows.

DebugEx.Log($"\tNetworkId {basePlayer.userID} is {basePlayer.net.ID} ({basePlayer.displayName})");

That shows that the low 8171*** number was the player's net ID. The net ID doesn't matter, doesn't affect the plugin.

Thanks @WhiteThunder for the fast reply!

I know its a wierd thing, my suggestion is the internet connection is to old for gaming 🤓 It only happens very rarely.

i'am told he has DSL 5mb/s connection 😱

my skills in networking is portwarding and thats basically it 😅

Would it be possible to explicitly *NOT* block restore if the player.userID is not a valid steam ID? im not sure if this would make more mess than solving anything? I just want to make sure everyone gets their items so i dont have to manually go explain anything 😅 

 

Thanks again 

 

Best

Luux

Yes, you can remove the condition as a test.

if (player == null || !player.userID.IsSteamId() || restoreData.HasRestoreData(player.userID))

replace with:

if (player == null || restoreData.HasRestoreData(player.userID))

edit: should have read this was not in response to me. whoops lol.