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 <http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/7445/src/scripting/lua_root.cc#L225>
essentially, the regression test suite checks the output of the run of a test for this text and then reloads all savegames that have been created during the run of the test once to make sure all tests still pass. > On 18.04.2015, at 10:55, Fòram na Gàidhlig <[email protected]> wrote: > > -----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 from "scratch"? I am trying >> to mimic behaviour of bug "savefile broken when enemy deafed" / >> 1428396 - but that loading goes fine also without my fix.... >> >> I have to think about it.... >> >> 2015-04-17 22:25 GMT+02:00 Fòram na Gàidhlig >> <[email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>>>: >> >> 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, >> >> >>> 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 >> >> >> >>> _______________________________________________ Mailing list: >>> https://launchpad.net/~widelands-dev Post to : >>> [email protected] >> <mailto:[email protected] >> <mailto:[email protected]>> Unsubscribe : >>> https://launchpad.net/~widelands-dev <https://launchpad.net/~widelands-dev> >>> More help : >>> https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp> >> >> >> >>> E-Mail ist virenfrei. Von AVG überprüft - www.avg.de <http://www.avg.de/> >> <http://www.avg.de <http://www.avg.de/>> >>> <http://www.avg.de <http://www.avg.de/>> Version: 2015.0.5863 / >>> Virendatenbank: >>> 4331/9559 - Ausgabedatum: 17.04.2015 >> >> >> _______________________________________________ Mailing list: >> https://launchpad.net/~widelands-dev <https://launchpad.net/~widelands-dev> >> Post to : >> [email protected] <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>> Unsubscribe : >> https://launchpad.net/~widelands-dev <https://launchpad.net/~widelands-dev> >> More help : >> https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp> >> >> >> E-Mail ist virenfrei. Von AVG überprüft - www.avg.de <http://www.avg.de/> >> <http://www.avg.de <http://www.avg.de/>> Version: 2015.0.5863 / >> Virendatenbank: >> 4331/9559 - Ausgabedatum: 17.04.2015 >> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (MingW32) > > iQIcBAEBAgAGBQJVMhwQAAoJEFBz9PVwa++T4H4QAM5rU7/+ZyeJS/KMhlLFYXct > 6K47RDDTarfb/EP8RlbiwB8hRPN/HFFHpvAYdTih6BAeIsc5qGjNyFXnoxvpGaWR > 3RDWERI4yS1ltB5mIkL8RHWCPwBFx7X96Vbd9kArTW/xt0Ytil6o7HPoAXlH5qtT > 7gj62YBqaARUd82ud/uY2tw75P5onPBZsEZxYM942moTu5Ciav13r/7t+rI/Ya02 > IiPbp5/rsNNWa/QWd+L9ZUopUvKeSmK5kEUdwC5wcoEvB9gNFngXv1qL+jsZ5TNi > rdchlGKN9I/PVmHyLmMKoH0qF1wfbKAqnbarJguZTNdFJR3YOiB1MWSXpuFbs2BJ > GnKeczbEiNqRuHFyftJYujHw0WckoWs1QWDDH8SKoKuj279IhAV+JOK36T5rJJ5v > BRA1zJO0lyJ+qv0ERQYr9jnXzC0xCVek/fwwmhUMauf1r9TCnRr4FwxosfgC7oIg > rPFDj7KPN9v47NkXalTJFf/RoQQgoXWNGoYBZo9Sg1B/vHTeFcmXwMy0lqykcQud > qbiclE8nQoiKeNFuu/jFIyE57g42i4MpXUOpHFShsvl8jXexlBka1uM4HdR4vvL6 > 5ic5Ql4vn+ZQT5KdKNgBkW4dTZYG+si7PRu6M7bYyG4xN4S+F4fK6CgmjIRNJ4u1 > HKmAQdIz6voo5bB1fOuI > =9Fy2 > -----END PGP SIGNATURE----- > > _______________________________________________ > Mailing list: https://launchpad.net/~widelands-dev > <https://launchpad.net/~widelands-dev> > Post to : [email protected] > <mailto:[email protected]> > Unsubscribe : https://launchpad.net/~widelands-dev > <https://launchpad.net/~widelands-dev> > More help : https://help.launchpad.net/ListHelp > <https://help.launchpad.net/ListHelp>
_______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp

