饥荒
Dr. Wortey & Egg Chester
N.A 2013 年 12 月 28 日 下午 9:30
(Read me) Fix for Chester Crashing upon Open
You forgot two lines in your Chester.lua.
C:\Program Files (x86)\Steam\SteamApps\common\dont_starve\mods\wort\scripts\prefabs\chester.lua

I've uploaded a fixed Chester.lua on mediafire here:
http://www.mediafire.com/download/e55zy7zv7kv1bji/chester.lua

File is for people who don't feel like adding the lines themselves, but it's really not even worth a topic :| Thought I'd post it here since I haven't been able to contact you.

CORRECT LINE:

--(" container")
inst:AddComponent("container")
inst.components.container:SetNumSlots(#slotpos)

inst.components.container.onopenfn = OnOpen
inst.components.container.onclosefn = OnClose

inst.components.container.widgetslotpos = slotpos
inst.components.container.widgetanimbank = "ui_chest_3x3"
inst.components.container.widgetanimbuild = "ui_chest_3x3"
inst.components.container.widgetpos = Vector3(0,-180,0)
inst.components.container.widgetpos_controller = Vector3(0,200,0)
inst.components.container.side_align_tip = 160

WHAT YOU HAD (missing last two lines):

--(" container")
inst:AddComponent("container")
inst.components.container:SetNumSlots(#slotpos)

inst.components.container.onopenfn = OnOpen
inst.components.container.onclosefn = OnClose

inst.components.container.widgetslotpos = slotpos
inst.components.container.widgetanimbank = "ui_chest_3x3"
inst.components.container.widgetanimbuild = "ui_chest_3x3"
inst.components.container.widgetpos = Vector3(0,-180,0)

最后由 N.A 编辑于; 2013 年 12 月 29 日 上午 11:54
< >
正在显示第 1 - 1 条,共 1 条留言
Stechun 2014 年 1 月 5 日 下午 1:55 
I have had the exact same problem
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50