安装 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(越南语)
Українська(乌克兰语)
报告翻译问题








If there’s anything I can do to help avoid this issue, please let me know.
I've deduced it's not my mod directly causing the issue per se, but a problem with how the game handles stack sizes.
And so I've spent the last five hours attempting to figure out a solution to this issue. Unfortunately I haven't found much on it.
The code for setting the hound plush's stack size is this:
Delphox Character - https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=950178272
Stacks Size - https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=831657598
I opened up the code of the Delphox character, and sure enough they're setting a stack size using a specific number rather than one of the default tuning variables.
It works fine on its own, but the moment any of the tuning variables for the default stack sizes are updated with a new value, it breaks and causes the same exact crash we are encountering.
I however I did find a KLEI forum post that seems to have a potential solution that might solve this particular crash. I am yet to try what is show here, but it seems very promising.
They've used upvalue hacking to get the STACK_SIZES table from stackable_replica.lua and are inserting their own values into it.
https://forums.kleientertainment.com/forums/topic/69981-how-to-change-the-maximum-stack-size-of-one-prefab-to-a-custom-size-via-a-mod
I feel I may be missing a simpler solution to this, but I have not done any modding or programming in a long while and can't think of anything else for now.
It seems to work fine when testing with just your mod and mine using any mix of settings.
EDIT: Modifying houndplush.lua was not needed and actually causes a crash. The addition to modmain.lua does work however.
First, modify houndplush.lua Line 181, instead of setting the maxsize to the forever hound stack variable, we'll set it to a default value for now to prevent issues, we'll override this in the modmain.lua
Next, simply paste this block at the end of the modmain.lua, this is where we're setting the actual config value.
I think the mods are compatible now!