Kai Monkey's Random Dungeons! -- Now with Version Two!

Hello

Nice scipt there! Awesome I should say!! But, while playing / testing it, I found a big flaw ;_; :

When you have multiple required rooms with the same size they skacks up.

exemple : 3 switches required in a Puzzle dungeon

  You endup with 8 events instead of 5 : the <keep> one, the exit and 5 switches.

  They stacks in 3 piles: one of 3 switches, an other of 2 switches and, the last one, alone.

After some works, I find how to patch it. Basically there is only a keyword missing : "break". The rest is simply a personal rewrite.

Spoiler
#While there are rooms to add      if !room_slots.empty? and depth <= 10        p depth        depth+=1        next_batch = []        room_slots.shuffle!        for s in room_slots          next unless req_rooms.each_with_index{|req_room, i|            if (!s.disallow_quests && req_room != nil && req_room.w == s.w && req_room.h == s.h)              #place the req_room              next_batch.concat dungeon_room(req_room.map_id,  s.w,  s.h,  s.x,  s.y,req_room.x,req_room.y)              #remove the req_room              req_rooms.delete_at(i) # the next line is the patch. In your version, you continue to loop inside req_rooms after getting a match ;(              break # go to the next slot (the break statement will return the nil value and will be "capture" by the "next unless #{value}" above)            end          }          #otherwise, place random room, as per normal for that slot          next_batch.concat dungeon_room(s.map_id,  s.w,  s.h,  s.x,  s.y)        end        room_slots = next_batch      end
All for a world more..... random 🤘 🤘
Wow, good catch!

I did very little testing with multiple required rooms, so I am not surprised I didn't find this.

I'll put this fix in with the next version, along with the multiple size room feature and the option for non-rectangular dungeons!

Thank you very much!
When is Version 3 coming?
When it's finished.

I'm doing a lot of work on commission work right now, and stuff which earns me money has to take priority!

Most of the bulk of the coding is finished for V3, it's mostly just bug squishing and code polishing!

(And finding the two+ hours to write up the documentation. Gosh writing tutorials is dull)
Hey I am total newb at this but i keep getting the error game_interpreter line 1411 TypeError cannot convert array into string.

What did i do wrong?

my tiles map is 004 and my details map is 005 each tile is 7

Magiclan Exocrisis 9_11_2015 4_14_26 PM.png
What is your script command in the event?

your command should be :

rand_dungeon("004", "005", 7)OR

rand_dungeon(["004"], "005", 7)Any error starting with "Script 'Game_Interpreter` line : 1411: SomeError occured." means than there is an error in a script command.

those errors are the best to break any heads : RPG Maker hide some infos from the original error.
im still getting the same error i am so confused
Ohhh I remember this one now...

Right now your getting an error while trying to display the error.

change the line 192:

msgbox("ERROR PRODUCING DUNGEON:\n"+exception.backtrace)to:

msgbox("ERROR PRODUCING DUNGEON:\n" + exception.message + "\n" + exception.backtrace.inspect)now you will get the your real error.
Ohhh I remember this one now...


Right now your getting an error while trying to display the error.


change the line 192:



msgbox("ERROR PRODUCING DUNGEON:\n"+exception.backtrace)


to:



msgbox("ERROR PRODUCING DUNGEON:\n" + exception.message + "\n" + exception.backtrace.inspect)


now you will get the your real error.

hey i had the same problem i did what you said and got this error any idea how to fix this:

Errorpic.png
Only with the error message, it is hard to say... What is your script call and your map dimentions?


It seems that your map size is to small for the tile size. To "work properly" the map must be, at least, (2 tiles large) X (2 tiles long +2).
I wonder how version 3 is coming along...


Anyway, really awesome script. Tried to figure it out on my own and failed miserably, but read up and stuff and I'm starting to figure it out. I actually have multiple projects I could use this in!
Hello Kaimonkey! I wonder how version 3 is coming along. Anyway, since the random generation uses and re-uses the same map location, scripts like Fog of War or any script that is reliant to the map makes those scripts unusable. After clearing the floor of fog you'll get re-transported back to the same randomized map.


My question is, is it possible to create multiple "Dungeon_Space" maps since it is the map where the player is transported to, under the same "Dungeon_Tiles" map?


I also get this error message "Script 'Game_Interpreter' line 1411: TypeError occurred Can't convert Array into string" randomly after I hit the event which transfers me to the next level.


Thanks for the awesome script, this will help me massively in my dungeon crawler project. 😀


Edit: I got the multiple "Dungeon_Space" maps working via variables. Oh I am so noob.
Hey everyone,


I have semi-retired from RPGMakering, since I am now both working and studying full time. 
Version 3 was finished almost a year ago, and had some very nice features, but unfortunately (if memory serves) there are still a few bugs here and there, and more importantly the features which are added were very complicated and would talk ~2 or 3 hours to write up tutorials for in the same style as the other features.
I also wrote a super nice random quest generator which linked into the map generation i a very fun way, but alas I do not think that script will ever be finished. 


The bottom line is unless some other scripter is willing to go through the version 3 script and do the documentation, I do not see any way for this script to be releasable to the public. If anyone is willing to do that, or wants to use the undocumented untested version 3 in a project you will have to send me a PM. Otherwise, this is it, I am afraid.


Sorry to be the bearer of bad news,


Best,


Kai
Hi there! First of all, I LOVE this script. Seriously outstanding. Secondly, I'm trying to pair this with ABS Pearl, and am experiencing some issues with the script freaking out when enemies aren't where it expects them to be. The only workaround I've found is just not working for me, and I was wondering if there's any way to make a fixed room location so that my enemies spawn there and then get teleported to random places by region. I'd also like entrances and exit events to spawn at the edges of the map every time. Are there ways to do this? I'm coming up blank. Thanks again for the incredible script
So, if I had money in this hand and you had this script made for MV in your hand, how much money would I have to have for us to change the contents of these hands?
Hi,
If I had the script in my hand then I would be giving it away for free for non-commercial projects and commercial licences would be negotiated on a case by case basic as discussed in the opening post.

However I expect you know that I am not secretly hoarding the plug in on my hard drive. So this makes your question "How much would it cost to hire you to recreate this script". Unfortunately (at least in a sense) over the last year I have got a well paying job (cutting edge in a very niche game genre). This means that in order for me to take time off to dedicate to more games programming I am going to have to demand a reasonably large amount, which I believe will be out of price range of most hobbyists.

I may end up producing this script anyway for MV, I did once through together a test project to research what parts of the script could and couldn't work the same way and discovered that there are actually several more technical difficulties involved with working with MV's codebase. But I will make no promises that this will ever happen, let alone when.

If you are serious about commissioning my services please end my a private message

/Kai
I think releasing version 3 publicly without documentation and asking community help for it would be pretty nice! There's plenty of scripts whose works were continued by different authors after they moved on from RPG Maker, the sooner you release the bigger the chances of someone writing the documentation = )
The version 3 source code has been distributed to a number of scripters who have already contacted me via PM. The problems are as follows:
  1. The Script is not in a stable state
  2. The features and changes introduced have not been documented
  3. The code in all versions is entirely undocumented :aswt2:

This combination makes anyone who wants to create a working version of the script have to put in a large amount of effort. The first step in that process is writing me a small message

/Kai
Lol, if it was in a price range, I was going to release it too. Just want sure if money was a deciding factor, is all.
I am sure it outside my range for you to take attention away, I can dig it, just checkin
I know this is old but I'm a bit confused on the Width and Height regarding this script.
Dungeon_Settings.add_required_room( 12 ,1,2, 3, 4)

Plus where do I put it? I can't download the demo, it only gives me an txt file that crashes upon trying to open up. Do I need the Width and Height of the Required Room map?

Original thread: https://forums.rpgmakerweb.com/threads/kai-monkeys-random-dungeons-now-with-version-two.40197/