[Ohrrpgce] Remembering NPCs

Bob the Hamster Bob at HamsterRepublic.com
Mon May 9 10:51:54 PDT 2005


On Sat, Apr 30, 2005 at 04:15:59PM +1200, TeeEmCee wrote:
> 
> How exactly would npcs be remembered on a per-NPC basis? Did James
> mean a bit in the npcl array?
>

No, not exactly. There would need to be some bitset data stored in a new 
lump for each map that tells which NPCs need to be remembered. That data 
would only be used when loading a map, or exiting a map, and it would 
not need to reside in memory in the npcl array... it wouldn't need to 
stay in memory at all, it could be re-loaded when the map changes. 
There would need to be a small separate memory buffer that tracs the 
actual positions of remembered NPCs. That would not require a new lump, 
but would need to go in the .SAV file. ... actually, it would not need 
to be a memory buffer either, it could be a temporary file, since it is 
only needed when the map loads/unloads.... anyway. Just thinking out 
loud here. Needs more thought.

And I am sure I have already missed out on much thought about it while I 
was away last week :)

Still digging through my mail...
---
Bob the Hamster



More information about the Ohrrpgce mailing list