Idea for adding custom race support
Posted: Mon Nov 16, 2020 7:56 pm
I've been thinking for a bit about better ways for modders to add custom races to the game. Currently, every custom race mod for DF has involved replacing the textures and text for one of the existing races.
The idea I currently have is a button on the race selection window that can be used to select any installed custom races. My idea has the modder create a JSON or similar file that is populated with all of the information required to integrate the new race into the game. The modder also needs to supply a texture file containing the new body and additional textures for each head. All of this is placed in a special folder in the StreamingAssets folder. On launch, the game looks through this folder and populates a list with all of the custom races it found. The button will then open this list and let the player pick one of them. The button could even be coded to only appear if at least one custom race is installed. I've also attached a rough mockup of how the button could be added.
What are your thoughts on this idea?
The idea I currently have is a button on the race selection window that can be used to select any installed custom races. My idea has the modder create a JSON or similar file that is populated with all of the information required to integrate the new race into the game. The modder also needs to supply a texture file containing the new body and additional textures for each head. All of this is placed in a special folder in the StreamingAssets folder. On launch, the game looks through this folder and populates a list with all of the custom races it found. The button will then open this list and let the player pick one of them. The button could even be coded to only appear if at least one custom race is installed. I've also attached a rough mockup of how the button could be added.
What are your thoughts on this idea?