[plugin] Random Dungeon Generator

Post your work in progress addons and get feedback

Post » Fri Jun 20, 2014 7:42 am

A Plugin which generates a dungeon of custom size and populates an array object with the generated information.

Download V0.1 (Early Alpha with an infinite loop bug. Use at your own risk.)
Download V0.2
Changelog:
- added expression "LoadStatus". 0 = not run or not finished generating; 1 = completed generation

3D Live-Demo
- You can walk around with WASD (just a visual demo, you can also walk through the black).
- Unfortunately, the infinite loop bug triggers from time to time. You will notice on the right textbox that there is no map created with the dimensions 100x100. In this case, you need to close that browser window/tab and call the URL again in another window/tab.)

2D Demo CapX
- Simple Demo which shows how a Dungeon can be generated and shown on screen

2D Live Demo
- More advances than the downloadable .capx
Character movement with "WASD"

Usage:
"Random Dungeon Generator" is a single action Plugin which requires an array object available in the project.
event.png



Variables:
MinRoom = the minimum amount of rooms to be created
MaxRoom = the maximum amount of rooms to be created

MinSize = the minimum size the whole Map needs to have
MaxSize = the maximum size the whole Map needs to have

MapSize = This is the width and height of the Map, this should always be bigger than MapSize in order to avoid errors

Squash = If set to yes, an algorithm is triggerd which moves the created rooms closer to each other

Array = You need to select an array object (the content of that array will be overwritten when the event is called


Arraylayout:
The Array will be filled with the following information at each x/y coordinate:
1=Floor
2=Wall
3=Empty

This Plugin is not completed yet (some additional functions will follow as soon I have some time to work on it).
You do not have the required permissions to view the files attached to this post.
Last edited by Ubivis on Mon Aug 18, 2014 2:01 pm, edited 8 times in total.
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Fri Jun 20, 2014 8:03 am

Kannst du vorab schon mal ne Demo davon zeigen? :D

Can you show a demo of it in advance?
B
33
S
6
G
7
Posts: 339
Reputation: 7,426

Post » Fri Jun 20, 2014 8:16 am

I can share one tomorrow, I am currently at work and am not able to set one up.

For everyone who likes to help on improving the plugin, please feel free to contribute here:
https://github.com/Ubivis/C2RPG-Essenti ... -Generator
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Mon Jun 23, 2014 1:15 pm

Really nice! Along with the tileset support, it can help to create really nice bases for a dungeon. I'm looking forward to its future iterations :) !
B
77
S
22
G
4
Posts: 311
Reputation: 12,704

Post » Mon Jun 23, 2014 1:22 pm

I would currently advice to not use the current version. I encountered a infinite loop bug in the code and am trying to get rid of it.

Roadmap for v3 (v2 already available on github, but not very useable):
- quicker algorith for room creation
- optional generation of entry and exitlocation
- optional generation of locked doors and key locations

If someone likes to see a little demo:
Demo
- You can walk around with WASD (just a visual demo, you can also walk through the black).
- Unfortunately, the infinite loop bug triggers from time to time. You will notice on the right textbox that there is no map created with the dimensions 100x100. In this case, you need to close that browser window/tab and call the URL again in another window/tab.)
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Tue Jun 24, 2014 6:52 am

Where to download the latest plugin?
B
108
S
26
G
267
Posts: 4,455
Reputation: 149,745

Post » Tue Jun 24, 2014 7:18 am

@rexrainbow : seems like Ubivis simply uses github as a repository.
B
77
S
22
G
4
Posts: 311
Reputation: 12,704

Post » Tue Jun 24, 2014 7:22 am

@Valerien

He said "Roadmap for v3 (v2 already available on github..." , so that it might not be the latest one.
I had tested it, no infinite loop occurred.
B
108
S
26
G
267
Posts: 4,455
Reputation: 149,745

Post » Tue Jun 24, 2014 7:27 am

@rexrainbow Yep same here. Might happen in a specific case or in rare occasions? Anyway, the latest available version seems to be on github.
B
77
S
22
G
4
Posts: 311
Reputation: 12,704

Post » Tue Jun 24, 2014 8:04 am

I will update the normal download later today with v2.
Anyone who is interested in downloading development releases, the git is set up here:
https://github.com/Ubivis/C2RPG-Essenti ... -Generator
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests