Res/Fonts utilization

Tholish

Emperor
Joined
Jul 5, 2002
Messages
1,344
Location
Japan
Res/Fonts utilization

When you add religions or corporations, and put the art for the city bar representation of them into the GameFont.tga and GameFont75.tga in the Res folder, then how do you get the corporation and religion to use the correct art from the tga? I mean you'll get copper or something representing Zoroastrianism.

There doesn't seem to be a tutorial on this topic, only on actually changing the tga (which is easy with a Gimp plug in).
 
Res/Fonts utilization

When you add religions or corporations, and put the art for the city bar representation of them into the GameFont.tga and GameFont75.tga in the Res folder, then how do you get the corporation and religion to use the correct art from the tga? I mean you'll get copper or something representing Zoroastrianism.

There doesn't seem to be a tutorial on this topic, only on actually changing the tga (which is easy with a Gimp plug in).

Religions and Corporations have two lines dedicated to them in the Res files (they both share those lines, which also means unless you do some SDK modding you're limited to 25 pairs of icons for the both of them). The game looks at them in order based on the order in the XML files. First going through the religions, then the corporations. So if you add a religion without changing the files the new 8th religion would end up using Cereal Corp as it's icon and Creative Jewelers would end up having no icon since it gets pushed back based on the new XML order. Since it's limited to those two lines, you can never actually get copper icon for a religion unless you manually move copper in the Res.
 
Oh, that sounds easy. Yes I was getting Copper because I cut and pasted (rectangular select, edit, cut, paste into) an entire line of icons in there and it was being read as one icon. I was also off because I accidently drew a dot into an empty area with the wrong brush and it was being read as an icon. Starting fresh and simply adding one rel got me Ceral Corp as you say. Cutting out individual icons and pasting them in one at a time gets the count right. Thank you very much.
 
Oh, that sounds easy. Yes I was getting Copper because I cut and pasted (rectangular select, edit, cut, paste into) an entire line of icons in there and it was being read as one icon. I was also off because I accidently drew a dot into an empty area with the wrong brush and it was being read as an icon. Starting fresh and simply adding one rel got me Ceral Corp as you say. Cutting out individual icons and pasting them in one at a time gets the count right. Thank you very much.

Yeah, the file is so annoying to edit all because of one pixel out of place and all of a sudden the game reads it as an icon, but once you get the hang of it it isn't so bad.
 
Back
Top Bottom