Fixed Infinite Recursion in the 1E NPC Generator

Dec 9, 2014
Mark
Comments Off on Fixed Infinite Recursion in the 1E NPC Generator

Alas, the 1E NPC Generator has had a bug for a few months. It was low on the priority list to fix. The problem turned out to be infinite recursion due to random choices. I added alternate resolution mechanisms to the class selection when the chosen race could never meet any class/racial minimums.

The new paths allow for alternate race selection, attribute swapping, attribute bumping (capped to less than 3 additional points) when the attribute sum is less than average across the board, and finally to just bail and roll new stats and start the process over. I need to refactor the entire approach. For now, the generator cannot just exhaust the available memory attempting to fit a square peg into a hexagonal hole.

The generator needs more time on the development slate. I’ll try to work it more this month to expand the capabilities and correct some errors in the design in the coming months. The twisting turns of chargen in 1E make coding a nightmare of edge case handling.

Tags:

Comments are closed.