Project Zomboid

Project Zomboid

Fitness & Workout Overhaul
Codename280  [developer] 5 Mar, 2023 @ 7:42am
FWOFitnessWorkoutOverhaul XP Multiplier Explained
InitialPerkBonus
Take the inital perk bonus into account (75% 100% 125%)",
XPMultiplier * 1.75

currentExerciseRegularityBonus WHILE TRAINING
Get a bonus for the current excercise depending on the regularity
XPMultiplier + Liniar calculation of regularity current excercise
RATE = for a rate of 12, at regularity 100 you would get x12 multiplier
OFFSET = will offset the starting position -> offset 20 would mean '20' is the new zero point for the instersecting liniar line. resulting in a lower max. and negative values on everything below 20
(this simulates being bad/learning an excercise or the initial start up period a training regime would have)

AverageExerciseRegularityBonus
XPMultiplier + AverageExerciseRegularity * Sandbox.AverageExerciseRegularityBonus)

LevelBonus
XPMultiplier + perkLvl * Sandbox.LevelBonus

SpaceOutExercise WHILE TRAINING
exercised within 2 to 8 hours ago = XPMultiplier * 0.9
Fully rested = XPMultiplier * 1.4

RestedBonus
Stiff = XPMultiplier * 0.9
not Stiff XPMultiplier * 1.5

XPMultiplier
XPMultiplier * Sandbox.XPMultiplier
< >
Showing 1-11 of 11 comments
Chadders 6 Mar, 2023 @ 6:53am 
Thanks for this, it's very helpful. So essentially to cap the xp multiplier I can change RATE, whereas the OFFSET applies to the regularity bonus...so on default 20, you'd have to achieve a regularity of 20 to break even and only seen bonus multiplier beyond this number?
Codename280  [developer] 6 Mar, 2023 @ 7:19am 
spot on. here is an other example as reference

offset

20
rate
12
regularity
bonus
0
-2.4
10
-1.2
20
0
30
1.2
40
2.4
50
3.6
60
4.8
70
6
80
7.2
90
8.4
100
9.6
Last edited by Codename280; 6 Mar, 2023 @ 7:20am
Chadders 6 Mar, 2023 @ 7:24am 
Nice, thank you
Codename280  [developer] 19 Mar, 2023 @ 1:41pm 
Note A EXCEL has been added in the mod folder to play around / test your values
Bostson 11 Sep, 2023 @ 5:48am 
can you explain the "spaceour" and "rested" negative multipliers
Bostson 11 Sep, 2023 @ 5:50am 
Is it possible to set a setting that makes the spaced out exercise to be 48 hours?

if I don't space out exercises I would like to also gain very little exp, because we can't simulate injuries from over-using the joints

so the best thing I can do is that
HUNTAROH! 16 Dec, 2024 @ 12:56am 
Hi, nice work on the mod ;)

I looked at the excel in the mod folder, there was an error in the calculation of average exercise regularity, which is easily fixable by replacing anything that does not refer to the average exercise regularity coloumn (H) with H6 for burpees.

Then I have to say, that I was pretty confused by the initial perk bonus setting. I just tested it in vanilla: It doesn't matter if I have no bonus, 75% or 125%, I always get 4,8 strength exp and 3,2 fitness exp per burpee. I guess the displayed bonus is bugged and not in effect. With your mod 4,8 and 3,2 exp are also the possible minimum, the modifier can only add to that value.
In debug mode the modifier for strength 0 is shown as 50% not 0%, strength 1 has 75%, strength 2 has 100% and strength 3 or more gets 125%.
In vanilla the actual modifier seems to be disabled and set at 100%. So my suggestion is to disable the initial perk bonus setting by default. Your mod enables a feature, that is not even in the game, it seems and affects only players who start with 0-2 strength. For everybody else it's always +125% (225%) if this setting is enabled.
Last edited by HUNTAROH!; 16 Dec, 2024 @ 1:36am
k4Qu 17 Feb @ 7:37am 
so if i just want the features and not the balancing options what do i do?
Hello, I have some confusion on what the "InitialPerkBonus" is from? What determines the the 75%, 100% or 125% XP rates? So far every character I've made no matter the job or the traits just has a maximum XP bonus for fitness and strength 1-10. I've made a Chef with Puny and Unfit and still get 125% XP when I would think it's suppose to be 75% with those traits.

Actually I'm not sure if it's conflicting with something else. It seems like no matter what settings I put in the sandbox I show XP boost for fitness and strength, or is that normal and it's just showing that and mod is doing it's thing in the background regardless of what it shows on skill menu? I seem to gain fitness and strength really fast though so thinking it's actually boosted.
Last edited by I Wear My Ukelele At Night; 24 May @ 3:39am
Codename280  [developer] 15 Jun @ 12:53pm 
Its been a while, but it definitely worked as intended on release otherwise It would nog be in there. Maybe a conflict or update broke it ?
I would have to do a bunch of tests to try replicate.

Reading Homtaros comment i might need to investigate.

The idea was to indeed use the set percent for fitness as it does for all other skills. But maybe thats not what's happening... Tbd
Codename280  [developer] 15 Jun @ 12:55pm 
Originally posted by k4Qu:
so if i just want the features and not the balancing options what do i do?
Thats why the mod comes in 2 parts.
1 to actually use the equipment and
1 that adjusts the xp systems etc.

Or do you mean something else..
< >
Showing 1-11 of 11 comments
Per page: 1530 50