How to set unit image at the bottom of the screen?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
cbssecman
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 49
Joined: Tue Feb 12, 2013 6:08 pm

How to set unit image at the bottom of the screen?

Post by cbssecman »

I created several new units by modifying the .S4F and .DDS files for standard game units, and it worked just fine. No problems there.

However, when the unit is activated or moused over, the image in the info bar at the bottom of the screen becomes a big, hairy blue square. I'm not looking to create new artwork for these units I made, but what do I need to do in order to just put some stock BA2 image there?

For instance, I created a Waffen SS LMG unit. How do I set it up so that the stock german LMG image shows in the info bar when the Waffen SS LMG unit is active or moused over?
~ ad Triarios redisse
makigono1
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 93
Joined: Sat Jun 06, 2015 2:30 am

Re: How to set unit image at the bottom of the screen?

Post by makigono1 »

What you need is an icon asset. In squads.csv, there is a column for each unit that indicates the icon asset associated with it, entitled "IconID". You need to have a .DDS file associated with that unit, otherwise it shows the weird image there (because it can't find what it's looking for.) So, if you don't care about having a specialized image for the unit there, just copy one (for example, you could use the standard German LMG image) and place it in <Campaign Name>/DATA/UI/TEXTURES/ICONS. You should probably also have a "slot" file for the unit as well. That's the image that appears when you are picking out units to fill out your force before the battle. There are probably guys who can explain it way better than I, but I hope this helps.

-Mike
cbssecman
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 49
Joined: Tue Feb 12, 2013 6:08 pm

Re: How to set unit image at the bottom of the screen?

Post by cbssecman »

Excellent. I figured it couldn't be that difficult to do.
Thanks Mike!
CB
~ ad Triarios redisse
Post Reply

Return to “Battle Academy 2: Modders Corner”