Platy's Peculiar Pleasant Posh Python

It is hard. Are long-term thinking about other people as a programmers.

I understand this situation:

b_XYZ = gc.getInfoTypeForString("BUILDING_XYZ")
obsoleteTech = gc.getBuildingInfo(b_XYZ).getObsoleteTech()
if ( gc.getTeam(pPlayer.getTeam()).isHasTech(obsoleteTech) == false or obsoleteTech == -1 ):

This your new code seems different. I do not know with the Board.
 
The keyword is active.
Obsolete buildings are not active.
Checking for obsolete tech again is redundant.

Old codes are fond of doing things in inefficient methods.
Ignore them.
 
I'm not from the wise, in addition my English is pretty bad. However, if I understand it, this code will respond to tech obsolete in xml. I understand that correctly?
 
Hi will you think about adding these changes to your work .
 

Attachments

  • Civ4ScreenShot0002.JPG
    Civ4ScreenShot0002.JPG
    109.6 KB · Views: 110
  • Civ4ScreenShot0003.JPG
    Civ4ScreenShot0003.JPG
    134.6 KB · Views: 210
  • Civ4ScreenShot0004.JPG
    Civ4ScreenShot0004.JPG
    102.9 KB · Views: 161
  • Platy UI.zip
    Platy UI.zip
    49 KB · Views: 76
Pesky Barbs Changes

1) Difficulty based on (iBarbarianDefenders in HandicapInfos.xml) - 1

2) Promotions are random, number of promotions based on difficulty
=> Raging Diety gets 4 random promotions

3) Added a Min Elapsed Turns
Barbs don't spawn before iBarbarianCreationTurnsElapsed

4) Raging Barbs increases Number of Barbs by 1 and Reduces Spawn Turns by 10
=> Raging Diety gets 4 of each Unit
=> Raging Diety can Spawn at Turn 0

5) Removed Anarchy and Golden Age checks

6) Changed the way Units are defined so it is easier to tell

7) Allows Naval Units to spawn
 
thank you platy, i love you.


platy i really love your manufactured resources. im using it as a core for my unit an resource system.

got some ideas how to make it even better? maybe some way of showing the AMOUNT for each stockpiled bonus on the main interface? on the sides?
maybe allow consumption of more then 1 bonus per unit?

:)

oh by the way - in the world builder - in city data II in the corporation add - the (+) icon is missing -there's only (-)
 
Because it didn't make sense to have a +All for Corps.
They will just replace each other.
 
Which version of python you use? Python 3.x (x - some most recent version) or some older, i have Python 2.6.2. Uninstall them or 2.6.2 can do job?
 
Barbarian Camps

Features:
Spawns Barbarian Camps around the Map, which will then spawn more Barbarians.
Raiding the Barbarian Camp will yield X Gold.

1) 25% Chance to Spawn a Camp when a new Barb Unit Spawned
2) Every Turn, 25% Chance for a Camp to Spawn a random Unit
3) If there are 2 or less Units in the Camp, they will not move.
4) Raiding the Camp yield 20 Gold, adjusted by GameSpeed

Notes:
1) All variables adjustable.
2) Unlike the original FFH code, the camp locations are saved so every turn it only loops through the camp locations rather than all plots.
3) Currently it loops through all units to find suitable ones to spawn, but if you want it to be more efficient, you can define specific ones for each era like Pesky Barbs.
4) This will be the last request done. Hibernation begins.
 
Thank you so much for Barbarian Camps i must download this!

No hibernation :( i want to ask you something can you write codes here for one trait.

description:

In BTS, in traits.xml, example for financial leaders +1gold on plots with 1gold or more. I want food for frostling trait, +2food on only cold plots (tundra, snow), this benefit for this trait. Please.......
 
Hey. Hard for me to decide if you do not have time for me, or I´am just sent you not valid information, so write here in thread. My new victory requires 30,000 credit, 2x the building XY, 7x bonus number one, and 5x bonus number two and 3x bonus number three. Name is "Enlightened victory". Bonuses on which I am writing you not find in game mode. For that indicate general information as well as a building. I will then try your work edit after. Can you write it for my mod, please?
Thanks
Hroch
 
Back
Top Bottom