Re: [Widelands-dev] regresion tests - loading a game

2015-04-21 Thread Holger Rapp
Sorry for being late to the party.. The magic sauce to saving is here: http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/7445/src/scripting/lua_root.cc#L225 essentially, the regr

Re: [Widelands-dev] regresion tests - loading a game

2015-04-18 Thread Fòram na Gàidhlig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It caught a savegeme bug that I had created, so I expect that it is loaded from "scratch". Sgrìobh Tibor Bamhor na leanas 17/04/2015 aig 21:40: > I am not sure if it works as expected. I would expect a problem, > but loading goes fine. Is game loaded

Re: [Widelands-dev] regresion tests - loading a game

2015-04-17 Thread Fòram na Gàidhlig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you call stable_save("save_name") in a Lua test, the game is saved and immediately loaded again. So it will work if you put it all in 1 script. Is this enough for what you need? Sgrìobh Tibor Bamhor na leanas 17/04/2015 aig 20:42: > Hi, > > > o

[Widelands-dev] regresion tests - loading a game

2015-04-17 Thread Tibor Bamhor
Hi, our regression tests does not support loading of games just saved within a regression test, am I right? I would like to have 2 *.lua scripts, One would create a savegame file, The other one would load it and did some verifications - this is my idea... Tibor _