RE: [mlist] RE: [GD-General] Off the shelf scripting languages
Brought to you by:
vexxed72
From: Tom F. <to...@mu...> - 2003-04-23 09:36:20
|
Python has "pickling" to do this. Or you can do it the way you do everything else - assign all objects a unique ID, and save the stuff out manually, replacing pointers with IDs. Which is essentially what pickling does. You don't need to use stackless Python to get latent functions (if they're what I think they are) - check out "generators" in standard Python - they have most of the same capabilities. We didn't opt for stackless because it was pretty ropey at the time. It's getting rapidly better though - it may be worth a look these days (EVE Online are using it). Tom Forsyth - Muckyfoot bloke and Microsoft MVP. This email is the product of your deranged imagination, and does not in any way imply existence of the author. > -----Original Message----- > From: Ivan-Assen Ivanov [mailto:as...@ha...] > Sent: 22 April 2003 22:37 > To: gam...@li... > Subject: Re: [mlist] RE: [GD-General] Off the shelf scripting > languages > > > > Python works well for us on all the consoles (NGC, PS2, XBox). > > How do you store the state of the interpreters, or does > the "no arbitrary moment savegames" nature of most console > games save you from this? > > Resolving the pointers embedded within interpreter stacks > was one of the two major issues we had to resolve for our > custom scripting system - and that we don't want to have to > resolve yet again. On the other hand, our custom scripting > language sucks in more ways than one, and I would be happy > to scrap it and integrate a "real language" instead. > > (Latent functions a la UnrealScript being the other > major issue, but Stackless Python seems to be able > to support that.) > > regards, > Assen > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 > |