Possible to generate an earth map with random starting positions ?

Iscaran

Chieftain
Joined
Aug 13, 2006
Messages
20
Location
Regensburg, Germany
Thats the question.

I mean, it would be nice not only to play an earth map with predefined starting position of all those nice civilization...but with random starting positions for any number of civilization I want. Look at it as if you would start a single player with a random generated map...but the map is not generated only the starting positions and civilizations are randomly chosen.

Or would it be at least possible to say if I have an earth map with 24 predefined sets to set it that way that 10 or 18 (or any number you wish) of AI factions is randomly chosen and placed on the according positions ?

If this is possible, has anyone done it yet ? Or how would I do that ? Or would anyone like to do that :goodjob: ?

I am certainly not well informed on modding Civ4 in general ... :rolleyes:

Iscaran
 
Try SmartMap map generation script. You can make it use an Earth map as a model for continents shapes and terrain types.
 
It is possible.

On the beggining of WBS file chane civilizations with this:

BeginPlayer
Team=0
LeaderType=NONE
CivType=NONE
RandomStartLocation=true
EndPlayer


and so on
 
Sorry for my delayed answer.
WBS file ? You mean I load up the earth map in Word Builder, then save it and then edit all players with the above ?

You mean instead of this I shall put in what you posted ?

BeginPlayer
LeaderType=LEADER_RAMESSES
CivType=CIVILIZATION_EGYPT
Team=0
PlayableCiv=1
CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_HEREDITARY_RULE
CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
Handicap=HANDICAP_PRINCE
EndPlayer

Then I load the scenario or how do I start the map then ? Can I then still choose Marathon Speed or do I need to change that in the scenario file as well ?

Iscaran
 
Sorry for my delayed answer.
WBS file ? You mean I load up the earth map in Word Builder, then save it and then edit all players with the above ?

You mean instead of this I shall put in what you posted ?

BeginPlayer
LeaderType=LEADER_RAMESSES
CivType=CIVILIZATION_EGYPT
Team=0
PlayableCiv=1
CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_HEREDITARY_RULE
CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
Handicap=HANDICAP_PRINCE
EndPlayer

Then I load the scenario or how do I start the map then ? Can I then still choose Marathon Speed or do I need to change that in the scenario file as well ?

Iscaran

You can edit any earth map in wordpad. Then you delete all 18 or more (if you use 34 players dll) players:

BeginPlayer
LeaderType=LEADER_RAMESSES
CivType=CIVILIZATION_EGYPT
Team=0
PlayableCiv=1
CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_HEREDITARY_RULE
CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
Handicap=HANDICAP_PRINCE
EndPlayer

and put players that I describe in post before
 
Wow, thats pretty cool. I think I see how this works now.

Would it be possible to generate a WBS-file with an earth map and create 30 or so starting positions of which 18 are randomly choosen and then the according civilizations are used ?

Iscaran
 
Wow, thats pretty cool. I think I see how this works now.

Would it be possible to generate a WBS-file with an earth map and create 30 or so starting positions of which 18 are randomly choosen and then the according civilizations are used ?

Iscaran

Oh boy do I want this answer to be questioned.... plz peepz, be interested!
 
Thats the question.

I mean, it would be nice not only to play an earth map with predefined starting position of all those nice civilization...but with random starting positions for any number of civilization I want. Look at it as if you would start a single player with a random generated map...but the map is not generated only the starting positions and civilizations are randomly chosen.

Or would it be at least possible to say if I have an earth map with 24 predefined sets to set it that way that 10 or 18 (or any number you wish) of AI factions is randomly chosen and placed on the according positions ?

If this is possible, has anyone done it yet ? Or how would I do that ? Or would anyone like to do that :goodjob: ?

I am certainly not well informed on modding Civ4 in general ... :rolleyes:

Iscaran

If I am understanding you right I think that the Genghis Kia Giant Earth Map with the 40 Civ MOD that I have adjusted will work for you. Basically there are 34 set starting plots in their mostly historical spots but the Civ's themselves that occupy those plots are random.

Basically it means that there is a starting plot where London, Rome, Babylon, etc would normally be but the Civ starting in that spot is random. You access this map by going though the "Custom Scenario" option and then choose how many Civ slots you want so if you only want 18 Civ for that game then those 18 Civ's will be randomly placed in any one of the 34 starting plots. You can also choose some or all of the particular Civ's you want to play with and their leaders.

Now if you want totally random spots That can be done but the problem is with no set starting plots you could end up with Civ's right next to each other and/or in Alaska or other poor starting positions
 
Brilliant; I've been looking for a way to do this for ages. Many thanks purger.
 
I'd like to reactivate my old topic. This time my question is how do I need to modify the standard 18Civ earth map game so that I can use ALL BtS Civilizations of which randomly 18 (or set number) are chosen and randomly distributed around the set of 18 starting positions of the original Civilizations ?

Is that doable ?

I hope someone will give me a short introduction on the modding steps needed to do this.

Iscaran

P.S.: Be aware I am away for a week so I probably will not post before next monday again.
 
You can do nearly anything you like in a map script, but it takes some practice. See the CvMapScriptInterface.py file for some explanation of the process. You will want to create an Earth map and save it in some file that you can read within the map script. Anything that Python can do you can do in a map script.
 
IC....problem is I have practically no clues about Python apart from that I know its a kind of programming language :cry:

Is there some manual for that stuff - I mean with what would I edit a .py file (notepad ?) what would I need to edit there.

I'd really like the original earth map somehow and would like to add those new civs + allow for a randomized starting scheme (so that for example england can start where the chinese do and vice versa).

If anyone already did this and posted this somewhere I would be as glad to use this.

Thank you very much for the response and hopefully for even more in advance :).

Iscaran

P.S.: Definitely last post until sunday/monday damn business.
 
OK. Thanks for pointing me to the mapscripts.py file. Thought there is no CvMapScriptInterface.py in the BtS folder I found two identical versions in the original Civ4/assets and in the Warlords\Assets subfolders.

I assume I would need to copy this to the BtS assets folder ?

Further reading in this file allowed my to see the gazillion of options available - unfortunately none have much meaning to me and I am lost as to where to start ?

If I understand correctly I also do not edit this file directly - but some other file - with the commands, yet to be found out from the CvMapScriptInterface.py, right ?

Any further pointers please ?
 
the comments at the beginning of MapScriptInterface just explain the order which different overridable functions are called for the whole map scripting process. It's good stuff to know. As for the functions in that file, all of them do the same thing, which is to call the default process whatever it may be. When you create a function in your map script with the same name, the one in mapscriptinterface will NOT be called, but your function will be called instead.

For Python, go to Python.org and download a python IDE. I mostly use IDLE even though it's kindof a piece of junk. The help menu from IDLE has a searchable index for anything regarding the python language.
 
Back
Top Bottom