Platyping's Python

Version 3.2
This version mainly involves XML changes, for balance and more realistic.

Cultural Output
Cultural Output has been toned down or totally removed for most wonders, because Gigapack and Megapack has "too many" wonders. You do not wish to see a cultural victory before you even go to Industrial Era.
1) Minor adjustments to some like 10 to 8, 8 to 6
2) Defensive ones like Castles, totally remove Culture and replace with Espionage
3) Financial ones like skyscrappers, totally remove Culture and replace with % Commerce

Tech Adjustment
Since the removal of obsolete techs for some wonders, and the addition of the 7th slot in the tech screen, there are some free spaces to shift around.
1) Wonders are shifted based on when they are built in real life.
Helsinki for instance was at Theology, when it was supposed to be built in 18xx
Bolshoi is another which was placed at Drama.
Thus, all these are shifted to higher techs, with cost adjustments and sometimes benefits as well.

2) Wonders are shifted to those that make more sense, usually the modern era ones.
All skyscrappers are shifted out from Fiber Optics, since they have nothing to do with that.
Tourist Attractions like Lotus Temple, Merlion are placed at Advanced Flight since I guess you usually take a plane to visit them.
Sports ones like Wembley, Ericsson Globe are placed at Satellites since people need that to watch on TV
The rest are simply dumped to Superconductors because they simply don't fit anywhere.

3) New Buttons
Magna Carta, Alhambra, Adam Smith, Academy of Gondishaphur
Alhambra and Gondishphur taken from History Rewritten mod

4) New Artwork
Templo Mayor
Spoiler :
TemploMayor.jpg
Artwork by Hrochland


5) Topkapi Palace
Set as World Wonder because it requires checks per turn. Less checks.

Python Changes

Simple changes

1) Golden Gate Bridge
Renamed to Brooklyn Bridge, because GGB is too modern to be placed in STEEL, and the colour of the bridge fits Brooklyn more
Python codes adjusted accordingly

2) Gobekli Tepe
Removed the free Missionaries.

3) Trade Fair of Troyes
Simplified to boost Wealth only, no more Culture, less codes

4) Assembly of Experts
Set as World Wonder because it requires checks per turn. Less checks
Set it at Stealth, no longer requires United Nations, no more callback.

5) Kharbas Caves
Now only provides promotions for Naval Units built in City rather than all cities, too OP for ancient wonder to affect all cities.
No longer requires religion checks.

6) Swords of Qadisiyah
Removed production bonus of nukes since it didn't look nice as it was displaying as "Immobile Units"
Increased Interception penalty from 10% to 15% to compensate.

7) Shock and Awe
Reduced to 2 Movement Bonus

8) Changi Airport
Removed Blitz, it was redundant. It seems that Air Units can do 2 missions so long as they have 2 movement points, with or without Blitz
Fixed Civilopedia where it was saying it gives Mobility, where it should be giving Morale

9) National Aquatics Center
Moved to Satellites.
As a result, it now affects mechanical units as well, since most units at that era are mechancial

10) Mesa Verde
Since it has global effects and hill requirement is not the main essense of the wonder, removed hill requirements.
Thus, no longer requires cannotConstruct callback.

11) Burj Khalifa
Cost no longer increases upon rebuilt, only benefit increases, no longer needs callback

Slightly more complicated changes

1) Magna Carta
Simplified to -1 Unhappiness to All Rival Teams
Removed test codes in standalone
Set as World Project
Spoiler :
MagnaCarta.jpg


2) First Cloned Mammal
Changed Cloning codes to use getUnit rather than the while loop.
Thus, cloning may failed sometimes if it points to a Null Unit, but more efficient than looping through 100 units.
Changed Cloning Text to display "Our XXX has been cloned!" rather than "A XXX has been cloned!" because of AEIOU.

3) Cleopatra's Needle
It is now buildable wonder rather than Granted to Cultural Cities Award
Solves the issue that All 3 may not spawned simply because the owner does not have 3 cities.
Spoiler :
Cleopatra.jpg


4) Semperoper
As a result of Cleopatra's modifications, you get a new wonder for Cultural Award.
Spoiler :
Semperoper.jpg

Artwork by Refar


As a result of these modifications, Megapack no longer has any wonder requiring cannotConstruct callback, set it back to 0.
Megapack and Gigapack updated
 
Alter Oper
Spoiler :
Civ4ScreenShot0002-24.jpg

Well, since there are 4 theatres in Refar's theatre pack, cannot neglect the other 2 :D
Actually I intended to use dacubz's Shanghai Grand Theatre, so that this wonder appears later than the 3 BTS Hit Wonders.
But... oh well doesn't really matter.

This wonder makes sure that the 3 BTS Wonders no longer monopolizes the Hit market.
If a Great Artist is born in any city of yours, you get 1 random Hit Bonus
If GA is born directly in wonder city, you get 2 instead.
If GA is born in other civs, there is still a 50% chance to trigger.

Artwork by Refar


Edits:
Svalbard Global Seed Vault
It didn't take me long to realise this wonder is OP compared to others.
The similar wonder Empire State Building produces 3 random resources, while this was giving 8 fixed plant resources.
Thus:
1) Sugar is out since you don't grow Sugar from seeds.
2) Dye and Wine are out since those are the manufactured products.
So left with Rice, Corn, Wheat, Banana, Spices

To further differentiate between ESB and Seed Vault, I decided to boost ESB as well.
ESB now gives 4 instead of 3, and I removed all the previous constraints.
Previously it will only give those luxury ones, no oil, coal, iron, horses etc.
Thus, now ESB can provide Aluminium, Oil etc.
Kept obsolete check.
 
Pressburg Castle
Spoiler :
Civ4ScreenShot0006-13.jpg

Something simple during 4 hours maintenance of another game :D
When a unit kills an enemy while stationed in a city, the city will restore 10% of its max defense.
If it has 80% maximum defense, it will restore 8% for each enemy killed.
Of course, this will not go over the max.

Artwork by Hrochland


Shifted Neuschwanstein and Matsumoto techs to make space in Mega/Gigapack
Both packs updated
 
Ah I knew it :D
Just post it to see how response goes.
Point taken, most likely change it to affect just that city then :D
 
Please rename it to Pozsony Castle, or at least to Pressburg castle if you don't like the hungarian name
It's a medieval wonder after all
Here is the text I use for it in RFCE:
Spoiler :
<English>[TAB]Pressburg Castle is the main castle of Pressburg (Pozsony in Hungarian), one of the most important forts in medieval Hungary. The massive rectangular building with four corner towers stands on a quite isolated rocky hill of the Little Carpathians directly above the Danube river in the middle of Pozsony.[PARAGRAPH:2]The construction of the current castle of stone started in the 10th century, but it was not finished. Under King Stephen I of Hungary (I. István, 1000-1038), however, the castle was already one of the central castles of the Kingdom of Hungary. It became the seat of a county (Pozsony county), protected the kingdom against Bohemian (Czech) and German attacks (e.g. in 1030, 1042, 1052, 1108, 1146) and played an important role in throne struggles in the Kingdom of Hungary (e.g. struggles after the death of King Stephen I). In 1052 Henry III tried to occupy the castle. However Zothmund a Hungarian soldier, swam to the ships of the invading fleet to drill holes in them, and they were sunk. King Solomon of Hungary had lived here until he was taken to the jail of Nyitra according to Ladislaus I's (I. László, 1077-1095) order. At the same time the old rampart was modernized and the Church of the St. Savior with a chapter and a church school were added. Stephen III of Hungary (III. István, 1162-1172) escaped from his enemies to the castle almost 100 years later.[PARAGRAPH:2]The well-fortified Pressburg Castle was among the few castles of the Kingdom of Hungary to be able to withstand Mongol attacks in 1241 and 1242. As a reaction to these attacks, a huge "tower for the protection of the kingdom" was constructed at the castle building in 1245 immediately next to two older palaces. The tower was actually a huge high residential building. In addition, 7 (genuine) square towers were built into the old rampart and a stone wall was added around the castle proper (i.e. the residential building). The biggest of the rampart towers was at the same time a corner tower of the stone wall. Today it is a part of the castle building - it is identical with the present-day "Crown tower", which is the biggest one of today's four towers of the castle building. It was probably built around 1250 when Knights of St. John were active at the castle.[PARAGRAPH:2]In 1536 (de facto already in 1531), after the Ottoman Empire had conquered a significant part of present-day Hungary, Pressburg became the capital (seat of the Diet and of central authorities, place of coronations) of the remaining Kingdom of Hungary, which was renamed Royal Hungary and was de facto ruled by the Austrian Habsburgs. Consequently, Pressburg Castle became the most important royal castle and the formal seat of the kings of Royal Hungary (who however resided in Vienna normally). At the same time, from the beginning of the 16th century, Pressburg and its castle had to face various anti-Habsburg uprisings in Royal Hungary. For example, troops of Gábor Bethlen occupied the castle between 1619 and 1621, when it was reconquered by imperial (Austrian) troops, and had the royal crown removed from Pressburg Castle till 1622. Between 1671 and 1677, Pressburg Castle was home to an extraordinary court against the Protestants and participants of anti-Habsburg uprisings. Imre Thököly, the leader of another big anti-Habsburg uprising, failed to conquer the castle in 1682-83.[PARAGRAPH:2]In terms of the castle's functions after 1530, the castle was home to selected participants of Diet meetings (including apartments of the king/emperor, which have been already there since the Gothic reconstruction), to some central authorities of Royal Hungary, the county head of Pozsony etc., to the apartment of the Governor of Royal Hungary (usually a brother of the emperor), and since 1552, the crown jewels were deposited here as well - in what is today known as the Crown Tower. Initial and final meetings of the Diet took place in the castle too.</English>
 
Hmm, well I took it directly from Hrochland's thread and that's what he called it.
Usually I just copy and paste its data from wikipedia directly :D

So I guess Pressburg Castle is the old name for it or is there a big issue about it?
 
Hmm, well I took it directly from Hrochland's thread and that's what he called it.
Usually I just copy and paste its data from wikipedia directly :D

So I guess Pressburg Castle is the old name for it or is there a big issue about it?

I don't think there have to be issue about it
Pozsony is the city's historical, medieval hungarian name
Bratislava is the modern, slovakian name (only exists officially since 1920, while Slovakia only exists as a separate country since 1990)

I went with the name Pressburg, because that was the most well-known name for it during medieval time in Europe
And it's probably the most fair solution for both hungarians and slovakians
 
I don't think there have to be issue about it
Pozsony is the city's historical, medieval hungarian name
Bratislava is the modern, slovakian name (only exists officially since 1920, while Slovakia only exists as a separate country since 1990)

I went with the name Pressburg, because that was the most well-known name for it during medieval time in Europe
And it's probably the most fair solution for both hungarians and slovakians

Name it Pozsony Castle and let Hrochland burn in hell. :devil:
And yes, it's the most accurate one so it should be either Pozsony or Pressburg, but definately not Bratislava. It was built in the 9th century, when even Hungary didn't stand as a massive state, and the idea of 'Slovakia' haven't actually come to mind until the late 19th century (so roughly a thousand years later).
 
Nitram, I know you were trying to joke with Hrochland, but you are not helping :P
A couple highlights though against using the term Bratislava:

"The city got its modern name in 1919. Beforehand it was mostly known by its German name, Pressburg..."
"The city's modern name is attributed to &#317;udovít &#352;túr's misinterpretation of Braslav as Bratislav when analyzing medieval sources, thus coming up with the term Bratislav.
During the revolution of 1918-1919, the name 'Wilsonov' or 'Wilsonstadt' (after the American president) was proposed by American Slovaks. The name Bratislava, which was used before only by some Slovak patriots, became official in March 1919..."
"Before World War I, the city had 42% German, 41% Hungarian and 15% Slovak population (1910 census). After World War I and the formation of Czechoslovakia on October 28, 1918, the city was incorporated into the new state despite its representatives' reluctance. The dominant Hungarian and German population tried to prevent annexation of the city to Czechoslovakia and declared it a free city. However, the Czechoslovak Legions occupied the city on January 1, 1919, thereby making it part of Czechoslovakia. The city became the seat of Slovakia's political organs and organizations and became Slovakia's capital on February 5. On February 12, 1919 the German and Hungarian population started a protest against the Czechoslovak occupation, but the Czechoslovak Legions opened fire upon the unarmed demonstrators. On March 27, 1919, the name Bratislava was officially adopted for the first time. Left without any protection after the retreat of the Hungarian army, many Hungarians were expelled or fled and Czechs and Slovaks took their houses and moved to Bratislava. Education in Hungarian and German was radically reduced"

Before 1919, the city was under hungarian dominance for more than 1000 years!!
The castle's history and life are mostly tied to that period. Obviously mostly to the medieval period.
Even if naming is a small thing, I just can't see it called Bratislava castle, at least not in a historical game...
 
Point taken.
Name changed to Pressburg Castle.
Benefit nerfed from All Cities to just Wonder City.
Refer to screenshot above.
Thanks to AbsintheRed for the Civilopedia text, (although I cut it short :D)

Gigapack will be updated only when there is a new work

Cleopatra's Needle:
Fixed typo error in civilopedia, "Builds" instead of "Builts".
Lazy to take screenshot for that.
 
That seems a bit low - just one city? i mean how often is a city being attacked? Not often enough for a wonder to be built for just that one. I would put the espionage points down a bit, and then possibly have other cities get a smaller bonus if they have a castle? Possibly if a city has a castle (and you own the wonder) you get to restore defence, but capped at 10%
 
It is capped at 10% by default since legendary city = 100% defense.
Restore 10% of that = 10% defense.
Of course I can have it either 10% just in wonder city or 5% in all cities.
Whether or not they have castle is not so important since that is just a small issue.

Usually when AI whack you, they will bombard your city and then suicide their catapults.
If 5 catapults died, basically you have restored 50% of the max defense.
If it is influential city with 80% defense, you will have restored 40% defense, then since their catapults have already suicided, unless they have more catapults, this city is most likely gonna survive.
Especially if the city has walls and castles, getting that 40% down to 0 again is gonna take pretty long with half or all the catapuls dead.
Which is why, if it is applied to all cities, it is indeed quite OP as The_J mentioned.

Of course, if you prefer the 5% all cities instead, I can always provide the python file, just a simple change :D
 
Sorry to bother the thread but I have an odd problem:

Code:
def renameCity(ePlayer, pCity):
        """
        Called from CvEventManager.onCityAcquiredAndKept().
        Checks plots by coordinates and city ownership; sets the name accordingly.
        """
        tCoords = getCoords(pCity)
        name = ""
        if tCoords == (83, 27):
                if ePlayer == eByzantium: #CivPlayer.playerID("Byzantium")
                        name = "Constantinople"
                elif ePlayer == eTurkey: #CivPlayer.playerID("Turkey")
                        name = "Istanbul"

        if dAztecNames.has_key(tCoords):
                if ePlayer == eAztecs: #CivPlayer.playerID("Aztecs")
                        name = dAztecNames[tCoords]
                else:
                        name = cityNameDict[tCoords]
                        
        if name:
                setName(pCity, convertCityName(name))
                return True

this code checks for city name exceptions and changes accordingly, and works perfectly... when it is the human that takes the city... If the AI takes the city, it does not change the name? I checked the debug logs, and the onCityAquiredAndKept event triggers for both human and AI but I'm stumped... any ideas?
 
It may be helpful if we know how you define eByzantium, eAztec etc.
I remember you took that from elsewhere, it may be possible that only triggers for humans?
 
It defines as per senario, the enums are no problem! I did some more testing and:
A) the function is triggered
B) It goes down the right path when the human takes a city.
C) When a AI takes the city it goes down the wrong path, that is eOwner actually was the previous owner of the city
D) the same effect occurs with the turkey power (onCityAquiredAndKept) if it's the AI takes takes a city the previous owner gets the culture!

Therefore I have decided that, onCityAquiredAndKept is bugged, maybe due to some weird AI turns logic. I have made the decision to move the codes to onCityAquired in the hope that due to it having BOTH iPreviousOwner and iNewOwner, the bug will not exist. So this serves as a warning, don't use onCityAquiredAndKept!
 
I know right... Makes you wonder how many more mods have bugs caused by this, that were not discovered by lack of AI testing...

We should probably document this somewhere so people can
A) try and find the cause/fix it via SDK
B) avoid falling victim to it!

Edit: Sure enough, everything works perfectly when the codes are moved :rolleyes:
 
Back
Top Bottom