Hi there,
Thanks a lot for your reply, I will look further into the files to see how I can access the equipped items .
I wanted to ask you and anyone else whether they experienced the below error on their dedicated server? It keeps repeating as well but I can't pinpoint the exact reason, I only know that it's due to the GM_SavePlayerData.
Error in GM_SavePlayerData: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[system.String,AllocsFixes.PersistentData.Player].ContainsKey (System.String key) [0x00000] in <filename unknown>:0
at AllocsFixes.PersistentData.Players.get_Item (System.String steamId, Boolean create) [0x00000] in <filename unknown>:0
at AllocsFixes.PersistentData.Inventory.Update (.PlayerDataFile pdf) [0x00000] in <filename unknown>:0
at AllocsFixes.PersistentData.Player.Update (.PlayerDataFile _pdf) [0x00000] in <filename unknown>:0
at AllocsFixes.PlayerDataStuff.GM_SavePlayerData (.ClientInfo _cInfo, .PlayerDataFile _playerDataFile) [0x00000] in <filename unknown>:0
I am wondering if it could be due to these lines in Inventory.cs Update function:
string playername = PersistentContainer.Instance.Players[PersistentContainer.Instance.Players.GetSteamID(pdf.id.ToString(), true), false].Name;
string steamid = PersistentContainer.Instance.Players[PersistentContainer.Instance.Players.GetSteamID(pdf.id.ToString(), true), false].SteamID;
Player p = PersistentContainer.Instance.Players[PersistentContainer.Instance.Players.GetSteamID(pdf.id.ToString(), true), false];
Should I change the false to true ?
Any help is extremely appreciated. Thanks a lot again,
Neo