Platyping's Python

What did you do that went wrong?
If all you do is change the name, it should be ok

I changed the PROJECT_THEORY_OF_EVERYTHING (or whatever it was) to PROJECT_THEORY_OF_REALTIVETY and i looked in python and i changed the one time it said PROJECT_THEORY_OF_EVERYTHING to PROJECT_THEORY_OF_REALTIVETY

and it crashes): Ill probably delete it and re-enter it with just changing name
 
Try it with the original TOE first
1) Try as a separate mod, it should work
2) If you transfer it to your own mod, try again, you may have added the art files to wrong directory for instance
3) If 1 and 2 work, but after you changed TOE to TOR, then it does not work, you may have missed out some TOE entries. There are TWO python files by the way, so there shouldnt be just ONE TOE entry
 
quick question, does python not work with worldbuilder. I have the ice hotel tsenton1 made, and when i add it via worldbuilder to a city, the ice/tundra around the city doesnt change (it is suppose to add gold to it). Either i have the python wrong or worldbuilder additions dont work. It didnt work with your lotus temple either. But it did work with Sprigfield armory. So what im guessing is when you place a wonder, if it has an imediate effect it doesnt work, but if it has one later it does

Either that or my python code is messed up
 
Hi :) Is possible write some what enable capture city style choosing?
Example.
I´m european - eu_cityset
I build wonder XY
when i capture arabian city, will new city looks as arabian
variant B/ I capture city - dialog say: do you want convert city to the european, or may city stay oriental...

Is it possible?
 
@dacubz145 as far as I know, python codes for ice hotel, old lotus etc are triggered on building "built". If you give it to the player free, then it is not counted as built, so the codes will not trigger.

Springfield has codes that trigger when units are built, thus, whether the springfield is built or given free does not matter.

@Hrochland doubt it is possible via python, SDK may be able to do that
 
Torre de Belem
Spoiler :

Belem.jpg


What it does:
Adds 25% defense in all coastal cities, which cannot be bombarded away.

What it actually does:
Adds invisible feature in all coastal cities, which adds the 25% defense.
Well, not actually invisible, it is floodplains :goodjob:

Of course, when rival takes over the city, 25% is gone.
But if Belem owner takes over rival's coastal city, 25% will be there

Artwork by Hrochland
 
Added a Notes to Modders section for modders who have difficulties adding/changing wonders to their personal mods
 
Torre de Belem
Spoiler :

Civ4ScreenShot0030.jpg


What it does:
Adds 25% defense in all coastal cities, which cannot be bombarded away.

What it actually does:
Adds invisible feature in all coastal cities, which adds the 25% defense.
Well, not actually invisible, it is floodplains :goodjob:

Of course, when rival takes over the city, 25% is gone.
But if Belem owner takes over rival's coastal city, 25% will be there

Artwork by Hrochland

I like this one, does the pernement defense exclude gunpowder units?
 
Take it as planting a forest in the city. The defense bonus cannot be bombarded to 0 unlike walls or culture. And doesn't care whether the attacker is advanced units like tanks and planes, or crappy ones like warriors
 
Take it as planting a forest in the city. The defense bonus cannot be bombarded to 0 unlike walls or culture. And doesn't care whether the attacker is advanced units like tanks and planes, or crappy ones like warriors

I like that, dont like that in xml its impossibble (atleast i havent found a way) to cive a city a defensive bonust versus gunpowered units as well:mad:


every thought about doing events?
 
not for the time being, lazy to explore the effects of events
 
By the way dacubz145, since you are using Ice Hotel in your mod, I remember it was set as national wonder by default. I advise you to turn it to world wonder to minimise exploits.

@stolenrays thanks. I browsed through your wonders as well to look for inspirations^^ Usually I look at the wonder name, and go to wiki to read abit about what is the purpose of the wonder and think of something to do. But my ideas are getting saturated lol (limited brain cells :crazyeye:), so if you have some ideas for your wonders, that will be nice. However, I noticed some of your wonders are linked to recent political leaders, which is why I did not choose them, because they may be sensitive to some players.

Edit: By the way, that time when i was making Swords Of Qadisiyah, I downloaded the standalone version which contains all the artdefine XMLs etc, but the button was pointing to a folder which does not exist in the standalone. In the end, I went to download your Kuwait mod to get the button. As for Cyrus Cylinder, I take it directly from the same mod, so I am not sure if the button is missing in the standalone either
 
Hi platyping,

I have an idea/request for a project (and I have a great button for it I can upload as well if you are interested). I'd like to see a Silk Road project. I don't have an effect in mind, but obviously something with trade routes would be appropriate. (maybe +1 gold per trade route? I don't think that is something doable in XML and would be somewhat unique.)
 
Hmm, as a project, it is not linked to any city. Thus, x gold per trade route refer to which city?

If there are some ideas related to bonus silk, that would be nice as well
 
1) Knossos Labyrinth changed from 8% damage and cannot heal in adjacent tiles to simply 10% damage.

Reason: AI doesn't know they cannot heal, so they end up as sitting ducks trying to heal

2) Neuschwanstein buffed from 10% return damage to attackers to 20%.
Sounds weak considering it only affect wonder city. Can change it to affect all cities instead, but felt that this sounds more logical.

3) mourndraken has made some wonderful Movies for several wonders including Labyrinth of Knossos. You can find out more about his works here for links to his movies

2nd Bored + Just for Fun Wonder:

Montreal Biodome
Spoiler :

Civ4ScreenShot0013-2.jpg


Animal version of Tsentom's Crusade.
Spawns a random animal with strength = (base strength + 3) * current era, where ancient era = 0, future era = 6.
(You know, with advanced technology, you understand them better and feed them food with more nutrients)

A future era bear will have 36 strength, lion 30 strength. Looks high, but they don't get defensive bonus.

Because they are animals, they cannot enter cultural borders, as a result: they are stuck in the city, since all adjacent tiles are cultural tiles. Makes sense to keep them in the biodome. We don't want lions roaming around eating workers. Thus, purpose of them is defend the biodome city. Since they cannot enter adjacent tiles, they cannot attack anything, so they are your holy defenders :goodjob:

Bears are so huge, they can flatten tanks => Ambush promotion
Lions roar very loudly, horses are scared => Formation promotion
Panthers are so dark, they ambush you in the dark without notice => Drill I
Wolves attack in packs and are agile => Immune to first strike => Flanking II

If the city has enough unit production experience, the animals get additional promotions when born.
For instance, barracks give 3 exp, enough to level up once, so animals get Combat I.
Able to get Combat I to VI this way.

Animals do get experience in combat, but because nothing is added to them in Promotion XML, they cannot earn any Promotions, feel free to change that if you like.

Lastly, I didn't bother to test whether you can transport them via air or sea lol

Artwork by Hrochland, tried getting a button of biodome itself but it just doesn't fit into a square nicely, so end up taking a pic of lion

Yeah, you know how bored I am now:borg:

Oh yeah, this is a National Wonder
 
I believe this could be made a very interesting wonder, and since it would be so interesting, I'm sure someone would be willing to take a request for it (HROCHland? civ-addicted?)

Maybe the effect could slow down the process of global warming (if possible only within owners cultural borders) by maybe 25 % or so.

That would be prety interesring gotta agree, i think possibly being able to build farms on snow and tundra fits better plus i usually disable global warming since changing a grassland into a desert is a bit drastic and annnoying
 
Back
Top Bottom