Hi!
I've started playing around with the variant models using PFM but despite having read all the tutorials im still struggling with the basics. For a bit of practice, i wanted to change the hats for all black watch soldiers to something different. From what I understand this is far simpler when changing to a hat already stored in the britain atlas files, so when i just changed the hat directory in unit.variants it worked fine and the new hat appeared in game.. so far so good. What i'm having trouble with is changing to a hat from another nation which isnt already used by british troops. I created a mod that looks something like this:
test.pack
-variantmodels
-units
-atlas
britain_colour_mask.atlas
britain_colour_mask.dds
britain_diffuse.atlas
britain_gloss.atlas
britain_normal.atlas
britain_diffuse.dds
britain_gloss.dds
britain_normal.dds
denmark_colour_mask.atlas
denmark_colour_mask.dds
denmark_diffuse.atlas
denmark_gloss.atlas
denmark_normal.atlas
denmark_diffuse.dds
denmark_gloss.dds
denmark_normal.dds
britain_inf_elite_british_black_watch.soldier.unit_variant
denmark_inf_elite_republican_guards.soldier.unit_variant
I changed the black watch hat to the danish one I wanted to try in the unit_variant file, both the mesh and texture. I then went into all the britain atlas files and added a new row for the danish hat, copying the directory for both strings from the equivalent danish files along with the corresponding coordinates.
When I go in game the hat model has changed fine but the texture is wrong. It's not the same as what a lot of people seem to get where the entire dds file is covered all over the hat like patchwork, but it clearly doesn't fit and it's the wrong colours, almost like a jacket was pasted onto the mesh instead of the correct hat. I'm pretty sure there's an important step i'm missing here but I can't figure out why and I have looked hard before posting. I should probably emphasise im not yet trying to create a new unit with different textures, im just trying to permanently modify all black watch units with slightly different equipment and clothing ( I can't stand those floppy hats ). A lot of people talk about changing prefixes but surely that's only necessary when you wanted a new unit added to the game? Any help would be really appreciated!
Thanks