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)
CHAOS HACK
Moderator: Sophia
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- oh_brother
- Son of Heaven
- Posts: 1897
- Joined: Wed Aug 12, 2009 11:13 am
- Location: The Screamer Room
Re: CHAOS HACK
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!
Glad you are releasing this stuff!
Re: CHAOS HACK
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.
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<)
Re: CHAOS HACK
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!

Re: CHAOS HACK
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.
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 ?
Re: CHAOS HACK
A small fix for the startup.lua code.
Monster should be well placed now.
Monster should be well placed now.
What Is Your Quest ?
Re: CHAOS HACK
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.
Appreciate the comments in the code, btw.
Re: CHAOS HACK
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),
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 ?