安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题








[00:13:13]: [string "../mods/workshop-1416783578/scripts/prefabs..."]:28: attempt to compare number with boolean
LUA ERROR stack traceback:
../mods/workshop-1416783578/scripts/prefabs/tea_plant.lua:28 in (field) makefullfn (Lua) <26-41>
scripts/components/pickable.lua:347 in (method) Regen (Lua) <341-351>
scripts/components/pickable.lua:83 in (field) fn (Lua) <82-84>
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
scripts/update.lua:170 in () ? (Lua) <149-228>
[00:04:08]: [string "../mods/workshop-1416783578/scripts/prefabs..."]:18: attempt to concatenate field 'preferedfruit' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-1416783578/scripts/prefabs/fruitlings.lua:18 in (field) fn (Lua) <16-22>
inst = 112898 - mangoling (valid:true)
x = 132.52351379395
y = 0
z = 207.08837890625
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
self =
running = table: 185F5DA0
waitingfortick = table: 185F5C38
tasks = table: 185F5B48
waking = table: 77D52160
attime = table: 185F5EB8
hibernating = table: 185F5D28
tick = 2596
k = PERIODIC 112898: 2.000000
v = true
already_dead = false
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
tick = 2596
scripts/update.lua:170 in () ? (Lua) <149-228>
dt = 0.033333335071802
tick = 2596
i = 2596
[00:04:08]: [string "../mods/workshop-1416783578/scripts/prefabs..."]:18: attempt to concatenate field 'preferedfruit' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-1416783578/scripts/prefabs/fruitlings.lua:18 in (field) fn (Lua) <16-22>
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
scripts/update.lua:170 in () ? (Lua) <149-228>
[00:04:08]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is ScriptErrorWidget not a screen?
[00:04:08]: stack traceback:
scripts/widgets/widget.lua:602 in (method) SetFocusFromChild (Lua) <599-624>
scripts/widgets/widget.lua:649 in (method) SetFocus (Lua) <626-658>
scripts/widgets/scripterrorwidget.lua:107 in (method) OnUpdate (Lua) <102-119>
scripts/update.lua:90 in () ? (Lua) <33-129>
[00:04:09]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is ScriptErrorWidget not a screen?
[00:04:09]: stack traceback:
scripts/widgets/widget.lua:602 in (method) SetFocusFromChild (Lua) <599-624>
scripts/widgets/widget.lua:621 in (method) SetFocusFromChild (Lua) <599-624>
scripts/widgets/widget.lua:621 in (method) SetFocusFromChild (Lua) <599-624>
scripts/widgets/widget.lua:621 in (method) SetFocusFromChild (Lua) <599-624>
scripts/widgets/widget.lua:649 in (method) SetFocus (Lua) <626-658>
scripts/widgets/scripterrorwidget.lua:107 in (method) OnUpdate (Lua) <102-119>
scripts/update.lua:90 in () ? (Lua) <33-129>
[00:04:12]: Force aborting...
small DST world. endless. one mod. this mod. attacking a fruitling, or what its called.
I think it's related to how withered the plans are in summer and then get rehydrated again.
{链接已删除}https://i.imgur.com/7ObbFAj.png
I really love mangoes, please help fix this so i can put them back in the world ;_;
I've expirenced it myself.
1. Go to C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\mods folder
2. Search for tea_plant.lua and open it (it can be notepad if you dont have anything for coding)
3. Make sure you make backup copy of this file. Now is the best part:
a) after
Pardon. I think
makes
data.pickablecycles a Boolean
and then its passed to
inst.components.pickable.cycles_left
which should be Number
I dont write extensions for games myself but im frontend developer so with little expirence in programing I drove in to the conclusion that:
inst.pickablecycles should be Number and in tree_onsave function it should save the last known number.
If it saves boolean then it loads boolean in tree_onload and pass it to inst.components.pickable.cycles_left then in the makefullfn function it cant handle boolean under that property so game crashes!
Maybe not all of my code is necessary but it helped me so i didnt investigate further.
This is what happens when you write extensions for game in ♥♥♥♥♥♥ programming language without proper type checkers.
OK...Thank you for reply. (-: And sorry for replying to you too late. |-':