Project Zomboid

Project Zomboid

Traits Purchase System
318 Comments
Timou 17 Jul @ 11:21pm 
Update Please for B 42.10
A lot of errors, maybe because of them the game crashes
Mayu~ 17 Jul @ 5:46pm 
it seem this mod is imcompatible with EscapeFromKentucky42
Mayu~ 17 Jul @ 4:44pm 
Can't open trait buy window, im getting the following error

https://pastebin.com/yfwHzU3k
Lucasif 15 Jul @ 1:31pm 
Is there a way to make it not cap at 30? I had mods with traits that cost a lot more than just 30 and like having something to grind to.
Felkami 13 Jul @ 6:30am 
A long time ago I built something like this that gave trait points for time survived. I had it set to like, 1 trait point per week. Would you be able to add that kind of functionality to this?

If I remember correctly, the math I used was ( [days survived] / [trait gain rate] ) - [points spent]
yoyo 11 Jul @ 10:21am 
我升级技能的图标消失了
The icon for me to upgrade my skills has disappeared.
for some reason after a few kills xp reduces to 0.20 instead of 1.00 per kill
Omega_Wolf 5 Jul @ 1:34pm 
honestly one of the better "level up" style mods out there, especially after finding out that picking a perk that gives u levels, will still give u those levels upon buying it. so, so nice
Adi 24 Jun @ 3:42pm 
There seems to be a bug related to the Superb Survivors mod. I _think_ what's happening is that the survivors count as a player, and so trigger the player update function, but they aren't triggering OnPlayerCreate for some reason. This ends up causing errors to build up every time the survivors get updated by the game, since they never have their zombie kills variable set up
Adi 20 Jun @ 7:00pm 
I've noticed a small issue for Linux users of the mod.

the path for translations is incorrectly capitalized, resulting in no translations for the mod being found. Capitalizing it properly fixes the issue

Current capitalization: mods/TraitsPurchaseSystem/media/lua/shared/translate
Correct capitalization: mods/TraitsPurchaseSystem/media/lua/shared/Translate
Darkflap Longdick 30 May @ 11:12pm 
The mod is partially incompatible with Gyde's Trait Magazines.
When reading a magazine from the mod that removes or modifies traits, the trait remains in the 'Selected Traits' menu.
Мод частично несовместим с Gyde's Trait Magazines
При прочтении журнала из мода, Который удаляет\изменяет перки, он так же остаётся в меню "выбранные перки
AlcatoN 30 May @ 4:22pm 
@joyboy you get (x) amount of XP towards your next trait point level every time you level up in another skill (ie: Carpentry, First Aid, Short Blunt, Fitness, ect.) and this goes for all types. So if you set the XP per perk level at 10, every time one of your skills levels up you get 10 XP for your next trait point level. (Trait points leveling up do not give 10 XP towards the next Trait point level btw)
[KUN]喜欢吃皮蛋拌粉 29 May @ 7:08am 
@RayPlayST 看我新视频
joyboy 28 May @ 2:12pm 
wdym by "xp per perk level" ?
RayPlayST 27 May @ 6:28pm 
目前B42.8 仿佛要做好mod排序 才行 我自动排序的 心脏旁边的按键点不了 但升级点数一直在累加
At present, it seems that the mod sorting needs to be done properly in B42.8. I sorted them automatically, but the button next to the heart can't be clicked, yet the upgrade points keep accumulating.
Rocken 26 May @ 1:21pm 
Hello! I was wondering if there is a chance for making the traits, not only give you the level they say the give, but also the xp increase of 75%-100%-125%, is there a way to do it? or is only not working in my game
can this be added midsave?
hakcenter  [author] 23 May @ 1:32pm 
It's under the heart, second picture.
kisamei_25 22 May @ 1:59pm 
@hakcenter How do you pull up the Traits Purchase System window? Where's the option to do that or the key that I need to press please?
AuronThaGreat 20 May @ 9:22pm 
@Jeb Kerman Your fix worked like a charm. Much appreciated
kisamei_25 19 May @ 1:11pm 
Can anyone tell me how to pull up the menu to show the traits I can buy?
SoSУНЕЦ_МА$ЛЕNoК 15 May @ 12:57pm 
One of the players on my server died and after reading the experience return diary, all the experience points were not returned to him. I need a console command that can return these experience points. It looks like this /addxp “playername” perkname=xp I need a perkname from this mod that I can return 5 points.
kisamei_25 14 May @ 12:26pm 
@Crazy_Muffin_Man I used to be able to use it for build 42 and the listing says it works for build 42.
kisamei_25 14 May @ 10:28am 
How do I pull up the menu for buying traits?
F1tgal911 6 May @ 5:39am 
XP per Perk level (0 - 90) default 10
What does that mean?
Jeb Kerman 30 Apr @ 3:19pm 
Found a quick fix for high resolution issues: edit ISTraitsPurchasePanel.lua and change self.tableWidth and self.tableHeight to 512 for function ISTraitsPurchasePanel:createChildren(). It should read:

function ISTraitsPurchasePanel:createChildren()
self.tablePadX = 20
self.tableWidth = 512
self.tableHeight = 512
....
Stage 29 Apr @ 11:46am 
I use 2560x1600 fullscreen and scale with window height
Crazy_Muffin_Man 28 Apr @ 5:55pm 
Yes it can be used with More Traits mod but this mod doesn't work for build 42.
Mathis 28 Apr @ 7:49am 
Can it be used with More Traits mod?
Noisy Koi 24 Apr @ 8:13am 
my resolution is 3840 x 2054 and I play windowed
hakcenter  [author] 24 Apr @ 6:36am 
@Sithe124 Thanks I'll look into it.

@Stage @Noisy Koi what are your resolutions / font size settings ?
Lazy Invincible General 23 Apr @ 10:39pm 
is it possible to get the mod to also list traits from mods to purchase or remove?
if its too hard or would require a patch for every mod its fine not to do it (after all I'm not the one putting in the work to make this mod)
Noisy Koi 20 Apr @ 8:39am 
I'm having the same issue, it's likely because I play at a high resolution/size because I have a big monitor, but the trait purchase UI cuts off or is offset incorrectly with some of the trait prices being misalligned https://imgur.com/a/Sa21uB7
Main issue is not being able to see how many trait points I have in the trait purchase menu.
Stage 20 Apr @ 1:46am 
Hi there!
I've a small problem with the UI. For some reason the windows is cut off, e.g. I can't see the number of traitpoints available or the right scrollbar.
Would it be possible to make the window scalable?
Thanks!
Sithe124 19 Apr @ 2:18am 
So i feel I have encountered a similar error as others in this thread I realize i have farrrr to many mods installed so its pretty difficult to tell what may be leading to the error spam but what i did find out is after disabling the mod "Kill Count" https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2553809727
The error spam clears. So not sure it could be that one in conjunction with the other trait mods i Have installed. ETW, and More traits
N7Legion 18 Apr @ 4:31am 
Never gotten any errors, so your mod is definitely working, even if I installed a lot of QoL mods.
010100011 17 Apr @ 5:37am 
oh also maybe this helps . but the errors only pop up when you do a timed animation like push-ups for some reason
010100011 17 Apr @ 5:36am 
ill try finding client.lua see where it pops up . the mod still works though . its just the little red error box that spams a bunch of errors . i'm starting to think its a mod that adds temporary traits (not moodles) i did find a way to hide that annoying error box though so if i cant find the conflict ill just do that . this is probably a top 10 mod for me so ill work around it if i have to
hakcenter  [author] 16 Apr @ 7:06pm 
@010100011 You have something. It's literally impossible to not create the array. It starts at CreatePlayer.

If I put a check in there, the mod still wouldn't work but the error would go away. No point.
Find the offending mod. Delete it. Maybe something has Client.lua

I'll rename mine later cause I'm tired of this.
010100011 15 Apr @ 3:18pm 
i got the same error as @Ryan . there are no duplicates or empty folders of this mod . the only way to stop the error spam is to disable this . did anyone find the solution yet ?
SDgamer 14 Apr @ 6:40pm 
with More Trait's Ingenuitive trait, does load order matter to make Modded Recipes work?
hakcenter  [author] 8 Apr @ 6:35am 
@Ryan No I'm talking about Traits Purchase System (Btuca Tweaks) 42, etc.

These other mods are straight up copies without folder renames and they cause issues with the original mod.

zombieKillCount can never be null, it's created on PlayerCreate.
Ryan 7 Apr @ 6:45am 
I'm assuming You're talking about dynamic trait?
hakcenter  [author] 7 Apr @ 6:16am 
@Ryan you have a copy of the mod installed ? Remove it, they are incompatible with each other.
Noisy Koi 6 Apr @ 7:59pm 
anyone else not able to see how many trait points you have? I thought I just didn't have any trait points yet till I realized the number just isn't appearing, may be caused by UI or text scaling as I'm on a large, high res monitor.
Ryan 6 Apr @ 12:48pm 
3/3 of error

at zombie.iso.IsoCell.update(IsoCell.java:5896)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4152)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4272)
at zombie.iso.IsoWorld.update(IsoWorld.java:4186)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1811)
at zombie.gameStates.IngameState.update(IngameState.java:1507)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:388)
at zombie.GameWindow.frameStep(GameWindow.java:928)
at zombie.GameWindow.run_ez(GameWindow.java:821)
Ryan 6 Apr @ 12:47pm 
2/3 of error

at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:315)
at zombie.characters.IsoPlayer.updateInternal2(IsoPlayer.java:2513)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2220)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2207)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:155)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3062)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5963)
Ryan 6 Apr @ 12:47pm 
please update 1/3 of error

`attempted index: zombieKillCount of non-table: null
function: OnPlayerUpdate -- file: Client.lua line # 38 | MOD: Traits Purchase System
java.lang.RuntimeException: attempted index: zombieKillCount of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:479)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:72)

at zombie.GameWindow.mainThread(GameWindow.java:619)
at java.base/java.lang.Thread.run(Unknown Source)
`
Atrick21 3 Apr @ 11:16pm 
Faceless 1 Apr @ 3:10am 
Is there a key shortcut to open up the Trait Purchase window?