FirEmerald-AvatarStatsLoader icon

AvatarStatsLoader

Override default avatar stats with values specific to each avatar.

Last updated 3 weeks ago
Total downloads 33717
Total rating 8 
Categories Code Mods
Dependency string FirEmerald-AvatarStatsLoader-1.2.3
Dependants 0 other packages depend on this package

This mod requires the following mods to function

gnonme-BoneLib-1.4.0 icon
gnonme-BoneLib

A BONELAB mod for making life easier for other mod creators.

Preferred version: 1.4.0

README

BoneLab AvatarStatsLoader

Allows loading of customized avatar stats in BoneLab


AvatarStatsLoader loads customized avatar stats from "<Game directory>\UserData\AvatarStats\<avatar name>.json".


Setting up custom stats using BoneLib 2.0.0 or newer using the BoneMenu

In-game, switch to the avatar you want to set up.
IMPORTANT: DO NOT ATTEMPT TO CHANGE STATS AFTER LOADING A LEVEL (INCLUDING LOADING THE GAME) BEFORE SWAPPING AVATARS AT LEAST ONCE. THERE'S A BUG WHERE DOING SO PUTS YOU INTO A POLYBLANK Open up Menu->Preferences/Options->BoneMenu->Avatar Stats or Avatar Mass
Select which attribute(s) you would like to change - they should hold the current value for the avatar - and edit them to your liking.
Finally, if you want the changes to persist when you next load this avatar, click "Save stats" or "Save masses", depending on what you editet.


Setting up custom stats using MelonPreferencesManager

In-game, switch to the avatar you want to set up.
IMPORTANT: DO NOT ATTEMPT TO CHANGE STATS AFTER LOADING A LEVEL (INCLUDING LOADING THE GAME) BEFORE SWAPPING AVATARS AT LEAST ONCE. THERE'S A BUG WHERE DOING SO PUTS YOU INTO A POLYBLANK Open up the preferences manager and navigate to the AvatarStatsMod options.
The options will have been populated with the current values for the avatar.
Edit any values to your liking, and then click "Save preferences" again. Use the "default" button to reset any values to the avatar's normally calculated value.
Finally, if you want the changes to persist when you next load this avatar, check "Save stats" and/or "Save masses", depending on what you edited, and click "Save Preferences".


A breakdown of the the different stats and what they do:

Agility: determines how fast an avatar can change direction and accelerate.
Speed: determines the maximum running speed of an avatar.
Strength Upper (Arm strength): determines the force with which an avatar can move things with it's hands. Beware - high values will cause issues when holding objects with two hands or climbing!
Strength Lower (Leg strength): determines jump height. Higher values have greatly diminishing effects - don't expect to be able to super-jump.
Vitality: determines how much damage the avatar takes from attacks.
Intelligence: has no affect on an avatar at the moment.


This mod was inspired by StatsOverride , and I looked at (disassembled) code for it and for DynamicBones in order to figure out how to make this mod. NO SIGNIFICANT PORTIONS OF CODE WERE COPIED TO MAKE THIS MOD.