is killing me. I can't seem to do it. I've looked up so much info on this, played with examples and it seems my low math skills and lack of programming experience cause me to fail every time. The only thing i need to do to finish my rpg is finish the dungeon generating code. I've tried different methods multiple times and i can't get the results i need. i can hardly understand most examples i found on the GMC. The BSP method made the most sense to me but i suck at using data structures such as grids which are needed. i can only write the most basic of code with them.
I don't think i can even ask for help at this point… again another project of mine comes crashing down completely due to my lack of skill… i really don't know what to do. i REALLY wanna finish this game but i just don't know what i can do. it's one of the most frustrating experiences i've forced myself into. Everything else is done for the game too. Town generating, all the graphics, items, weapons, classes, etc. All i need is to generate dungeons, it can't be a full game without it and at this point, i can't hand make the dungeons - that would contradict every thing else in the game.Does anyone have any good advice for randomly generating dungeons, or no of tutorials or examples for idiots like me?
I prototyped a system once that went something like this:
1) Randomize the size of the room, anywhere between 50 to 127 * 32.2) Based on the area of the room, come up with between 6 to 18 sub-rooms.For each sub-room, come up with a random size for both length and width, between 3 to 10 and adjust for overall room size.3) Position them randomly.4) Have an object check to make sure that every room is accessible to every other room by some means. If this ever fails, then generate a pathway between two random rooms and try again.5) Pick two of the farther-away rooms and place a start and endpoint there.6) Decide whether or not to incorporate a locked door. If so, place a key in a random room that IS accessible to the player.7) If the locked door is not required to reach the exit, spawn a rare treasure or powerful enemies in the room on the other side, and delete pathways that might lead around the door.I only got to like step 5 before everything began to break :<You could say that Rob's account is close to getting…
…a death sentence.Never speak again.
Actually death is just asking the best and easiest way to generate dungeons, why create a problem like this? If Rob wants to troll then just let him troll, ignore him and go on.
In all honesty, I've been watching this blog with growing anticipation. I'd love to learn the art of procedural generation, but the only thing I've pulled out of GM methods is using a Perlin noise DLL. Even with that, I have little idea of how to actually go about it.
Same here. Procedural generation seems interesting to me, but given my very, very simple way of coding things I've never been able to accomplish this.