Printing out my known spells to the d20\fantasy\pdf\csheet_fantasy_spellbook.fo adds a 'dummy' entry to the end of the list (showing last two entries for comparison):
This was for a Illusionist with 3 additional Innate spells, and only 1st level spells known (but with additional spell books containing extra 1st level spells) if that helps.
Level: Brd1, Sor1, Wiz1
Components: V, S, M
Casting Time: 1 standard action
Range: Close (30 ft.)
Target: One invisible, mindless, shapeless
Duration: 2 hours
Saving Throw: None
Spell Resistance: No
Effect: Invisible force obeys your commands.
Casting Time: 0.0
Saving Throw: 0.0
Spell Resistance: 0.0
I can replicate it with the provided character, with a typical character I create, I don't get the problem. Isolating the issue is taking time.
James - I've looked at the PCG, and I'm not seeing anything abnormal. I'm guessing there is something code is sending to make the count off. When you have a few minutes.
It looks like inline FOR is not short cutting the loop when used with the SPELLMEM token. The docs do say it should but I suspect this has never worked with this combo.
This inline FOR syntax is hideous and I don't propose to fix it unless we decide not to go ahead with the FreeMarker exporting.
In the meantime this can be improved slightly on the OS side. The line starting
Note: The use of -1 in the SPELLMEM spellbook number is no longer supported.
I don't know why, but the -1 in the SPELLMEM works. I'll be happy when we move to Freemarker.
Fixed quite some time ago, never closed the tracker though.