Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Mar 18, 2008, 06:53 PM   #1
Grunthex
Prince
 
Join Date: Oct 2001
Location: Calgary, Canada
Posts: 365
Lowering sealevel in Fractal mapscript

As the thread title indicates, I'm looking for a way to decrease the amount of water tiles generated by the Fractal map script. The .py file in the maps directory seems to just say "do the fractal function", and the only other thing I can find are some areas where it refers to SEALEVEL_LOW

As it seems right now, Low/Med/High Sealevel gets you roughly 50/60/70% water. I'm looking to change that to about 35/43/50. (I only play Single player, so not concerned with how it affects anything else). Can someone tell me where I might find these numbers to change?

I don't really care if it affects all map scripts that have sealevel references, or just the Fractal script, since I use that for 90% of games, and the others I used don't use sealevel at all.
Grunthex is offline   Reply With Quote
Old Mar 18, 2008, 07:50 PM   #2
Drakart
Chieftain
 
Drakart's Avatar
 
Join Date: Nov 2007
Posts: 7
I have do it in my mod, search for CIV4SeaLevelInfo.xml in the XML folder of CIV4....

you con see something similar to:

Code:
 
              <SeaLevelInfo>
			<Type>SEALEVEL_LOW</Type>
			<Description>TXT_KEY_SEALEVEL_LOW</Description>
			<iSeaLevelChange>-8</iSeaLevelChange>
		</SeaLevelInfo>
Change the value iSeaLevelChange to -55 decrease a lot the sea level...

It works perfercly in fractal map as it does not work on Big and Small
Drakart is offline   Reply With Quote
Old Mar 18, 2008, 08:35 PM   #3
Sto
Should i code today ...
 
Sto's Avatar
 
Join Date: Dec 2005
Location: Marseille (France)
Posts: 1,137
Quote:
Originally Posted by Drakart View Post
It works perfercly in fractal map as it does not work on Big and Small
The sea level is taken in count in the map script . A multilayered fractals map like big and small generate all regions one by one and don't take in count the sea level option . Some others apply the sea level option but with some limits .

If you just want to change the fractal map , you can do like that also :

edit fractal.py with python or notepad ++ and change :

Code:
def generatePlotTypes():
	NiTextOut("Setting Plot Types (Python Fractal) ...")
	fractal_world = FractalWorld()
	fractal_world.initFractal(rift_grain = -1, has_center_rift = False, polar = True)
        plotTypes = fractal_world.generatePlotTypes(water_percent = 78)
	return plotTypes
78 is the default value , if you want to reduce water percent by 20 just put 58 . This produce some very interesting maps with this setting : Big pangaea , a large continent that circonvulate the globe , some king of snaky archipelago with big inland seas , 2 or 3 big islands ...

This is my favorite script also

Tcho !
__________________
Sometimes it is better to remain silent and be thought a fool, than to speak and remove all doubt. ... Gustave Parking .
Sto is offline   Reply With Quote
Old Mar 18, 2008, 09:01 PM   #4
Grunthex
Prince
 
Join Date: Oct 2001
Location: Calgary, Canada
Posts: 365
Thank you both! I think I'll go generate a bunch of new maps to see how it works!

Edit: Sometime later --- the function was actually in CvMapGeneratorUtil.py, and I had to use the one in the Warlords subdir, but it worked great! Dropping the base water level to 63 now lets me get some above average to REALLY big maps, that I can play 19 civs on with lots of room, plenty of barbarians ... and still have the fractal unpredictability.

Last edited by Grunthex; Mar 19, 2008 at 05:02 AM.
Grunthex is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Lowering sealevel in Fractal mapscript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Consider lowering requirements for some promotions? Feanor777 Civ4 - General Discussions 5 Nov 17, 2007 02:08 AM
High/Medium/Low sealevel... What do they do? AfterShafter Civ4 - General Discussions 5 Oct 24, 2007 07:44 PM
Increasing or lowering brightness Kartik Civ4 - General Discussions 4 Sep 08, 2006 01:44 PM
Lowering Culture Vandelay Civ3 - General Discussions 4 Feb 06, 2002 02:20 AM
lowering railroads CMH Civ2 - Scenario Creation 2 Jun 17, 2001 01:25 AM


Advertisement

All times are GMT -6. The time now is 11:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR