Platy's Peculiar Pleasant Posh Python

Religion Screen

Civ4ScreenShot0000_zpsbfe4df84.jpg


Civ4ScreenShot0001_zpse0d9cf50.jpg



1) Color Coding
State Religion is Green
Selected Religion is Blue
Founded Religion is White
Not Founded Religion is Red

2) City Area and Religion Table
Scales with Total Number of Religions up to a Maximum of 11 Religions
> 11 Religion Table becomes scrollable

3) Purpose?
You can have 1000 religions in the mod and there is no need to adjust the screen.
Tables are scrollable by default just like pedia.

Only in Ultrapack
 
@isenchine
What old point system in main screen, don't understand :D

I thought that you were joking and had adjusted it in the meantime, but no...

I mean the Scoreboard on the main game screen! For me, it still shows the scores as always, not as in the Victory screen.

Oh, and on the Victory screen I got an 'ascii codec can't encode character' error. I know, damned accents!
 
Hmm didn't think of adjusting that.
The old mastery mod never bothered so neither do I lol.
Pretty troublesome

But come to think of it.
The score in scoreboard is based on player and not team.
Mastery score is team based though.
Anyway like Vincent and dh pointed out, nobody cares about the score anymore
 
?! :confused: Of course people care about the scores!

This said I can live with it.

Can you fix the encoding stuff? Because it breaks the screen. Here it was due to the name of a city but it could be the name of a leader as well (João).

Thanks.
 
The encoding stuff has nothing to do with me though
I get those errors even in bts for Portuguese cities
 
Ooh I quite like that Religion advisor. However, is it possible/sensible to have a single table as the left column, and a single city display as the right column? I realize that would be a waste of space for standard BTS with just 7 religions, but for mods like HR with 18 religions (or more) it could be a quite practical alternative.


isenchine:

Check that you haven't used any accented characters in the XML text strings (citynames, leadernames, etc). You have to use XML ASCII codes instead (they look like & # 233 ; but without the spaces). Accented characters can cause errors or incorrect symbols in unmodded BTS as well.
 
If you look at the table, 7 religions + no state in 1 column will not take up half the screen.
Impracticable to put it in 1 column as half the page will be blank.

There is a value in the code where I set the maximum height of the table to be 6 rows which is 11 religions.
Extend it if you want
 
Religion Screen
1) Fix some issues in Debug Mode
2) Made font bigger
3) Shifted Star Icon of Capital behind list of Religions in City. It was always irritating to me that the religions dont align because of that Star

Mastery Victory
Fixed City Names with weird chars.
Figured out why, cannot save the City Name and reuse elsewhere.
 

Attachments

  • Civ4ScreenShot0002.JPG
    Civ4ScreenShot0002.JPG
    79 KB · Views: 245
Even Better

Old Screen

Civ4ScreenShot0001_zps1d612dad.jpg


New Screen

Civ4ScreenShot0000_zps5f49387f.jpg


When you are in "All Corporations" view, it is silly to display the effects of each individual corporation in old BTS format.

In New view, effects of all of them are added up, showing just 1 value for each commerce/yield/maintenace.

Note that some numbers do not match after adding up.
This is because in BTS format, each of the numbers are rounded down.
So it could have been 17.9 + 11.9 + 11.9 which ends up with 41
 
Religion Advisor is throwing this error whenever you click on 'No State Religion':

Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 1172, in handleInput

  File "CvReligionScreen", line 290, in handleInput

AttributeError: 'NoneType' object has no attribute 'getStateReligion'
ERR: Python function handleInput failed, module CvScreensInterface
 
In ultrapack or after merging.
If after merging, check your widgets
 
Ah, I missed that. Those sneaky widgets! Fixed, cheers.
 
Make sure you have those dummy 1030 widgets too.
Else clicking on those boxes like dates will give error too
 
Mastery Victory
Fixed City Names with weird chars.
Figured out why, cannot save the City Name and reuse elsewhere.

Thank you very much, now it works with Orléans (João displays fine as well)!

Since you mention it, I never had a problem with Portuguese cities in BtS except for Braga and Braganza which seem to confuse the game (Domestic Advisor) with their same beginning letters.

@ Xyth: thanks, I use these codes all the time.
 
Hey Platy, would you by any chance be considering a Python version of the "city growth alert" feature from one of those big DLL mods (BUG, IRC)? Because that would just add more icing of awesome atop this great cake of awesome :D
 
What is the purpose of it...

Those messages to inform you XXX city is growing next turn, or culture expanding next turn, I don't really see any benefit.
 
Back
Top Bottom