Firstly, hi everyone - Samson.
Alright, I've installed the overland snippet and it all works good and I'm perfectly happy with it. I'm down to one last, super frustrating bug. I've been hacking at it for 5 hours and I'm at my wits end, so here goes.
After I save an area (foldarea) and it saves with the slight changes to the file format as prescribed by the snippet I can no longer reload that area. I get ye olde "BUG: Load_objects: # not found.".
I searched around and noticed a couple of other people had had the same problem before, but noone had ever ACTUALLY solved it (publically anyway). So I get to debugging.
Now as you know, the only serious change to the saved areas is that it adds the x and y coordinates to the exit information so you'd figure it would be something to do with this.. I looked at it for a while and tried many things, but not much success.
So I decided to get some more detailed debugging information out of that Load_objects: # not found.
I made it display a line of the text encountered at the file pointer that was being passed through (where it expected the #), and it was 'heal'. Take a look at the area file (newdark.are) at the relevant point...
potion violet glowing~
a glowing violet potion~
A glowing violet potion has been carelessly left here.~
10 321 1
25 -1 -1 -1
1 3000 6100
'heal' 'NONE' 'NONE'
And tell me that isn't freaky. The file pointer has somehow jumped 10 lines from where it should be pointing when load_objects is called!
I'm lost. The only thing I can imagine it might be at this point is a memory leak somewhere in load_mobiles or in load_area_file that noone's ever noticed. It just behaves so strangely.
Maybe someone's encountered this before and you know of a perfectly simple explanation and solution that I'm missing?
Thanks for having a look at this elongated post people,