[Map Script] PerfectWorld.py

I think it must be possible. But I think cephalo has decided that it's a slippery slope to start putting option buttons in his map script. He's got way too many options to put them all in the dialogue screen, so what ones should he put in? I think he's decided it's all-or-nothing.

Sure, I'd like to see option boxes for some of the more important settings, like land percentage, and maybe some climate settings. Low/medium/high sea level would be enough.

But since I'd still play with the other options within the script file, it's really not that big a deal.
 
In case it was missed:

Is there a way to move the position of the equator (i.e., to place the equator near the bottom of the map) ?

Thanks.

In theory this can be changed, but to be honest I haven't tested it.

Look for this code in the generateTerrainTypes function:
tm.GenerateTempMap(80,-80)
rm.GenerateRainMap(80,-80)

Those hard coded numbers are the top and bottom latitudes. If you change them, you should get what you want, or it will just crash. :crazyeye:

All I know is that at one time I wanted to be able to change that. :)
 
Look for this code in the generateTerrainTypes function:
tm.GenerateTempMap(80,-80)
rm.GenerateRainMap(80,-80)

Those hard coded numbers are the top and bottom latitudes.

Thanks, that helps.
So, if I wanted the map to go just below the equator (and not below the "Antarctic Circle"), I might change it to:
tm.GenerateTempMap(80,-10)
rm.GenerateRainMap(80,-10)
I'll try it.


??? That kind of goes against the definition of an "equator".

If I drew you a map of Europe and Northern Africa (down to the Congo basin), wouldn't the equator be at the bottom of the map?
 
Tried that, and it didn't hang, but I got a map with grassland on ALL flat tiles. I.e., no trees, tundra, plains, or desert.

Any further idea?

Ah, that sounds like a map crash. In your Civilization.ini file, turn the 'HidePythonExceptions' to 0. This will pop up with the exact reason for the crash. Also, keep in mind that once in a blue moon PW does crash normally, so try it several times.
 
Ah, that sounds like a map crash. In your Civilization.ini file, turn the 'HidePythonExceptions' to 0. This will pop up with the exact reason for the crash. Also, keep in mind that once in a blue moon PW does crash normally, so try it several times.

It, uh, seemed to have many complaints.

on lines 4080, 2545, 2704 TerrainMap has no attribute 'cm'
on lines 4074, 2106, 2293, 3507, 2483 'int' object is not callable
on line 4039 TerrainMap has no attribute 'terrainMap'
on lines 3639, 3516 list index out of range
on lines 39022, 2031 RainfallMap instance has no attribute 'rainMap'
on lines 3801, 1502 unsupported operand type (s) for +: 'NoneType' and 'int'

Are all these resulting from that pair of changes, or are some of these typical of the script's healthy operation?
 
It, uh, seemed to have many complaints.

on lines 4080, 2545, 2704 TerrainMap has no attribute 'cm'
on lines 4074, 2106, 2293, 3507, 2483 'int' object is not callable
on line 4039 TerrainMap has no attribute 'terrainMap'
on lines 3639, 3516 list index out of range
on lines 39022, 2031 RainfallMap instance has no attribute 'rainMap'
on lines 3801, 1502 unsupported operand type (s) for +: 'NoneType' and 'int'

Are all these resulting from that pair of changes, or are some of these typical of the script's healthy operation?

Lol, no that's a disaster. What's the first thing that happened? In the ini file you might turn on logging as well to see the PythonErr.log file to remember what happened first. I'm thinking that I abandoned that functionality a long time ago, but I'm still not sure...
 
After I got home from work I tried it out, and the problem is that for some dumb reason the range has to include all of the wind direction zones. I can't explain it, it was a long time ago when I was young and foolish. :lol:

Anyway, the only way I ended up testing it, was to decide the question of where the top and bottom of the map should land in the arctic or antarctic circle. Sorry! I am working on a new map script that will be much more soundly put together, incorporate lessons learned and will ultimately replace PerfectWorld.
 
I am working on a new map script that will be much more soundly put together, incorporate lessons learned and will ultimately replace PerfectWorld.

Okay - thanks for pursuing it with me.
If you don't mind, can this serve as my request/suggestion that your next script allow definition of latitude, and also that it have a way to turn off cylindrical wrap-around?
Thanks much. It's still a great script!
 
Okay - thanks for pursuing it with me.
If you don't mind, can this serve as my request/suggestion that your next script allow definition of latitude, and also that it have a way to turn off cylindrical wrap-around?
Thanks much. It's still a great script!

Yes, so far it handles arbitrary wrapping and I will definately allow any combination of latitudes.

You might consider following that bug, it might just be a couple of simple oversights on my part. If you can program it might still be possible.
 
You know, I've been trying to figure out why I've done terribly on just about every game I've played since I started using this map script.

I finally figured it out. 90% of the time at the start I'm in the middle of a massive desert or completely surrounded by jungle.

Back to Tectonics I think.
 
You know, I've been trying to figure out why I've done terribly on just about every game I've played since I started using this map script.

I finally figured it out. 90% of the time at the start I'm in the middle of a massive desert or completely surrounded by jungle.

Back to Tectonics I think.

Sorry if you think PW is a bit harsh, it definately slows the game down somewhat on the default settings since that's what I prefer. If you want to lighten it up some, you can adjust many things with the tuning variables near the beginning of the script. To address your complaints specifically find these variables:

self.DesertPercent = 0.06 - set this value lower for less desert.

self.JungleTemp = .6 - set this value higher for less jungle

Also, there's nothing wrong with Tectonics. :) Before I made my own maps I couldn't stand to use anything else.
 
:sad: + :sad: (= 13 char)

actually, it might be possible, but since I have no idea how it would be done at this time, I'm sure it would be alot of work, and I'm juggliing a couple of other projects right now.
 
Back
Top Bottom