饥荒
Link, The Hero
grimStone 2020 年 9 月 5 日 下午 2: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!
< >
正在显示第 1 - 6 条,共 6 条留言
NugatorySheep 2020 年 9 月 6 日 上午 12: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
最后由 NugatorySheep 编辑于; 2020 年 9 月 6 日 下午 9:32
grimStone 2020 年 9 月 8 日 上午 11:52 
I'm glad that I could help!
Ale 2020 年 10 月 17 日 上午 2:10 
An idea: what about publishing your own version of this mod with your fixes?
grimStone 2020 年 10 月 21 日 上午 6:20 
I thought about it, but just haven't had the time. Maybe i'll review the publishing process this upcoming weekend.
DrArtico 2022 年 2 月 5 日 下午 5:29 
Hi thx for your help but i can´t do it, you could upload the file or imagen ?
fred mcfoodle 2023 年 7 月 6 日 上午 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
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50