Project Zomboid

Project Zomboid

More Traits
4,592 Comments
personalpurgatorium 14 hours ago 
any time i hit a zombie with melee theres an abrupt 2 second freeze before the hit registers. very distracting, and from the rest of the comments i think this mod definitely needs to be fixed
MarcosPVJ 5 Jun @ 10:11am 
Thx Amenophis!!
Amenophis 5 Jun @ 5:28am 
I've made a temporary fix : https://sp.zhabite.com/sharedfiles/filedetails/?id=3493375568

Just load th fix BEFORE More Traits, i'ts important ! :spiffo:
F1tgal911 4 Jun @ 7:18am 
Love the mod but I wish some able guy would find the time to repost a repaired version of this awesome mod.
Father Bohuta 4 Jun @ 7:16am 
`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
Mariposa 3 Jun @ 11:04pm 
Deprived trait removes everything from spongies character customization menu...
DarkSlayerEX 3 Jun @ 11:48am 
@Abel1470, I posted a fix for the forage definition issue a page back. You can fix it manually until the change is uploaded officially.
Abel1470 3 Jun @ 6:27am 
`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
Abel1470 3 Jun @ 6:27am 
`Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@8317a081
function: EveryOneMinute -- file: MoreTraits.lua line # 4367 | MOD: More Traits
java.lang.RuntimeException: No implementation found
Walter White 3 Jun @ 6:16am 
i get over 600 error message when i try to excercise
Emeraldite 3 Jun @ 2:22am 
for some inexplicable reason this mod is suddenly causing me to get a black screen upon reloading LUA which causes me to be unable to do anything and forces me to exit the game, which i didn't have to do before.
battlemad 31 May @ 1:38pm 
I'm also seeing the race condition for this locking up the game process anytime it needs to reload lua, inluding on loading a save game. If it is actually a limited item in the trait list. block it out and upload that as a temp fix, since this takes a lot of guess and check to figure out for a common user. If not send out a "Fix" that disables the mod and sends warning message alerting of the disable. users right now are likely fully blocked from playing existing saves until it is fixed unless they isolate and disable this mod manually.
gormotha 31 May @ 12:36am 
gormotha 8 minutes ago 
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
Artemis 30 May @ 9:06am 
fair :steamthumbsup: it's an unstable for a reason
Nazgul96 29 May @ 3:06pm 
Word on the discord is, the fix needs to come from devs side. It is probably not gonna get fixed by the modders
Artemis 29 May @ 12:36pm 
idk if you remember 3 years ago when the AddXP function changed and you had to fix it, but i suspect the same thing happened again or similar on the latest 42 patch. getting errors on AddXP when exercising. only exercising tho, not other instances of passive XP

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
mypinoyvan 28 May @ 2:04pm 
Had to remove the mod. Kept freezing the game after every lua reset. Shame
Bluewave101 27 May @ 4:28pm 
;p mod it not 42
DarkSlayerEX 27 May @ 3:12pm 
it looks like base PZ redid the foraging definitions a little bit.

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
F1tgal911 27 May @ 1:16pm 
Sad to see one of the very best mods for PZ is becoming abandoned.
Ztoxicman 27 May @ 11:19am 
Question I believe this is causing alot of problems because of the line 132 error. Can I delete this safely? I do have traits from it but I don't mind losing them.
⭐[PIXEL]⭐[DOG]⭐ 27 May @ 8:44am 
FIX THE MOD PLEASE
Bellum 27 May @ 7:19am 
Got the same issue
Callframe at: table.insert
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
yidianyidianwa 27 May @ 6:27am 
Callframe at: table.insert
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
backspace 26 May @ 1:35pm 
actually i believe i just got the error again with the config option off
@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
Solarchicks 26 May @ 8:08am 
i'm having the bug without the more descriptions for traits mod as well
fondestgreetings 26 May @ 6:53am 
Is there a temp fix?
backspace 25 May @ 7:15pm 
when the config is set to announce when prowess guns saves ammo, the game will freeze and send you back to the menu when it happens
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
WrongTypeOfHero 25 May @ 4:23pm 
@grungydan The dupe traits bug is with Detailed Descriptions for Traits, or whatever the mod is called. The creator is gonna work on it when they can, but they said to just disable it for the time being.
Ein_Insolventer 25 May @ 4:48am 
Is it fixed guys?
grungydan 24 May @ 9:05am 
Oops, spoke too soon. I do have an error loading into the game. Loading times are still good though, and More Traits is working, so good enough for me!

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
cheetopuffy 24 May @ 8:43am 
i'm experiencing a bug. currently playing the newest version of B42. whenever i try to load up a save with this mod, i get an error and it will not load in. ive tried this with other mods and this one is what does it. i don't have more trait descriptions enabled so it isnt that. is anyone else experiencing this?
grungydan 24 May @ 8:35am 
With default installs of both this mod and "more traits," the symptoms were

- 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.
kelenas_sarkeen 24 May @ 6:32am 
When using this mod together with Dynamic/Evolving Traits, would it be feasible to tweak those traits that require a certain number of kills, to make that number dependant on the population settings? Ie, lower population settings meaning less kills required, higher population settings meaning more kills required?
Ismael 23 May @ 1:47pm 
🔴🔴🔴
Thanks @Metal Mario
The duplicate error is due to the “More description for traits” mod. JUST DISABLE IT AND PLAY NORMALLY.
🔴🔴🔴
454730335 23 May @ 1:46pm 
加载此模组进入游戏错误,无法进入
Davion_Valavaern 23 May @ 12:24pm 
@Mr._Perfect_Cell Doing this has at least allowed me to successfully load my save.
Alpha Gamer 23 May @ 12:15pm 
oh snap. awesome so glad i got rid of that bug. thanks man
Metal Mario 23 May @ 9:20am 
@Alpha Gamer that's the "More description for traits" mod
Alpha Gamer 23 May @ 9:04am 
any fix for the duplicate bug that starts when selecting your traits? It really slows the computer down
combatshock 23 May @ 6:25am 
Well this sucks. Had nearly a year long survivor save seemingly bricked no matter what I do now.
Mr. Perfect Cell 23 May @ 5:41am 
@Davion_Valavaern I realized that and tried it too but the crashes ad problems continue.
obbz 23 May @ 2:44am 
Love this mod. But it breaks the game on latest version.
Tried disabling everything but this mod, issue remains, game crashes on start up.
Davion_Valavaern 23 May @ 2:35am 
@Sneaky_Bananas "Steam\steamapps\workshop\contents\108600\1299328280\More Traits\42\media\lua\shared\Foraging\" is the actual file location... not sure why yours is in the Zomboid folder. Also, there is no "\media\lua\client\foraging" folder.

"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
DJ WEEABOO 22 May @ 10:33pm 
gargle my nuts @Sir_Spirit1050
Sneaky Bananas 22 May @ 4:45pm 
TEMP FIX: More Traits PZ 42.8.1 Error

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
Sir_Spirit1050 22 May @ 12:52pm 
I disabled more trait descriptions and it works, @DJWEEABOO had a different result and decided to be bitchy about it. If you're getting crashes and duplicating traits in the menu, try disabling more trait descriptions if you have it, it MAY OR MAY NOT fix it. If it doesn't fix try disabling any other mods interacting with traits.
Wallet113 22 May @ 8:54am 
The duplicate thing, thought I was the only one.
Reaper 22 May @ 8:10am 
i can confirm The More descriptions causing dublicate issue when i disabled it issue fixes :)
Meowcathardwas 22 May @ 4:13am 
we gotta wait till they fix it