Platyping's Python

Since plots have x and y co-ordinates, it will be easy to divide the map into 2 based on x.
Then scroll through all cities built and add something if belong to lower x side, as well as new cities built.

But since the map is round, how you define which side is west

How about this:
If the map is 100 x 100, no matter where the Gateway is built, take the x-co-ord of Gateway city and - 50 and consider that as west
But if I do it this way, you may end up benefiting the others more than yourself if it is built on most western side of your nation

P.S.
Also, I will need the artwork lol
 
Impenetrable City

Walls of Babylon
Spoiler :

Civ4ScreenShot0046.jpg


National Wonder

Artwork by veBear
 
Hmm, the graphics? I not an artist lol. That will need the help of others :D
 
Yummy wonder

Banaue Rice Terrace
Spoiler :

Banaue.jpg


Same rules apply similar to normal farms:
True if got fresh water
Else, if grass or plains, true if irrigated or player has "no irrigation required" tech

Thus, you will still not be able to build on desert or tundra hills without fresh water for instance.

Not sure if anyone interested in building farms on hills, but the codes can be easily modified to allow building farms on deserts, tundras etc or used for other improvements.

No idea if anyone builds wheat and corn on terrace either, but having just rice as a bonus seems weak, so...

Can't find an artwork for rice terrace, so end up using macchu picchu's
 
Only use I find for that is to spread irrigation to other farms when the only plot between the 2 farms is a hill lol.
Farms look nice on hills though :D

Else, I rather build my mines hoping to find resources.
 
Since plots have x and y co-ordinates, it will be easy to divide the map into 2 based on x.
Then scroll through all cities built and add something if belong to lower x side, as well as new cities built.

But since the map is round, how you define which side is west

How about this:
If the map is 100 x 100, no matter where the Gateway is built, take the x-co-ord of Gateway city and - 50 and consider that as west
But if I do it this way, you may end up benefiting the others more than yourself if it is built on most western side of your nation

P.S.
Also, I will need the artwork lol

There is artwork, if its not on the site its definatly in a ton of mods, computers currently down so I cant pull it out of mine at the moment, but if you cant find it i can get it to you once its back up

Also i was thinking just your cities, not opponents as well, since that would seem to be more realistic
 
The main question is, how to define what is west?
Any plot with x less than WonderCity?
Any plot with x less than Capital?
The first 2 are easily implemented, but the AI won't understand and may build the wonder in most western end of empire.

A reasonable one will be take the most western city and most eastern city and find mid point. But if the player has 1 city far off from his main empire, then the mid point isnt accurate.

Also, there are cases where half the continent is at the western end of the map, but the other half is at the eastern end, because the map is flat, but the world is round.


Another Skyscrapper:

Willis Tower
Spoiler :

Civ4ScreenShot0048.jpg


Basically, a All-In-One Corporation HQ which adds 1 gold instead of 4 gold per city.
However, no income under certain civics situation.

Artwork by stolenrays


Updated Megapack with the 4 new wonders.
Total:
55 Wonders, 16 Projects
 
:) Terrace model is not me but it is very good model. BTW your code is very good too. I wil use it :)

Patience with model for you :( I´m very bussy now
 
I get what your saying about west, and for the first problem i dont see one, if you build it at the western most point of your empire thats your fault, build it at the east...but as for if its split up then im not sure how to fix that

quick random question, do yuou know anything about java? Im taking a class on it in school and it seems similar to python, are there any real differences in it? And im assuming java can't really be used for civ, but it seems like it would help learning python
 
1) If you build it at most eastern point, effectively that means it affects all cities. Then how is it called a western expansion?
2) Humans can read english, AI don't

Still have memories of java. I have knowledge of C++, C and took a simple conversion course to java. Then I learn python myself by reading tsentom's codes and figuring out what they are trying to do.

For me it is pretty simple because the basic ideas are the same.
How for loops work, how if else statements work, case sensitive, indentions, integers, booleans are all common among most programming languages.
The only tough part for me was figuring out all those civ-specific commands like gc.getPlayer(xxx) until The_J gave me a website with most of the civ commands and told me about setting python exceptions on.

By the way, I started exploring python end Dec where I started designing my own traits, so this is roughly my 50th day in python :goodjob:
The best way to learn programming is, do some hands-on experiments yourself. It is better than reading a book 50 times.

Most important part of programming is, get the pseudo code right. No point writing a program that runs smoothly, but doesn't do what you want it to do, or fail to do under certain conditions
 
Goooooaaalllllllllllll

Wembley Stadium
Spoiler :

Wembley.jpg


CiV social policy
National Wonder

Initially meant to be excess happiness => extra research, but can't find a suitable science building, so end up as extra income.

Artwork by Hrochland
 
1 time effect or continuous effect?
Whatever, nice idea :).

quick random question, do yuou know anything about java? Im taking a class on it in school and it seems similar to python, are there any real differences in it? And im assuming java can't really be used for civ, but it seems like it would help learning python

All programming languages are in general the same. If you learned one, you'll be able to adapt to all the others on your own (just needs some time).
In civ4 we're just restricted to Python because it's the only thing built in. Theoretically you could call a Java app from within Python...but you could also overdo it with the complexity of the stuff :D.
 
Continuous effect:
Excess Happiness = Sum of Happiness in All Cities - Sum of Unhappiness in All Cities
(There is a command to calculate this directly, so this is pretty much a 5-line-code wonder:goodjob:)
25 Gold each excess happiness is added directly to player's gold, without modifications from banks etc.

I was thinking at late game, 10 happiness = 250 gold, I doubt it will be OP?
 
Great Explorer Award

Padrao dos Descobrimentos
Spoiler :

Civ4ScreenShot0008-4.jpg


World Wonder
Cannot be Built
Granted Free

Requires:
1) Access to All Players
2) Optics
3) Minimum 60% Water Tiles
4) Minimum 2 Land Areas

3 and 4 are based on the maps, so this wonder wouldn't spawn on single continent maps, although a small island is still a different land area

Artwork by Hrochland


Stand Your Grounds

Pena National Palace
Spoiler :

Palacio.jpg


Another wonder useful only with Drafting Civics
Although it allows you to draft multiple times per city, you are still restricted to maximum number specified by Civics and of course, everytime you draft, the population still drops

Artwork by Hrochland
 
Great Explorer Award

Padrao dos Descobrimentos
Spoiler :

Civ4ScreenShot0002-3.jpg


World Wonder
Cannot be Built
Granted Free

Requires:
1) Access to All Players
2) Optics
3) Minimum 60% Water Tiles
4) Minimum 2 Land Areas

3 and 4 are based on the maps, so this wonder wouldn't spawn on single continent maps, although a small island is still a different land area

Artwork by Hrochland


Stand Your Grounds

Pena National Palace
Spoiler :

Civ4ScreenShot0003-6.jpg


Another wonder useful only with Drafting Civics
Although it allows you to draft multiple times per city, you are still restricted to maximum number specified by Civics and of course, everytime you draft, the population still drops

Artwork by Hrochland

Many thanks for that. Very nice job :goodjob:

Could you add up one more seafaring wonder?

Sagres Compass Rose

Graphics by hrochland ( once more :) ):

Download

My idea is just give one more movement to boats that have this wonder (more like a national wonder) in a coastal city. But I leave it to you to improve it as you like.

Thanks in advance :)
 
@raen glad you like it. Regarding the compass rose, I considered it before, but so far all my works, I cut and paste the text from wikipedia:goodjob:. Can't find a civilopedia source for the Sagres compass rose though, do you have one?

As for adding 1 naval movement, not a problem since it is already done by Magellan's Voyage, so just another cut and paste job. But I will most likely modify it slightly so that it is different from Magellan's benefits.

However, if you only want new units built in the Rose City to get the movement bonus, I doubt it can be done, because only method I know of is changing domain movement for all units. So it is either affect all (including existing ones) or none


Mighty Warriors from Heaven

Temple of Heaven

Spoiler :

Civ4ScreenShot0016-3.jpg


Actually, the most suitable wonder for this would be Shaolin Monastery, since it is all about martial arts, but since there isn't an art for it, here is an alternative.

Artwork by Walter Hawkwood


Edit:
Removed test text from Padrao Text.XML file
Updated Megapack with 3 new wonders
 
Back
Top Bottom