Knuckle Cracker

Creeper World => Custom Map Discussion => Topic started by: Echo51 on May 02, 2010, 11:13:41 AM

Title: Random Map Generator
Post by: Echo51 on May 02, 2010, 11:13:41 AM
So, i was bored and made this little Random Map generator. What it does is generate a colorcoded image that you can trace after in the editor. Im hoping Virgil might shed some light on how the .cwm files are created, so you will just get the mapfile instead though...

Anyways, ill be posting progress report here ;) ask questions if you have any too....


REV 2:
(http://j.imagehost.org/0177/Screen_shot_2010-05-05_at_9_07_49_PM.png)
Got some parameter boxes set up, and the script converted so my host could run it. ;)


REV 1:
(http://j.imagehost.org/0066/map.png)
Completely random as of now, not that useful yet, but shows the colorcoding and princip off..



Latest Public dev version can be found at http://echo.wep.dk/map.php (http://echo.wep.dk/map.php) :)
Title: Re: Random Map Generator
Post by: knucracker on May 02, 2010, 11:18:25 AM
Here's a hint for what you might want to use:
Perlin noise.
Title: Re: Random Map Generator
Post by: Echo51 on May 02, 2010, 11:56:33 AM
Thanks virgil, but from what i found making perlin noise in PHP wasent effective for "live" useage, so im going to invent some parameter based - neighbour "height" merge as of now. Then it should just be tweaking/UI/testing :)
Title: Re: Random Map Generator
Post by: UpperKEES on May 02, 2010, 12:05:34 PM
Sounds interesting, especially when the map maker (or even player) will be able to set those parameters.
Title: Re: Random Map Generator
Post by: Echo51 on May 02, 2010, 01:01:59 PM
You will be getting some forms that have default values you can change :) Might have to limit it in some way though :/
Title: Re: Random Map Generator
Post by: Sqaz on May 02, 2010, 01:06:00 PM
Why would you want custom generated maps, they can never be as good as self-made maps
Title: Re: Random Map Generator
Post by: Echo51 on May 02, 2010, 02:02:16 PM
To have something to work from, it can help you structure the terrain :P
Title: Re: Random Map Generator
Post by: Sqaz on May 03, 2010, 12:51:55 PM
How can you make a good map if you don't now what you're going to make from the start?

But this might be good with the fog of war idea.
Title: Re: Random Map Generator
Post by: UpperKEES on May 03, 2010, 04:57:41 PM
Yep, that combination will make it interesting.
Title: Re: Random Map Generator
Post by: crazyone76 on May 04, 2010, 09:10:13 AM
Quote from: Sqaz on May 03, 2010, 12:51:55 PM
How can you make a good map if you don't now what you're going to make from the start?

But this might be good with the fog of war idea.

just click generate until you get a map wich you could work out further
Title: Re: Random Map Generator
Post by: UpperKEES on May 04, 2010, 11:20:04 AM
Sqaz means you should always have a plan when making a map and I agree with that. I don't believe you'll create an interesting map when you just start clicking. That's why I think the generation of maps should be parametrized, so you can at least enter some constraints / preferences to suit your design / mental blueprint.
Title: Re: Random Map Generator
Post by: Echo51 on May 05, 2010, 03:39:15 PM
Upperkees, it will be parametrized, actually thats what im doing right now ;)
Title: Re: Random Map Generator
Post by: UpperKEES on May 05, 2010, 04:56:16 PM
Sounds good! Looking forward to see what you come up with...