Page 1 of 1
Posted: Thu Sep 30, 2021 2:30 pm
is there anyone who can explain the structure of files related to the units?
What do I have to do to create a new unit?
Posted: Wed Nov 10, 2021 12:47 pm
Sorry for the late response.
To start, UoC's mod folder file path should be: AppData\Local\.uoc2\_packages\ Here you should add your mod folder.
Inside your mod folder you'll need 3 things:
\data\entity_types\unit_types This is where your unit file should be in.
\assets\models This is where your unit model file should be in
assets\surfaces\unit\(Your Unit) This is where your unit portrait file should be in
assets\textures\model_d This is where your unit texture file should be in
You'll need at minimum to have those mentioned above. The game will crash without them.
Posted: Tue Nov 30, 2021 7:47 am
Thanks for this info.
Posted: Mon Feb 14, 2022 8:50 am
TheLastSterling , I've tried to do it as You pointed out. But I probably miss something. I tried in numerous ways. Sometimes I get an error. And sometimes I get nothing at all.
Maybe it's better to explain what I want to do.
I want to add the real coat of arms to Unit Surfaces, to give the game an extra real feel of the units.
This means that I have to create additional units, because normally You'll have ger_pz_41, but with what I want to do I'll need to have ger_pz_41_PanzerDivision8, ger_pz_41_PanzerDivision9, etc.
Any idea what is the most simple way to do that?
Posted: Mon Feb 21, 2022 2:11 pm
Something like this, right?
Sterling told you pretty much all you have to do, only thing left is to add a localization file for the unit description "German Panzer".
I attached the files needed to reskin an existing model. I used Gimp to modify the .dds texture and .png thumbnail. Use BC1/DXT1 for the .dds file.
Let us know how it goes
Edit: Panther, Tiger, it's all the same
Posted: Wed Feb 23, 2022 6:54 pm
Thanks! I'm going to try it
Posted: Thu Feb 24, 2022 9:54 am
I managed to get it working.
Now my next hurdle is to replace the models/unit in the campaigns. If I copy a campaign to the mod dir I get an keyerror.
Benaming doesn't work.
Posted: Thu Feb 24, 2022 12:54 pm
Unfortunately I don't know how to mod campaigns.
But there is already one in the workshop by Spiffy_King: "Bravado! - A Greco-Italian War Micro Campaign".
You can download it and check the files in Steam/SteamApps/workshop/content/*somenumber* (just sort by date of last changed).
Posted: Fri Feb 25, 2022 7:54 pm
Ah, good idea. Gonna check that out.