Platy's Peculiar Pleasant Posh Python

Many thanks for your support. I think I made a mistake when I started the extensive project without even arranged a python support in a timely manner. Let's try to convince Platyping. These great works are his. I'm not a programmer, but I think that for him to work for fifteen minutes. Everyone know something. In Python is now the king Platy. No doubt about it.

What do you think, Platyping. Will you help me?
 
Too Specific.
Cant be bothered to upload to database.
 

Attachments

  • Civ4ScreenShot0001.JPG
    Civ4ScreenShot0001.JPG
    110.2 KB · Views: 119
  • Victory.rar
    Victory.rar
    24.5 KB · Views: 71
Requirement Script

Features:
Adds a bunch of requirement tags for buildings and units

Code:
################################### Requirement Script ##########################################
## Modified by Platyping
##
## Change Requirement.loadEvents("Mods/RequirementScript/Assets/XML/CustomXML/Requirement.xml") in CvEventManager
## to point to correct location after merging to own mods
##
## <Item> Building or Unit
## <PrereqCivic> Requires Civic
## <iMinPopulation> Requires Minimum Population
## <MinCultureLevel> Requires Minimum Culture Level
## <iMinNationalityRatio> Requires Minimum Nationality Ratio
## <bWar> Requires Team to be at War
## <bPeace> Requires Team to be at Peace
## <bBuiltOnHills> Requires City to be Built on Hills
## <bVicinityHills> Requires Hills in City Radius
## <bVicinityPeak> Requires Peak in City Radius
## <PrereqVicinityTerrain> Requires Terrain in City Radius (AND)
## <PrereqVicinityORTerrain> Requires Terrain in City Radius (OR)
## <PrereqVicinityFeature> Requires Feature in City Radius (AND)
## <PrereqVicinityORFeature> Requires Feature in City Radius (OR)
## <PrereqVicinityBonus> Requires Bonus in City Radius (AND)
## <PrereqVicinityORBonus> Requires Bonus in City Radius (OR)
## <PrereqVicinityImprovement> Requires Improvement in City Radius (AND)
## <PrereqVicinityORImprovement> Requires Improvement in City Radius (OR)
## <AntiBuildings> Cannot have X in City (OR)
###############################################################################################
 
1) Item can now take in Specific Buildings, Building Class, Special Buildings, same for Units
If there are different requirements for terrace and granary class, terrace has to satisfy both, while normal granary only satisfy granary class

2) Modified CvGameUtils so that you can still add customised codes such that it must satisfy both customised code and the requirements code

3) New Tags:
<bBuiltOnHills> Requires City to be Built on Hills
<iMinNationalityRatio> Requires Minimum Nationality Ratio
<bWar> Requires Team to be at War
<bPeace> Requires Team to be at Peace
<AntiBuildings> Cannot have X in City (OR)

Code:
<Event>
	<Item>BUILDINGCLASS_LIBRARY</Item>
	<AntiBuildings>
		<BuildingType>BUILDINGCLASS_GRANARY</BuildingType>
		<BuildingType>BUILDING_BARRACKS</BuildingType>
	</AntiBuildings>
</Event>
Library cannot be built if there is either granary class buildings or barracks, but zulu UB barracks not affected

I don't really agree with this as it makes AI dumb since it will not know building A disables B, but since it is asked so many times, added...

P.S.
All these requirements work but they are not shown anywhere in Pedia or Hover Text etc
Can't be bothered to do that since you can add Help Tag...
 
a song for platy,

platy platy hes our man,
platy platy no one can,
platy play is da king,
he can mod hes platyping,
great great things he makes,
the world of civ he shakes,
hes has a master in python coding,
he makes civ4 worth installing,
hes so cool hes so cool,
yes yes hes mod packs totally rule!

thank you for the new tags dude!
 
Actually there are quite a number of modders around who know python well.
Just that most of them only mod stuff for own mod
 
Been trying out a couple of these components. They all seem interesting.
Regicide lacks the gametext for TXT_KEY_UNIT_FEMALE_GREAT_GENERAL,btw.
Also, it seems that the Mercenaries screen does not work.
 
Regicide
That TXT aint used anywhere, why bother.

Mercernaries
Works as intended, accessible only after you can trade gold
 
The Mercernaries screen does appear but I could not buy units. Also I ran into C++ exceptions and python exceptions related to the AI check. Maybe because of bug mod?
 
Bug Reporting Procedures

1) Screenshot of python exceptions, else very descriptive explanation

2) Whether bug exists in standalone download, combination packs like ultrapack, or only after merging with whatever mod like BUG or personal mod
 
a song for platy,

platy platy hes our man,
platy platy no one can,
platy play is da king,
he can mod hes platyping,
great great things he makes,
the world of civ he shakes,
hes has a master in python coding,
he makes civ4 worth installing,
hes so cool hes so cool,
yes yes hes mod packs totally rule!

thank you for the new tags dude!
Madness lol, nice song/poem, thankyou for all your time platyping...your work and time given are highly valuable to the community.:hatsoff:
 
Back
Top Bottom