Project Zomboid

Project Zomboid

[B41] Fitness Is A Lifestyle!
48 Comments
GuiriGuy  [author] 30 Jun, 2023 @ 3:46am 
Sorry! This last thing, I believe it is done in the DEV version of the mod, even tho, this mod should be safe to delete or add at any time
GuiriGuy  [author] 30 Jun, 2023 @ 3:45am 
HI there!!

Well it's been some time without me playing PZ, i know, i know... Waiting for 42...

Regarding your question I have played with dynamic traits and did adapt it, tho i believe it was kinda OP if I can remember correctly.... The edition I don't know, would have to check, but basic one, yes :D
Luna Sky 29 Jun, 2023 @ 11:34am 
is this tested with dynamic traits sauce edition?
GuiriGuy  [author] 13 Nov, 2022 @ 3:16pm 
New Dev branch has been added for testing and if no problems occur, will become Main branch. Hope you like it!
GuiriGuy  [author] 12 Nov, 2022 @ 3:35am 
@The Monkey King, Thanks for your kind words, I love that the mod got this love, as I didn't expect to it be more than a mod for me and my mates, at the time. Answering your message, yes, this could also be possible and even I kinda like it (optional tho) as a multiplier itself to the multiplier based on the expierence of the character. I don't remember how much the multiplier affected (in numbers), but if I get back (this will probably happen soon) I'll give it a try or even rewrite it all again as I'm gaining more knowledge to scripting at work.

@RedRum... I hope so (?) hahahha, let me know!
GuiriGuy  [author] 12 Nov, 2022 @ 3:35am 
Hi everyone, sorry for not given the attention to the mod nor updating it. IRL lot's of stuff have happened. I'm outdated with the new updates that the game has had.

So...
@Nilsinho and @Gral. Galtieri, Trying to search for your error, unless the game has changed the way it's called to the sandbox_vars, either in SP or MP, the only guess I can get is that you maybe play in another language?
I'll have to double check if this happens to me also.

@dodgytactics, yeah, this could be possible, yet I was trying to minimize the amount of options the mod gives you to not be too much, but I also like to be able to change to my linking as much as I can, I'll try to check a way to do so.
Sound Expert 8 Sep, 2022 @ 12:52am 
does this work for the current game version?
NΘMΛD 1 Aug, 2022 @ 10:55am 
Just to add to the previous message. Simply being able to set the current minimum to 0.1 instead of 1.0 would be enough. The multiplier per level being 1x, 2x, 3x etc is fine, as long as we can set the ninimum lower, so it doesnt go so high too quickly.
NΘMΛD 1 Aug, 2022 @ 10:30am 
Thanks for the settings option. Being able to tailor the multiplier per level would be amazing. i'd love for it to be on the decimals like 0.8x so it's hard when you're unfit (makes it so the negative traits have a bigger impact, but also the needed exp is lower) and goes up to 8x at the end, which is a good value imo. I absolutely love this mod, but setting it to 1.0 (minimum right now) still feels too much. Cheers mate
Gral. Galtieri 31 Jul, 2022 @ 6:21pm 
Not working in MP. When i click on run server, sandbox_vars automatically erases the text referring to firnessisalifestyle
dodgytactics 19 Jul, 2022 @ 9:35pm 
being able to tailor the multiplier per level would be awesome
Nilsinho 17 Jul, 2022 @ 7:02am 
Not work in my dedicated.When i click on run server, sandbox_vars automatically erases the text referring to firnessisalifestyle
GuiriGuy  [author] 4 Apr, 2022 @ 11:54am 
There's a config that allows you to change the XP multiplier, I could try to add an option that makes you choose the multiplier per level if wanted, let me know :D
Sound Expert 3 Apr, 2022 @ 5:03pm 
there is monkey king. if youre playing on a singleplayer game, there is a setting to change the xp multiplier during the creation of a game. in a multiplayer server it can be changed whenever. i believe it has its own tab under the same name as the mod, or it might be in the character tab
NΘMΛD 3 Apr, 2022 @ 11:09am 
Hey man love the mod, but playing it feels extremely OP to me. I feel like Fitness and Strength are the most important skills in the game and the ones more tailored for "endgame". Is there a way for the max multiplier to be around x5 and not x30? I love the idea, but don't like being able to grind the skills to max so quickly.
Ryougi Shiki 12 Mar, 2022 @ 9:14pm 
According to the person I'm playing with, the error occurs when one of us exercises while the other is awake. They claim that every time this has happened, we have both been awake.
GuiriGuy  [author] 12 Mar, 2022 @ 12:27am 
@Kafkatrap, how did you fix this? Or was it my mod at all? As @Ryougi Shiki has the same problem. Thanks beforehand :D
Ryougi Shiki 11 Mar, 2022 @ 11:31pm 
I just got kicked with a Malformed Packet Type 9 Error. I was hosting :'D
Kafkatrap 28 Feb, 2022 @ 7:19am 
Tried it now, it doesn't seem to! Nice!
Kafkatrap 28 Feb, 2022 @ 7:09am 
Does this mod trip the anti-cheat system like the other fitness xp mods?

"malformed packet type 9" error
FreeGamesJP 16 Feb, 2022 @ 1:56am 
This is a great mod that makes exercise more realistic! +1 fitness :steamthumbsup:
Ploobus 10 Feb, 2022 @ 11:43am 
Really cool mod idea! Is there any way to edit the xp multiplier to less than 1 added per level in solo? The sandbox menu only allows for +1.
Lomion 9 Jan, 2022 @ 1:07pm 
@GuiriGuy Well, not being able to get any exp is overkill. Even untrained whimp can get some stamina by running around from zombies. =P I suggest leaving it be as is and playing on hardcore until devs drop some fixes to MP and maybe get their eyes on the regularity.
GuiriGuy  [author] 9 Jan, 2022 @ 1:23am 
I tried to make a decrease in the regularity, found, in java, the number, but can't seem, or don't know how to modify it. And in the Index in the pz "wiki" I can only see the increase code... I would love to make it a configurable option the amount of regularity increase/decrease number for a bigger and more complete level of this mod...

Some day it will be, I hope so, a option to that or a way to access this code. Hardcore is what I play and damn....

I was also thinking of debuffing the mod itself with the free x1 multiplier that is given by defaut, meaning that if it's lower, the multiplier, than 1, it will not really grant any XP, needing to you to have more than 50% of regularity to be able to gain XP....

Let me see the thoughts on that from you guys :D
The Free Man 9 Jan, 2022 @ 12:17am 
Do you think you could add a regularity speed setting? Make it increase and decrease 2 or 3 times as fast. It would encourage setting aside exercise time on multiple occasions over time. As it is, maxing the non-weight exercises will bring your fitness and strength from 3 to 7, and you probably won't think about it again.

Though that may just be because I'm not using the hardcore rules, now that I think about it. Losing that top 30% regularity might be enough of a debuff to encourage staying on top of it.
Lomion 6 Jan, 2022 @ 2:11pm 
@GuiriGuy Lol. That is indeed too much time. I was hoping for something like a month to 3 months to loose all regularity. As for me i'd personally be out of training shape in like 2 weeks. xD
GuiriGuy  [author] 6 Jan, 2022 @ 4:47am 
It takes one full year to loose all the regularity...
GuiriGuy  [author] 6 Jan, 2022 @ 4:34am 
@Lomion, got the game at x1000 and 3 months have gone by, at max regularity... Currrent regularity... is around 70%, it takes way too much time
Lomion 5 Jan, 2022 @ 4:20pm 
@GuiriGuy Don't check. I already saw that multiplier lowers over time. Hence regularity also lowers. But insanely slow, imo. xD
GuiriGuy  [author] 5 Jan, 2022 @ 11:41am 
I'm not gonna lie, haven't tried it in MP... I'll try to check out the regularity, it was difficult for me to get it by itself hahahha
Lomion 5 Jan, 2022 @ 8:54am 
@GuiriGuy Does regularity decreases for you in single or multiplayer? Cuz multiplayer has a lot of consistency bugs. Like rewatching tapes after relog or crop growth reset after server restart. I play in MP and maybe that is why my regularity does not decrease. I wonder what is the rate. =/
Sound Expert 5 Jan, 2022 @ 8:32am 
no problem :)
GuiriGuy  [author] 5 Jan, 2022 @ 7:33am 
@RedRum, added to the description, thanks for the info
Sound Expert 5 Jan, 2022 @ 7:12am 
If you subscribed to this mod pre re-name, make sure you re-enable the mod in your game..
GuiriGuy  [author] 5 Jan, 2022 @ 6:48am 
@Wolfy Thanks for the love! I would love to make this a configurable mod, but as I see, this can be modified by anyone and get their own multiplier with basic knowledge and not grab the server's one as intended, when we are talking about playing in a server or with friends. If that was possible I would have done it with options and made it a single mod.

If anyone knows how to please let me know, or send me the tutorial hahaa. I'm still looking into how to do it.

@Maoman Cheers! I made it for you guys, as for myself :P

@Lomion I do know that it is implemented in the vanilla game, yet do not know the ratio of regularity loose. I could look into making it, but it would probably affect others in a negative way. Maybe a mod is conflicting with the vanilla regularity? For me it does go down...
Lomion 4 Jan, 2022 @ 10:03pm 
@GuiriGuy Will this mod reduce regularity without excercise over time? Cuz from my experience (only MP) regularity does not decrease even after 14 days without training. =/
Maoman 4 Jan, 2022 @ 1:39pm 
I like that regularity based multiplier idea.
Wolfy 4 Jan, 2022 @ 12:47pm 
@GuiriGuy nice mod i think its something that should be in the game like you can customize in the options, also i think there is a way you can make a mod and create some variants so you can select one ingame in that way it's not necessary to have the 6 different mods
GuiriGuy  [author] 4 Jan, 2022 @ 8:10am 
@Maoman Thanks for the insight. I was thinking and I'll redo the code into a single multiplier that gets multiplied by the Perk's level. So 2,5xPerkLevel, per se, that makes a level based multiplier. I was thinking of implementing the exponential multiplier, but as the game is linear I would like to hear the idea of making it based on that, making the skill multiplier linear. I could make it regularity based exponential, like at 70% of regularity you get the 25% of the max multiplier, but at 100% you get the 100% multiplier, making it more difficult to gain the multiplier, but more granting to the ones who get to 100%.

Or make multiple versions of the mod, with different multiplier and hardcore mode. As for the configurable I don't seem to get how to make it server based and not client based. Meaning that it only get's the server's config of the multiplier...

@The Free Man, that will be the name in the next update, Thanks :D
Maoman 3 Jan, 2022 @ 5:43pm 
It might be a little much, yeah. Remember everyone starts at 5 fitness/strength by default unless you take traits to reduce it, so a brand new character could build up their regularity a bit and very quickly have quite a large multiplier.

Maybe you could increase how steeply exponential the bonus grows with level? Something more like:
0-2 = 2x
2-4 = 3x
4-6 = 6x
6-8 = 12x
8-10 = 30x

Also I know it'd be a bit more work to implement, but I think it would be nice if the multiplier was different for each of the 10 skill levels so the changes are smoother rather than having a big jump every other level.
GuiriGuy  [author] 3 Jan, 2022 @ 8:52am 
@The Free Man, thanks for that suggestion. I'll think about it, I really like it.

Another quick questions, do you guys think is OP the multiplier as it is for now? Should I lower it, to like 3, 5, 8, 12, 24?
The Free Man 3 Jan, 2022 @ 7:54am 
"Fitness is a Lifestyle"
GuiriGuy  [author] 3 Jan, 2022 @ 2:49am 
I'm thinking of changing the name to Keep Up That Exercise!. Any thoughts?
GuiriGuy  [author] 3 Jan, 2022 @ 2:48am 
@Holothurin Thanks for the advance of the bug. It should be fixed by now. It was a misscall from the perks and character in the checkRegularity. Hope it works fine now :D
Holothurin 3 Jan, 2022 @ 1:53am 
@GuiriGuy It's SP and happens every few ticks while sneaking, hitting with a weapon and sprinting. Probably you are calling for all passive skills there?
GuiriGuy  [author] 3 Jan, 2022 @ 1:10am 
@The Free Man The regularity is looked up when you do an exercise. Let's say you do squats, if you have it at 100% it will give you the max multiplier at that level. If you are not doing exercise it looks up all 7 regularities and makes an average, so 100% on both, squats and sit-ups but 0% on the others would be 200 / 7 = 28.57% of max multiplier as a "passive" (non exercise multiplier)

@Holothurin, thanks for letting me know, I'll check that out as soon as I arrive home :D. Is this MP or SP? And only happens when you hit with a weapon? Cheers beforehand
Holothurin 3 Jan, 2022 @ 12:09am 
It's throwing two errors OnWeaponHitXP using short blunt weapons:

function: CheckRegularity -- file: CheckRegularity.lua line # 11
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@196f7f47
function: onWeaponHitXp -- file: XpUpdate.lua line # 65

LOG : General , 1641196994705> squats
LOG : General , 1641196994707> -------------------------------------------------------------
attempted index: getFitness of non-table: null

LOG : General , 1641196994707> -----------------------------------------
STACK TRACE
-----------------------------------------
function: CheckRegularity -- file: CheckRegularity.lua line # 11
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@196f7f47
function: onWeaponHitXp -- file: XpUpdate.lua line # 69
The Free Man 2 Jan, 2022 @ 5:49pm 
This was exactly what I was looking for. How does the multiplier work between skills? How is the multiplier different from 100% regularity in just squats compared to 100% regularity in both squats and sit ups?