Opera
Deity
- Joined
- Sep 21, 2008
- Messages
- 4,643
Flexible TGA
(see post#2 for download)
(see post#2 for download)
Ahwaric isn't aware of it for now, since he's away on a work trip for two weeks, but I decided to add a cool functionality to base Orbis; it would be his call to choose to add it or not. Even if he doesn't, I will add it to my own mod.
What is it?
The GameFont.tga file is a file where the game draw the icons it uses, like the smile for happy faces, the unhealth icon, the production icon, the gp icon, the resources icons and the religions/corporations icons.
Originally, the file is pretty compact with only the necessary icons. The game reads each icon successively, assigning them in the order it reads them to some variable like [ICON_HAPPY].
This is a pain for religions and corporations as you basically have to move each icons to make room for your new ones and then you have to be careful about their order.
With the flexible TGA, you can specify in ReligionInfos.xml and CorporationInfos.xml which TGA slot the religion/corp should use. Thus, you can order them as it pleases you without having to reorder the icons in the TGA file.
Last but not least, the new TGA has many more slots (up to 46 religions, 46 corporations and 360 bonuses).
It is a pretty trivial modification for non modders. For modders, it will simplifies many things. One idea I had was that, at least here in the FFH playerbase, we could share one TGA file and update it if necessary. Well, at least, FF and Orbis would be able to share their icons, being the only mods to have the flexible TGA.
Development
For now, there's still some issues for the Orbis version due to strange codding from the original author of flexible TGA. Xienwolf and I are working on it, though.
Also, I still haven't done the python part in which I'll take out the greyed icons of the city screen. It will only show which religion/corp is in the city. So, when there is nothing, nothing will be shown at all.
And please remember that even though I will eventually finish this modification, it won't be effective until Ahwaric returns and accepts to add it. I will make sure everything will be trivial for him to do, setting everything right so he won't have to tear his hair off his head.
For Fall Further modders
You may not use any of those but I modified the TGA file so that it has all Orbis' icons too. As I said above, maybe it would be simpler for us to just use the same TGA file. I know that Valkrionn is working on adding a new religion icon for Ordo Machinarum (and eventually one for the White Hand I guess) and I hope to update the TGA file I will distribute here with his icons in.
Note
The advantages of the Flexible TGA won't be at their highest until I (or someone else) import the new modular system from FF to Orbis. Then, it will be even easier for anyone to add a religion or a corporation.
Misc
I also edited the Cult of the Dragon icon to not be square anymore. The black parts of before are now transparent. It's minor but looks really nice

The file
Here's a screenshot of the new TGA file:
Spoiler :

