Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=950178272
Stacks Size - https://steamhost.cn/steamcommunity_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!