URL:
<http://gna.org/patch/?1552>
Summary: Load script state last in loading savegame
Project: Freeciv
Submitted by: englabenny
Submitted on: måndag 2010-03-22 den 19:54
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
Saving script state saves references to cities, players, units etc by
reference to the secfile path 'code.vars'. When we load script state,
the game data is wholly incomplete, and loading of cities and units
fail.
On savegame load, the scenario code part is evaluated (function
definitions and toplevel code, such as signal handlers), then the vars
part is evaluated to restore script variables, possibly references to
cities and players (and other api types). For this to work we must
load the script state after the rest of the game has been set up.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: måndag 2010-03-22 den 19:54 Name:
0001-Load-script-state-last-in-loading-savegame.patch Size: 2 kB By:
englabenny
<http://gna.org/patch/download.php?file_id=8615>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1552>
_______________________________________________
Meddelandet skickades via/av Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev