View Full Version : [Map Script] Random Map Script v4


CyberTyrant
Jan 08, 2006, 02:09 PM
UPDATE 11-10-06

Random Map Script v5 Final

Since the release of Warlords, a needed patch, and some great mods, I decided to return to Civ4 after a long break and update this little script. It's still mostly the same as before, but I've changed the filename thanks to MATT:-) C's request to fix the issue with the "Top Civs" screen not showing properly. It is now fully functional, bug free and compatible with Warlords 2.08 and most mods.

It's not as advanced as some other scripts, but if you're looking for classic Civ3 random map generation then look no further. :)

History Info:
For those who have followed my previous thread for a random map option I have continued working on my script a bit more. I thought v3 would be my final one but over the past couple of weeks I have decided to make some changes. I also figured it would be a better idea to start a new thread and place it here in the maps forums as this isn't really a mod. For those who need more info you can still see the old thread here:

http://forums.civfanatics.com/showthread.php?t=143597

Hopefully this will be the last version. Anyways, I have removed the chance for tiny islands as I really dislike them. I also removed the max sea level size I had in previous versions. It's more interesting if you happen to play with more than the default number of civs on a particular map size and a high sea level is generated. Over the past couple of weeks I've been noticing a problem with mountain peeks splitting an archipelago island in two, making the other side unexplorable until Sailing is reasearched. I have included a fix for that. Mountain peeks should no longer be a problem on archipelago map types.

Installation: The rar file contains only the lowrandom.py map script. Unzip the file directly into your "C:\Documents and Settings\YourName\My Documents\My Games\Sid Meier's Civilization 4\PublicMaps folder or your "C:\Documents and Settings\YourName\My Documents\My Games\Warlords\PublicMaps folder.

It could also be put into a Mod's "PublicMaps" folder if you wish to use this with a mod. However, I do not gaurantee compatibility.

To use: Go to "Custom Game" and select "lowRandom" from the Map pull-down menu and you're all set.

Download: Random Map Script v5 Final (http://forums.civfanatics.com/downloads.php?do=file&id=3574)

Lars_Domus
Jan 08, 2006, 07:29 PM
Oh, much obliged! :thanx:
I couldn't stand those stupid tiny island maps.

Sadan01
Jan 15, 2006, 06:51 AM
Low, I've always thought this was a great mod, not only in its simplicity (to install) but the fact that this option wasn't included. I don't get the same map-type twice and that is part of the fun, trying to work out what type of map you are playing on.

cintorix
Jan 18, 2006, 12:00 PM
Hi low, (hehe)

I've been wanting a random map option but didn't know there was one until thunderfall put it on the front page.

It works great. i've only used it once and got a combination of large continents and some archipelago land masses.

Any thought about expanding it to allow the user to choose their own subset of possible map types? Just a thought. i don't know how easy/difficult that would be.

Great job! i'll be using it every time now.

CyberTyrant
Jan 18, 2006, 01:48 PM
Any thought about expanding it to allow the user to choose their own subset of possible map types? Just a thought. i don't know how easy/difficult that would be.

Great job! i'll be using it every time now.

Thanks.

If I'm understanding your question right - It use to have a selectable landmass type option with more to choose from than "random", but I removed them for simplicity and the fact that leaving those options in kind of defeats the whole purpose of having a random map script in the first place. If you want a random map of a particular map/landmass type then you might as well just stick with the default continent, pangaea, and archipelago map scripts that came with the game.

This map script is like a box of chocolates...

:p

cintorix
Jan 18, 2006, 09:30 PM
I struggled with the wording of that but obviously i didn't nail it. I was going for brevity...

With this you're going to get classic Pangaea, Continent, or Archipelago maps (ala Civ3) and that's it. No terra's, inlands, highlands, lakes, plains or anything in between (at least I hope not ).


This is your subset, which is mostly the same as mine except i would have added lakes. Then i thought the best option for everyone would be if they could create their own subset.

Is that difficult? Or, if i had a python iditor would it just be a matter of adding one word to the list? :rolleyes:

CyberTyrant
Jan 19, 2006, 10:56 AM
Ahh, gotcha. Sorry.

I only included those three because they are the classic map styles that we all had in Civ 3. Many people mentioned frustration not having a random option which would choose specifically between those map types, along with myself, and that is why I went with those types only. IMO, the other ones are what I would call "specialty" maps, and I really couldn't classify them as "real-world" map types, maybe with the exception of the terra map.

To answer your question though, I'm not entirely sure, but adding just a word or two to Python isn't going to do it. A lot of code would have to be added to pull that off. I can't say I've ever really thought of doing that. It could probably be done with just a bit of cutting and pasting from the other map scripts. I can't say I will do it, but I'll certainly look into it.

cintorix
Jan 19, 2006, 03:30 PM
Well, if its doable then great, if not, you've already made the game much better. Like a lot of people say, not knowing what kind of map we're on is part of the challenge.

Later...

lordroy
Jan 27, 2006, 09:01 AM
I am going to try this out RIGHT NOW with Sevomod.

Thanx for all the hard work.

-=R=-

The Rusty Gamer
Jan 29, 2006, 01:45 AM
I get an error message when I have that script in "public maps". If it is there before I run the game, the game fails complete intitalisation. If I "sneak" it in by switching windows after starting the game, it says it cannot read the python script. Anyone else getting this problem?

CyberTyrant
Feb 04, 2006, 08:39 AM
I get an error message when I have that script in "public maps". If it is there before I run the game, the game fails complete intitalisation. If I "sneak" it in by switching windows after starting the game, it says it cannot read the python script. Anyone else getting this problem?

I have never encountered that problem, nor have I heard of it. What exactly does the error say?

Sorry for the late reply.

The Rusty Gamer
Feb 04, 2006, 11:20 PM
Some sort of hexadecimal error I think.

Rather extroadinarily, I am running this on Windows 98 first edition. Maybe it can't read certian python scripts. I downloaded another one, "smart map", that works fine however.

CyberTyrant
Feb 05, 2006, 01:04 AM
I really can't begin to tell you what the problem may be. Sounds like an odd one-off problem. For what it's worth, this script is error free so your problems have to be originating somewhere else. Sorry I can't be more help. I've never dealt with hexadecimal errors.

Ktulu
Feb 13, 2006, 01:13 PM
This is by far my favorite mod for civ4, but if you are considering doing more for it ;) I'd love to have Terra maps included. I would love the possiblity of discovering the "new world" without the foreknowledge that the "new world" exists.

CyberTyrant
Feb 13, 2006, 03:30 PM
This is by far my favorite mod for civ4, but if you are considering doing more for it ;) I'd love to have Terra maps included. I would love the possiblity of discovering the "new world" without the foreknowledge that the "new world" exists.

It's possible. I'd probably just make a script seperate from this one for those that wanted the extra Terra option because most don't, including myself.

If I decide to make it it won't be anytime soon. I've spent the last two weeks and counting overhauling the game with my own mod.

MATT:-) C
Mar 19, 2006, 09:09 AM
Firstly, thanks for a useful little script - it's good for killing time with a completely random quick game!

I've noticed that it caused problems with the "Top Civs" screen - i.e. the one where an historian lists the most powerful/wealthy/largest civ. Taking a closer look, I think there's a naming conflict bwteen this script and the standard Python random module such that Civ4 gets the two confused.

You can work around this by simply renaming the file name of the map script to something other than "random.py" - I've used "low_random.py" which seems to have done the trick.

MC

The Rusty Gamer
Mar 20, 2006, 01:01 AM
Hmmm...maybe that might solve my problem with this one.

CyberTyrant
Apr 02, 2006, 07:53 PM
Firstly, thanks for a useful little script - it's good for killing time with a completely random quick game!

I've noticed that it caused problems with the "Top Civs" screen - i.e. the one where an historian lists the most powerful/wealthy/largest civ. Taking a closer look, I think there's a naming conflict bwteen this script and the standard Python random module such that Civ4 gets the two confused.

You can work around this by simply renaming the file name of the map script to something other than "random.py" - I've used "low_random.py" which seems to have done the trick.

MC

Sorry for the late reply. I haven't been paying much attention to the forums since I've halted my play of Civ4 a couple of months ago. I don't even have the game anymore. :p

Anyways, I never noticed it, since I always turned all the pop-ups off. Good find though. Quick fix. :goodjob:

The Rusty Gamer
Apr 03, 2006, 05:38 AM
It didn't fix my problem unfortunately. I've had to remove the script.

autocon
Apr 05, 2006, 03:48 PM
very nice mod, i use it all the time, thanks ;)

TEP
May 17, 2006, 04:08 AM
I was using this before I took a break from Civ4. Now I'm back to find a new patch 1.61 and wondering if this mod still works with it.

Does anybody know?

Korch
May 26, 2006, 12:57 AM
I was mucking around with the files of Civ4 and loaded the random map mod as well.

For those who only want proper maps included in the random map generation(as in whole worlld maps with oceans, not the land mass ones, or the multiplayer ones) I tried removing these unwanted maps to a temp folder and kept only the ,maps i wanted included in the random generation.

It worked so I could have continents, islands, pangae, archipelago, ice age etc etc included in the random maps, which meant greater unpredictability of what to expect in each game when exploring.

Problem is after a few turns (maybe 10 or 20) the game crashes with no error message and takes me back to Windows.

I was liking my new adventure with Civ and using this technique until it crashed on every occasion (even when loading a saved game it always crashed at the same point...but for every new game it would crash early in the game, but never on a consistent turn...could be 10 turns, or 15 turns, it always varied)

I havent played Civ since, and I want it working using this technique (as Im sure others would also)

Has anyone discovered a way we can get random maps which will only include single player world-ocean maps? (eg: the ones I mentioned above)

cheers

CyberTyrant
Nov 10, 2006, 01:44 PM
I've returned from a long absence. Script has been updated. See the first post. :)

cybrtitan
Dec 18, 2006, 04:41 PM
Dose this new v. work with the non worlord civ 4:confused:

CyberTyrant
Dec 18, 2006, 07:39 PM
Dose this new v. work with the non worlord civ 4:confused:

Yes. It works with any version of Civ4/Warlords.

CyberTyrant
Aug 01, 2007, 06:15 PM
Works fine with BtS.

TheDS
Oct 03, 2007, 09:45 AM
could you post some pics of example maps made with this script in the first post please?

CyberTyrant
Oct 20, 2007, 05:46 PM
could you post some pics of example maps made with this script in the first post please?

I had some in the original thread, but they got deleted somewhere along the way. When I get around to it I'll put some new ones up.

TheDS
Nov 09, 2007, 05:43 PM
That would be wonderful, thanks.