Platy's Peculiar Pleasant Posh Python

Great People Bar

Features:
Adds a Great People Bar to Main Interface

GreatPeopleBar_zps7d11636d.jpg


Pretty easy if I want to C&P from BUG, so I decided to do a slightly different version.
Not enough space to display the % of each GP directly, so the buttons are arranged in decending order, so the first in the list has highest % to spawn.
 
perfect platy,

thank you.


also the score board, even better now.

***

are the separate mod parts suppose to be the same as in the uuuu?
cause i saw some differences.

the uuuu is great, saves me the trouble to update the mods separably :)



*******
hey again,
i found a bug with the happy razing mod.

the sell building option gives a python error that says that the g_selectedcity isnt defined something global blah blah, its in line 3000+ i think.
i tested both my merged version and both the vanilla version, and the bug is there :) check it out :)
i can send you a picture, but all u need to do is load the mod and try to destroy a building from the top button near the raze.

besides, that, ,maybe you can ad "are you sure you want to raze the city ?" :)
 
Ultrapack functions similar to standalones.
Codes differ because some are using same parts of codes, so it is not simple c&p
 
Depends on how you merge them.
Can't tell what is wrong without knowing what that line is in your merged file.
Unless you can replicate it in unmerged uuuu
 
Updates

Specialist Count
1) Shift variable definition to allow python changes in game without python exceptions.

Button Display
1) Modify GP % to take account excess % if first in list

Unique Color Text
1) Shift one code slightly to avoid undefined variable

World Builder
1) Diplomacy Screen Size adjusted only if exceed Screen Resolution, else looks ugly

UltraPack
1) Added Great People Bar
2) Specialist Count Colors modified to follow Civ Specific Color
3) Research Bar font size revert back

@GG Bar
I don't see the need of it since it is too easily accessible.
 
hey man,

ok so heers the line that the error refers too:
Spoiler :

Code:
## Platy Color Text Main ##
				sColor = u"<color=%d,%d,%d,%d>" %(gc.getPlayer(ePlayer).getPlayerTextColorR(), gc.getPlayer(ePlayer).getPlayerTextColorG(), gc.getPlayer(ePlayer).getPlayerTextColorB(), gc.getPlayer(ePlayer).getPlayerTextColorA())

				iCount = 0
				for iI in range( CommerceTypes.NUM_COMMERCE_TYPES ):
					eCommerce = (iI + 1) % CommerceTypes.NUM_COMMERCE_TYPES
					if (gc.getPlayer(ePlayer).isCommerceFlexible(eCommerce) or (CyInterface().isCityScreenUp() and (eCommerce == CommerceTypes.COMMERCE_GOLD))):
						szOutText = u"<font=2>%c:%d%%</font>" %(gc.getCommerceInfo(eCommerce).getChar(), gc.getPlayer(ePlayer).getCommercePercent(eCommerce))
						szString = "PercentText" + str(iI)
						screen.setLabel( szString, "Background", sColor + szOutText + u"</color>", CvUtil.FONT_LEFT_JUSTIFY, 14, 50 + (iCount * 19), -0.1, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
						screen.show( szString )

						if not CyInterface().isCityScreenUp():
							szOutText = u"<font=2>" + localText.getText("TXT_KEY_MISC_POS_GOLD_PER_TURN", (gc.getPlayer(ePlayer).getCommerceRate(CommerceTypes(eCommerce)), )) + u"</font>"
							szString = "RateText" + str(iI)
							screen.setLabel( szString, "Background", sColor + szOutText + u"</color>", CvUtil.FONT_LEFT_JUSTIFY, 112, 50 + (iCount * 19), -0.1, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
							screen.show( szString )

						iCount = iCount + 1;
                                                
			self.updateTimeText()
			[B][I][COLOR="Red"]screen.setLabel( "TimeText", "Background", sColor + g_szTimeText + u"</color>", CvUtil.FONT_RIGHT_JUSTIFY, xResolution - 56, 6, -0.3, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )[/COLOR][/I][/B]
			screen.show( "TimeText" )
			
			if (gc.getPlayer(ePlayer).isAlive()):
				sColor = u"<color=%d,%d,%d,%d>" %(gc.getPlayer(ePlayer).getPlayerTextColorR(), gc.getPlayer(ePlayer).getPlayerTextColorG(), gc.getPlayer(ePlayer).getPlayerTextColorB(), gc.getPlayer(ePlayer).getPlayerTextColorA())
				szText = CyGameTextMgr().getGoldStr(ePlayer)
				screen.setLabel( "GoldText", "Background", sColor + szText + u"</color>", CvUtil.FONT_LEFT_JUSTIFY, 12, 6, -0.3, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
				screen.show( "GoldText" )

				if (((gc.getPlayer(ePlayer).calculateGoldRate() != 0) and not (gc.getPlayer(ePlayer).isAnarchy())) or (gc.getPlayer(ePlayer).getGold() != 0)):
					screen.show( "GoldText" )

				if (gc.getPlayer(ePlayer).isAnarchy()):

					szText = localText.getText("INTERFACE_ANARCHY", (gc.getPlayer(ePlayer).getAnarchyTurns(), ))
					screen.setText( "ResearchText", "Background", sColor + szText + u"</color>", CvUtil.FONT_CENTER_JUSTIFY, screen.centerX(512), 3, -0.4, FontTypes.GAME_FONT, WidgetTypes.WIDGET_RESEARCH, -1, -1 )
					if ( gc.getPlayer(ePlayer).getCurrentResearch() != -1 ):
						screen.show( "ResearchText" )
					else:
						screen.hide( "ResearchText" )
## Platy Color Text Main ##

its colored with red.


i only merged in these mods:
# Happy Golden Age ##
## Great People Bar ##
Happy Dismantling


so any ideas?

maybe i can upload the file for you?


gg bar - what did you mean? can i see it somewhere?

thanks anyway.


***
i hope im not bugging you :)
 
Gg bar is basically the bar in military advisor
 
Updates

Platypedia
1) Made Unit Screen bigger to display 3 rows of promotions without need of scrollbar
2) Added Corporations to Unit Screen's "Requires" section, why was it missing in vanilla BTS Pedia in the first place...
3) Removed some duplicate Text tags

UltraPack
1) Pedia Changes
2) Smaller Button for Research Bar and lowered it to be in line
3) Removed Button for Nationality Bar and City GP Bar, looks unnecessary there
4) Added Current Era Display Text (from BUG)
5) New City GP Bar Text instead

6) Applied Civ Specific Colored Text to Trade Routes List and Building List Titles
7) Added Latitude to Trade Routes List Title (One of the pre-requisite to buildings which was never shown)
8) Added Max Trade Routes to Trade Routes List Title
9) Added Wonder Count to Building List Title (Silver Star: National + Team, Golden Star: World)
10) Removed "+" and "," from Building Effects in Building List, to display more data, since the buttons take up space
11) Added :gp: Generation Rate to Building Effects in Building List

12) Added "No Great People Bar" and "No Colored Text" to Graphics Options
13) Merged the mini modules into one single module, Pedia and WB are still their own modules

UltraPack_zpsa823a431.jpg


Notes:
1) The various changes to buttons are only applied to UltraPack and not Button Standalone.
Let you choose what you prefer
2) The wonder count, latitude display, era display etc are simple text changes. So cannot be bothered to release them as standalones.
 
ScoreBoard:

I did some investigations and realised how BUG did the smileys for Attitude.
They import the icons from this thread to add in more icons.

However, this solution requires messing with the font files, so I was wondering if anyone is capable of making them in button formats instead (like those specialist ones without any background) :D
 
smile

button 1 game font size
button 2 game font size 75
button 3 game font size at 128 twice the the size of copy and paste into a 64 button size
let me know what size you need I can make them
 

Attachments

  • Button_1 copy.jpg
    Button_1 copy.jpg
    23.8 KB · Views: 148
  • Button_2 copy.jpg
    Button_2 copy.jpg
    23.5 KB · Views: 157
  • Button_3 copy.jpg
    Button_3 copy.jpg
    24.5 KB · Views: 153
  • smile.zip
    smile.zip
    5.1 KB · Views: 80
  • but10 copy.jpg
    but10 copy.jpg
    24.4 KB · Views: 146
Thanks Roamty :D

Civ4ScreenShot0002_zpse905b8f8.jpg


This is how they look.
Definitely the biggest one looks better, since the other 2 are too small, since the actual button size used is 24x24

I took the boy button from your baddies buttons to symbolize human player, since attitude towards you does not make sense for human players.

I guess the borders around the smiles need to be removed just like the boy button :D

You are the best at making buttons :goodjob:

If you guys think the scoreboard looks long, I can remove the Golden Age icon, since it is not really important anyway.
 
You need to change the names of the buttons if you like. I just call them but1 but2 etc. For now taken in order from the GameFont that is in the folder. I remove the borders around the smiles there 10 buttons in all. I can only show 9 here the ten is in post 197
 

Attachments

  • but1 copy.jpg
    but1 copy.jpg
    24.5 KB · Views: 135
  • but2 copy.jpg
    but2 copy.jpg
    24.4 KB · Views: 150
  • but3 copy.jpg
    but3 copy.jpg
    24.5 KB · Views: 138
  • Smiles but.zip
    Smiles but.zip
    234.4 KB · Views: 66
  • but4 copy.jpg
    but4 copy.jpg
    24.2 KB · Views: 124
  • but5 copy.jpg
    but5 copy.jpg
    23.9 KB · Views: 131
  • but6 copy.jpg
    but6 copy.jpg
    24.2 KB · Views: 157
  • but7 copy.jpg
    but7 copy.jpg
    23.9 KB · Views: 135
  • but8 copy.jpg
    but8 copy.jpg
    23.9 KB · Views: 135
  • but9 copy.jpg
    but9 copy.jpg
    24.4 KB · Views: 217
Courtesy of Roamty

Only bothered to update Ultrapack for this first, buzy watching drama.
 

Attachments

  • Civ4ScreenShot0003.JPG
    Civ4ScreenShot0003.JPG
    67.9 KB · Views: 81
Ah those look cute as an alternative :D
If they are in button format similar to roamty's I can easily include both packs in the art folder and let users decide.
If there is a need, I can even add a graphic option to choose which pack to use.
 
Back
Top Bottom