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
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
STACK TRACE
-----------------------------------------
Callframe at: table.insert
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
May 21, 2025 5:49:24 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException
May 21, 2025 5:49:24 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException:
May 21, 2025 5:49:24 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: at table.insert
at ToadTraitsforageDefinitions.lua:132
`Callframe at: table.insert
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
anyone else saying its the more trait descriptions mod causing the issue is wrong and spreading misinformation. please don't comment if you don't know whats actually causing the issue.