|
From: Stian G. <sti...@if...> - 2008-01-26 09:03:09
|
> The 0.7.2 class net.sf.freecol.common.model.GameVariables is deprecated > What is the equivalent in 0.8 ? I think there is no equivalent in 0.8 at the present. The 0.7.2 game variables was a hack for supporting tutorial messages. We should implement a system for scripting that can be used by maps/scenarios/campaigns. With such a system, tutorial messages should rather be displayed by invoking some sort of trigger associated with a display-message action. A scripting environment should include support for setting and getting variables. > I have added some code recently to open legacy 0.7.2 maps in the 0.8 map > editor. It was easy because they only use a small set of classes (map, tile) Great, we should maintain support for 0.7.x maps at least until the 0.9 release. > But savegames use many more model classes which have changed a lot. > I did a small test with 0.7.2 -> 0.8, and the problem I noticed was > Player.index=null > Do you think it is feasible to support legacy support of old games? > Should we even spend time on this? No, people can complete their games in the old version before upgrading (although we should maintain backwards compatibility for bugfix releases). _____ Stian Grenborgen |