Structure

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

Structure

Unread postby r3ev » Thu Sep 30, 2021 2:30 pm

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 postby TheLastSterling » 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.

r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread postby r3ev » Tue Nov 30, 2021 7:47 am

Thanks for this info. :D

r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread postby r3ev » 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.

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 postby PascalCase » Mon Feb 21, 2022 2:11 pm

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 postby r3ev » Wed Feb 23, 2022 6:54 pm

Thanks! I'm going to try it :)

r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread postby r3ev » Thu Feb 24, 2022 9:54 am

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 postby PascalCase » 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).

r3ev
Second Lieutenant
Posts: 7
Joined: Sun Sep 12, 2021 9:48 pm

Re: Structure

Unread postby r3ev » Fri Feb 25, 2022 7:54 pm

Ah, good idea. Gonna check that out.