Project Zomboid

Project Zomboid

More Traits
4.594 kommentarer
Irisviel For 14 minutter siden 
fun trait idea could be making the insects (termites, caterpillers, etc) no longer give you unhappiness (or greatly reduce it), and probably make it cost like 2 points.
[PTFC] CaLvIn For 1 time siden 
Noticed when I have either of the XP Drops. The old school runescape drops mods on. I do burpies for any amount of time the error ticker keeps going up then the game freezes and I have to force close. Without the OSRS Experience Bar mod/s this doesn't happen

function: expDrop -file: ISExpBar.lua line # 711 | MOD: OSRS Experience Bar
function: onAddExp - file: RUNE-EXP.lua line # 25 | MOD: OSRS Experience Bar
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@7187e381
Function: AddXP - file: MoreTraits.lua line # 83 | MOD: More Traits
function: GymGoer - file: MoreTraits.lua line # 3025 | MOD: More Traits
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@7187e381
personalpurgatorium 6. juni kl. 21:48 
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. juni kl. 10:11 
Thx Amenophis!!
Amenophis 5. juni kl. 5:28 
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. juni kl. 7:18 
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. juni kl. 7:16 
`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. juni kl. 23:04 
Deprived trait removes everything from spongies character customization menu...
DarkSlayerEX 3. juni kl. 11:48 
@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. juni kl. 6:27 
`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. juni kl. 6:27 
`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. juni kl. 6:16 
i get over 600 error message when i try to excercise
Emeraldite 3. juni kl. 2:22 
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. maj kl. 13:38 
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. maj kl. 0:36 
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. maj kl. 9:06 
fair :steamthumbsup: it's an unstable for a reason
Nazgul96 29. maj kl. 15:06 
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. maj kl. 12:36 
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. maj kl. 14:04 
Had to remove the mod. Kept freezing the game after every lua reset. Shame
Bluewave101 27. maj kl. 16:28 
;p mod it not 42
DarkSlayerEX 27. maj kl. 15:12 
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. maj kl. 13:16 
Sad to see one of the very best mods for PZ is becoming abandoned.
Ztoxicman 27. maj kl. 11:19 
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. maj kl. 8:44 
FIX THE MOD PLEASE
Bellum 27. maj kl. 7:19 
Got the same issue
Callframe at: table.insert
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
yidianyidianwa 27. maj kl. 6:27 
Callframe at: table.insert
function: ToadTraitsforageDefinitions.lua -- file: ToadTraitsforageDefinitions.lua line # 132 | MOD: More Traits
backspace 26. maj kl. 13:35 
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. maj kl. 8:08 
i'm having the bug without the more descriptions for traits mod as well
fondestgreetings 26. maj kl. 6:53 
Is there a temp fix?
backspace 25. maj kl. 19:15 
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. maj kl. 16:23 
@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. maj kl. 4:48 
Is it fixed guys?
grungydan 24. maj kl. 9:05 
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. maj kl. 8:43 
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. maj kl. 8:35 
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. maj kl. 6:32 
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. maj kl. 13:47 
🔴🔴🔴
Thanks @Metal Mario
The duplicate error is due to the “More description for traits” mod. JUST DISABLE IT AND PLAY NORMALLY.
🔴🔴🔴
454730335 23. maj kl. 13:46 
加载此模组进入游戏错误,无法进入
Davion_Valavaern 23. maj kl. 12:24 
@Mr._Perfect_Cell Doing this has at least allowed me to successfully load my save.
Alpha Gamer 23. maj kl. 12:15 
oh snap. awesome so glad i got rid of that bug. thanks man
Metal Mario 23. maj kl. 9:20 
@Alpha Gamer that's the "More description for traits" mod
Alpha Gamer 23. maj kl. 9:04 
any fix for the duplicate bug that starts when selecting your traits? It really slows the computer down
combatshock 23. maj kl. 6:25 
Well this sucks. Had nearly a year long survivor save seemingly bricked no matter what I do now.
Mr. Perfect Cell 23. maj kl. 5:41 
@Davion_Valavaern I realized that and tried it too but the crashes ad problems continue.
obbz 23. maj kl. 2:44 
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. maj kl. 2:35 
@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. maj kl. 22:33 
gargle my nuts @Sir_Spirit1050
Sneaky Bananas 22. maj kl. 16:45 
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. maj kl. 12:52 
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. maj kl. 8:54 
The duplicate thing, thought I was the only one.