Project Zomboid

Project Zomboid

LittleYoschi's Skillbooks
 This topic has been pinned, so it's probably important
lawsen 7 Nov, 2022 @ 2:59pm
How to fix Fitness & Strength multipliers going away.
This is only for people who use the Dynamic Traits mod;

Go to:
\steamapps\workshop\content\108600\2459400130\mods\Dynamic-Traits-steam\media\lua\client

Look for:
DTnewMechanics.lua

Open with:
Notepad++ or any text editor you use.

In the beginning part of the file, you will see:

function exerciseMultiplierIfMaxRegularity(player)

Put (--) without the brackets, in the beginning of the two "Remove the Fitness/Strength...." texts as well as the "if player...." and the "and player..." do that down until where it says "end" on line 20.



so it should look something like this;
https://pastebin.com/EUtZbDSV
< >
Showing 1-8 of 8 comments
lawsen 7 Nov, 2022 @ 3:03pm 
I'm not a mod developer and have no idea how code works, but judging by the text inside the file, it seems like this was implemented because in Dynamic Traits when you're exercise regularity (like on Squats or Pushups) is full, you get a multiplier bonus. However, the developer put in this function so that if the bar is not full, the multiplier will automatically be removed.

So in a mod like this which adds a multiplier, the Dynamic Traits mod removes that.
Zeus 24 Jan, 2023 @ 9:19am 
no. that way doesnt work
lawsen 24 Jan, 2023 @ 11:45am 
Originally posted by LW Zeus:
no. that way doesnt work

It worked for me man, maybe you have some other mods that mess with the multipliers. For me I only had this books mod and Dynamic Traits with the More Traits mod.

Try this instead and see what it does; Put the (--) double dash only infront of the (If & and)s
Wppsy 6 Jun, 2023 @ 2:52pm 
Thank you greatly.
Lemniscate_Mike 4 Dec, 2023 @ 8:13pm 
You think your fix would with for a similar issue with this mod?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2940354599

It's doing the same thing. Also while reading the book you only get a multiplier when you surpass the current one from the workout mod (like after reading half the book), which it'll revert back after a bit of time.
lawsen 5 Dec, 2023 @ 10:02am 
Originally posted by Lemniscate_Mike:
You think your fix would with for a similar issue with this mod?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2940354599

It's doing the same thing. Also while reading the book you only get a multiplier when you surpass the current one from the workout mod (like after reading half the book), which it'll revert back after a bit of time.

I'm not sure, what I said to do in my post basically removes the functioning of Dynamic Trait on the Strength and Fitness skills, I think the mod you posted has a similar function of increasing or decreasing the multiplier depending on some criteria, and you can probably remove it, but that might just kill the whole point of the mod it self, if you're using the mod strictly for the added exercises, then it is your choice, but it might just be better to go with that mods functions and let the skill books be, I used the trick I posted in a playthrough and I was leveling up really quickly and it was unbalanced. The mod you posted is much better in my opinion.

In short; Yes it probably would, you just have to find the file where the function which relates to skill multipliers is. - The structuring of it might be similar to the one I posted since (as far as I know) all PZ mods are using the same type of coding language (LUA?)
lawsen 5 Dec, 2023 @ 10:06am 
Originally posted by Lemniscate_Mike:
You think your fix would with for a similar issue with this mod?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2940354599

It's doing the same thing. Also while reading the book you only get a multiplier when you surpass the current one from the workout mod (like after reading half the book), which it'll revert back after a bit of time.

I have no programming experience, but thankfully LUA is easy to interpret even for someone like me, I just had to do a little trial and error, I'd suggest you load up the game in Debug Mode and start a new save with only these 2 mods active, then go find a treadmill, and test it out each time to see if the functions you remove do the intended behavior. also make sure to make a copy of whatever file you edit because otherwise you have to keep subscribing and unsubscribing from the mods to retrieve the original files.

You have to either quit the game or go into menu, then mod menu, then turn off the mod, turn it back on and let the game reload the loaded mods.
Rat Thing 1 Jul, 2024 @ 11:11am 
hey does this work for multiplayer or just for singleplayer/client
< >
Showing 1-8 of 8 comments
Per page: 1530 50