[GD-General] Re: [mlist] RE: Off the shelf scripting languages
Brought to you by:
vexxed72
From: Enno R. <en...@de...> - 2003-04-28 12:36:42
|
Thatcher Ulrich wrote: > On Apr 23, 2003 at 12:05 +0300, Ivan-Assen Ivanov wrote: > > In general, the Lua stack will be chock full of pointers to live > objects, as will the Lua objects on the heap. So as Tom says, you > serialize this just like you serialize anything else -- traverse the > live objects, keep track of object ID's, fix up pointers, etc. I've just started looking at lua and whether that would be a good replacement for our own scripting. I started by looking at coroutines and a simple scheduler and ran across the same issue of serializing the state for savegames. Are there any good examples on how to traverse the lua stack and find my C pointers to do the serialization? I'd be thankful for a few pointers :-) Enno. |