From: Marzo J. <ma...@ya...> - 2008-07-25 14:15:26
|
From: Ryan Nunn <tri...@in...> > The only situation that I can imagine that you'd want something > like that to still be valid after cache out would be in the case > of a NPC or perhaps for an item in the inventory of a NPC. NPCs are the least of our worries here -- they are never deleted, not even on cache-out (well, except for monsters), and their inventories remain accessible throughout. But I agree with you on this. > The original game would have been unlikely to allow an invalidated > object id to become valid when an object got cached back in so > it shouldn't be that much of a problem for us. Agreed. But then again, the original didn't have to worry about static usecode variables :-) > In the event that someone making a mod might think it's a problem, [snip] I'd say that static vars pointing to cached-out objects should just be invalidated and be done with it. But we should also have it documented so that mod-makers know about it (I will freely admit that UCC documentation is rather... sparse...). -- Marzo Sette Torres Junior --+-- ma...@fi... ma...@ta... ----+---- ma...@ya... "Mental slavery is mental death and every man who has given up his intellectual freedom is the living coffin of his dead soul." -- Robert Green Ingersoll, "Individuality" (1873) |