New religion - mostly good, but a couple questions

In my experimenting, I briefly tried to have neopaganism replace the hinduism slot, changed my mind and patched Hinduism back in, messed around with the graphics a bit and put them back, and I ended up screwing up something. The wrong icons started showing up on the map screen for the religions in a city.

I saved the graphics work I did for the new icons, but I had to delete everything else and start it over. It was easier than deconstrucing my mistakes. :)

Now I get to go and edit the .xml files again.

The funny thing is that getting practice with xml might actually have potential benefits with my job, so I can tinker with Civ4 at home and feel that I'm doing career training. :p
 
homegrown said:
This particular loop is inside a for statement that defines pLoopCity.. basically, it goes thru each city and first checks if that city is a Holy City. If it is a holy city, it grabs the appropriate icon and adds it to the display string.

How exactly it picks the icon is probably based on the number and order of ReligionInfos since they are in the font in a specific order, it's easy to bounce thru them until it grabs the correct one.

I only experimented with this a little by trying to add a red power icon. I defined it in CvUtils (where the game font is broken down into the specific sections), but ran into a problem with CvPythonExtensions coughing up a "reached end of line" error or something. From the API Reference, in the bottom left, I clicked on FontSymbols, and saw that entry 22 = MAX_NUM_SYMBOLS. So until I find the (I hope XML) file that list is kept in, I can't add more symbols there.

You may be lucky in that ReligionTypes don't seem to have a end of file built-in. As long as there is an entry in ReligionTypes (7 = RELIGION_NEOPAGANISM), theoretically, the game should be able to find and process your new icon.

Hope this helps. I'm not a programmer, I know just enough self-taught python to get me into trouble. :D
I believe the blue dots in the middle of the pink lines indicate squares that are to be "read" by the .py code. I've added my icons. Now I just need to re-edit the code and see if it works...
 
Back
Top Bottom