Posts

Showing posts with the label trace debugging

The Game Engines of War

Image
I was all set to create a battlefield area for "Faithless" when I realized that I had no idea how large my area was supposed to be. I need to make several battlefields for my module, but I did not know what the minimum dimensions are and how many NPC soldiers the NWN2 engine can handle without slowing down too much. To give me some inkling of these figures, I decided that making an initial set of AI scripts for relatively large scale battles was in order. Instead of writing my scripts in the NWN2 Electron Toolset, I chose to create them in the NWN1 Aurora Toolset first. Scripting and testing in NWN1 is much faster than in NWN2. I figured that porting my NWN1 scripts to NWN2 later would be a simple matter. After two days, I got an initial set of scripts working. To test the scripts, I pitted an army of 38 dwarves against a total of 41 enemies -- 28 orcs, 11 half-orcs, and 2 hill giants. All of the foot soldiers on both sides were level 3, and most of their commanders were leve...

News Flash: No Work Done on "Faithless"

I haven't been able to do any work on "Faithless" over the past week. Instead, I enhanced my "Battle of the Builds" module by adding three new power builds for player characters to fight. I had considerable difficulty creating the custom AI of one of the NPCs, the Blood Scholar, mostly because I had to work around the limitations of the NWN2 engine regarding NPC wizards casting spells with metamagic. When I finally released version 1.18 of "Battle of the Builds," I discovered a flaw in the rangers' AI. To make matters worse, I realized that a long-standing bug in the NWN2 engine was confusing players because clones of their characters were sometimes more powerful than the PCs on which they were based. I immediately set myself to ironing out these flaws. Three days later, I released version 1.19 of the module. Changing and debugging my scripts was unexpectedly difficult. It's a good thing I had invented a trace debugging technique for NWN script...