Good old integer underflow/overflow errors. He had a preference toward using nukes of only 1, but Democracy reduced it by 2, and Gandhi had a preference for the Democracy government type. There was no check for underflow, and it used an unsigned integer type, so it became maximum value the type could hold. Nobody loves nukes like Gandhi!
Future update to make this compatible with SMAPI 1.10 and the new Stardew 1.2 ?
EDIT : Apparently, while the developer didn't add the mention in their ''Bugs that were fixed'' list... This 'animal mood' bug has been fixed ! : http://community.playstarbound.com/threads/how-to-fix-mods-broken-in-stardew-valley-1-2.132096/page-4#post-3151692
So, how does this go about fixing the bug, exactly? The reason I ask is because the Happy Animals 1.0 mod simply overwrites animal happiness at the end of the day, regardless of what you did. Aside from being a little cheaty, this makes it impossible to get small milk, which is required in some recipes.
The bug fix for animal producing even if they have no Delux product doesn't seem to work for dinosaurs. Otherwise this mod has served me very well, thank you.
While I can see a need for the original form of the mod, I haven't needed it because I do my animal petting/milking/etc before letting them out each morning, which completely avoids the bug; however, the "no products at high mood+happiness" fix will be great.
I think it's already included, and as far as I know it works
Update 1.1 * Fixed another bug in SDV where some types of animals will stop producing items when they have a high mood+friendship value. This may not work for the first day after installing the mod, but should work on all subsequent days.
I installed SMAPI purely so I could use this mod. SMAPI installation was successful, however this mod does not appear to be working (nothing appears when mousing over the animals or clicking on them). I have SDV 1.11 and latest version of SMAPI. I assume I have installed this mod incorrectly but unsure how. Any suggestions would be appreciated. Mod is in SDV/Mods/AnimalMoodFix
Does this work in conjunction with the Happy Animals mod? It sounds like they do different things but are both working to fix animals. http://community.playstarbound.com/threads/happy-animals-1-0.126655/
Can someone confirm that this is working? Also does this fix include the fix for the mood droping, after You stay awake after 6PM on Spring, Summer and Fall? It was mentioned here in the post ->http://community.playstarbound.com/threads/psa-major-animal-bugs-issues.126444/
After looking at the inner workings of the game, it seems that mood decreasing after 6pm in non winter seasons is intentional. It's probably there to give you a cost/benefit decision for staying up late.
After playing with this mod installed, it really seems to work a lot better and the night time mood drop doesn't have a massive effect in the end (just make sure they eat outside every morning). I think once the developers fix the bug themselves, they'll probably rebalace the mood drop to make it more severe.
21 comments
Consider marking this mod as OBSOLETE to avoid conflicts. <3
EDIT : Apparently, while the developer didn't add the mention in their ''Bugs that were fixed'' list... This 'animal mood' bug has been fixed ! :
http://community.playstarbound.com/threads/how-to-fix-mods-broken-in-stardew-valley-1-2.132096/page-4#post-3151692
[21:06:17 WARN SMAPI] Animal Mood Fix used TimeEvents.OnNewDay, which is deprecated since SMAPI 1.6. This will break in a future version of SMAPI.
My guess is that function is redundant, since that's usually why functions/objects get deprecated in other languages/libraries.
Update: The newer form is TimeEvents.AfterDayStarted, according to http://canimod.com/for-devs/creating-a-smapi-mod.
Update 1.1
* Fixed another bug in SDV where some types of animals will stop producing items when they have a high mood+friendship value.
This may not work for the first day after installing the mod, but should work on all subsequent days.
I think the mod you want is Lookup Anything (http://www.nexusmods.com/stardewvalley/mods/541/?).
http://community.playstarbound.com/threads/happy-animals-1-0.126655/
After playing with this mod installed, it really seems to work a lot better and the night time mood drop doesn't have a massive effect in the end (just make sure they eat outside every morning). I think once the developers fix the bug themselves, they'll probably rebalace the mood drop to make it more severe.