![]() |
#1 |
Random maze map generator
I've written a program (for Windows) which creates a duke3d map (called maze.map) consisting of a 10x10 grid of rooms connected as a random "perfect" maze. The starting point is the room in the northwest corner and the object is to reach the nukebutton in the southwest corner. The problem is that the program also sprinkles lizard troopers and pigcops in your way, so this is no walk in the park. It also sprinkles random ammo, weapons and health powerups around.
Some of the features of the maze are configurable from the command line - e.g. the size of the maze can be increased up to about 22x22. Above that the number of sectors exceeds the 1024 limit. Version 1.1 is at: http://members.shaw.ca/el_supremo/randroom.zip The file is only 25kb. From the Windows command line, basic usage is just: Code:
randroom duke3d -map maze It's time to play with yourself - single player only. Pete |
|
![]() |
![]() |
#2 |
Re: Random maze map generator
This is a very appealing idea. Would you consider making a version that generates more sophisticated maps? Perhaps your program could lead to a Diablo II style Duke TC with randomly generated dungeons, or perhaps just portions of maps could be randomly generated. If you aren't interested in developing it further, then maybe you could release the source code?
__________________
DUKE PLUS New map effects and various optional extras for Duke 3D. DUKE NUKEM: ATTRITION XP based weapon upgrades, progressive difficulty, and more. |
|
![]() |
![]() |
#3 | ||
Re: Random maze map generator
Quote:
Quote:
I was thinking that it would be nice if it were built in to the Duke3D menu so that there would be a "Random Game" along with "New Game" and "Load Game". I may even try that with JFDuke if I can get it to compile. Pete |
|||
![]() |
![]() |
#4 |
Re: Random maze map generator
Cool
![]() ![]()
__________________
"if we fill survival with particles then we can compete with modern games" - James |
|
![]() |
![]() |
#5 |
|
Re: Random maze map generator
DeeperThought - you are the Diablo2 maniac, aren't you?
![]() sorry for offtop And I LOOVE the idea |
![]() |
![]() |
#6 | ||
Re: Random maze map generator
Quote:
Quote:
[Edit: I just used the Maze generator and it spit this map out. ![]() ![]()
Last edited by C. M. Dratz; 03-30-2007 at 03:37 PM.
|
|||
![]() |
![]() |
#7 |
Re: Random maze map generator
I swore I would never play that game again, just like I will never play WoW or smoke crack. But making a game like that is another matter entirely. In this case, it would have to be a fork of EDuke32 (or I suppose it could be a fork of JonoF's port, but that code is so outdated I can't imagine why anyone would bother, unless JF makes a comeback in which case it will rule once again).
__________________
DUKE PLUS New map effects and various optional extras for Duke 3D. DUKE NUKEM: ATTRITION XP based weapon upgrades, progressive difficulty, and more. |
|
![]() |
![]() |
#8 |
Re: Random maze map generator
^^^^
crack? sry for off topic its a very good idea ![]() edit: i tried it... quite kewl but repetitive. this has quite abit of potential
Last edited by Dopefish7590; 03-30-2007 at 04:34 PM.
|
|
![]() |
![]() |
#9 | |
Re: Random maze map generator
Quote:
Being a Duke mapper myself, I'd like to lend a hand in creating such blocks... I'm not much of the type to finish a map, but I think this could be great fun ![]()
__________________
Duke4.net - Duke's OTHER home. HeadbangersFM - The station that keeps your head banging! ------------- She's pretty, not "damn-she's-making-my-noodle-dance-samba"-pretty, but still very pretty... - Micki! |
||
![]() |
![]() |
#10 |
Re: Random maze map generator
I tried it under Wine and it works well! Great idea!
|
|
![]() |
![]() |
#11 |
Re: Random maze map generator
There was a randomized map generator for Half-Life a while back, and worked on the same "template" concept. It worked pretty good most of the time (though you had to worry about leaks that Build doesn't have).
Good luck with the project, should be good fun.
__________________
The Once and Future King msleeper.com :: Digital Entertainment Design The AWOL Project :: The Best Damned TC Never Super AI Project / Duke RTS :: Coming Soon to an Actor near you! Artificial Intelligence 101 :: Ask AI questions, get AI answers |
|
![]() |
![]() |
#12 |
Re: Random maze map generator
Hey this is pretty cool!
Good job man ![]()
__________________
Staying Frosty Since 09/06/07 - I love you Katie <3 “Software is like sex; it's better when it's free.” - Linus Torvalds “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” - Calvin & Hobbes [INSERT SYSTEM SPECS THAT NO ONE CARES ABOUT HERE] |
|
![]() |
![]() |
#13 | ||
Re: Random maze map generator
Quote:
The long answer: The internal representation of the maze is not based on a "build" structure. It is just an array of "rooms" each of which can have up to four connecting "doors". Once the maze has been constructed and the weapons/ammo etc. have been sprinkled around the rooms, this structure is written out as a duke map by converting the maze to sectors/walls/sprites on-the-fly. Generating the maze is a trivial piece of code but it took me quite a while before the program converted it to a map that actually worked in duke3d - getting the walls right was particularly tricky. Quote:
A future version might allow the user to describe the textures/sprites which make up various kinds of rooms and then the program would sprinkle these around the map. But if you mean adding things like tables or altars to a room, those require more sectors and walls and that's what would require a rewrite. The idea for the program came to me recently while I was going through the four duke3d episodes (in the HRP version) for the fourth or fifth time (I hadn't played Duke for something like 8 years and then got interested in it again when I stumbled upon the HRP version). I figured that playing a randomized map would be more interesting than shooting down the same enemies in the same places over and over again. Thanks all for the kind comments. Pete |
|||
![]() |
![]() |
#14 | |
Re: Random maze map generator
Quote:
![]() ![]() |
||
![]() |
![]() |
#15 |
Re: Random maze map generator
Hmmmmmmm. I haven't tried to build anything with sprites but adding more sprites to a room is easy.
Pete |
|
![]() |
![]() |
#16 | |
Re: Random maze map generator
Quote:
But not exactly what I was trying to say, I meant to say that a user could define one or two themes for the map, and your program would then divide the maze into a few sections, giving each section the specified theme. For example, the Urban theme would have parallaxed skies and would be higher (and have textures that fit this), while a sewer would be lower and have sewer-like textures. So it's sort of like your green room functionality, but for a collection of rooms rather then a single room ![]()
__________________
Duke4.net - Duke's OTHER home. HeadbangersFM - The station that keeps your head banging! ------------- She's pretty, not "damn-she's-making-my-noodle-dance-samba"-pretty, but still very pretty... - Micki! |
||
![]() |
![]() |
#17 |
Re: Random maze map generator
Cool idea. If it only could be set up to run, each time the map gets loaded.
I got some idea for sector layouts. ( The idea of using dukes butt as an ceiling is nice, but kinda ![]() I just did made an small map with several scenes like hedge, desert, cave, nature, sewer, city, slime and moon. Its incredible how good this looks with the correct textures. |
|
![]() |
![]() |
#18 | |
Re: Random maze map generator
Quote:
Pete |
||
![]() |
![]() |
#19 | ||
Re: Random maze map generator
Quote:
Quote:
Pete |
|||
![]() |
![]() |
#20 |
Re: Random maze map generator
I'd like to be able to specify the room heights and have the doorways at lower heights than the rooms. Right now, the doors are huge, and the walls are hard to texture properly since they aren't multiples of 16384.
|
|
![]() |
![]() |
#21 | |
Re: Random maze map generator
Quote:
I've also added "green" and "party" rooms and made a few tweaks to the way the program places things. http://members.shaw.ca/el_supremo/randroom.zip Pete |
||
![]() |
![]() |
#22 |
Re: Random maze map generator
Already found and fixed a bug.
randroom.zip now has the bugfix and was changed at 2100 CST (GMT-6). Pete |
|
![]() |
![]() |
#23 |
Re: Random maze map generator
Here is an map with some examples for skins.
Some of them do need paralaxing skies and sector tags.
Last edited by lycanox; 04-02-2007 at 12:46 PM.
Reason: wrong file uploaded.
|
|
![]() |
![]() |
#24 |
Re: Random maze map generator
Thanks lycanox.
I don't know if I can make it give you two adjacent rooms with the same theme but I might be able to manage quite a bit of what you've shown in your skins.map Pete |
|
![]() |
![]() |
#25 |
Re: Random maze map generator
thanks.
Perhaps it would look better if it just randomly picked one theme, walking from an moon into an dessert looks kinda strange, and might end up in conflicting sky boxes. |
|
![]() |
Bookmarks |
|
|