Anyone able to provide any insight into this error:
[AnimalsNeedWater] Failed in AnimalBehaviors:System.NullReferenceException: Object reference not set to an instance of an object.at AnimalsNeedWater.Patching.HarmonyPatchExecutors.AnimalBehaviorsExecutor(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatchExecutors.cs:line 52at AnimalsNeedWater.Patching.HarmonyPatches.AnimalBehaviors(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatches.cs:line 32[AnimalsNeedWater] Failed in AnimalBehaviors:System.NullReferenceException: Object reference not set to an instance of an object.at AnimalsNeedWater.Patching.HarmonyPatchExecutors.AnimalBehaviorsExecutor(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatchExecutors.cs:line 52at AnimalsNeedWater.Patching.HarmonyPatches.AnimalBehaviors(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatches.cs:line 32
I tried to decipher it but couldn't really come to a conclusion as what the issue is.
Hello! I'm just getting back into SDV, and I've used this mod before, and when it works, it's lovely. I think I'm currently encountering an issue, however.
When I start a new save file with only: - GMCM - Animals Need Water (default settings)
I'm getting this red error message in my SMAPI log:
[AnimalsNeedWater] This mod failed in the GameLoop.DayEnding event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at AnimalsNeedWater.ModEntry.FindThirstyAnimals() in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 248 at AnimalsNeedWater.ModEntry.OnDayEnding(Object sender, DayEndingEventArgs e) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 404 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101
I'm glad you shared this because I got the same error and initially thought it might be a mod conflict issue with one of the way too many mods I have installed. Your info all but rules that out; it's either a conflict with GMCM or an issue with this mod itself.
I added my log onto an existing bug report someone else made of the same issue, but I'll add the link here too for convenience: https://smapi.io/log/1c828313a4e24a6ea585ec4e0f8e4053
I'm using multiple mods, including SDVE with the Premium Barn and Premium Coop. Those are the only farm buildings I'm using for my animals. The troughs and bowls in both buildings fail to show water in them when I fill them. I also put the water dishes from Marnie in the buildings to make sure my animals have water. The only dish that ever shows water is the one from Marnie. I can click on and pour water into the troughs but it makes no visible difference. Without the water bowls (if I take them out) my animals report being left without water even if I go through the action of filling every bowl and trough in the building. I'm posting here and to SDVE because I don't know which end the error is on. Thanks so much for your time and effort!
Small heads-up for people playing with both Walk of Life - Rebirth and any other mod that changes the layout of the coop and barn:
The Walk of Life compat file will override the deluxe barn and coop. So if you're not planning on using the Producer mastery or don't have the mastery unlocked yet it would be wise to delete the file (or move it somewhere else) so it doesn't create any problems (i.e. the map bugging out) when using another mod that changes the deluxe coop or barn map (such as Cuter Coops and Better Barns).
I didn't realise this during testing and it shouldn't cause any issues if you're not playing with Walk of Life or not using any cosmetic mods for the barns and coops. This isn't a problem with Jen's Mega Barn and Coop and the Giant Coop added by Resource Chickens since they use entirely different maps from the base three barn and coop maps.
I'm happy to see people are enjoying the compatibility files I've added (sweet-defender-turtle on GitHub) and if there are any requests for more compat I'd be happy to check it out!
Hi there, I do use WoL rebirth and am a Producer. The barn and coop throughs are always full. i don't know if it's because of WoL, or SVE's Premum barn/copp.
Does this mean the mod is incompatible with my playthrough?
Hi there, I do use WoL rebirth and am a Producer. The barn and coop throughs are always full. i don't know if it's because of WoL, or SVE's Premum barn/copp.
Does this mean the mod is incompatible with my playthrough?
Interesting fact, chicken can survive at most 24 hours without water
Pigs can survive 2.5 days without water
Sheep 5 days Cows 7 days
I doubt you can add individual time for each animal (especially modded animals) but figured it'd be worth sharing
PS there are some clipping issues with the water through when used alongside immersive barn and the upgraded version. Will post more details if requested
I used the last SMAPI and only this mod, but pop up a error message like below, pls check it
[10:57:17 ERROR AnimalsNeedWater] This mod failed in the GameLoop.DayEnding event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at AnimalsNeedWater.ModEntry.FindThirstyAnimals() in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 248 at AnimalsNeedWater.ModEntry.OnDayEnding(Object sender, DayEndingEventArgs e) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 404 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/Events/ManagedEvent.cs:line 101
is it possible to buy multiple water bowl so animals can have water for multiple day and not require that I visit them each day during winter? or is it like food through where it must be filled every day?
No, the bowls act just like the troughs, meaning all get emptied every day. They are mostly there for compatibility purposes with animal building mods that do not support ANW, so I didn't include any special logic for this.
205 comments
[AnimalsNeedWater] Failed in AnimalBehaviors:System.NullReferenceException: Object reference not set to an instance of an object.at AnimalsNeedWater.Patching.HarmonyPatchExecutors.AnimalBehaviorsExecutor(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatchExecutors.cs:line 52at AnimalsNeedWater.Patching.HarmonyPatches.AnimalBehaviors(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatches.cs:line 32[AnimalsNeedWater] Failed in AnimalBehaviors:System.NullReferenceException: Object reference not set to an instance of an object.at AnimalsNeedWater.Patching.HarmonyPatchExecutors.AnimalBehaviorsExecutor(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatchExecutors.cs:line 52at AnimalsNeedWater.Patching.HarmonyPatches.AnimalBehaviors(Boolean& __result, FarmAnimal __instance, GameTime time, GameLocation location) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/Patching/HarmonyPatches.cs:line 32
I tried to decipher it but couldn't really come to a conclusion as what the issue is.
When I start a new save file with only:
- GMCM
- Animals Need Water (default settings)
I'm getting this red error message in my SMAPI log:
[AnimalsNeedWater] This mod failed in the GameLoop.DayEnding event. Technical details:
NullReferenceException: Object reference not set to an instance of an object.
at AnimalsNeedWater.ModEntry.FindThirstyAnimals() in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 248
at AnimalsNeedWater.ModEntry.OnDayEnding(Object sender, DayEndingEventArgs e) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 404
at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101
My full SMAPI log is here.
Any insight as to what's up, if it's actually an issue, or a fix would be very much appreciated!
I added my log onto an existing bug report someone else made of the same issue, but I'll add the link here too for convenience:
https://smapi.io/log/1c828313a4e24a6ea585ec4e0f8e4053
https://smapi.io/log/e889a6d15c5b43cb81844c7fcda3ca60
The Walk of Life compat file will override the deluxe barn and coop. So if you're not planning on using the Producer mastery or don't have the mastery unlocked yet it would be wise to delete the file (or move it somewhere else) so it doesn't create any problems (i.e. the map bugging out) when using another mod that changes the deluxe coop or barn map (such as Cuter Coops and Better Barns).
I didn't realise this during testing and it shouldn't cause any issues if you're not playing with Walk of Life or not using any cosmetic mods for the barns and coops. This isn't a problem with Jen's Mega Barn and Coop and the Giant Coop added by Resource Chickens since they use entirely different maps from the base three barn and coop maps.
I'm happy to see people are enjoying the compatibility files I've added (sweet-defender-turtle on GitHub) and if there are any requests for more compat I'd be happy to check it out!
Does this mean the mod is incompatible with my playthrough?
Thanks in advance
Does this mean the mod is incompatible with my playthrough?
Thanks in advance
Pigs can survive 2.5 days without water
Sheep 5 days
Cows 7 days
I doubt you can add individual time for each animal (especially modded animals) but figured it'd be worth sharing
PS there are some clipping issues with the water through when used alongside immersive barn and the upgraded version. Will post more details if requested
I have my own profile setup, I just don't know what numbers to put into the json profile and where to look for them.
[10:57:17 ERROR AnimalsNeedWater] This mod failed in the GameLoop.DayEnding event. Technical details:
NullReferenceException: Object reference not set to an instance of an object.
at AnimalsNeedWater.ModEntry.FindThirstyAnimals() in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 248
at AnimalsNeedWater.ModEntry.OnDayEnding(Object sender, DayEndingEventArgs e) in /Users/gzhynko/Projects/C#/stardew-mods/AnimalsNeedWater/ModEntry.cs:line 404
at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/Events/ManagedEvent.cs:line 101
or is it like food through where it must be filled every day?