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

azuma01

Villager
Member
Joined
Jul 16, 2015
Messages
6
Reaction score
0
First Language
Ruby
Primarily Uses
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.

#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 :rock-left: :rock-right:
 
Last edited by a moderator:

Kai Monkey

Veteran
Veteran
Joined
Apr 3, 2012
Messages
166
Reaction score
119
First Language
RGSS3
Primarily Uses
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!
 

Agustin

Whoa, just take it easy man.
Veteran
Joined
May 31, 2015
Messages
48
Reaction score
36
First Language
English
Primarily Uses
When is Version 3 coming?
 

Kai Monkey

Veteran
Veteran
Joined
Apr 3, 2012
Messages
166
Reaction score
119
First Language
RGSS3
Primarily Uses
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)
 
Last edited by a moderator:

eronlowe99

Warper
Member
Joined
Mar 5, 2015
Messages
2
Reaction score
0
First Language
english
Primarily Uses
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
 

azuma01

Villager
Member
Joined
Jul 16, 2015
Messages
6
Reaction score
0
First Language
Ruby
Primarily Uses
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.
 

eronlowe99

Warper
Member
Joined
Mar 5, 2015
Messages
2
Reaction score
0
First Language
english
Primarily Uses
im still getting the same error i am so confused
 

azuma01

Villager
Member
Joined
Jul 16, 2015
Messages
6
Reaction score
0
First Language
Ruby
Primarily Uses
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.
 
Last edited by a moderator:

omgcow1234

Villager
Member
Joined
Apr 25, 2016
Messages
5
Reaction score
0
First Language
English
Primarily Uses
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
 

azuma01

Villager
Member
Joined
Jul 16, 2015
Messages
6
Reaction score
0
First Language
Ruby
Primarily Uses
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).
 

Probotector 200X

Probotect and Serve
Veteran
Joined
Mar 14, 2012
Messages
913
Reaction score
168
Primarily Uses
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!
 

quackenbirdt

salieri09
Veteran
Joined
Aug 21, 2016
Messages
59
Reaction score
59
First Language
Filipino
Primarily Uses
RMMV
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. :D


Edit: I got the multiple "Dungeon_Space" maps working via variables. Oh I am so noob.
 
Last edited by a moderator:

Kai Monkey

Veteran
Veteran
Joined
Apr 3, 2012
Messages
166
Reaction score
119
First Language
RGSS3
Primarily Uses
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
 

KaliYuga

Villager
Member
Joined
Oct 3, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
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
 

SirCumferance

Veteran
Veteran
Joined
Jul 17, 2012
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMMV
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?
 

Kai Monkey

Veteran
Veteran
Joined
Apr 3, 2012
Messages
166
Reaction score
119
First Language
RGSS3
Primarily Uses
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
 

JosephSeraph

White Mage
Restaff
Joined
Mar 7, 2014
Messages
1,186
Reaction score
1,444
First Language
Portuguese
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 = )
 

Kai Monkey

Veteran
Veteran
Joined
Apr 3, 2012
Messages
166
Reaction score
119
First Language
RGSS3
Primarily Uses
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
 

SirCumferance

Veteran
Veteran
Joined
Jul 17, 2012
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMMV
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top