Platy's Peculiar Pleasant Posh Python

I know, there are just too many units in these folders!
 
Bug Reporting Procedures
1) Activate Python Exceptions
2) Screenshot
3) Whether bug exists in standalone or after merging

4) If it does not exist in standalone, 99% of the time, you don't have to inform me. :mischief:
 
ok platy,

ill upload a screen shot later on,

meanwhile, ill describe that i put a forest X2 , that gives 0.5 health near city - in the health bar,
the sum - does not include the health from the feature,

ive compared it to ui of kmod (uses bug), and there it shows, i shall upload the two images later today i hope.

cheers.
 
If kmod shows, it is because of its modified dll rather than bug.
I will bet it is because of integer calculations.

0.5 is simply 0, nothing to do with the UI.
 
Ultrapack Tech Advisor

TechAdvisor0000_zpsafc91ef7.jpg


Adjust tech icon size as suggested by Vincent
 
Tech Events

Expanded to Projects too.
Allows Projects to trigger events for more effects via simple XML.
 

Attachments

  • Project Events0000.JPG
    Project Events0000.JPG
    110.1 KB · Views: 118
EspionageScreen0000_zps3c52ff88.jpg


Revert Espionage Screen closer to BTS style, with big and mean icons.

Increase font size of various advisor screens from 2 to 3.
 
Hey :D

Just wondering if its even possible. Since all the original civ videos are in 720x486 (iirc) format, is it possible to change the intro video to 16:9 (720x360) and make it "full screen"?

I looked at the code, but honestly not knowing enough python to actually write anything useful

Spoiler :
PHP:
		self.W_EXIT = 120
		self.H_EXIT = 30
		screen.setLabel("WonderTitleHeader", "Background", u"<font=4b>" + szHeader + "</font>", CvUtil.FONT_CENTER_JUSTIFY, screen.getXResolution() /2, 8, -0.1, FontTypes.TITLE_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1)
		screen.setButtonGFC("EraExit", CyTranslator().getText("TXT_KEY_MAIN_MENU_OK", ()), "", screen.getXResolution()/2 - self.W_EXIT/2, screen.getYResolution() - self.H_EXIT - 8, self.W_EXIT , self.H_EXIT, WidgetTypes.WIDGET_CLOSE_SCREEN, -1, -1, ButtonStyles.BUTTON_STYLE_STANDARD )
		self.W_MOVIE = screen.getXResolution()
		self.H_MOVIE = screen.getXResolution() * 2 / 3
		if self.H_MOVIE > (screen.getYResolution() - (self.H_EXIT + 16)*2):
			self.H_MOVIE = screen.getYResolution() - (self.H_EXIT + 16)*2
			self.W_MOVIE = self.H_MOVIE * 3 / 2
		self.X_MOVIE = (screen.getXResolution() - self.W_MOVIE) / 2
		self.Y_MOVIE = (screen.getYResolution() - self.H_MOVIE) / 2

sort of :
Before
Spoiler :
attachment.php

After
Spoiler :
attachment.php
 

Attachments

  • Unstretched.jpg
    Unstretched.jpg
    81.1 KB · Views: 600
Actually, all are 720 x 480, 3:2 aspect.

They are already stretched full screen if possible.
The reason why it is not in pic 1, is because I purposely set it such that there is a top and bottom gap, such that the video doesn't overlap into the OK button.

Because if you look at pic 2, it feels weird for the OK button to be within the video.
Top gap was to place "Wonder Titles"

That is the purpose of
screen.getYResolution() - (self.H_EXIT + 16)*2

As for 3:2 vs 16:9, just use a if statement to check whether
iMovieType == MOVIE_SCREEN_INTRO, to use 16/9 and 9/16 instead of 3/2 and 2/3
 
Wonder Movie and Pedia Movie files:

Rewritten to play videos full screen regardless of resolution aspect.
Exception: .nif files are still 3:2
 
Platy,

I would love to see is some modcomp to automate map sales. It is so time consuming to require from the ruler to go around the globe again and again trying to get a fair deal for the map tiles you are ready to sell. How about game checks it for you with one your click and present you with one table showing offers from all the known civs and willingness to trade. Player can review deals, uncheck unwanted ones and and get cash with one click.

Please comment on possibility!
 
Short Answer:
Nope.

Long Answer:
No python command to implement deals.
 
long Answer:
No python command to implement deals.

There is at least some trade stuff available in Python.

CyDiplomacy has things like
VOID startTrade (INT iComment, BOOL bRenegotiate)
and
VOID setAIOffer (BOOL bOffer)
and
TradeData getTheirTradeOffer (INT iIndex)

TradeData has Attributes:
TradeableItem ItemType
BOOL bHidden
BOOL bOffering
INT iData

It may not have everything you need to launch an unsolicited trade deal. Or it might. But I have no idea how it all works together to make a deal if it is possible.
 
Back
Top Bottom