SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
88 stars 18 forks source link

An exception during tock.tock #1407

Closed baranmod closed 4 years ago

baranmod commented 4 years ago

What can this be related to? Player can use a gun (shoot) until stops, gun becomes unusable after that. This is the only weapon pushing this exception but I double-checked prefab and dat files, it has nothing special compared to other guns except it has custom muzzle effect which seems to be working fine until gun becomes unusable.

[2020-01-25 00:35:16] 43426 - uzismooth raised an exception during tock.tock:
[2020-01-25 00:35:16] Object reference not set to an instance of an object
[2020-01-25 00:35:16]   at SDG.Unturned.UseableGun.shoot () [0x002d1] in <eaa60d1eb51142a3b317f50649a34cdb>:0 
  at SDG.Unturned.UseableGun.fire () [0x00d2a] in <eaa60d1eb51142a3b317f50649a34cdb>:0 
  at SDG.Unturned.UseableGun.tockShoot (System.UInt32 clock) [0x00192] in <eaa60d1eb51142a3b317f50649a34cdb>:0 
  at SDG.Unturned.UseableGun.tock (System.UInt32 clock) [0x0001a] in <eaa60d1eb51142a3b317f50649a34cdb>:0 
  at SDG.Unturned.PlayerEquipment.tock (System.UInt32 clock) [0x00016] in <eaa60d1eb51142a3b317f50649a34cdb>:0 
SDGNelson commented 4 years ago

It looks like this would happen if the custom muzzle is missing a light component. I'll get that fixed up for the Friday update!