Project Zomboid

Project Zomboid

Retroactive Skill Books
69 Comments
Adi 11 Jun @ 2:56pm 
I've noticed a small issue. The retroactive XP only applies when a book is fully read, but you gain XP multiplier each time you hit a certain percentage threshold in a book. Because of this, it's possible to stop on the last few pages to get the majority of the XP buff, train half a level or 2/3 of a level, then finish the book to finish your current level and the next level, since you effectively get the skill book multiplier twice. You can use this to get to Carpentry level 10 without ever even touching a hammer if you use VHS tapes. The retroactive XP should probably be applied bit by bit each time the book XP multiplier changes so that this can't be abused
Beater Of Buzzers 7 May @ 8:00am 
This EXACT mod is needed for Build 42! Not xp recovery, unless it is EXACTLY like this just different name...
I'm not sure if it's appropriate to mention my mod here :supersusguy:
But seeing that the original author is no longer active and people are looking for an update for b42, I've decided to mention my mod: Exp Recovery, which works on both b41 and b42
_LaVeLaZ_ 30 Jan @ 10:37am 
please update for b42
Kride500 29 Jan @ 11:40am 
Does anybody know of an alternative?
TreeTrunk 17 Jan @ 11:46pm 
PLEEEEEEASE update for B42. This was one of my favorite mods, one I considered essential in all my runs.
DeathEmber 25 Dec, 2024 @ 2:34pm 
Also asking for b42 update.
early_retirement 24 Dec, 2024 @ 5:39pm 
I miss this mod already lol. Hope you update to B42!
Carnage Cat 24 Dec, 2024 @ 5:31am 
My fomo and ocd need this mod, I'm missing cooking xp I'll never use!
John Wayne Guan 19 Dec, 2024 @ 8:58pm 
True, cant live without this mod
Kride500 19 Dec, 2024 @ 4:28pm 
Please we need this in B42 man
ball inspector 28 Mar, 2024 @ 5:16am 
this has been the ONE thing that has always bothered me in my PZ runs. thank you for making this mod
The_Undula 25 Feb, 2024 @ 9:47am 
This seems to only multiply xp from your current level, not the one before. Example: I am level 1 fishing with 73/150 towards level 2. I read fishing book 1, and would expect +150 xp (from the x3 multiplier from levels 0-1, AND +146 from my current 73/150 xp. However I received....52 xp?! *(putting me at 125/150 towards lvl 2. How the mod reached this I do not know, but something is wrong here.
Miss Adventure 14 Dec, 2023 @ 2:32am 
Any chance we could get an update to award the EXP at each "chapter" of a book, since the EXP bonus is gradual as you read the books at each 10% milestone?
Pervy Sage 17 Oct, 2023 @ 10:11am 
@JS How does it work with the skill recovery journal?
sylentline 4 Sep, 2023 @ 10:56am 
is this compatible with yoschi skill book?
Elbrus 17 Jul, 2023 @ 12:16am 
Hi,
do i understand it right, for example day 0 at 600 you watch the tv you get the 75xp and 150xp are saved, if you dont find the book before the next show the saved xp is wasted.
It is still nice to have but i would suggest a different way to calculate this: How about saving 75 xp and calculate later what is actually needed, with a cap to limit xp that can be safed.
Luna Lycan 24 Mar, 2023 @ 6:49pm 
There seems to be some kind of issue when reading "Good Cooking Magazine" which is just a recipe book. https://pastebin.com/ZTM0VraZ
I'm not sure if it is really from this mod or if something else modifies the Bread / Pizza recipes causing this issue and I currently don't have time to investigate further.
JS  [author] 11 Mar, 2023 @ 2:16pm 
Sorry, I'm pretty crap with MP (hence the warning in the description lol) and my brain is a little fried at the moment, but if I'm understanding right and google isn't lying to me, it sounds like it's triggering anti-cheat 15 for exceeding the AddXP limit. Looking at the anti-cheat types, it does seem like 9 & 15 would be incompatible with the big XP returns at high levels.

8k is not an unreasonable amount of return XP if you're at levels 8/9, so that doesn't sound broken or anything.

I'm not totally sure what you mean by lowering the skill cap, though, sorry. If you're looking for a place to tinker with the XP return in the code itself, that'd be in checkMultiplier.
JeffsBestBalls2005 11 Mar, 2023 @ 12:04pm 
Hi good morning
I am running this on an MP server. I noticed that when I complete a skill book it kicks me with an error 15 malformed packet as it retroactively applies skill (about 8k and hits an entire level) Might also the affected by trait multipliers for the cooking skill making the values to high
I assume I could disable this issue if I lowered the skill cap by like 50%, but when I looked at the code at 5AM this morning it just melted my eyes. Can I get any advice?
Stonemercy 11 Mar, 2023 @ 10:12am 
Looking at the list, Literacy was above Retroactive, I've moved it below and will report back if it fixes it, thanks for trying :lunar2019piginablanket:
JS  [author] 11 Mar, 2023 @ 10:06am 
Thank you for both settings, that made it a lot easier.

I still couldn't reproduce this, unfortunately. At level 10 literacy, I tried reading the skill books added by literacy, vanilla skill books, books with/without stored XP, obsolete books, etc.--they all worked normally for me. I can't say 100% I'm not missing something, obviously, but the culprit might be a different mod in your load order.
Stonemercy 11 Mar, 2023 @ 8:59am 
Literacy = {
SpeedMultiplier = 2,
-- Minimum=0.10 Maximum=10.00 Default=1.00
XPMultiplier = 1.0,
TraitMultiplier = 2,
-- Minimum=0.10 Maximum=10.00 Default=1.00
OverallSpeedMultiplier = 1.0,
IlliteratePenalty = 2,
WantPassiveBooks = false,
WantAgilityBooks = true,
WantWeaponBooks = true,
WantMaintenanceBooks = true,
WantGunBooks = true,
WantLiteracyMag = true,
LiteracyMagCraftable = true,
SafeMode = true,
},

Also my literacy settings if it makes a difference
Stonemercy 11 Mar, 2023 @ 8:55am 
JSRetroBooks = {
-- Minimum=0.00 Maximum=1.00 Default=0.90
Return = 1.0,
Capped = true,
ObsoleteStyle = 2,
MuteWhileReading = true,
}

These are my settings, thought MuteWhileReading would fix it but it hasnt
JS  [author] 11 Mar, 2023 @ 8:51am 
So I did a quick test with just literacy and retroactive skill books and couldn't reproduce this. I've only skimmed through the literacy mod, but I'm not seeing anything that would jump out as the cause of this behavior.

Were you running non-default sandbox settings at all? I could give it another try with whatever settings you were using to see if I can reproduce this.
Stonemercy 11 Mar, 2023 @ 6:26am 
to constantly proc*
Stonemercy 11 Mar, 2023 @ 4:56am 
I believe there is an incompatibility issue between this mod and the Literacy mod which causes the Literacy skill the constantly proc the level up tune while reading skill books and at level 10 Literacy, would video evidence help fix this?
KuuKuu 27 Feb, 2023 @ 11:57am 
Thx daddy
OverKill 6 Feb, 2023 @ 1:33am 
i too hate reading all the books i have gathered after big loot. Gud mod
lawsen 29 Jan, 2023 @ 9:03am 
Amazing mod, one of those 'can't play without it' mods, I hate having to sit my ass down for Life & Living and trying to find all the books in order to maximize the skill gain in the first week and minimize the grind which comes after. This might be a little op, but to me it makes sense.

When you gain experience in a skill (in real life) you sometimes know how stuff works based on trail and error, lets say you brute force learning piano, without learning any of the basic stuff, you go straight into playing notes for your favorite songs and music. But later on when you read a book or watch a video on the basics of piano, then some of the stuff that you've learned through brute force will start to make sense to you, besides learning new things, you will learn why the stuff you already know works.
ikit_claw yes-yes 26 Jan, 2023 @ 5:08am 
maybe im just not understanding this very well but i have the option to read obsolete skill books on to return any missed xp yet every time i read an obsolete book i get nothing at all. i have the return option set to full as well.
mladjan77 22 Jan, 2023 @ 1:32pm 
my brotha i will suck your d*ck RAW thank you so much for this mod i will kiss you in the lips so many times
TrebleSix 4 Jan, 2023 @ 10:22am 
This is great to have, you're right about the game pretty much making us read books as soon as we level up or otherwise its just time lost.
JS  [author] 4 Jan, 2023 @ 7:06am 
I'm like 99% sure it wouldn't be traits/professions alone causing an issue, since I nearly always test with XP boosts from traits/professions to speed up testing, but it's possible it could be that in conjunction with something else. It's also unlikely XP boosts alone would cause issues with return amounts, as boosts are all handled in Java code and the XP return itself is un-boosted.

I'll still give it another few tries soon just to be 100% sure, and it's worth keeping in mind for any other tests, so I appreciate it, again!
♠️ 💗 3 Jan, 2023 @ 5:38pm 
Alright I have some more info for you about that bizarre tier 5 skillbook bug, this time a little more definitive. So I got my character up to 8 Sprinting, read the tier 5 book, and it didn't give me a weird amount of XP at all. I'm thinking that I was right about this mod playing weirdly with profession-boosted skill xp multipliers. Park Ranger starts with a big Foraging multiplyer, probably why it gave me so much xp when I read the tier 5 Foraging book. So I'm almost certain you can replicate this bug with certain starting professions.
JS  [author] 2 Jan, 2023 @ 5:29pm 
Well, I gave it another shot in a server this time with a few other reading-centered mods installed and everything's still working okay for me. I did try both the Read While Walking and the QoL mod kissykaede mentioned--I was concerned maybe they were stopping this mod from registering when a reading action was happening, but both seemed to be okay. At one point I did get XP returned from Udderly, but turns out I had just reset the sandbox vars on accident. lol

I'm suspecting I'm just not thinking of something simple, but all I can do for now is note it and keep my eye on it.

Thank you again for reporting and for letting me know what mods you're using and everything.
Agitatio 2 Jan, 2023 @ 7:19am 
No, I'm using a mod that is literally called Read While Walking.
♠️ 💗 2 Jan, 2023 @ 12:25am 
Agitatio mentioned he uses Read While Walking, which I believe is from this mod: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2615254987
It's possible that something in this suite of QoL additions could be playing foully with your mod, because I also use this mod, (just not the read while walking bit of it, that mod has a feature where you can turn features of the mod on and off at will).
JS  [author] 1 Jan, 2023 @ 4:28pm 
Ah, if you were multiplayer I should try testing there, just to be sure. It could be an incredibly rare edge case or I could be missing something simple, so it's worth it to look. lol I appreciate you reporting it, either way.
Agitatio 1 Jan, 2023 @ 4:06pm 
Maybe something corrupted then, as I had my dedicated server shut down due to power loss once. Couldn't get it back up without deleting map_t.bin. As for mods related to books all I have is this one, Udderly and Read While Walking.
JS  [author] 1 Jan, 2023 @ 3:35pm 
So, the saved XP is stored in the mod data of the character, so I was pretty sure that wouldn't be the cause, but wanted to test that anyway. I did not receive stored XP from a previous (dead) character after making a new one. I also tested Udderly + this mod directly with the mute while reading setting on just to be sure I didn't miss something and everything was working correctly for me.

You shouldn't be seeing any XP return from books alone--if that's the case then something is really wrong. lol This mod doesn't store XP gained from it's own returned XP.

Without being able to replicate it, best I can think is maybe there's an issue with how the mod tracks reading coupled with some other mod? Are you using any other mods that affect reading in any way?
Agitatio 1 Jan, 2023 @ 2:36pm 
I seem to be getting too much XP back even without gaining much prior to reading the book and with MuteWhileReading set to true. I play with Udderly Skillbook XP and I have it set to give one level per book. I started a new character after previous one being killed and had +1 First Aid from a trait. Since then I'm pretty much leveling up First Aid solely from books as they give me so much XP that I get two levels from each essentially. Is it possible that the XP I'm getting is from previous character that died? Because I don't see where else could it come from. Or is MuteWhileReading not working?
JS  [author] 31 Dec, 2022 @ 7:59pm 
Yeah, I'll keep an eye out for it as I go. Thank you for reporting it. I think I mentioned I had a similar issue early on that took me a while to figure out, so it could easily be the same kind of thing. Like you said, though, XP returns & multipliers at high levels are high anyway, so it shouldn't be game breaking, but it'd be nice to figure it out, too. lol
♠️ 💗 31 Dec, 2022 @ 7:33pm 
Well, it's good that you at least tried to replicate what happened to me. It's not a huge problem. I mean, in the grand scheme of things, it probably saved me no time at all with my foraging skill, and with my fitness skill, it saved me doing a whole 9 burpees, so it's really not a big deal. Maybe try it with a certain starting profession, my character started as a Park Ranger, so it gets that big foraging xp boost, maybe the mod acts a little weird with the profession xp multipliers.
Vivaria—In Vivo 31 Dec, 2022 @ 5:29pm 
Love it, thank you so much!!
JS  [author] 31 Dec, 2022 @ 5:26pm 
Also, I tried again to track down the bug @kissykaede ran into regarding getting too much XP at levels 8&9, but couldn't replicate it. Obviously, XP return is high at higher skill levels, but if anyone else notices it or any other bugs, please let me know.

Lastly, the sandbox settings moved out of the character page and into a unique page. Felt like too many settings to shove into the existing character page, so I moved them.
JS  [author] 31 Dec, 2022 @ 5:23pm 
Okay, I updated with some kind of shoddy fixes for what people are asking for. lol

There is now an option to pause XP tracking while reading skill books, so you won't get bonus XP from mods that already grant XP for reading skill books. Remember that this disables tracking for all XP, not just from a skill book. There was no other way I could find.

I also added an option to return XP from obsolete skill books. Unfortunately, this doesn't track 100% of the missed XP. The way the AddXP event works and how we calculate the missed XP means any XP you gained to level you out of the trainable range of a skill book won't be counted toward missed XP. This should be a small amount of XP, however. There's a solution to this, but it's too time consuming for such a small difference for now, but I'll keep it in mind for the future.
Vivaria—In Vivo 30 Dec, 2022 @ 8:02pm 
Gonna cast my vote for adding an option to stop xp store while reading for compatibility with mods like Udderly Skillbook XP, as I also use that!

I never knew how badly I wanted this mod until now lol
♠️ 💗 29 Dec, 2022 @ 11:02pm 
I'm playing solo, not on a server, also some more relevant info, I have sandbox settings set to 1x xp, but I use a mod that gives you 15x XP for exercising, but that shouldn't have anything to do with foraging, obviously. I don't use any other mods that have anything at all to do with xp except for the Runescape XP drops mod, but I don't see how that could be affecting xp gains from your mod, because all that mod does is show when you get xp in skills you select to track.
JS  [author] 29 Dec, 2022 @ 10:42pm 
I tried to replicate the issue real quick in both a normal save and on a server, but everything was working normally for me. I'll take another look when I get more time over the weekend, but let me know if you notice anything else.

I'm wondering if it's another compatibility issue, though.