Project Zomboid

Project Zomboid

Filip's Adaptation of Vaccine Mod
67 Comments
de Lyons 8 Aug, 2024 @ 4:30am 
No worries, thanks for the reply! We'll do some testing :)
Fil  [author] 8 Aug, 2024 @ 4:19am 
@de Lyons To be completely honest it's been years since I've last worked with this mod so my memory is sllowly fading.. but I think for crafting you can use anything, only for upgrading the vaccine you require an actual infected blood.
de Lyons 8 Aug, 2024 @ 4:13am 
@Fil sorry to ask again as answer still has me wondering, blood is also requirement at the initial stage when separating into Blood Plasma and Blood Cells - then used as a component to craft test vaccines. Does this blood (for blood plasma) also need to be from an infected person?
Fil  [author] 8 Aug, 2024 @ 4:10am 
@de Lyons I believe the vaccine requires infected blood for any kind of testing. If you want to make any tier of vaccine you'll need someone infected to provide you with the juices.
de Lyons 7 Aug, 2024 @ 6:01am 
Hi @Fil, could I please clarify something as we've had 100's of unsuccessful vaccine tests. There are two stages in the crafting process where Syringe with blood is required - once when crafting the test vaccine itself, and once when testing the vaccine. Can I clarify if the blood needs to be from an infected person for both crafts, or just the one used to test the vaccine on?
Fil  [author] 11 May, 2024 @ 7:14am 
@Alyssciel Sorry for the late reply, from the autopsy discussion under the mod description, one of the mod users figured out that the mentioned issue with corpse aging appears only if the mod is applied to an already existing save. I'm not sure if such issue appears otherwise, but I haven't been able to apply the fix yet.
Alyssciel 14 Apr, 2024 @ 5:41am 
Hi, I'm not sure what happens but for some reason, when I try to perform a corpse autopsy, I get blocked because the corpse is over 12 hours old...even when I just killed the zombie. Any reason why?
Bunbun 20 Feb, 2024 @ 9:37am 
@aquelarrefox I'll look for your mod if it gets released. I would love a compatible vaccine mod with they knew.
aquelarrefox 30 Jan, 2024 @ 4:55pm 
i will check it, thanks for the effort. this is wide complex than they knew for example. But its an inteteresting path for some playtrought
Fil  [author] 30 Jan, 2024 @ 1:30pm 
@aquelarrefox Yeah I've nothing to say about Recess.. don't want to spread misinformation :/
There is a way you can make a serum that cures the later bite, imo a simpler way. Have it add a certain value to that player, like value.time = 10, then add a function that runs EveryHours or EveryDay or something repeating like that. Make that function lower the value that you created by 1. That would simply make a timer that ticks -1 each hour. That settles the timer I believe. Then you just make that same repeating function run a test on player's health and see if he got bitten or just infected. Then if it registers isInfected as true, make it remove the infection if value.time > 0 for example. Now of course you can add more values to represent some chance of that happening and many other variables.
That seems much simpler to me than using the player data and stuff. I mean.. it's just the way I'd do that stuff. Good luck figuring out what works for you ;)
aquelarrefox 30 Jan, 2024 @ 12:45pm 
i was looking something like this: CmpSyringeWithTestVaccine = { Min = 0.50, Max = 0.65, CureChance = 0, InfectChance = 30, Time = 100, Strength = 20, AlbuminMin = 2, AlbuminDelta = 3, Recess = 0, },
CmpSyringeWithTestVaccineV2 = { Min = 0.43, Max = 0.68, CureChance = 0, InfectChance = 20, Time = 200, Strength = 30, AlbuminMin = 3, AlbuminDelta = 4, Recess = 0, },
CmpSyringeWithTestVaccineV3 = { Min = 0.30, Max = 0.70, CureChance = 0, InfectChance = 10, Time = 350, Strength = 50, AlbuminMin = 5, AlbuminDelta = 5, Recess = 1, },
CmpSyringeWithQualityVaccine = { Min = 0.20, Max = 0.80, CureChance = 1, InfectChance = 0, Time = 1200, Strength = 75, AlbuminMin = 8, AlbuminDelta = 6, Recess = 2, },
CmpSyringeWithCure = { Min = -1, Max = 0.80, CureChance = 0, InfectChance = 3000, Time = 0, Strength = 90 , AlbuminMin = 10 , AlbuminDelta = 9, Recess = 3, },
aquelarrefox 30 Jan, 2024 @ 12:44pm 
ok, i undestood you, i have to make cure cocktail work with 1 version of they knew and twick to make logic.
so i get cure to zero to be a vaccine and only cure later "bite" if its in time and Strength is a chance to cure the bite post vaccine. cool. Albumins is an item "Albumin tablets restore a small amount of health. The less it remains, the more its amount is restored. Plus, they reduce the infection rate after using the vaccine (read vaccine descriptions). Most effective in the middle-late stages of infection (50% - 75%). In fact, they prolong the effect of the vaccine." i didnt check if its in your version. I only have doubts of Recess now, thay should rise or go down with a better vaccine?
Fil  [author] 30 Jan, 2024 @ 12:15pm 
@aquelarrefox "Min" and "Max" are values used for the following vaccine functions to determine the current state of the infection rate, so the code checks if the infection rate is between the values of "Min" and "Max" for the consumed vaccine and if the infection rate is within this range it allows the function to be performed and vaccine to apply its effect.
"CureChance" also is a value that is checked whenever the vaccine is applied, if the randomly generated number between I believe 0 and 100 is the same as the number stated in the "CureChance" the vaccine will cure the player instead of just lowering the infection rate.
"InfectChance" does the same but opposite. Basically 97 for example is a 97% chance for the vaccine to infect the healthy player if applied on him.
Fil  [author] 30 Jan, 2024 @ 12:15pm 
Now the "Recess", "Strength" and "Time" are a bit more complicated. Once the vaccine was applied, it sets the mentioned values in place after which the EveryHours function checks the health of this player through function LabRecipes_AdjustPlayerHealth(). Then this function has a chance to be successful and cure the player in a way that it checks if the vaccine has a "Time" during which it will be active and then it tries through "Strength" to cure the player again using the randomly generated number and a certain chance value. Similar to this there are some withdrawal or "Recess" symptoms (which I hardly understand how ithey work).
Fil  [author] 30 Jan, 2024 @ 12:14pm 
To be completely honest when I was adapting DrHyde's mod I didn't pay much attention to this Recess, Time and Strength part, since it wasn't the focus of my adaptation. I still left it in since it seemed like a cool function where a vaccine has an effect over time.. but yeah, I don't 100% understand how it work.
Albumins.. no idea. Also not the part of the mod that was created by me. And since mod dev was just a short time hobby for me and not a full-time profession, I'm not too good at understanding all parts of this code.
Hope this helpsat least a bit. If you have any more questions feel free to write it here or open a discussion and we can continue there. <3
aquelarrefox 30 Jan, 2024 @ 11:36am 
i want to make a mod to alterate and use with a version of they knew/cure cocktails, where this mod should not cure but work as a vaccine. could you explain the fields in Vaciine effectiveness of FIL_LabModEngine.lua: Min = 0.50, Max = 0.65, CureChance = 0, InfectChance = 97, Time = 0, Strength = 0, AlbuminMin = 2, AlbuminDelta = 3, Recess = 0. if i undertaood, time and strenth are the "vaccine effect" for x time and y chance? i shold set cure to 0. whats max, min and recess? thanks for your time
bk 23 Dec, 2023 @ 3:48am 
Thank you very much
Fil  [author] 23 Dec, 2023 @ 1:01am 
@BK I've used this mod along with 100 other mods at a time and haven't encountered any issues. I can not guarantee, but you should be alright. It is a pretty low chance that you'll encounter incompatibilities, so do not fear to use it in big modpacks.
bk 21 Dec, 2023 @ 1:01pm 
Hey, i want to use this mod, im scared if it is bugged. Is it safe to play it with som others mod on ?
Fil  [author] 7 Oct, 2023 @ 7:04am 
@Depraved Arachnophile Infected blood spawns on dead zombies, yeah, I believe the chance of it spawning is around 30%. I've never really encountered any of the mentioned bugs before while using this mod, either they remained from the original mod (since I haven't really touched the code for the infected blood item), or it might be an issue of some mods conflicting with each other. Anyhow, this item is only used early game to get first one or two levels, so simply avoiding it later might be the best way to avoid item duplication bug.
Depraved Arachnophile 19 Sep, 2023 @ 5:37pm 
Is infected and normal blood supposed to spawn as an item on zombies when they're killed? It tends to clog up storage and seems to work kinda buggy - it never spoils, ever, until you put it on a zombie body and it suddenly converts into two infected blood... items?
Fil  [author] 18 Sep, 2023 @ 4:13am 
...UPDATE...
Mod has just recieved an update that I promised a long while ago.

Cure recipe is now fixed and can be used in-game.
Fil  [author] 18 Sep, 2023 @ 3:55am 
@IndieN0mad I haven't really had a chance to give it any love recently, however I definitely have plans to do so when I get some time.
I-Have-This-Ability 12 Sep, 2023 @ 10:45pm 
This mod is still getting updates?
Siowar 30 May, 2023 @ 3:38pm 
haha i like will be more hard ok thank you man
Fil  [author] 30 May, 2023 @ 1:44pm 
@Siowar You can, yeah - using autopsy. Will require much more than just zombie corpses, but yeah.
Siowar 30 May, 2023 @ 9:53am 
I can level up aid first with the corpses?
迪迦奥特曼 7 May, 2023 @ 8:36am 
before I was bitten, i tested about 40 times, all failed of cause. But after that, I test 50 times all fails too, and i give up and kill myself, cause there`s not enough time to save my self:steamsad:, I should have try more round, keep the recipe for next character :steamsad::steamsad:.but i wonder why the testment can`t be done in the infected blood(collect in the zomboid)? btw,thanks for the answer!! ur so kind~
Fil  [author] 7 May, 2023 @ 5:07am 
@迪迦奥特曼 You need to test your prototype on the infected blood (blood of an infected character), it doesn't work otherwise. If blood is pure, no amount of tries will be enough. :shrug:
As for the success rate, don't remember the numbers right now, but it shouldn't be too hard for the first vaccine test.
迪迦奥特曼 7 May, 2023 @ 3:04am 
I have tried 91 times for the no.1 vaccine test,all failed. And I wonder can it be success? :steamsad: and what is the success rate?
Fil  [author] 9 Apr, 2023 @ 10:27am 
@Oscar_Kemono Vaccine gives you more time to live until you discover the cure. Cure heals you completely and gives you a short period of immunity. All this is possible but not guaranteed after consumption of a cure (regulated by a certain probability/chance).
Oscar_Kemono 8 Apr, 2023 @ 3:46pm 
I have a question does the vaccine make you inmune forever or is it temporary?
Fil  [author] 19 Mar, 2023 @ 1:01pm 
@Silver Hunter Not yet.. However it should be simple enough. Find the books, read them. Then follow the recipes level by level until you reach the phase of testing the vaccines. Then it's just about repeating the testing recipe using the blood sample of an infected person, with enough triies you should get successful results and unlock new better versions of vacine.
So, simply said, just follow the crafting recipes from lvl1 VaccineResearch to lvl10 :D
Silver Hunter 19 Mar, 2023 @ 12:50pm 
is there a guide or tutorial?
Fil  [author] 17 Mar, 2023 @ 8:07am 
@IFF | Fischer Yes, look at typical medical storage compartments and you'll find them there. You can also level up your metalworking and use the furnace to smelt glass and craft your own flasks and tubes.
IFF | Fischer 17 Mar, 2023 @ 12:34am 
I'm sorry, probably a dumb question but where can I get the test tubes and flasks? I'm guessing I have to look for them in pharmacies and hospitals, don't I?
Fil  [author] 24 Feb, 2023 @ 4:55pm 
@Thegamerguy5695 First prototype of the vaccine can be developed without infected individual (just simple research recipes). But in order to test it and improve it you need infected blood samples.
AThornsRose 21 Feb, 2023 @ 11:58pm 
does the vaccine research need infected blood or can it be successful w/o being infected?
Fil  [author] 16 Feb, 2023 @ 12:44pm 
@Ralfow I'll update the description and hopefully clarify the process for everyone.
Fil  [author] 16 Feb, 2023 @ 12:43pm 
@Livamyrd It was probably a mistake, will fix it next week. Thanks for letting me know. As always, all feedback is appreciated <3
GenericGuy 14 Feb, 2023 @ 8:27am 
Good afternoon @Dowdoon. You have set the LabVaccineFormula4 recipe with "NeedsToBeLearn" true, but there is no book that teaches it.

Am I missing something? Or shall it be included into the Virology Courses Volume 3 book?
Ralfow 13 Feb, 2023 @ 3:01am 
It's a nice mixed mode :steamthumbsup: , but could you add some guidelines for reaching the final vaccine?
jetblade545 11 Feb, 2023 @ 4:52pm 
i had gotten an error, i posted it in the discussions tab
jetblade545 3 Feb, 2023 @ 4:19pm 
thank you Dowdoon!
Fil  [author] 3 Feb, 2023 @ 2:59pm 
Cure recipe is obtainable now with similar researh as with other vaccine formulas :D
All feedback is appreciated so if you test it and encounter any bugs please let me know.
jetblade545 30 Jan, 2023 @ 6:53pm 
Ok thank you Dowdoon for the response!
Fil  [author] 30 Jan, 2023 @ 3:43pm 
@jetblade545 Exactly, I still haven't implemented a recipe for it. Life's been pretty busy lately, no promises, but I'll give my best to update the mod and add that recipe this week.
Till then, all you can do to get the cure is spawn the item DrHyde's Notes.
jetblade545 29 Jan, 2023 @ 8:35pm 
When Aneia asked (Question. Am I unable to synthesize a proper cure because I am missing Dr hyde notes?) and from your response no one can get a cure unless they spawn something in v'ea admin commands? am i understanding that right?
Fil  [author] 10 Jan, 2023 @ 3:49am 
@Juankerman This mod requires Profession Framework for Singleplayer and if you also use it in Multiplayer and wish to use the Medical on player function you'll need Simple UI Library too.
Using this mod will allow you to develop vaccines of different qualities as well as a cure (still not in the code, will be finished soon), so you can definitely use it outside of roleplay as well.
Juankerman 7 Jan, 2023 @ 7:50am 
Is this mod standalone or does it need another mod to work?

With this mod you could find a vaccine and be cured of the zombie infection? or is it just for roleplaying?

greetings and thanks in advance.