Don't Starve

Don't Starve

Link, The Hero
grimStone Sep 5, 2020 @ 2:56pm
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!
< >
Showing 1-6 of 6 comments
NugatorySheep Sep 6, 2020 @ 12:00am 
I just made the changes to the files so I'll see if this works for me. Thanks for posting!

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