Project Zomboid

Project Zomboid

You are infected trait
 This topic has been pinned, so it's probably important
24/7 Alpha  [developer] 30 May, 2024 @ 9:09am
Technical explination and why i cant fix most issues
Hello i made this to have a personal challenge run and thought to release it for anyone to enjoy. Its a very simply made mod so simple in fact that most issues i see in the comments are very hard to be believed that stuff broke because of this mod and i think these are maybe core Zomboid issues.

Attached below is a flowchart detailing what this mod does internally.

https://imgur.com/a/mfexUyo

First when the game starts it imports itself to the trait list, the game calls this the trait factory. Then we listen for the game to start, when a new game is loaded we check to see if the player has the trait, if yes we then also check if this game is a new game (a game/save file that has just been newly created), if this is also yes we find a singular random body part and set it to be bitten.

With this in mind you might be just as confused as me when this somehow does not work as intended and i first think of other mods being the culprit or some random internal Zomboid error.

Now why cant i fix this for other mods to work?

The truth is i'm a very basic LUA dev with my only experience working with the language being in Roblox that is why i suggested another mod from another developer called"Joy Tomaro" that has made the same mod as me and others. That lead me to think they will have a better understanding on why these random untouched issues this mod makes or does not make would be happening. I'm very happy on how much people have used this mod and would like to make more in the future when i'm more experienced.

Fun trivia.

This mod has commented out code for a dead body to appear next to you when you start. I intended this to give some lore to the trait implying that this is the one who bit you but adding a corpse manually to the floor only resulted in the corpse inventory icon showing up instead thus making me unable to add it in.
Last edited by 24/7 Alpha; 30 May, 2024 @ 4:11pm