[DSB] Chaos Hack - a random dungeon generator

Custom dungeons for DSB
Forum rules
Please read the Forum rules and policies before posting.
User avatar
Bit
Mon Master
Posts: 1021
Joined: 3-Mar-08 09:53
Location: Nuts trees

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Bit » 2-Mar-12 01:05

Bit knows why!
The last requests I made always started avalanches of chaos and really treated her hard.
Well, this lil function now surely should leave her relaxed, she deserves it!

User avatar
the master
On Master
Posts: 570
Joined: 9-Oct-09 18:29

Re: [DSB] Chaos Hack - a random dungeon generator

Post by the master » 4-Mar-12 18:52

Think I am stuck right at the very end. Have battled through and killed everything in the dungeon. Now stuck on a small level where I need a gold key to get through an ornate gate and can see another one beyond that for which I have the key. Looked everywhere for this gold key. Any ideas.

User avatar
Gambit37
Should eat more pies
Posts: 13264
Joined: 31-May-00 11:57
Location: Location, Location
Contact:

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Gambit37 » 4-Mar-12 19:07

I don't think anyone can help, @the master, it's a random dungeon....

User avatar
the master
On Master
Posts: 570
Joined: 9-Oct-09 18:29

Re: [DSB] Chaos Hack - a random dungeon generator

Post by the master » 4-Mar-12 21:09

Oh yeh, forgot about that.

User avatar
zoom
Grand Master
Posts: 1819
Joined: 22-Sep-03 23:27
Location: far away but close enough

Re: [DSB] Chaos Hack - a random dungeon generator

Post by zoom » 5-Mar-12 08:08

I thought it was possible to share the generated dungeon with others. You just have to:
Joramun wrote: TRICKS:

- Open in ESB and save elsewhere to have a constant dungeon.
??

User avatar
Jan
Mighty Pirate
Posts: 2760
Joined: 23-Sep-08 14:55
Location: Scumm Bar, Czech Republic

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Jan » 5-Mar-12 10:16

Yeah, but as fas as I understand it you have to do it before you start playing? In other words, The Master is doomed. :?
Finally playing and immensely enjoying the awesome Thimbleweed Park-a-reno!

User avatar
zoom
Grand Master
Posts: 1819
Joined: 22-Sep-03 23:27
Location: far away but close enough

Re: [DSB] Chaos Hack - a random dungeon generator

Post by zoom » 5-Mar-12 10:20

so then everyone should - just in case - save the dungeon beforehand

User avatar
Joramun
Mon Master
Posts: 911
Joined: 25-May-06 17:05
Location: The Universe

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Joramun » 6-Mar-12 21:13

zoom wrote:I thought it was possible to share the generated dungeon with others. You just have to:
Joramun wrote: TRICKS:

- Open in ESB and save elsewhere to have a constant dungeon.
??

You can also share the dungeon.dsb file :
The dungeon is only generated once, at compilation, not every time you start the dungeon.
Setting COMPILE=0 in the dsb.ini file should also keep the dungeon to always be the first generated dungeon.
(however, it will be different for every person)

On the other hand, ESB will always recompile a new dungeon.
What Is Your Quest ?

User avatar
the master
On Master
Posts: 570
Joined: 9-Oct-09 18:29

Re: [DSB] Chaos Hack - a random dungeon generator

Post by the master » 8-Mar-12 19:21

Went back and eventually found the gold key which opened an ornate gate. Inside this was another gate which I unlocked. Thought this might be the end but.......no fluxcage. Killed everything now, used all the keys. So where is the end of this game?????????

User avatar
Joramun
Mon Master
Posts: 911
Joined: 25-May-06 17:05
Location: The Universe

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Joramun » 11-Mar-12 12:28

Hmmm. You might have missed a fake wall.
What Is Your Quest ?

User avatar
the master
On Master
Posts: 570
Joined: 9-Oct-09 18:29

Re: [DSB] Chaos Hack - a random dungeon generator

Post by the master » 23-Apr-12 23:12

Your joking of course, there are hundreds of walls. Are you suggesting I try them all. Is the fake wall near to the ornate gate. Is it at least on that level somewhere?

User avatar
Gambit37
Should eat more pies
Posts: 13264
Joined: 31-May-00 11:57
Location: Location, Location
Contact:

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Gambit37 » 23-Apr-12 23:40

Um, I hate to say this again, but this is a *random* dungeon. No-one can help you, because they won't have the same game as you...

User avatar
lord soth 75
Adept
Posts: 246
Joined: 8-Mar-12 23:31
Location: England

Re: [DSB] Chaos Hack - a random dungeon generator

Post by lord soth 75 » 24-Apr-12 00:39

This seems cool.

Im gonna download DSB,and give this a try.
Romero and Carmack NEED to re-group.Modern gaming needs to be saved from the greedy bastards who are ruining it all.

User avatar
Joramun
Mon Master
Posts: 911
Joined: 25-May-06 17:05
Location: The Universe

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Joramun » 24-Apr-12 18:23

the master wrote:Your joking of course, there are hundreds of walls. Are you suggesting I try them all. Is the fake wall near to the ornate gate. Is it at least on that level somewhere?
:twisted: No :twisted:

Who doesn't bump in every wall in DM ?

*bumps head*
What Is Your Quest ?

User avatar
lord soth 75
Adept
Posts: 246
Joined: 8-Mar-12 23:31
Location: England

Re: [DSB] Chaos Hack - a random dungeon generator

Post by lord soth 75 » 24-Apr-12 22:11

I'v been playing around with this tonight. Its good fun.
One of the dungeons it generated pitted me against 4 mummies as soon as the dungeon door opened :o
I didn't last very long as i unarmed.
Romero and Carmack NEED to re-group.Modern gaming needs to be saved from the greedy bastards who are ruining it all.

User avatar
lord soth 75
Adept
Posts: 246
Joined: 8-Mar-12 23:31
Location: England

Re: [DSB] Chaos Hack - a random dungeon generator

Post by lord soth 75 » 28-Apr-12 21:58

Got a real good Random dungeon on the go at the moment.

Im 3 or 4 levels down.Armed with an axe,and fully clothed.
Smashing my way through mummies and screamers......and now, iv just ran into a massive lair full of Purple Worms and Rock piles. :D

How many levels are there to each random dungeon?
Romero and Carmack NEED to re-group.Modern gaming needs to be saved from the greedy bastards who are ruining it all.

User avatar
the master
On Master
Posts: 570
Joined: 9-Oct-09 18:29

Re: [DSB] Chaos Hack - a random dungeon generator

Post by the master » 28-Apr-12 23:03

Just keep going lord soth you should reach the bottom by the new millennium :D

User avatar
lord soth 75
Adept
Posts: 246
Joined: 8-Mar-12 23:31
Location: England

Re: [DSB] Chaos Hack - a random dungeon generator

Post by lord soth 75 » 28-Apr-12 23:57

the master wrote:Just keep going lord soth you should reach the bottom by the new millennium :D
:lol: :lol:

Iv just found my first magic box. :)
Im tooled up with an Axe,a Sword,and a Sabre.
6 treasure chests full of food (Just in case)
Able to cast 3rd level Fireballs and poison cloud's.

Battling through an onslaught of Purple Worms,Armoured Worms,Rock Piles,and now....Skeletons (Which have about 9 million hit points each!!)
Its like a 3d version of the old Atari arcade game 'Gauntlet' :D

Loving this.
Romero and Carmack NEED to re-group.Modern gaming needs to be saved from the greedy bastards who are ruining it all.

User avatar
ian_scho
High Lord
Posts: 2803
Joined: 7-Apr-06 06:30
Location: Zaragoza, Spain

Re: [DSB] Chaos Hack - a random dungeon generator

Post by ian_scho » 29-Apr-12 07:16

Its like a 3d version of the old Atari arcade game 'Gauntlet'
Blimey, Gauntlet. That brings back memories.

User avatar
Jan
Mighty Pirate
Posts: 2760
Joined: 23-Sep-08 14:55
Location: Scumm Bar, Czech Republic

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Jan » 29-Apr-12 07:38

lord soth 75 wrote:How many levels are there to each random dungeon?
I think Joramun mentioned earlier that it was
SpoilerShow
16
? But I might be wrong. Anyway, go on! I do like your "Rambo-like-blood-n-guts" descriptions! :D
Finally playing and immensely enjoying the awesome Thimbleweed Park-a-reno!

User avatar
Joramun
Mon Master
Posts: 911
Joined: 25-May-06 17:05
Location: The Universe

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Joramun » 29-Apr-12 08:09

Jan wrote:I think Joramun mentioned earlier that it was
SpoilerShow
16
?
Right, it's
SpoilerShow
16
. You can also modify that (and the width of the levels, which is the same) in the dungeon.lua file. 128 levels takes about 40 seconds to generate on my computer.

NB:
- the difficulty is scaled across the whole depth, so a 128 level dungeon won't be much more difficult than a 32-level one. Maybe less if you're patient, seing the massive amount of XP to be gained.
- the minimum dungeon level width is 4, below 3 will cause crashes and infinite search loops (trying to fit stuff that just doesn't).
- i thought i had solved the mummy-at-entrance problem, but it seems I didn't... In next version I'll try to completely remove that 'bug'.
What Is Your Quest ?

User avatar
Gambit37
Should eat more pies
Posts: 13264
Joined: 31-May-00 11:57
Location: Location, Location
Contact:

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Gambit37 » 29-Apr-12 09:04

ian_scho wrote:Blimey, Gauntlet. That brings back memories.
Wow. Don't get me started. I used to play the arcade version after school A LOT. A simple, yet great game. I always chose the Elf for his speed, but I wasn't very good at the game. That voice will haunt me to my grave:

"Elf... shot the food!"

The narrator made that game something special. "I've never seen such bravery!" when you were mashing up a mega-horde, or "Let's see you get out of here!". Fun times :-)

I wonder if a Gauntlet inspired custom dungeon (with narrator) would be worth making? I mean after all, to be true to the game, you just need thousands of mobs, some doors and keys, an exit and no real puzzles. Probably quite boring actually...

User avatar
ian_scho
High Lord
Posts: 2803
Joined: 7-Apr-06 06:30
Location: Zaragoza, Spain

Re: [DSB] Chaos Hack - a random dungeon generator

Post by ian_scho » 29-Apr-12 11:11

You can't beat having a complete stranger wanting to strangle you over a lost 10 pence in the arcade machine!

Back on topic one of the ideas I had was to do a Chaos Hack style game (or Dwarf Fortress, actually) but to create 'templates' that on each level would insert a pre-generated area (temple or cravass, etc). That way it could be random... With a plot.

User avatar
raixel
The Dungeon Master Cylinder
Posts: 1200
Joined: 21-Jun-10 08:10
Location: I see Mount Rainier in the distance...

Re: [DSB] Chaos Hack - a random dungeon generator

Post by raixel » 29-Apr-12 12:16

God, yeah, that'd be grat. Especially since the DM chars have colors associated with their position. I can juts see it now. "BLUE WIZARD IS ABOUT TO DIE!"

User avatar
Jan
Mighty Pirate
Posts: 2760
Joined: 23-Sep-08 14:55
Location: Scumm Bar, Czech Republic

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Jan » 29-Apr-12 12:50

I'm currently enjoying Chaos Hack and when bashing a door on some mummies' heads I got "1 LUA ERROR" but I can go on without problems. The log.txt says:

Code: Select all

INIT: Parsing configuration file
INIT: Using gamedir C:\DM\DSB\chaos_hack (base:0)
INIT: Starting windowed mode
INIT: Using color depth of 32
INIT: Starting FMOD
INIT: Triple buffering unavailable or disabled.
LUA: Lua initialized
Parsing base/global.lua
Parsing base/graphics.lua
Parsing base/inventory_info.lua
Parsing base/util.lua
Parsing base/triggers.lua
Parsing base/conditions.lua
Parsing base/monster.lua
Parsing base/monster_ai.lua
Parsing base/methods.lua
Parsing base/damage.lua
Parsing base/xp.lua
Parsing base/magic.lua
Parsing base/msg_handlers.lua
Parsing base/hooks.lua
Parsing base/system.lua
Parsing base/render.lua
Parsing base/startup.lua
Parsing C:\DM\DSB\chaos_hack/startup.lua
Parsing base/objects.lua
OBJ: 405 system archs
OBJ: 405 total archs
DUNGEON: Attempting to load
Parsing C:\DM\DSB\chaos_hack/dungeon.lua
Dunno what that means. I'm just reporting it if anyone was interested. :wink:
Finally playing and immensely enjoying the awesome Thimbleweed Park-a-reno!

User avatar
Sophia
Concise and Honest
Posts: 4007
Joined: 12-Sep-02 19:50
Location: Nowhere in particular
Contact:

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Sophia » 29-Apr-12 16:44

You cut it off before it actually showed what the Lua error was. :?

User avatar
Joramun
Mon Master
Posts: 911
Joined: 25-May-06 17:05
Location: The Universe

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Joramun » 29-Apr-12 16:52

ian_scho wrote:You can't beat having a complete stranger wanting to strangle you over a lost 10 pence in the arcade machine!

Back on topic one of the ideas I had was to do a Chaos Hack style game (or Dwarf Fortress, actually) but to create 'templates' that on each level would insert a pre-generated area (temple or cravass, etc). That way it could be random... With a plot.
Well, Chaos Hack does that for staircases: it places them before hand on every levels, with special bounds so that they get automatically and correctly connected to the dungeon.

However, I didn't make it generic enough to easily add special rooms etc.
I would have to refactor some code before implementing that, and right now I'm working on RTSB (RTC -> DSB converter).
What Is Your Quest ?

User avatar
Jan
Mighty Pirate
Posts: 2760
Joined: 23-Sep-08 14:55
Location: Scumm Bar, Czech Republic

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Jan » 29-Apr-12 16:57

Sophia wrote:You cut it off before it actually showed what the Lua error was. :?
Sorry. It told me to look at log.txt so I copied it - I was puzzled by the absence of any error messages in the text but I thought it would help you anyway. :oops: *scratches his head* What did I do wrong? If that happens next time, what do you want me to do?

Anyway, I'm really enjoying that game. Except I haven't found any flask yet and this is quite inconvenient when I fight all these poisonous monsters. And I also haven't found a vorpal blade.

I've downloaded the latest version of both the engine and the game and the torches still can't be taken from the sconces.
Finally playing and immensely enjoying the awesome Thimbleweed Park-a-reno!

User avatar
Joramun
Mon Master
Posts: 911
Joined: 25-May-06 17:05
Location: The Universe

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Joramun » 29-Apr-12 17:13

Jan wrote:I've downloaded the latest version of both the engine and the game and the torches still can't be taken from the sconces.
:oops:

There is no new version right now...
What Is Your Quest ?

User avatar
Sophia
Concise and Honest
Posts: 4007
Joined: 12-Sep-02 19:50
Location: Nowhere in particular
Contact:

Re: [DSB] Chaos Hack - a random dungeon generator

Post by Sophia » 29-Apr-12 17:13

Hmm, I guess it was still in the buffer.
I'll change future versions of DSB to flush the buffer after posting that message.

If it happens again, for the time being, just check the log after you're done playing and have quit DSB.

Post Reply