Character mod helper

by Pi-C

If your mod lets players use a character that looks differently, you'll have to decide whether you must overwrite the default character. This mod will help you with this decision, and make it really simple to overwrite the default or update the new prototypes in a safe way.

Internal
4 months ago
1.1 - 2.0
80.4K
Character

g What bit of code am I looking for?

a month ago

I'm trying to make this mod work alongside a mod called bob's character classes. Currently it returns me to a normal engineer model when I choose a class. I found this line of code: data.raw.character[character.name].animations = util.table.deepcopy(data.raw.character.character.animations) that I think is what controls it. I wasn't sure from the documentation you left, should a character replacer mod create the equivalent of data.raw.character.character.animations?

4 days ago

Sorry, it's not as simple as that. My mod miniMAXIme will create new character prototypes for the class versions of a characters. If you define a new character, It will reuse its animations and change the other properties relevant for the different classes.

Do you have a completely new character, or are your animations based on the default character, just with new armors? Actually, I think it would make sense to allow for different animations based on class. Just have to figure out a way to integrate that into the mod helper. :-)

4 days ago

Yeah I hit a dead end with it. I appreciate the help though. The mod is Mechanicus rebuild (https://mods.factorio.com/mod/MechanicusMiniMAX) so I guess it already supports it? I'm kinda mad I didn't pay closer attention there. But hey, I think this is what I wanted anyways!

3 days ago
(updated 3 days ago)

The mod is Mechanicus rebuild (https://mods.factorio.com/mod/MechanicusMiniMAX) so I guess it already supports it?

Just tried it out: If miniMAXIme is active, and if you have used its GUI to switch to the Mechanicus character, the Mechanicus animations should be used regardless of what class you've set with Bob's mod. :-)

New response