Freeciv
(Created ruleset update 2.6 to 3.0 document, going up to r27482)
(No difference)

Revision as of 23:35, 1 January 2015

This document describes how to convert freeciv 2.6 compatible ruleset to development version (one that will become freeciv 3.0) compatible ones. Currently this goes up to compatibility with freeciv trunk revision 27482

Capability

Capability string of each ruleset file must be changed:

[datafile]
options="+Freeciv-ruleset-Devel-2014.September.14c"

Effect name no longer accepted

For backward compatibity reasons, loading of effects from a ruleset has supported giving effect type as name instead in previous versions. This is no longer possible, but only type is being supported. Change all remaining names to type

[effect_granary]
name	= "Growth_Food"
value	= 50
reqs	=
    { "type", "name", "range"
      "Building", "Granary", "City"
    }

->

[effect_granary]
type	= "Growth_Food"
value	= 50
reqs	=
    { "type", "name", "range"
      "Building", "Granary", "City"
    }