Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Creating a random generated map at game start

Discussion in 'Requests' started by stonneash, Dec 9, 2016.

  1. stonneash

    stonneash

    Joined:
    Jul 20, 2011
    Messages:
    1,112
    Resources:
    50
    Models:
    20
    Icons:
    29
    Skins:
    1
    Resources:
    50
    I looked around to see if anyone has done it, a randomly generated map every time the game starts based on an algorithm. Is it possible? is there anyone willing to help me make one?
     
  2. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,068
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    I've done it.

    But it's very limited, I've not seen a map that have generated anything close to decent terrain.
    You can generate rooms in a labyrinth or whatever but to decorate those is pretty much impossible. (for the average human, you need some super calculations for that)
     
  3. stonneash

    stonneash

    Joined:
    Jul 20, 2011
    Messages:
    1,112
    Resources:
    50
    Models:
    20
    Icons:
    29
    Skins:
    1
    Resources:
    50
    Im trying to make a forest for a start, I can get random trees but what about random heights and random floor texture
     
  4. stonneash

    stonneash

    Joined:
    Jul 20, 2011
    Messages:
    1,112
    Resources:
    50
    Models:
    20
    Icons:
    29
    Skins:
    1
    Resources:
    50
    Im trying to start a little simpler than before, since I have been "out of the game" for a while
     
  5. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,068
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    There is a terrain deformation action in GUI which can handle height.
    Same goes for tiles.

    But I doubt it will look good when you make it random, unless it's important for gameplay purposes I would not try to generate it.
     
  6. stonneash

    stonneash

    Joined:
    Jul 20, 2011
    Messages:
    1,112
    Resources:
    50
    Models:
    20
    Icons:
    29
    Skins:
    1
    Resources:
    50
    having a different map each time will create a new experience every time the game is loaded rather than players rushing to find the "best spot" to build their bases
     
  7. Randomly generating a map is an extremely difficult problem. If you're interested in really coding a random map that looks good, I would check out Dungeon Generator & Stamp (the only decent random dungeon creator i've ever seen) and use his approach. I've never tried reading through it fully, and right now it's beyond my skills to make something for it.
     
  8. The_Silent

    The_Silent

    Joined:
    Feb 4, 2008
    Messages:
    3,049
    Resources:
    164
    Models:
    53
    Icons:
    90
    Packs:
    8
    Skins:
    12
    Maps:
    1
    Resources:
    164
    Yeah, but you just can't use doodads or change terrain height (since it has serious issues, even ignoring desyncs).
    There is plenty of algorithms on the internet you can appropriate for wc3. Especially for dungeons.

    First step is knowing how you want it to look, then trying to figure out good ways to do that mathimatically.
     
  9. stonneash

    stonneash

    Joined:
    Jul 20, 2011
    Messages:
    1,112
    Resources:
    50
    Models:
    20
    Icons:
    29
    Skins:
    1
    Resources:
    50
    I think I'd want it to be as realistic to a forest as possible, with dense and light patches of trees, and certain trees (and other things) spawning more likely near to certain things
     
  10. pyf

    pyf

    Joined:
    Mar 21, 2016
    Messages:
    2,689
    Resources:
    2
    Tutorials:
    2
    Resources:
    2