Greetings everyone,
I have a question about this excerpt from the Wiki:
"The character models are located in res/models/model/characters/
and identified by a special metadata block.
Metadata
The model files consist of the following parts:
function data()
return { -- bounding box -- collider -- levels of detail metadata = { availability = { yearFrom = 1850, yearTo = 1920, }, colorConfig = { configs = {
{
{ 0.72, 0.70, 0.65, },
{ 0.40, 0.36, 0.34, },
{ 0.62, 0.60, 0.58, },
{ 0.81, 0.67, 0.63, },
}, ... }, }, person = { drivingLicenses = { "WATER", }, gender = "FEMALE", }, }, version = 1,
}
end
Character models can be recolored to get more diversity in the game world. The colorConfig
block contains a list named configs
that consists of a list of configuration blocks. As the character models use a material with a four-channel color blend map, each of the blocks has a set of 4 different colors with three values for the three color channels red, green and blue in a range of 0 to 1."
After reading this, I understand the decimals are just RGB 255 values divided by 255.
What I don't understand is how to edit this file. This file is inside a .zip folder in the "res/models/model/",
but surely the game can't be executing the model file while it is zipped up. How do I edit the copy of the file that the game is executing?
The end goal is to recolor the vanilla people in the game.
Thanks to anyone who can help.