Thats a good possibility, I wouldnt be suprised if this was causing a segfault when you activate a spell with an id higher than the whats defined here...
/*
solar: look at your spells_en.txt and find the id of the last spell.
this number has to be 1 more than that. if it's higher, your zone will
NOT start up. gonna autodetect this later..
*/
#define SPDAT_RECORDS 3602^M
Being set low doesnt cause a problem, but activating a new spell with this lower number could cause array out of bounds exceptions... spells[] goes up to 3602, then you try to reference spells[3640]
I'll play around with it tonight. The best way to do it would be to write a function that will parse out and find the max id in the current spells_en.txt, then use that+1 for the array size (as solar suggested at some point in the past in the comment).
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|