Skip to main content

Crate supreme_characters

Crate supreme_characters 

Source

Structs§

BaseCharacter
CharacterConfig
CharacterMaterials
CharacterSkin
MaterialEntry
MaterialList
SkinBlock

Enums§

CharacterMaterial

Functions§

get_character_texture_path
Resolves the texture path for a specific material category.
get_ghost_character
Returns the name of the folder of the current ghost character (the first one in player_types.txt).
get_grouped_characters
Returns a list of base characters, each with its associated skins.
get_valid_character_directories
Returns a list of valid character directories. A directory is valid if it contains plrmshcnf.txt AND that config specifies at least one material for each category: face, body, jacket, pants.
identify_active_skin
Helper to identify which skin is currently active in a base character’s directory. Returns the name of the matching skin, or “(Custom)” if no match found.
set_character_skin
Updates the base character’s plrmshcnf.txt with materials from a skin. This will create a texture_base backup for each material if it doesn’t already exist. This version use AST patching to preserve unknown fields and comments.
set_ghost_character
Sets the ghost character by reordering player_types.txt so that all entries for the given character name are moved to the top of the list. This implementation uses AST manipulation to preserve comments and unknown fields.