Project Zomboid

Project Zomboid

Balance Traits
Tchernobill  [developer] 6 Aug, 2023 @ 10:58pm
How to make it work for modded traits
How to make it work for modded traits
Start a new solo game with this mod and the mod adding traits.
Create a new character up to the profession/trait selection page.


1/ Add sandbox options
Look in the console.txt there should be the code to add to your sandbox-options.txt
sandbox-options.txt should be put directly under media folder of your mod.
You should find nodes that look like:
option BalanceTraits.ActionHero { type = integer, min = -20, max = 20, default = 8, page = BalanceTraits, translation = BalanceTraits_ActionHero, }


2/ Add the EN translation
Once all sandbox options are set, if you restart a new game, you will probably have missing translations and text like 'Sandbox_BalanceTraits_ActionHero' instead of 'Action Hero' in the sandbox options page during the game creation.
add the missing translation to your transaltion folder under
media\lua\shared\Translate\EN\Sandbox_EN.txt
e.g.
Sandbox_EN = { Sandbox_BalanceTraits_ActionHero = "Action Hero", }


3/ Add mod dependencies
If you are adding this to the trait mod, you can but are not forced to make it depend on Balanced Traits.
If you are making a new mod for this, put make it depend both from the initial trait mod and from Balance Traits mod.
Under mod.info, add
require=MyTraitMod
or
require=BalanceTraits,MyTraitMod


4/ Add mod suggestion in the workshop
In your workshop item, add the dependencies (at least the required ones) via the button:
Add/Remove Required Items


Here is an exemple of the expected result for more traits mod.
Last edited by Tchernobill; 7 Aug, 2023 @ 11:53am