CHAOS HACK

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Joramun
Mon Master
Posts: 925
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

CHAOS HACK

Post by Joramun »

EDIT:

Removed the ugly code from the page. The code is now officially too huge to be posted here.

Chaos Hack can be found here.

It is a random dungeon generator. It can be used to generate maps in ESB.

Most generated dungeon are playable (actually all, but some maybe too difficult).

However there is no ending condition. Consider you've won if you have explored a dungeon completely.

The code is open source.

You can modify the size of the dungeon and the starting party in dungeon.lua

I recommend NOT playing around with startup.lua, otherwise everything can get screwed.
( Ask me questions if you want to play with it and don't understand what's what in startup.lua)
Last edited by Joramun on Thu Dec 02, 2010 10:10 pm, edited 4 times in total.
What Is Your Quest ?
User avatar
oh_brother
Son of Heaven
Posts: 1897
Joined: Wed Aug 12, 2009 11:13 am
Location: The Screamer Room

Re: CHAOS HACK

Post by oh_brother »

Very nice idea! It gives me a reason to try DSB soon.
User avatar
ian_scho
High Lord
Posts: 2806
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

Re: CHAOS HACK

Post by ian_scho »

lol, nice one. I had a not-too-dissimilar idea only a bit broader.... 'GnomeFortress'. You'll know what I'm talking about, Joramun.

Glad you are releasing this stuff!
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Re: CHAOS HACK

Post by Adamo »

Well done! Paul did make a special maze-making tool if you`re interested in using his algorythms:
http://www.dianneandpaul.net/CSBwin/MakeMaze.zip (check this file, it can create random dungeon using defined values).

BTW, Dungeon Hack is a gooood idea.
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Sphenx
On Master
Posts: 566
Joined: Sun Sep 09, 2001 11:23 am
Contact:

Re: CHAOS HACK

Post by Sphenx »

I loaded it, started in front of a Trolin, finished me in three bash! hopefully it is random so I can see more for the next dungeon :) That's a good start Joramun!
User avatar
Joramun
Mon Master
Posts: 925
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: CHAOS HACK

Post by Joramun »

Hehe Sphenx, as I said, the randomizer is NOT balanced.
But I don't have anytime to work on it right now...

Also: you can edit the size and depth of the dungeon in dungeon.lua to get bigger dungeons.
Beware of not putting too big numbers. Typically a size of 32 makes very big levels.
The minimum size is around 7. Below the randomizer fails.
What Is Your Quest ?
User avatar
Joramun
Mon Master
Posts: 925
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: CHAOS HACK

Post by Joramun »

A small fix for the startup.lua code.

Monster should be well placed now.
What Is Your Quest ?
User avatar
ian_scho
High Lord
Posts: 2806
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

Re: CHAOS HACK

Post by ian_scho »

Q: Where did you source your randomizer or create_dungeon function? I've never had the heart to look at dungeon building games such as nethack... Had a look at the way Captive generated it's maps once though.

Appreciate the comments in the code, btw.
User avatar
Joramun
Mon Master
Posts: 925
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: CHAOS HACK

Post by Joramun »

Ian, I inspired myself from the Captive constructor, indeed. Everything is coded from scratch, after many attempts.
The algorithm is rather original, and departs from the Captive generator in many ways, especially once the pure "digging" is done.

A new version is up see link above.
It is better balanced and with almost every feature of normal dungeons
except: a winning condition, real puzzles,and non-linearity (no loops),
What Is Your Quest ?
Post Reply