Structure

Ask, comment, read.
r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Structure

Unread post by r3ev »

Hi,

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
TheLastSterling
First Lieutenant
Posts: 10
Joined: Sat Apr 04, 2015 6:26 am

Re: Structure

Unread post 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.
r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread post by r3ev »

Thanks for this info. :D
r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread post 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.
PnzDiv8_example.png
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?
You do not have the required permissions to view the files attached to this post.
PascalCase
First Lieutenant
Posts: 12
Joined: Tue May 04, 2021 6:43 pm

Re: Structure

Unread post by PascalCase »

Pinky_Mod.jpg
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 :)
You do not have the required permissions to view the files attached to this post.
r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread post by r3ev »

Thanks! I'm going to try it :)
r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread post 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.
PascalCase
First Lieutenant
Posts: 12
Joined: Tue May 04, 2021 6:43 pm

Re: Structure

Unread post 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).
r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread post by r3ev »

Ah, good idea. Gonna check that out.
Locked