How to Map Script?

Great_Scott

aka Cottus Arci
Joined
Aug 2, 2004
Messages
404
Location
Melbourne, Australia
I've searched these forums high and low, and cannot find any data at all on how to edit maps.

Everytime I make changes to the python map file I get the same thing. An all-land map with jaggy rivers, and it crashes often when I go to World Builder.

And i'm editing it with Python 2.4 IDLE.

I'd love to see some info on how maps can be edited... for example I wish to make the terra map's continents different in shape... bigger basically with less water!
 
I don't know python, but the file

CvMapGeneratorUtil

has all kinds of comments in it that spell most of it out it looks like. If you're willing to study it.

If you've been making map scripts, even unsuccessful ones, you probably already know that, but I figure its better to point it out just in case, may be helpful.
 
If you get an all-land map with jaggy rivers . it's because the plot generation crash (i think this is what you try to customize).
To see why it crashed , you should put the debug message on in the CivilizationIV.ini file and check the python log .
to put the debug messages :

; Enable message logging
MessageLog = 1

; Enable the logging system
LoggingEnabled = 1

; Overwrite old network and message logs
OverwriteLogs = 1

; Set to 1 for no python exception popups
HidePythonExceptions = 0

I think there is all needed :confused:

I can't help you to customize the multilayered fractals maps , because i still not tried to customize them . But , i also want to make some modifications in these maps ... so , perhaps later i 'll can help you

tcho !
 
You made a python script error during generatePlotTypes, and if that method has a script error, the default behavior is to generate an all land map (which you can see if you look in the sdk if you'd like).

So follow all of sto's advice, and particularly this one:
; Set to 1 for no python exception popups
HidePythonExceptions = 0

because that will let you see the error in your script in a popup window.
 
Back
Top Bottom