View Full Version : request: Coast map script


MusX
Sep 01, 2009, 12:13 PM
Hi
I would like to request Coast map script for BTS. If there is one already please link me it.
Suggestions:

coast can be placed horizontally or vertically
coast can be concave or convex
coast concavity/convexity can be normal (very flat) / high / very high (bay or cape)
some few shoreline options
optional some (not big) islands on sea/ocean with no starting players on them. maybe optionally some big island? but after astronomy :P
resources density can be normal/high/very high

Can somebody interesting of making such script?
I was thinking to make such thing myself but python is totally unknown for me. Is it hard to make such script?

if you already moved such my topic from here, sorry for doubling but you didn't leave me any notice about it

Tholish
Sep 05, 2009, 10:13 PM
Like I told Nahtanoj, you should have put this in the Mapscript request sticky...except there isn't one.

Have you checked out smartmap? It does all kinds of stuff. Lots of mapscripts have many of these options. Concave and convex doesn't make sense to me as it is relative. A shore that is concave one place must be convex somewhere else. Similarly, a coast that is horizontal must be vertical somewhere. However, really smooth or inleted options are around. Similarly, there are a variety of map scripts that give you different arrays of island and continent sizes. If you have Civ IV BtS 3.19 and check out Custom Game you will probably find something that is close to what you want.

To start making map scripts you should look in the original Civ IV assets folder, in the python, then in EntryPoints for a file called MapScriptInterface. It tells you all the functions that map scripts have and what order they go in. In the main python folder there you also have CvMapGeneratorUtil which has basically three different map scripts that all other map scripts are based on.

But basically you take an existing map script and modify and it and see what it does. You can steal tricks from one map script and put them in another if you know how to make them fit so they work. No need to write python from scratch or look into the underlying C++ functions that the python "magic words" are using.