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
Structure
-
- First Lieutenant
- Posts: 10
- Joined: Sat Apr 04, 2015 6:26 am
Re: Structure
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.
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
Thanks for this info. ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Re: Structure
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?
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?
You do not have the required permissions to view the files attached to this post.
-
- First Lieutenant
- Posts: 12
- Joined: Tue May 04, 2021 6:43 pm
Re: Structure
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
![Smile :)](./images/smilies/icon_e_smile.gif)
You do not have the required permissions to view the files attached to this post.
Re: Structure
Thanks! I'm going to try it ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: Structure
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.
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
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.
-
- First Lieutenant
- Posts: 12
- Joined: Tue May 04, 2021 6:43 pm
Re: Structure
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).
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
Ah, good idea. Gonna check that out.