1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Random KAG map generator

Discussion in 'Modding [KAG Classic]' started by Robinskie, Jun 10, 2012.

  1. Robinskie

    Robinskie Drill Rusher

    Messages:
    124
    Hello, :)

    I made a small program in Game Maker to generate random maps.
    The map generator generates:

    :right: Dirt
    :right: Trees
    :right: Bedrock

    You have to add other stuff like stone, grass and tents yourself

    You can save the generated map as a .png file, but you still have to open them in Paint.NET to save it as a 24 bit png file.

    Here are some instructions to how to generate a map:

    Map width = width of the map
    Map height = height of the map
    Bedrock layer size = the average size of the bedrock layer
    Bedrock swing = the amount of swing on the bedrock layer
    Tree spawn rate = each dirt block has x percent change to spawn a tree on top of itself
    Tree grow rate = percent change to let a tree grow higher
    Minimum border up = hills will not be generated higher then the height of the map minus the upper border
    Minimum border down = hills will not be smaller then this value
    Symmetric = just choose if you want your map to be symmetric or not

    Controls:
    R: (Reset) Generate a new map
    S: (Save) Save your map as a .png

    Some maps I generated:

    map1.png

    map2.png

    map3.png

    :B): Download:
    KAGen.zip


    ________________________
    PS: I wasn't sure if this kind of topic belongs in the Modding board ???
    PPS: sorry for my english :rollseyes:
     

    Attached Files:

  2. The_Khan

    The_Khan Bison Rider

    Messages:
    757
    That middle one would be good for games with water. :)
     
  3. Saverous

    Saverous Shopkeep Stealer

    Messages:
    418
    good job, however, the map generators in the KAG folders can be configured to generate maps to your liking as well, but anway Good job.:thumbs_up:
     
  4. Riletyface

    Riletyface Horde Gibber

    Messages:
    280
    All it needs is stone, and gold! This is quite a bit better than the KAG map generator.
     
  5. HardPenguin

    HardPenguin Horde Gibber

    Messages:
    310
    I agree. Robinskie, would you mind improving your application? It is awesome :P
     
  6. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
    It seems like a good idea but a few problems
    1)Have to add stone yourself, and stone is damn near always necessary
    2)Doesn't output in 24-bit so you pretty much have to open it in Paint.NET or something, meaning you have to open it period
    3)Same with tents

    Basically this means that you still have to open it elsewhere, you could probably just be better off writing your setup for generating maps by making a map generator in KAG through the files as they will add in all the rest of the stuff quite nicely.

    That said, that mid map would be really nice with some stone and gold added properly.

    Oh and the bedrock, it's nice at the bottom but you need some elsewhere too.
     
  7. Robinskie

    Robinskie Drill Rusher

    Messages:
    124
    I will continue working on it if I find the source :huh?:
    EDIT: Found it! :D
     
    HardPenguin likes this.
  8. Ulthuanelf

    Ulthuanelf Shark Slayer

    Messages:
    68
    I can see him working on it as I'm writing this message.
    if I turn my head, that is.
     
    HardPenguin likes this.