intipablo Posted May 16, 2017 Report Share Posted May 16, 2017 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! Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted May 16, 2017 Report Share Posted May 16, 2017 unit portraits go to: binaries\data\mods\testmod\art\textures\ui\session\portraits\units Quote Link to comment Share on other sites More sharing options...
intipablo Posted May 16, 2017 Author Report Share Posted May 16, 2017 Quote 1 minute ago, wowgetoffyourcellphone said: unit portraits go to: binaries\data\mods\testmod\art\textures\ui\session\portraits\units Thankyou so much! 1 Quote Link to comment Share on other sites More sharing options...
intipablo Posted May 16, 2017 Author Report Share Posted May 16, 2017 Quick question... I've just noticed that they are all dds files? Apparently, the only software I have installed that can run that is visual studio code (Which I don't have/haven't paid for). Any ideas? Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted May 16, 2017 Report Share Posted May 16, 2017 A pluggin by Nvidia for photoshop or open it with gimp. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted May 16, 2017 Report Share Posted May 16, 2017 (edited) 29 minutes ago, intipablo said: Any ideas? Use PNG file format. The game engine will dynamically convert all PNGs to DDS for you on runtime. Edited May 16, 2017 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
intipablo Posted May 16, 2017 Author Report Share Posted May 16, 2017 45 minutes ago, wowgetoffyourcellphone said: Use PNG file format. The game engine will dynamically convert all PNGs to DDS for you on runtime. Thankyou again! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.