Page 1 of 1


Posted: Thu Sep 30, 2021 2:30 pm
by r3ev

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?

cheers r3ev

Re: Structure

Posted: Wed Nov 10, 2021 12:47 pm
by TheLastSterling
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.

Re: Structure

Posted: Tue Nov 30, 2021 7:47 am
by r3ev
Thanks for this info. :D

Re: Structure

Posted: Mon Feb 14, 2022 8:50 am
by r3ev
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?

Re: Structure

Posted: Mon Feb 21, 2022 2:11 pm
by PascalCase

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 :)

Re: Structure

Posted: Wed Feb 23, 2022 6:54 pm
by r3ev
Thanks! I'm going to try it :)

Re: Structure

Posted: Thu Feb 24, 2022 9:54 am
by r3ev
I managed to get it working. :D

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.

Re: Structure

Posted: Thu Feb 24, 2022 12:54 pm
by PascalCase
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).

Re: Structure

Posted: Fri Feb 25, 2022 7:54 pm
by r3ev
Ah, good idea. Gonna check that out.