[Map Script] SmartMap

Hey, found a bug...

I was using regenerate map over & over and after about three times of doing that it created a map in which everyplayer started on top of water :eek: , we had to crawl out of the oceans and onto the shore before we could settle down. hehe.
 
AvianAvenger said:
Hey, found a bug...

I was using regenerate map over & over and after about three times of doing that it created a map in which everyplayer started on top of water :eek: , we had to crawl out of the oceans and onto the shore before we could settle down. hehe.

That's a civiv bug, they aren't properly cleaning up memory during regenerate. Unfortunately there's nothing I can do about that.
 
Very nice! :)

May I offer one suggestion: what I would like is an option to reduce the frequency of the "industrial" bonus resources (I'm going to talk about oil here; but this applies also to uranium and possibly even coal, aluminum etc)?

It would be nice to be able to autogenerate two kinds of maps:
1) a few oil-rich areas to fight over (on water-rich maps it'll be crucial to control oil to be able to build a navy). You already have health and happy clumping, why not oil? :)
2) a "one oil" per player type of map, where you need to find "your" plot of oil and protect it?

On most maps there's simply too many oil bonuses to be able to realistically deny a large opponent these interesting bonuses!

Thanks again :)
 
kazapp said:
Very nice! :)

May I offer one suggestion: what I would like is an option to reduce the frequency of the "industrial" bonus resources (I'm going to talk about oil here; but this applies also to uranium and possibly even coal, aluminum etc)?

It would be nice to be able to autogenerate two kinds of maps:
1) a few oil-rich areas to fight over (on water-rich maps it'll be crucial to control oil to be able to build a navy). You already have health and happy clumping, why not oil? :)
2) a "one oil" per player type of map, where you need to find "your" plot of oil and protect it?

On most maps there's simply too many oil bonuses to be able to realistically deny a large opponent these interesting bonuses!

Thanks again :)

I can certainly make a version where strategic resources are rarer. I can't 'clump' oil (at least not easily) because I rely on the default resource placement for clumping, and that doesn't do clumping for oil.

I am working on assorted resource placement tweaks for the next version, i'll at least include an option to make all strategic resources rarer.
 
Pick it up from the main post.

# 8.4
# Tweaked resource placement to obey minlatitude and maxlatitude for the stricter
# resource placement options (SmartMap few, and all clumping options).
# Tweaked resource rates some more based on forum feedback.
# Made some other adjustments to the fair resource distribution to simplify it, and
# to distribute resources a little more evenly in certain cases. Also improved
# chances that all expected resources will be placed.
# Added terrain options to place no desert, no snow, no snow/desert,
# no snow/desert/tundra, only plains, or only grass. If you wan't minimal
# snow/desert/tundra, play on tropical, and turn jungles to light if necessary.
# Added 'SmartMap restricted / most restricted' option to resource placement, which
# enforces every placement rule I understand, clumps both happy and health resources,
# and offers fewer (restricted)/much fewer (most restricted) resources in general.
# Move the version history for prior versions to end of file
# Added player/all inland/coastal placement options. Player inland will do its best
# to give the first player an inland start. Coastal prefers a coastal start. All
# attempts to do the same for all players (less likely to succeed, based on available
# map positions).
# Add single tile isles option. This make for a very wierd game in generic civiv, but
# was requested by people developing space/planet based variants.
# Fixed bug in override separation that caused it to behave always as if low sea level
# was selected instead.
# Added 'central pole' variation on all wrap options. This creates an icy pole in the
# center of the map, as if you were looking down on earth from above the north pole,
# also known as polar projection. This now allows you to have 0,1,2,3 poled maps,
# which you can envision as different ways to unwrap a spherical world onto a flat
# rectangular map.
# Fixed a small math error in determining the distance from the pole/equator which
# became obvious when working with the polar projection maps. This may cause you
# to see a little more snow/tundra than previously.
 
:goodjob:



ps. anyone have a reference for the vanilla Civ4 map sizes, for use with the override x,y feature?
 
It keeps getting better and better and better... :goodjob:

Thanks for putting in the coast-or-inland option by the way.
 
`DG` said:
:goodjob:



ps. anyone have a reference for the vanilla Civ4 map sizes, for use with the override x,y feature?

It varies script by script, but the majority use the following:

duel: 10x6 (40x24 in map units)
tiny 13x8 (52x32)
small 16x10 (64x40)
standard 21x13 (84x52)
large 26x16 (104x64)
huge 32x20 (128x80)

Note: my default enlargement of the maps is based on my map offering more ocean tiles than most maps, which is the guideline used by other scripts that vary from the default size.
 
FYI --

Clean Install
Patch 1.52
Sevomod 2.3
Blue Marble Terrain

SmartMap won't work

I've tried several times

1.5g ram, Ath 2600


T
 
thanks so much for this great work its ALMOST as much fun generating maps as it is playing the game! i did notice something peculiar in my last game - when i used the mouse wheel to pop out to world view all i could see were the city names and everything else was dark. it was actually quite awesome looking (kind of cosmos-looking). is this because on the mini-map i only have such a small portion of the world uncovered? thanks for any help.
 
wrangler89 said:
thanks so much for this great work its ALMOST as much fun generating maps as it is playing the game! i did notice something peculiar in my last game - when i used the mouse wheel to pop out to world view all i could see were the city names and everything else was dark. it was actually quite awesome looking (kind of cosmos-looking). is this because on the mini-map i only have such a small portion of the world uncovered? thanks for any help.

Unfortunately, the map script has done all its work before any cities get created, so that has to be a civiv bug.
 
Taliseian said:
FYI --

Clean Install
Patch 1.52
Sevomod 2.3
Blue Marble Terrain

SmartMap won't work

I've tried several times

1.5g ram, Ath 2600


T

Could you define 'doesn't work'? Is it:
Doesn't show up in your map choice list?
Shows up but gives a script error?
Crashes? ...

Assuming it shows up: Does it work if you choose all the default options? (last option for all the smartmap options)

Would you be willing to generate a logfile? (I can walk you through this if you don't know how).

Follow up: works fine for me with both Blue Marble and SevoMod 2.3, so if you can provide more info about what exactly happens maybe I can help you.
 
Let me know how to generate a log file.

What happens is that I choose my options for Smartmap (installed according to the readme).

Once I make my choices and start the game, it hangs generating the map and C4 stops responding. I've let it sit for over 10min and it can't finish making the map.

I've cleared the cache between attempts.


T
 
Taliseian said:
Let me know how to generate a log file.

What happens is that I choose my options for Smartmap (installed according to the readme).

Once I make my choices and start the game, it hangs generating the map and C4 stops responding. I've let it sit for over 10min and it can't finish making the map.

I've cleared the cache between attempts.


T

Ok, so the most likely explanation would be that you're trying to generate too large a map for your amount of memory. So my first question is: can you generate a duel sized map? (be sure to turn override width and height to don't override). I will go look up the instructions on generating a log file and post info shortly. A 1.5G machine should be able to generate up to about a 150x150 map (or a huge map). If you are using override width/height to go bigger than that you'll have trouble.

It might also be helpful if you could list the set of options you're trying to use, I could try them on my end.

Here are the settings to generate a log file (set in your _Civ4Config aka civilizationiv.ini):
; Enable message logging
MessageLog = 1
; Show python debug msgs in IDE console
ShowPythonDebugMsgs = 1
; Enable the logging system
LoggingEnabled = 1

Then after running, go to your _Civ4Logs dir, and have a look at:
PythonDbg.log

I'll want to see maybe the last 10 lines.
 
Taliseian said:
Let me know how to generate a log file.

What happens is that I choose my options for Smartmap (installed according to the readme).

Once I make my choices and start the game, it hangs generating the map and C4 stops responding. I've let it sit for over 10min and it can't finish making the map.

I've cleared the cache between attempts.

T

I think it might be a new problem with 8.4. I've been using SmartMap extensively since 7.something, and 3 of the 8 maps I generated caused a hangup (at the "Initializing" stage) that I could only recover from by re-booting my computer. I've never had this problem until 8.4. I haven't yet eliminated other possible causes yet, but here are the details I have so far. Sorry for the incomplete data, but I'll be out of town soon and unable to test further or generate a log for a while:

Default settings except for:
- Small map size
- 6 AI civs
- Features = SmartMap
- Bonuses = SmartMap Clump Both
- Many rivers, few lakes
- Raging Barbarians

1. tried 8.4 for the first time -> fine
2. retired, exited to main menu, set up new game -> hang
3. rebooted, launched new 8.4 map -> fine
4. retired, exited Civ4 completely, relaunched Civ4 & started new 8.4 map -> hang
5. rebooted, moved CD-ROM to new more stable drive, launched new 8.4 map -> fine
6. retired, exited Civ4 completely, relaunched Civ4 & started new 8.4 map -> hang
7. rebooted, launched new 8.4 map -> fine
8. retired, exited Civ4 completely, waited several minutes, relaunched Civ4 & started new 8.4 map -> fine
 
Sorry folks, little bug with player placement that could cause and endless loop. Fixed.
Get it on the main page as usual. Again, sorry for the inconvenience, the endless loop only happens on certain maps, and I didn't happen to catch it on any of the ones I tried (only happens on maps with a small number of continents, and even then only in certain situations).


# 8.4A
# Quick Fix for problem with placing players on pangea maps introduced in 8.4
# (would cause an endless loop, freezing civ iv on pangea and certain other
# maps where it couldn't decide the best continental distribution of players)
 
Taliseian said:
Let me know how to generate a log file.

What happens is that I choose my options for Smartmap (installed according to the readme).

Once I make my choices and start the game, it hangs generating the map and C4 stops responding. I've let it sit for over 10min and it can't finish making the map.

I've cleared the cache between attempts.


T

Please let me know if 8.4a fixes your problem, I assume it will. But really, really be sure to let me know if it doesn't!

Sorry for the inconvenience!
 
Back
Top Bottom