Tsentom1 Python Wonders

tsentom1,

Your Python wonders are really amazing. I'm looking at including a couple in my next release of CivFusion.

There was a forum member named GIR who also had some neat Python wonders but he hasn't been around a while to my knowledge. One of them, Petra, had a neat effect where it would give you a 25% chance of receiving a UB of another civ when you built a building. For example, if you built a Stable, you would have 25% chance of receiving a Ger, even if you were playing Spain or England or any other civ. However, there is a bug in the code. Using this example, let's say you are playing Spain and you have the Petra wonder. You build a Stable and are lucky enough to receive a Ger instead. However, you can still build a Stable, which should not happen. If you receive the UB from Petra, you should no longer be able to build the standard building.

Anyways, I was wondering if I posted the code if you wouldn't mind looking at it and seeing if you could fix it. If not, no worries, but I thought I would ask.

Cheers,
ripple01

In the CvGameUtils File

Code:
	def cannotConstruct(self,argsList):
		pCity = argsList[0]
		eBuilding = argsList[1]
		bContinue = argsList[2]
		bTestVisible = argsList[3]
		bIgnoreCost = argsList[4]

## Petra Mod begins ##

		lgleicheBC = []
		buildingClassType = gc.getBuildingInfo(eBuilding).getBuildingClassType()
		for i in range(gc.getNumBuildingInfos()):
			if ( buildingClassType == gc.getBuildingInfo(i).getBuildingClassType() ):
				lgleicheBC.append(i)

		if ( len(lgleicheBC) >= 2 ):
			if ( eBuilding == lgleicheBC[0] ):
				for i in range(len(lgleicheBC)-1):
					if ( pCity.getNumActiveBuilding(lgleicheBC[i +1])==true ):
						return True

### Petra Mod ends ###

		return False

Gir actually had a partial check, thanks to his and Dresden's code for this

You also need to open up the PythonCallBack XML file and change Cannot Construct from a 0 to a 1
 
I wrote a bonus that boosts the power of your vassals, what's a good wonder to assign it to?

~~~

Trafalgar Square might work (just seeing what already has a model and movie made)
 
Most vassalzed territories come from baltic or adriatic areas.

Hmm, Good point.

However, now I'm thinking it might work better as an ancient/classical era wonder, though - just functionally wise as I can port a minor bonus over that Gir wrote along with the bonus i wrote but it's have to be available by classical to really be useful. So maybe I'll end up using something Roman.
 
The best Elamite building would be the Ziggurat of Susa / Chogha Zanbil but I already have a bonus in mind for that (I just haven't figured out how to code it yet). I also planned to have Elam as a civ in the last version of Thomas' War but it got put in the back of my mind and I ended up leaving them out. Next version, though.

I just realized that if I make any Vassal Bonus wonder it's probably best to make it centered around Feudalism (when you can first make Vassals). I thought earlier cause you could technically make colonies earlier but that would be rare.
 
Added two more:

Hermetic Order of the Golden Dawn

GoldenDawnEdit.jpg


Topkapi Palace

Topkapi.jpg


I still have another one I'll release by the end of the weekend.
 
Amazing, tsentom1
BTW very nice buildings :) who made it?
P.S. many thanks for help

Golden Dawn I took out of Fall From heaven, I'm not sure who made it. Topkapi was in one of the EE2 building packs uploaded by Walter Hawkwood
 
Oh, i forgot. Very, very nice new buildings you got there. Do they work on warlords too?

I forget, did Warlords have the vassal system? Golden Dawn should work if you removed the Espionage Bonus (as warlords didn't have espionage as commerce). I'm going to try to make a pack that has the XML already converted to work in Warlords (just need to find my warlords cd and reinstall it so I can see how the files work).

BTW, I really liked that seed vault you pointed out before. I'm thinking how to best use it.
 
Nice idea with the vassals :goodjob:.

I can turn that into a trait or civic if you want...

Actually most of the wonders can be turned into a trait or civic if people wanted (with a few exceptions, mainly ones only using onBuildingBuilt)
 
I did a slight edit to the Golden Dawn fixing the pre-reqs to my original intent (I thought I didn't know how to check if all religions were founded, but I did so there you go). Now it only needs Calender and Mysticism but all religions must have been founded in the game.
 
I can turn that into a trait or civic if you want...

Actually most of the wonders can be turned into a trait or civic if people wanted (with a few exceptions, mainly ones only using onBuildingBuilt)

Would be interessting, but i think, that some things should be unique.
Hmm, okay, you don't have to combine both in a mod...
hmm, do it, if you have the time.
Great work at all :goodjob:.
 
Sounds great if you can fix these, i really like the Via Appia one, and Machu pichu one.

Turns out my Via Appia update seriously slowed down the game (adding 10-15 seconds between turns) so I'm not going to release it (took it out of Thomas' War as well)
 
Here's a request: How about implementing an effect like the Statue of Zeus that was in Civ3 which would give you a special unit (Ancient Cavalry) every x number of turns. I would assign this to a special Crusader unit for a King Richard's Crusade Wonder in my mod, but you might have an idea for another wonder to tie it to.

Cheers,
ripple01
 
Greatly cleaned up the code of the Sphinx, now much more efficient and succinct.
 
Here's a request: How about implementing an effect like the Statue of Zeus that was in Civ3 which would give you a special unit (Ancient Cavalry) every x number of turns. I would assign this to a special Crusader unit for a King Richard's Crusade Wonder in my mod, but you might have an idea for another wonder to tie it to.

Cheers,
ripple01

Actually, I already have programmed this I just never made a wonder because for some reason I didn't want make a new unit to go with it (even though I have both the code and a crusader - not connected - in my thomas' war mod). Maybe I'll just make King Richard's Crusade. I should scale it for game speed though.

What are good turn intervals for each speed?

I have 1 or 2 I'm finishing up, I'll make it after I'm done with those.
 
If you do, make King Richard's Crusade require a state religion, or perhaps grant +1 XP per state religion building (requiring Theocracy civic to keep active).
 
Back
Top Bottom