Jump to content
Psiman

Random map generator

20 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I came across this random map generator for SimCity 4:

https://cesiumcomics.com/sc4terrain/

Anyone used it?

It looks like it could be useful. One could raise/lower sea level on game setup to create sea and islands.

Any similar map generators out there?

  • Like 1

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Looks interesting. I've not tried it tho.


Chance favors the prepared mind. ― Louis Pasteur  
Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

Are you new here? Check out the Introduction and Guide to Simtropolis.

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Here are the map tile sizes in SimCity 4:

    Small city tile = 64 cells
    Medium city tile = 128 cells
    Large city tile = 256 cells 

    The "size of region in city tiles" parameter in the generator refers to the number of small tiles. So the default of 2 would be a medium city tile.

    A region of 5 large maps x 5 large maps would therefore be "Size of region in city tiles" of 20.

    Here are a couple of maps I've generated to test out. This first one is default settings, just size of region changed to 20.

    sVTHb2X.png

    For this second one, I've increase the level of randomness from 0.75 to 1.75. 

    rmhENDT.png

    • Thanks 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Those look like they'd make rather lumpy maps, but if you pull the grayscale into your favorite image editing software and add Gaussian Blur they'd prolly come out pretty decent.

    • Like 1

    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    9 minutes ago, CorinaMarie said:

    Those look like they'd make rather lumpy maps, but if you pull the grayscale into your favorite image editing software and add Gaussian Blur they'd prolly come out pretty decent.

    Thanks. I'll make them as is first, and then try a blur for comparison. :):)   :read:

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Here's the first one. It didn't come out right as I flipped to another window while it was generating, but you get the idea.

    5c1c673746ab7_sc4generator1.thumb.png.bb07f7e48eb77128e4d86e4c169d0a41.png

    I agree that it could do with some blurring. Uneven ground like this can be a real pain to build on.

    5c1c674d3f841_sc4generator1a.thumb.png.e7eda94d514ab2f6039e89da318647c2.png

    Here's the second one. I probably set the randomness too high, or should have avoided using a map with areas of undefined white, as that just creates unrealistic flat mountains.

    5c1c6767910a7_sc4generator3.thumb.png.e1ba18e9bf11801631c519fa5d92fc6e.png

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    In my early days learning about map making these would be exciting. *;)


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    16 minutes ago, CorinaMarie said:

    In my early days learning about map making these would be exciting. *;)

    What's more exciting in the world of map-making now then? :rofl:

    I need to work out how to do the blending thing in GIMP, as discussed in the map-making tutorial, in order to see what the sea-level is before generating the map.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    4 minutes ago, Psiman said:

    What's more exciting in the world of map-making now then? :rofl:

    I wouldn't want to throw your thread off topic, but I've tweaked the C source code for the Offline Planet Map Generator to make grayscale images which can be rendered in game. There's still more I'd like to add, but once I got the flat terraces routines and the sort of rivers I was happy enough to use it and have been playing a map I made (renamed Corillion) ever since.

    • Like 2

    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    1 hour ago, CorinaMarie said:

    I wouldn't want to throw your thread off topic, but I've tweaked the C source code for the Offline Planet Map Generator to make grayscale images which can be rendered in game. There's still more I'd like to add, but once I got the flat terraces routines and the sort of rivers I was happy enough to use it and have been playing a map I made (renamed Corillion) ever since.

    Nice terraced effect on the hills!

    • Thanks 1

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    One can use SC4 Mapper to load a grayscale image and it will show where the sea level will be, or close enough. Here's the view in SC4 Mapper of the grayscale image that produced the region in the first SimCity region screenshot of the thread (above).

    PVJe3z3.png

    Here's how it was rendered in the game, as created by SC4 Mapper. It appears one has to open every map tile to get it to render the graphics from a SC4 Mapper file properly, so it's probably better to use the standard method of generating a new region.

    tQ6G7jE.jpg

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    1 minute ago, Psiman said:

    It appears one has to open every map tile to get it to render the graphics from a SC4 Mapper file properly...

    Yes, Mapper does initially show the region view with false colors. As you discovered, once entering each city tile and saving it'll update based on your terrain and water mods.


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    17 minutes ago, CorinaMarie said:

    Yes, Mapper does initially show the region view with false colors. As you discovered, once entering each city tile and saving it'll update based on your terrain and water mods.

    Seems like it could take a while...

    ---------------------

    Here's another couple of examples of regions created with the map generator, 40x40km, Randomness 0.7>1, Mean Height 0.5>0.25

    POOXTrF.png

    SsX6nOc.png

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    2 minutes ago, Psiman said:

    Seems like it could take a while...

    Indeed.

    However, for myself, I'm going to go into every single tile to add trees via Flora Blast anyhow. (I can't stand to have my region view sans foliage.)


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    A useful feature of SC4 Mapper is that one can extract a part of a map and create a new region from it. So one could generate a larger map than one needs with the random map generator, and then look for good areas to create a region out of.

    jKcekke.png

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    Just now, Psiman said:

    A useful feature of SC4 Mapper is that one can extract a part of a map and create a new region from it.

    That would be quite handy. I've only done it myself via precise cropping of a grayscale and altering the config.bmp accordingly.


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I've been working on creating a new region from the random map generator.

    I created a large random map of 50x50 km, applied Gaussian blur using GIMP and then opened the grayscale image in SC4 Mapper.

    5c1ed6d229ef3_sc4regioncreate1.png.a9a45590685208d2871b7ab98243401c.png

    I saw an island that looked like it would be interesting to create a region out of, and used SC4 Mapper to extract the selection as a new region.

    5c1ed6e4edb21_SC4regioncreate2.png.8c88e5da8b8e6cfc5d79827c5c5c0db3.png

    Loading it on the game, it looks good, but the littoral zone is not ideal - it's too shallow for ports etc, and the ocean itself is also really shallow.

    5c1ed70012941_SC4regioncreate3.thumb.png.c0259dad12540a0a0bfa54d456f8dde1.png

    It needs a continental margin of continental shelf/slope/rise leading to deeper ocean.

    440px-Continental_shelf.png

    So I opened up the original grayscale image in GIMP and also took a screenshot of the region from the SC4 Mapper. Then I precisely cropped the region view from SC4 Mapper, resized it to the exact size of the grayscale image, created a new layer in GIMP, and pasted the SC4 Mapper region view on it. I then reduced its opacity so I could see the both the edges of the island and the grayscale image beneath.

    5c1ed7139772c_Sc4regioncreate4.png.a97ed19c23a8a4a0cd2c1e36855d7f30.png

    Then I drew an outline in black around the island on a new transparent layer.

    5c1ed72407df5_SC4Regioncreate5.png.c2c6e6ac38d57a7aba99c33234e63b14.png

    Then I filled in the rest of the ocean with black, to give me a layer filled with black, except for a hole where the island is, plus a few squares around it. I then applied a Gaussian blur to this layer. Following this, I changed its opacity to 64% and exported a new grayscale image combining the original image with the layer of transparent blackness plus hole.

    5c1ed743029c3_Sc4regioncreate7.png.c1a78351b4be6b0ad31129d36c3137b4.png

    Then I created a new region in SC4 Mapper using this new grayscale image and loaded it up in the game. There's now a better defined coast and a deeper ocean.

    5c1ed756e5fbd_SC4regioncreate8.thumb.png.c8a77918113ef7a35c7dde3d3d151706.png

    Here's how the region looks.

    5c1ed9765906a_sc4regioncreate10.thumb.png.bca45e307b704f0d716c1b97669434d5.png

    So, the basic map look okay, but it could do with some optimization of the map tiles. So I open up the large grayscale image again in SC4 Mapper and use the Config options to place large city tiles at more interesting places on the coast which would be good places for harbour settlements.

    5c1ed7f4e1afa_sc4regioncreate9.png.e8225d2e0725671bd742865853cd219b.png

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Here's a better configuration of tiles, with some good locations for cities using the big tiles.

    5c1efc3984d9e_sc4regionn.thumb.png.e660f80f9d60abbb1e655a20a18891c0.png

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I used it, however the colours on mine are all messed up. Any idea as to why that is?

    test.png

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    7 hours ago, armpit43 said:

    I used it, however the colours on mine are all messed up. Any idea as to why that is?

    Yep. That's simply how the Mapper program does it. If you enter each city tile in the game, save, then exit it will change the colors to that of your terrain, beach, cliff, and water mods.

    • Like 1
    • Yes 2

    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections