Jump to content

Questions about Unit Icons


intipablo
 Share

Recommended Posts

Hello all! After a long break from 0ad, I have decided to get back into the game once more. Now, I've decided to start modding, and after reading up on it and looking through tutorials, I found that it is fairly simple. After reading through this tutorial: https://trac.wildfiregames.com/wiki/CreatingNewUnits I managed to create my first unit!

Now, unfortunately. There doesn't seem to be anything on that page that tells me about the unit icons of units. So I went through all my files that I made during that tutorial, and found this line...
 

<Icon>units/celt_champion_infantry_gaul.png</Icon>

It looks simple, but I just need some clarification on this, right now I'm on my phone without access to a computer, so unfortunately I can't do any testing myself.
That line of code is in this directory

\binaries\data\mods\testmod\simulation\templates\units

And inside the file: gaul_champion_axeman.xml

Is it as simple as putting my .png icon file in the units folder? (And changing the line of code in the .xml file of course), and if so, what's the recommended or default size for a unit icon.

I'm just not totally sure on this because the "celt_champion_infantry_gaul.png" is not actually in the units folder (of the public/parent mods folder thingy).

 

Any help would be appreciated, thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...