Chaosforge Forum

DoomRL => Modding => Topic started by: shark20061 on March 12, 2012, 17:24

Title: Random map idea
Post by: shark20061 on March 12, 2012, 17:24
I put together a level generator that would create a level with a little more variety than the typical block room layouts.  It's attached to this post (http://forum.chaosforge.org/index.php/topic,5363.msg43971.html#msg43971).  Just unzip it to the modules folder in your DoomRL directory to put it in.

There is both a single level and an episodic version, so you can feel how it can play out as it's own level or in a (somewhat) regular game.

Comments, questions, concerns, and criticism all appreciated.
Title: Re: Random map idea
Post by: Uitë on March 14, 2012, 04:26
I like the way these levels play. Because of all the nooks and crannies that are generated, it's a bit more unpredictable, so I feel more like I'm exploring, and it also gives a lot of opportunities to ambush. Of course, I haven't seen it with any actual enemies in it, and I'd love to see them added, to get an even better sense of the levels.

When I played, the sections you built the level out of became obvious fairly quickly, even before I looked at the code. I'm not sure if that's a bad or a good thing though.

Anyway, I'd love to see more level generators like this. It doesn't seem too hard to get the basics in, so maybe I'll try to make some myself.
Title: Re: Random map idea
Post by: shark20061 on March 14, 2012, 20:16
Enemy generation is in the code, but it's commented out.  Just look at the comments I put in to find them.  A line near the top allows you to adjust which dlevel to mimic, and there are about 4 lines near the end to uncomment to get enemies, items, barrels, and the stairs in.

EDIT: There's also code to start you with a shotgun and 150 shells too, just above the 4 generation lines, also currently commented.
Title: Re: Random map idea
Post by: Shinji_Ikari_9th on March 14, 2012, 22:42
Enemy generation is in the code, but it's commented out.  Just look at the comments I put in to find them.  A line near the top allows you to adjust which dlevel to mimic, and there are about 4 lines near the end to uncomment to get enemies, items, barrels, and the stairs in.

EDIT: There's also code to start you with a shotgun and 150 shells too, just above the 4 generation lines, also currently commented.

nicely done now if it could be incorperated into an episode.
Title: Re: Random map idea
Post by: RylandAlmanza on March 15, 2012, 12:09
When I started it, it told me "This mod was not designed with graphics support in mind (...)". I tried it with graphics anyways, though, and it worked perfectly. :) Nice work!
Title: Re: Random map idea
Post by: shark20061 on March 15, 2012, 13:08
Yeah, I can't seem to tell that graphics will be fine for the module.
Title: Re: Random map idea
Post by: shark20061 on March 16, 2012, 11:40
nicely done now if it could be incorperated into an episode.

Here you go then.  Also, here's an updated version of the single level so that you can have it generate various scenarios.  I hope the questions at the beginning aren't too annoying.  I also added more possibilities in the sections that could be generated, so it shouldn't feel as repetitive.

The barrackse.module is the episode version, the barracks.module is the updated single level.
Title: Re: Random map idea
Post by: RylandAlmanza on March 16, 2012, 13:48
Very nice, shark! Playing it right now.
Title: Re: Random map idea
Post by: Kornel Kisielewicz on March 18, 2012, 19:34
Screenshots? I'm interested!
Title: Re: Random map idea
Post by: shark20061 on March 18, 2012, 20:58
Screenshots? I'm interested!

But of course!

A few layouts as shown on console:


You open the door.                                                             
 You close the door.                                                           
 ##############################################################################
 #....................####..####.....##..##...................................#
 #.######.....###.....####..........##.==.##....##########...######.....###...#
 #.......#...#........##########......====.....##........##........#...#......#
 #........#########...#########.......====.....+....##....+.........#########.#
 #.#########..........#.............##.==.##...##........##..#########........#
 #......#...#.........+..............##..##.....##########........#...#.......#
 #...###.....######...#........................................###.....######.#
 #..................####......####.#...##...#.######..######..................#
 ####..###..##############..######..#.#..#.#..####......############..###..####
 ####..###..##############..######...#.@..#...####......############..###..####
 #..................####......####..#.#..#.#..######..######..................#
 #........#######.......#....#...............................####+###########.#
 #.########............##....##......##..##.....##########...#..#.#.........#.#
 #........#...........###....###....##.==.##...##.......>##..#.##.#.........#.#
 #...#############....................====.....+....##....+..#.........#.##.#.#
 #.........##.........###....###......====.....##........##..#.........#.#..#.#
 #..........#######....##....##.....##.==.##....##########...###########+####.#
 #......................#....#.......##..##...................................#
 ##############################################################################
  Shark                      Armor : none                                       
  Health: 100% Exp:  1/0%    Weapon: pistol (2d4) [6/6]                         
  cautious                                                    Test Map         


You open the door.                                                             
 You close the door.                                                           
 ##############################################################################
 #...........#######..####..####.....##==##.....#...........#######...........#
 #............#####.........####....##====##....+............#####............#
 #........##...###....##########....========....#..>..........###...##........#
 #.......####...#......#########....========....#########......#...####.......#
 #...#...####..................#....##====##....##########.........####...#...#
 #..###...##...................+.....##==##.....####................##...###..#
 #.#####.......................#.......##.......####..####..............#####.#
 ########...........######..#######...#..#...#######..######...........########
 ####..###..###..#######......####.###....###.#............####............####
 ####..###..###..#######......####.###..@.###.#............####............####
 #..................######..#######...#..#...#######..######..................#
 #.###########+####...#................##....................######.....###...#
 #.#.........#.#..#...+........................############........#...#......#
 #.#.........#.##.#...#........................#..........#.........#########.#
 #.#.##.#.........#...#########........##......+....##....+..#########........#
 #.#..#.#.........#...##########......####.....#..........#.......#...#.......#
 #.####+###########...####..........########...############....###.....######.#
 #....................####..####..############................................#
 ##############################################################################
  Shark                      Armor : none                                       
  Health: 100% Exp:  1/0%    Weapon: pistol (2d4) [6/6]                         
  cautious                                                    Test Map         


You close the door.                                                           
 You close the door.                                                           
 ##############################################################################
 #..................#####.........############...........#....................#
 #........#######....###..........############...........+...######.....###...#
 #.########...........#....#.............................#.........#...#......#
 #........#...............###....................#########..........#########.#
 #...#############.........#...#..#####..#####..##########...#########........#
 #.........##.................###.#####..#####........####........#...#.......#
 #..........#######..........#####..............####..####.....###.....######.#
 #..................#######+######..#.====.#..#######+######..................#
 ####..###..#########............#...======...####......#######............####
 ####..###..#########............#...======...####......#######............####
 ####............#########+#######..#.====.#..######+#######..................#
 ###......##......##..####..####........@.......####..####...######.....###...#
 ###.....####.....##..####......................+........#.........#...#......#
 #......######........##########.....######.....#...##...#..........#########.#
 #......######........#########.....########....#...##...#...#########........#
 ###.....####.....##..#.............########....#...##...#........#...#.....>.#
 ###......##......##..+..............######.....#........+.....###.....######.#
 ####............###..#...............####......####..####....................#
 ##############################################################################
  Shark                      Armor : none                                       
  Health: 100% Exp:  1/0%    Weapon: pistol (2d4) [6/6]                         
  cautious                                                    Test Map         


You close the door.                                                           
 You open the door.                                                             
 ##############################################################################
 ####..###..###..###...................##.......####..####..###..###..###..####
 ####..###..###..###.############.....####......+........#..###..###..###..####
 #.#....#....#....#..#..........#....######.....#...##...#...#....#....#....#.#
 #...................+....##....+....######.....#...##...#....................#
 #...................#..........#.....####......#...##...#....................#
 #.#....#....#....#..############..............>#........+...#....#....#....#.#
 ####..###..###..###............................####..####..###..###..###..####
 ####..###..###..#######......####..#.====.#..######..#########..###..###..####
 #########..###..#########..######...======@..######..#########..###..#########
 #########..###..#########..######...======...######..#########..###..#########
 ####............####### .....####..#.====.#..######..#########............####
 ###..............##............................####..####..##..............###
 ###.....====.....##..##########..#####..#####........####..##.....====.....###
 #......======.......##........##.#####..#####..##########........======......#
 #......======......./....##..../................#########........======......#
 ###.....====.....##.##........##........................#..##.....====.....###
 ###..............##..##########..############.........../..##..............###
 ####............###..............############...........#..###............####
 ##############################################################################
  Shark                      Armor : none                                       
  Health: 100% Exp:  1/0%    Weapon: pistol (2d4) [6/6]                         
  cautious                                                    Test Map         


And two in graphics, attached.

Title: Re: Random map idea
Post by: Kornel Kisielewicz on March 19, 2012, 00:02
Ping me in a week -- we'll push it into the core game :)
Title: Re: Random map idea
Post by: Klear on March 19, 2012, 03:33
I like the lava pool. Is there any way to have a random item with greater chance to be a unique in the middle? I have a feeling a lot of weapons were lying in acid/lava pools in Doom.

It would also be a motivation not to wear just tactical boots on every playthrough.
Title: Re: Random map idea
Post by: Pricklyman on March 19, 2012, 03:38
I like the lava pool. Is there any way to have a random item with greater chance to be a unique in the middle? I have a feeling a lot of weapons were lying in acid/lava pools in Doom.

It would also be a motivation not to wear just tactical boots on every playthrough.

This - Doom definately had plenty of items like this...although with the modern ports such as Zdoom you can just jump! ;P

Although RE: the tac boots - you could just take the boots off temporarily... :P
Title: Re: Random map idea
Post by: Klear on March 19, 2012, 03:49
Although RE: the tac boots - you could just take the boots off temporarily... :P

I don't think that's necessary, since they regenerate durability. I haven't tried how much time you can spend wading through hurtfloors until they are comletely destroyed, though I assume the health loss would be a much better reason not to do that.

I find it funny that the doomguy would take off his nice running shoes (http://www.youtube.com/watch?v=xQ9X8q_JKEw) and walked across lava/acid barefoot =)