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
Just load th fix BEFORE More Traits, i'ts important !
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
java.lang.NullPointerException: Cannot invoke "se.krka.kahlua.vm.KahluaTable.len()" because "<local2>" is null
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
java.lang.NullPointerException: Cannot invoke "se.krka.kahlua.vm.KahluaTable.len()" because "<local2>" is null
function: EveryOneMinute -- file: MoreTraits.lua line # 4367 | MOD: More Traits
java.lang.RuntimeException: No implementation found
error summary from console:
________________________________________
function: AddXP -- file: MoreTraits.lua line #83 | MOD: More Traits
function: GymGoer -- file: MoreTraits.lua line #3205 | MOD: More Traits
...
Exception thrown
java.lang.RuntimeException: Stack overflow at Coroutine.ensureStacksize
________________________________________
This is an infinite recursion loop caused by AddXP calling itself through GymGoer, which calls AddXP again repeatedly. Eventually, the Lua interpreter hits the stack size limit and crashes.
The problem is likely a Lua callback like OnGainXP or a similar event that's recursively calling itself.
possible debug:
Check for a condition inside the GymGoer XP handler to prevent recursion, such as:
if not self.gymXpLoop then
self.gymXpLoop = true
character:getXp():AddXP(Perks.Strength, 1)
self.gymXpLoop = false
end
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@63bd781
function: AddXP -- file: MoreTraits.lua line # 83 | MOD: More Traits
function: GymGoer -- file: MoreTraits.lua line # 3205 | MOD: More Traits
in the lua/shared/Foraging/ToadTraitsforageDefinitions file, I replaced
table.insert(forageSkills, skillDef);
with
table.insert(forageSystem.forageSkillDefinitions, skillDef);
and the error disappeared. I'm not quite sure if that fixes everything related to that error, but it's at least progress
Callframe at: table.insert
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
@fondestgreetings i'm going to try removing lines 1997-1999 in the lua file, you can try the same
the file is in this mod's directory 42/media/lua/client
this is the error:
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@92952d81
function: progun -- file: MoreTraits.lua line # 1998 | MOD: More Traits
java.lang.RuntimeException: No implementation found
attempted index: name of non-table: true
function: importDef -- file: forageSystem.lua line # 1647 | Vanilla
function: addSkillDef -- file: forageSystem.lua line # 1812 | Vanilla
function: populateSkillDefs -- file: forageSystem.lua line # 1838 | Vanilla
function: init -- file: forageSystem.lua line # 726 | Vanilla
java.lang.RuntimeException: attempted index: name of non-table: true
- drastically increased load times
- duplicate trait bug.
Disabling "more traits" fixes the duplicate traits display bug, but loading times were still terrible.
I updated ToadTraitsforageDefinitions.lua with Sneaky Banana's changes. The loading time is now fixed, and I have no warnings related to More Traits.
Thanks @Metal Mario
The duplicate error is due to the “More description for traits” mod. JUST DISABLE IT AND PLAY NORMALLY.
🔴🔴🔴
Tried disabling everything but this mod, issue remains, game crashes on start up.
"if not forageSkills.MoreTraitsAdded" does not appear anywhere in ToadTraitsforageDefinitions.lua
The final section is:
for skillName, skillDef in pairs(MoreTraitsSkills) do
table.insert(forageSkills, skillDef);
end
So I presume you mean we should replace that with:
if forageSystem and forageSystem.forageSkillDefinitions and not forageSystem.forageSkillDefinitions.MoreTraitsAdded then
for skillName, skillDef in pairs(MoreTraitsSkills) do
forageSystem.forageSkillDefinitions[skillName] = skillDef;
end
forageSystem.forageSkillDefinitions.MoreTraitsAdded = true;
end
PZ changed foraging API, breaking the mod. Quick fix:
1. Go to: `C:\Users\[YourName]\Zomboid\Workshop\content\108600\1299328280\`
2. Find `ToadTraitsforageDefinitions.lua` files (in `media\lua\shared\Foraging\` and `media\lua\client\Foraging\`)
3. Replace the last section starting with `if not forageSkills.MoreTraitsAdded` with:
```
if forageSystem and forageSystem.forageSkillDefinitions and not forageSystem.forageSkillDefinitions.MoreTraitsAdded then
for skillName, skillDef in pairs(MoreTraitsSkills) do
forageSystem.forageSkillDefinitions[skillName] = skillDef;
end
forageSystem.forageSkillDefinitions.MoreTraitsAdded = true;
end
```
4. Save both files