GameMonkey Script

GameMonkey Script Forums
It is currently Wed Jul 08, 2020 2:58 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Oct 26, 2010 9:06 am 

Joined: Tue Oct 26, 2010 8:58 am
Posts: 1
Hi Greg et al.,

I'm evaluating scripting languages for a gaming framework. One thing they're going to want is some way of persisting the script state between runs. Looking through the GM code, the function that does this didn't immediately pop out at me - does GM support this kind of thing?


Reply with quote  
PostPosted: Wed Oct 27, 2010 10:18 am 

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 708
Welcome to the forum jbonez :)
There is no build in functionality to persist the script state.

I see some previous discussion here. I recall more discussion but have not found it yet, perhaps I was thinking of downgraded's experimental gmSerialize.

I am not sure if anyone has tried to port Pluto or other Lua extension attempting to implement such a feature. Even if the script state by itself were serialized, interdependence between native and managed code could be challenging. It might end up simpler to store entity and system state explicitly and restart the game with that. (Such an implementation might help with networking and replays.)

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group