Friday, January 23, 2009

Need Testers for the random dungeon aspect.

I have enough working (two dungeon sets and 3 sets of critters) to start getting feedback on how the system works. Not just outright bugs but things like difficulty settings, dungeon lenght/layout and the like. If you are interested in helping out you can contact me at the e-mail associated with this blog or PM loudent2 at the NWN2 Forums

-Loudent2

Sunday, January 4, 2009

Now with Random Dungeons!

During an unrelated conversation I came upon the realization that what the overland map *really* needs (regardless if it's over water or not) is random dungeons.

There is a random dungeon spawner that was created for NWN1 and that I successfully incorporated into our first NWN1 world.

It works by taking jigsaw pieces of a dunngeon and assembles them in a random order and capped off with an objective room. Enemies and traps are spawned as you go through and there are possible side passages that end up in dead ends. There are roughly 2-4 encounters per area. The concern for NWN2 is the area transitions. However, the relatively small and sparse areas (very few actual placeables) make for quick loading (couple of seconds) and I'll make sure the creatures and traps will work fast as well.

The main asset of the original system that I was interested in was the 20 sets or areas(there are roughly 22 areas per set, 20 normal areas and 2 objective rooms, so a bit over 400 areas total). To move the areas to NWN2 I used the NWN1->NWN2 area creator to convert one of the sets. There is copious use of tilesets that the converter doesn't handle but it is a solid start. Here are some screen captures of the dungeon theme objective rooms in NWN1 and NWN2:

Doing all 22 areas in this set represents about 5 hours of work, but some of that was part of a learning curve. I expect future basic sets to take about half that time. The CEP sets that don't convert will take a bit longer as I have to map out the areas (although objects come over well).

I've completely rewritten the Random system so that very little of the original code remains and the system will be both SP and MP ready when I break it out of this project.

There are still some remnants that I'm not pleased with. The old trigger system worked well but the visuals are terrible in NWN2 (that spinning world graphic that can be huge if you have a long, but narrow trigger). I'll probably modify it so that it can connect directly to the doors that are there and use the NWN1 trigger graphics for the ones that remain.

Then I exported everything out to to a .erf, imported it to the SoS project and created an island with an entrance to the random dungoon.

So there we have it. Of course I wouldn't post without a new video so here's a "Lost Island" with a dungeon entrance and I take two trips through. It's the shortest dungeon you can generate (4 rooms and an objective) and there just happens to be no side passages in either so it's a quick set of runs.

(A higher rez version is on youtube. Click on Proof of Concept Video 7 to the left to view it)