hatalmasalma / CustomKits

THIS FORK IS UNSTABLE. DO NOT USE ON PUBLIC SERVERS! Save & load custom inventories. Free. Available on RocketMod
GNU General Public License v3.0
0 stars 0 forks source link

Loading "glasses" causes errors #2

Open hatalmasalma opened 4 years ago

hatalmasalma commented 4 years ago

Loading certain "glasses" from saved inventory using /ld (or originally /load) causes errors, and the some of the items is not working properly after being loaded.

Saving seems fine, it doesn't write error in log, and saves to the database (StoredKits.json) properly.

hatalmasalma commented 4 years ago

HEADLAMP TEST

Unturned 3.20.5.3 Rocket v4.9.3.2 for Unturned 3.20.5.3 (from the extras folder)

The headlamp's quality decreased from 100 to 0.

[2020. 05. 25. 11:15:51] [Info] [World] PLAYERNAME [STEAMNAME]: "/clearinventory"
[2020. 05. 25. 11:15:56] [Info] [World] PLAYERNAME [STEAMNAME]: "/i headlamp"
[2020. 05. 25. 11:16:11] [Info] [World] PLAYERNAME [STEAMNAME]: "/i mre"
[2020. 05. 25. 11:16:26] [Info] [World] PLAYERNAME [STEAMNAME]: "/sv something"
[2020. 05. 25. 11:16:33] [Info] [World] PLAYERNAME [STEAMNAME]: "/ld something"
[2020. 05. 25. 11:16:50] [Error] Exception has been thrown by the target of an invocation.
[2020. 05. 25. 11:16:50] [Error]   at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
  at SDG.Unturned.SteamChannel.receive (Steamworks.CSteamID steamID, System.Byte[] packet, System.Int32 offset, System.Int32 size) [0x003bb] in <552a1fa2dff648c2a994d098a8810480>:0 
[2020. 05. 25. 11:16:50] [Error] Index was outside the bounds of the array.
[2020. 05. 25. 11:16:50] [Error]   at SDG.Unturned.PlayerEquipment.updateVision () [0x00016] in <552a1fa2dff648c2a994d098a8810480>:0 
  at SDG.Unturned.PlayerEquipment.onGlassesUpdated (System.UInt16 id, System.Byte quality, System.Byte[] state) [0x00036] in <552a1fa2dff648c2a994d098a8810480>:0 
  at SDG.Unturned.PlayerClothing.tellWearGlasses (Steamworks.CSteamID steamID, System.UInt16 id, System.Byte quality, System.Byte[] state) [0x0007b] in <552a1fa2dff648c2a994d098a8810480>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <e1319b7195c343e79b385cd3aa43f5dc>:0 
hatalmasalma commented 4 years ago

SNORKEL TEST

The snorkel's quality decreased from 100 to 0. No errors in the log.