Project Zomboid

Project Zomboid

Nedostatek hodnocení
Dynamic Traits and Expanded Moodles [B41 & B42] FIX
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Velikost souboru
Přidáno
1.331 MB
28. zář. v 3.47
Poznámky ke změnám (1) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
Dynamic Traits and Expanded Moodles [B41 & B42] FIX

Popis
It's the exact same Mod, made by PepperCat, but with one edited lua file (and maybe deleted the b41 content, sry)

This mod is NOT made by me, nor do I put my name in the collarobation
This is only a temporary fix until PepperCat applies my fix in her workshop post. In the meantime, feel free to use this patch.

Link to her mod: https://steamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2459400130&searchtext=Dynamic+Traits

The issue

The current mod throws out runtime errors, that happen when you swing a weapon or push and when hitting a zombie (unarmed or even armed with any weapon). This is because the game engine changed how these things get registered or idk (yet not understand everything). That's why I opened the mod in vs code, looked up which function in which line made problems and fixed it with a check. Because the swinging and hitting outputs a nil (idk, similar to null but nil is in lua), that's why the game screams and outputs a long error in the log. With the check we can somehow trick it, as I say, I'M NOT SURE IF I UNDERSTAND IT RIGHT, now it's fixed, yay.

I didn't just make it not scream but the mod functions as before. I've only edited one file that made the problems, nothing else.

Old description:

Features

The player will be able to gain or lose both positive and negative traits during the game based on different conditions.
New traits, some dynamic, some statics.
Vanilla traits cost rebalance.
New moodles and new effects for vanilla moodles such as: fractures by being overloaded or possibility to pass out if too tired for too much time, etc.
Vanilla professions rebalance.
Some new funtionalities such as overdose.

WIP Documentation - Outdated, this is B41. For B42 there's nothing yet.

High level guide of Dynamic Traits (Still a work in progress but already with a lot of details) [docs.google.com]

Other Traits mods Compatibilities
Evolving Traits World --> Incompatible
Simple Overhaul: Traits and Occupations --> Incompatible
More Simple Traits --> Compatible (I think? not really sure in B42)
More Traits --> Should be compatible (I think? not really sure in B42)
Dynamic Traits - Sauce Edition --> Incompatible

Other Compatibilities
Snake's Modpack --> Full compatibility in B41. B42 still not released.
Fitness & Workout Overhaul --> Full compatibility both B41 and B42.

My mods :)
Dynamic Traits and Expanded Moodles
Trees Have Loot
Surviving the storm
Wash Or Rot

If you wish to support the development of my mods you can do it through Paypal:

Copyright 2022 [PepperCat]. This mod doesn't have authorization to be published in Steam, except under the account name PepperCat.

Thanks to Aurora for the poster imagen <3

Workshop ID: 2459400130
Mod ID: DynamicTraits
---------------------------------------------
Workshop ID: 3576335725
Mod ID: DynamicTraitsFIX
Počet komentářů: 19
Nerezza 30. říj. v 20.24 
In short: The problem and the fix aren't complicated, PZ's devs did a refactor on some code which renamed getCategories to getWeaponCategories.

getCategories isn't a valid method anywhere except for liquid containers now (not sure why they still have it tbh), so the mod's script needs to be edited to use getWeaponCategories instead.
Nerezza 28. říj. v 20.59 
Hello, sorry for the late reply!

Your fix basically makes the errors stop appearing, but it also makes the script not do the things it needs to do for Dynamic Traits.

getWeaponCategories is literally just getCategories renamed in the last significant patch. Updating the names in the script is just making the script work exactly how it did before that patch broke it.
2sa2  [autor] 22. říj. v 11.50 
I think i made my "fix" wrong. If the errors before were, because it couldn't find "weapon:getcatageories", then my fix was simply it shouuld set categories as nil, thus disabling the errors in simplier term. I might have broken the mod ig, i will look into it and see if my fix is truly useless, then i will try yours
2sa2  [autor] 22. říj. v 11.48 
Hey, do you mean weapon swinging doesn't get recognized at all, because it can't find just "weapon:getcategories"? (but it's now renamed, as you said?)
Nerezza 12. říj. v 14.43 
Hey there, I took a look at the problem and found the fix that'll make DTEMonWeaponSwing work again. It turns out the method getCategories() is now defunct and has been replaced with getWeaponCategories().

So the fix is to just replace all weapon:getCategories() with weapon:getWeaponCategories() in the script.

Figured I'd pass this knowledge on to you since people are already using your mod, it'd be easier for it to get spread this way.

Also ofc this will work on an in-progress save, and players will only have lost out on some strength and fitness XP if they had the Prodigy trait, or a little extra muscle pain if they had the Sedentary trait from playing with the errors or your fix that suppressed the errors. In other words: There's no damage to a save from adding this fix late.
2sa2  [autor] 12. říj. v 7.38 
Ofc not, this is just a fix for b42
Saori Hayami 11. říj. v 19.57 
Es compatible con la 41 este parche? Gracias por tomarte el trabajo de fixearlo
농담똘 8. říj. v 18.39 
Oops sorry! I was such a clumsy dummy. Thank you for your kind answer along with creating hot-fix version of dynamic traits!
2sa2  [autor] 7. říj. v 22.22 
incompatible mods are listed in the old description
농담똘 7. říj. v 8.38 
is this mod compatible with other trait mods like SOTO or more traits?