Modding the Religion Screen for More Modularaty.

Ket

Composite Of A Composite
Joined
Jul 26, 2006
Messages
900
Location
Austin, TX
Both myself and Esurbius's World Religions are encountering problems with the limitations of the religion screen and I think it would be logical if we could get some community involvement. My python is limited but its getting better every day, but I don't have a good deal of experience with game screens.

What *I* and I assume others who want more religions to display properly.
Is a modular system that counts the number of religions in the game and formats the screen appropriately.

I don't imagine it would be that difficult to create and its benifits to be released back into the wild seem good that it does not seem like a wasted effort.

Since the display can handle icon size of 16/32/48/64 could we not say look at the number of religions it needs to display determine the best icon fit and then lay them out in the "bar" according to a formula that will display them properly and evenly?
 
Thanks for taking a look at this Lord Olleus...

Maybe a toggle for only display founded and display all.

The biggest issue with this, is that once you mod a larger number of religions into the game you run out of room. Adding say Zoroastrianism and Shinto would cause the no-state religion selector to fall off the display area so to speak, so there would need to be some way to resize and reposition the elements based on how many religions needed to be displayed.

Let me do a mock up... This is what mine looks like now (I just changed the icon size to see if I could prevent fall off)



Notice how No-State Falls Off but there is lots of room to compress to the left.

Here is a mock up with another religion added and the 3rd shinto replacing what should be no state just as an idea that if we compress these area's and dynamicly generate spacing based on the number of religions we can fit at the very least 2 more on...



Now if we go one step further reduce the icons and the text say if religion.count < 9 we can fit even more on?

Hell I would be happy with just having the ability to display 9 instead of 7...
But im thinking for the future as well... EWR has how many...13 world religions?

And of course then the oposite is true if the mod only have 3 religions and no state then it would look better to have them evenly spaced out accross the panal.
 
A possible slide bar can be coded in say left to right when more Religions are added.
here a temp fix for now


Or we can make the bottom panels smaller and the top larger to add more Religions.
 
I think you may need to ultimatly use 2 rows of religions when the total exceeds ~10. I personaly like a lot of religions and would see this as quite usefull. Another idea, if a religion has completly disapeared (zero cities with it, no one has it as a statereligion, holyCity razed, no missionaries left) it should be listed as "dead". This would be usefull in a mod ware religions are coming and going throughout the game in a more historicaly accurate mannor.
 
I think you may need to ultimatly use 2 rows of religions when the total exceeds ~10. I personaly like a lot of religions and would see this as quite usefull. Another idea, if a religion has completly disapeared (zero cities with it, no one has it as a statereligion, holyCity razed, no missionaries left) it should be listed as "dead". This would be usefull in a mod ware religions are coming and going throughout the game in a more historicaly accurate mannor.

I like the idea of 2 rows but I don't know how to pull down the religions to the next row. need someone to code it.

I have religions up to eleven
 
The should be a way to make that top horizontal panel have a scroll bar. If you got get the scroll bar in there it wouldn't matter how many religions there are. Maybe even list the religions alphabetically or numerically or somthing instead of in the order they are in the xml file.

I also like more religions better then fewer, but have always just lived with 7 religions because of the religion screen display glitch. I will also look into this and maybe somebody will find the answer. :)
 
Religions Space

--------------------------------------------------------------------------------

I think you may need to ultimatly use 2 rows of religions when the total exceeds ~10. I personaly like a lot of religions and would see this as quite usefull. Another idea, if a religion has completly disapeared (zero cities with it, no one has it as a statereligion, holyCity razed, no missionaries left) it should be listed as "dead". This would be usefull in a mod ware religions are coming and going throughout the game in a more historicaly accurate mannor.

I like the idea of 2 rows but I don't know how to pull down the religions to the next row. need someone to code it.

Here space for more religions need someone to code the second line
 
Seeing as I've been messing with screens lately and am making some good progress I thought this would be something cool to look into.

After an hour or so of looking through those files Roamty posted and going over the acual widget construction code of the file I think I've solved this delima and can make the two rowed screen with a max of 10 religions in the top row and 9 religions plus the No Religion thing in the bottom row. Also, if there are more then 19 religions one or both of the rows will be horizontally scrollable.

I will put this right at the top of my todo list and should have it done in a day or two. :)
 
Jeckel, Thats Absolutely Awesome!

For those mods that don't need 19 spaces, can we hide the second row and move the city list up? Similar to the way it is now (just thinking of how to do this so its of benefit to every modder to use not just me and EWR's strange requirements :)
 
Yepyep, I'll see what I can do about hiding the second row and will also try to readjust the sizes of things based on the number of religioninfos. :)
 
K, just an update. I have the screen set up to show one row if there are 9 or fewer religions and 2 rows if there are 10 or more. If there are 10 religions then all 10 will be on the first row, but No State Religion will be on the second row.

I've just about got the city panels to fill up the extra space when there is only one row and should have that done tonight. I have a full day tomorrow, but I'll try to get the screen posted by tomorrow night. :)
 
Well, I got some extra time and was able to finish up the v0.1 beta.

Sorry no screenshots as I don't have access to civ at the moment. I will try to get some up as soon as I get home.

From my few trials, you should be able to drop this into a Civ4 v1.61 or Warlords mod and it should work. I dropped it into Eusebius World Religions Mod, which is for Warlords and it worked fine. I also tryed it in vanilla civ and it worked.

How this works.
If there are 9 or fewer religions then only a single religion panel is shown and the city panels are centered in the empty space below it.
If there are 10 or more religions then 2 religion panels are shown and the city panels fill most of the area below them.

This is just a beta and is only about half done. I still need to make the rest of the panel dimentions and locations dynamic based on number of religions. I am also going to have it show a third religion panel if there are 20 or more religions.

Anyway, here is the file...
JDynamicReligionsScreen Mod v0.1 *BETA*
 
Jeckel, Thats Absolutely Awesome!

Awesome! Awesome! Awesome!

His work so far, keep going I like what I see.
Please I hope you do not mind but people got to see this
 
Yep quite nice, I hope the code you developed can be re-used to do a similar modification of the Main City Screens Religion icons (thouse ones in the upper right hand corner of the screen) as I find these also get screwed up when new religions are added.

P.S. on a side note most of the new religions icons in that screen shot seem to have bad alpha layers causing the anoying box effect around them. Hopefully an artist can adress this.
 
Jeckel once this is done would you mind if it we included it into the CCCP (Civ Community Core Project) I havent asked any of the other members but I think it would be ok with them
 
Roamty said:
Jeckel, Thats Absolutely Awesome!

Awesome! Awesome! Awesome!

His work so far, keep going I like what I see.
Please I hope you do not mind but people got to see this

Woo, amazing! :thumbsup:
 
That looks great....but what about scrolling horizontally like the Civic Screen in ViSa?

...
 
hey,
I didn't want to create an entire new thread for this question, so I thought I just could ask here:
Can u change the distance between the religion-symbols? I'm asking, cause some of my new-made religions or better ideologies got pretty big names, which just look really confusing and ugly on the standat-religion-screen because they need more space than there is.
So, any sugestions or ideas?
I would be grateful :)
 
Back
Top Bottom