Don't Starve

Don't Starve

Link, The Hero
grimStone 5. sep. 2020 kl. 14:56
Crash when Cutting Grass w/Sword & Fairy Not Teleporting w/Player Bug Fixes
I found this mod and I really like the concept but I quickly found the bugs where the game crashes when you cut grass with your sword and when you teleport via a wormhole or using Forora's Wind, your Fairy does not follow you.

So I thought I'd give it a go to find the bugs and see if I can fix them and I did!

-----------------

When you cut the grass with the sword originally there was a chance to have a rupee, a magic jar, and/or a heart drop. At some point the magic jar and heart were removed but the chance for those items to drop was left in the code..

If the code tries to drop the jar or heart then the failure occurs because it then passes a "nil" value into the code that gives the player the items.

If you want to fix it now, there are a few simple line updates to C:\Program Files (x86)\Steam\steamapps\common\dont_starve\mods\workshop-179124884\sword_cut_grass.lua file.

Open the file in your preferred text editor and comment out lines 65-80 inside the cutWithSwordFn function then save. (add two dashes -- in front of each line)

Rupees will also not drop anymore to keep the fix simple for most folks.

We're basically gutting this function, but it doesn't have a benefit to the player at this time.

Hope this helps!

--------------

Basically the Fairy is never properly assigned as a follower to the player, so the code that handles transporting followers wasn't triggering.

If you want to fix it now, there are a few simple line updates to C:\Program Files (x86)\Steam\steamapps\common\dont_starve\mods\workshop-179124884\scripts\prefabs\fairy.lua file.

Add the following underneath the inst:AddComponent("follower") line.

local player = GetPlayer()
if player and player.components.leader then
player.components.leader:AddFollower(inst)
end

Hope this helps as well!
< >
Viser 1-6 af 6 kommentarer
NugatorySheep 6. sep. 2020 kl. 0:00 
I just made the changes to the files so I'll see if this works for me. Thanks for posting!

EDIT: It works :3
Sidst redigeret af NugatorySheep; 6. sep. 2020 kl. 21:32
grimStone 8. sep. 2020 kl. 11:52 
I'm glad that I could help!
Ale 17. okt. 2020 kl. 2:10 
An idea: what about publishing your own version of this mod with your fixes?
grimStone 21. okt. 2020 kl. 6:20 
I thought about it, but just haven't had the time. Maybe i'll review the publishing process this upcoming weekend.
DrArtico 5. feb. 2022 kl. 17:29 
Hi thx for your help but i can´t do it, you could upload the file or imagen ?
fred mcfoodle 6. juli 2023 kl. 9:44 
cool,this bug fix is good, one question, i just dont know what the fay does beside give a small amount of light
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50