Engine-assisted Lua save/load

Engine-assisted Lua save/load

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Engine-assisted Lua save/load

Post by Tobi »

Inspired by Argh's and zwzsg's Lua save/load solutions I hooked this 'lua save/load' into the engine a while ago so that it can work with the normal interfaces for lobby etc.

I just merged this into master and typed some documentation.

So Argh and zwzsg, please try :P


All info here: http://springrts.com/wiki/Lua_SaveLoad
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Engine-assisted Lua save/load

Post by Argh »

Awesome! I will find time to test this tomorrow evening :-)
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Engine-assisted Lua save/load

Post by zwzsg »

Does the engine save anything before calling the Lua?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Engine-assisted Lua save/load

Post by Tobi »

Game setup / startscript, heightmap and anything AIs want to save.
Post Reply

Return to “Engine”