Chronolegionnaire / HydrateOrDiedrate

A mod for vintage story that adds a thirst mechanic
1 stars 2 forks source link

Error During Server Connection (1.19.8) #21

Closed An-Sar closed 1 month ago

An-Sar commented 1 month ago

This error occurs when a player tries to connect to a server, it loops and prevents connection.

First encountered with version v1.3.1, and tested again with v1.3.5, not other mods installed.

29.9.2024 19:45:00 [Server Error] Exception: Object reference not set to an instance of an object.
   at Vintagestory.API.Common.EntityPlayer.get_RightHandItemSlot() in VintagestoryApi\Common\Entity\EntityPlayer.cs:line 149
   at HydrateOrDiedrate.WaterInteractionHandler.CheckPlayerInteraction(Single dt) in C:\Users\bryan\RiderProjects\HydrateOrDiedrate\HydrateOrDiedrate\src\WaterInteractionHandler.cs:line 114
   at Vintagestory.Common.GameTickListener.OnTriggered(Int64 ellapsedMilliseconds) in VintagestoryLib\Common\Model\GameTickListener.cs:line 27
   at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in VintagestoryLib\Common\EventManager.cs:line 57
   at Vintagestory.Server.CoreServerEventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in VintagestoryLib\Server\ServerEventManager.cs:line 123
   at Vintagestory.Server.ServerMain.Process() in VintagestoryLib\Server\ServerMain.cs:line 886
Chronolegionnaire commented 1 month ago

Could you try the test version and see if this resolves it?

https://drive.google.com/file/d/1qfZ2Ii4gxfTC3TLB7Ilol_0z4OqeZX9g/view?usp=sharing

An-Sar commented 1 month ago

Thanks for the test build, unfortunately the error still occurs with 1.3.7TEST.zip

Chronolegionnaire commented 1 month ago

https://drive.google.com/file/d/1FzRX18kSUI_lMSCwU1hxJaC7LoezUNyB/view?usp=sharing

How about this?

Chronolegionnaire commented 1 month ago

Another user reported that this fix worked for them, released new versions on the moddb, if issue persists please let me know

An-Sar commented 1 month ago

The new release worked for me as well, thank you