Platy's Peculiar Pleasant Posh Python

Updates

Platypedia
Adds Vote Source Effects to CvPediaBuilding
In short, for Apolistic Palace.

Natural Wonders
Removed Test Codes in onCityAcquiredAndKept
Updated Platypedia

Usable Mountains
Removed Test Codes in onCityAcquiredAndKept

Updated Ultrapack
 

Attachments

  • Civ4ScreenShot0000.JPG
    Civ4ScreenShot0000.JPG
    128.7 KB · Views: 298
Dummies are hidden in Platypedia.
Hills and Peaks are not real terrain.
Those are dummies.

Edit:
Regicide
:
Modified XML stats of King to open up more promotions like Interception and Navigation.
 
regicide???

omg omg omg!

platy i love u man!

i loved that function in civ3,
can you trigger that the death of the king with create a victory?

if your headed to that direction i wuold suggest you a few more :
- mass regicide victory
- financial victory - money level
-scientific victory
- maybe some capture the flag?

what do you think?
 
Regicide Victory

Killing off Kings of all rival teams trigger Regicide Victory.
(Your own vassals excluded)

You may actually trigger Regicide Victory for others instead if your own King is already slain and you kill off the 2nd last king, which means the last King won without doing anything.

Thus, protect your own King.

Civ4ScreenShot0001_zps51bab793.jpg


Civ4ScreenShot0002_zps2cb6fa50.jpg


Regicide mod has been modified:
1) King buffed significantly
2) Death of King triggers Anarchy == Full Golden Age Length
3) All Features activated only when Regicide Victory activated
 
Hi, platyping. I have added your Wonder and resource tracker. Unfortunatelly in game is one button only. As first I add wonders. All OK - made new button as othesr - excellent - as second I ad resources and the site of the first button appeared the second and the first button disappeared . take advice , please, what should I do ?
Hroch
 
Download Ultrapack and follow the codes there for the trackers.

Have to shift one of their positions by one button space as they are both meant to occupy the nearest possible position.
The standalones' features are outdated compared to Ultrapack and I can't be bothered to update them unless it is a bug.
 
Ultrapack has all updated features of all U.I. enhancements.

It also removes alot of redunancies in vanilla BTS codes, which involves many calculations for no reasons, or unnecessary loops.

In short, it may actually run faster than vanilla BTS even with the added features...

There are codes from vanilla BTS which are removed for the resource table.
You won't find any reference to them in Ultrapack, because they are simply "removed" rather than commented off. (It is not my style :D)

One day, I may release the Trackers together as a standalone pack, but don't bet on it anytime soon.
 
Of course, it occurred to me to move the button, they are not two of each other. Just tell me which file name entries ... I changed a few numbers , but without success. I'm not a programmer and do not know where to look. You are doing a good job , but I want out of your ultra mega pack a few things :(
 
Code:
## Trackers ##
		iBtnX += iBtnAdvance
		screen.setImageButton( "WonderTrackerButton", ArtFileMgr.getInterfaceArtInfo("INTERFACE_WONDER_TRACKER").getPath(), iBtnX, iBtnY - 2, iBtnWidth, iBtnWidth, WidgetTypes.WIDGET_GENERAL, 7100, 1 )
		screen.hide( "WonderTrackerButton" )

		iBtnX += iBtnAdvance
		screen.setImageButton( "WorldTrackerButton", ArtFileMgr.getInterfaceArtInfo("INTERFACE_WORLD_TRACKER").getPath(), iBtnX, iBtnY - 2, iBtnWidth, iBtnWidth, WidgetTypes.WIDGET_GENERAL, 7100, 2 )
		screen.hide( "WorldTrackerButton" )

		iBtnX += iBtnAdvance
		screen.setImageButton( "ResourceTrackerButton", ArtFileMgr.getInterfaceArtInfo("INTERFACE_RESOURCE_TRACKER").getPath(), iBtnX, iBtnY - 2, iBtnWidth, iBtnWidth, WidgetTypes.WIDGET_GENERAL, 7100, 3 )
		screen.hide( "ResourceTrackerButton" )

		iBtnX += iBtnAdvance
		screen.setImageButton( "GeneralTrackerButton", ArtFileMgr.getInterfaceArtInfo("INTERFACE_GENERAL_TRACKER").getPath(), iBtnX, iBtnY - 2, iBtnWidth, iBtnWidth, WidgetTypes.WIDGET_GENERAL, 7100, 4 )
		screen.hide( "GeneralTrackerButton" )

		iBtnX += iBtnAdvance
		screen.setImageButton( "SpecialistTrackerButton", ArtFileMgr.getInterfaceArtInfo("INTERFACE_SPECIALIST_TRACKER").getPath(), iBtnX, iBtnY - 2, iBtnWidth, iBtnWidth, WidgetTypes.WIDGET_GENERAL, 7100, 5 )
		screen.hide( "SpecialistTrackerButton" )

		iBtnX += iBtnAdvance
		screen.setImageButton( "AirTrackerButton", ArtFileMgr.getInterfaceArtInfo("INTERFACE_AIR_TRACKER").getPath(), iBtnX, iBtnY - 2, iBtnWidth, iBtnWidth, WidgetTypes.WIDGET_GENERAL, 7100, 6 )
		screen.hide( "AirTrackerButton" )
## Trackers ##

This determines position of tracker buttons

@Terapack
Just downloaded. Nothing wrong, it can't be empty when it is almost 10mb

Also, the one with U.I. enhancements is Ultrapack, not Terapack
 
More tweaks to Regicide:

After some playing around, I realised that the Great General Unit alone, does not have attack animations.

So now the King is actually spawned as a Unit with GG attached.
Early: Swordsman
Middle: Knight
Late: Rifleman

Unit Artstyle applied.

I also removed the defense only from it, so you can take it go around whacking merrily.
If it died, that's it, so up to you to take the risk.
Thus, attacking promotions are also open to it now.

A.I.
Spoiler :
Code:
			<UnitAIs>
				<UnitAI>
					<UnitAIType>UNITAI_CITY_COUNTER</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_CITY_SPECIAL</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_CITY_DEFENSE</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
			</UnitAIs>
			<NotUnitAIs>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK_CITY</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
			</NotUnitAIs>

Traits Promotions:
Spoiler :
Code:
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_AGGRESSIVE")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_COMBAT1"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_PROTECTIVE")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_CITY_GARRISON1"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_EXPANSIVE")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_MOBILITY"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_IMPERIALIST")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_DRILL1"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_CHARISMATIC")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_LEADERSHIP"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_SPIRITUAL")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_MEDIC1"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_INDUSTRIOUS")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_ACCURACY"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_ORGANIZED")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_FLANKING1"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_PHILOSOPHICAL")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_MARCH"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_CREATIVE")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_BARRAGE1"), True)
		if pPlayer.hasTrait(gc.getInfoTypeForString("TRAIT_FINANCIAL")):
			pUnit.setHasPromotion(gc.getInfoTypeForString("PROMOTION_CITY_RAIDER1"), True)

Thus, in general, A.I. will still use it mainly for defensive purposes and not suicide missions.
The rest is up for balancing.
 

Attachments

  • Early1.JPG
    Early1.JPG
    149.2 KB · Views: 207
  • Early2.JPG
    Early2.JPG
    166.6 KB · Views: 216
  • Mid1.JPG
    Mid1.JPG
    152.1 KB · Views: 256
  • Mid2.JPG
    Mid2.JPG
    137.6 KB · Views: 243
  • Late.JPG
    Late.JPG
    154.5 KB · Views: 261
Platypedia Updates

Improvement Infos
Added a chunk of infos to list the criteria to allow to build the improvement.
Note the difference between "Valid with" and "Requires"

Requires:
Must have this to build X, functions like AND

Valid with:
This allows users to build X, but it is not a requirement, functions like OR

With reference to Farm:
1) Farm must require Irrigation to be built
2) Farm must require Flatlands to be built
3) It can be built either on Grasslands or Plains
4) Or it can be built on any terrain with Freshwater (Ice excluded)

Thus, if it is a Tundra Flatland or Desert Flatland, Farm cannot be built there, since it is neither Grass or Plains.
However, if it carries Freshwater, Farm can be built there.
 

Attachments

  • Civ4ScreenShot0000.JPG
    Civ4ScreenShot0000.JPG
    84.5 KB · Views: 106
  • Civ4ScreenShot0001.JPG
    Civ4ScreenShot0001.JPG
    91.7 KB · Views: 85
  • Civ4ScreenShot0002.JPG
    Civ4ScreenShot0002.JPG
    92.4 KB · Views: 88
Financial Victory

Civ4ScreenShot0006_zps2a504153.jpg


Civ4ScreenShot0000_zps4c0e68ba.jpg


Team Victory, 100000 Gold is total gold of whole team, adjusted by game speed.
Rival condition is just to irritate you :D
 
Back
Top Bottom