m (Undo revision 17958 by SamuelWilson (talk) SPAM)
(gna #19107)
Line 25: Line 25:
 
** city tile: replace ''city.tile'' by ''city:tile()''
 
** city tile: replace ''city.tile'' by ''city:tile()''
 
** city size: replace ''city.size'' by ''city:size()''
 
** city size: replace ''city.size'' by ''city:size()''
  +
  +
==Possibly needed updates==
  +
  +
The following describes things you might need to consider, depending on your ruleset.
  +
  +
===Effects===
  +
  +
There's an effect of buildings like the Statue of Liberty where Has_Senate is rendered powerless -- it does not block declaring of war.
  +
  +
In 2.3, this behaviour was tied to the "Any_Government" effect. As of 2.4, it's moved to the "No_Anarchy" effect, because that's more logical. ({{gna|19107}})
  +
  +
(Mentioned here for completeness; in most rulesets these two effects are used together, so it makes no difference, but perhaps someone is using just one of them. If so, there's no way of recreating the exact same behaviour you had before.)
   
 
==Features==
 
==Features==

Revision as of 22:19, 6 December 2011

To update a ruleset from 2.3 to 2.3.99 (will be 2.4 in the future) you must do miscellaneous simple changes.

Needed Updates

The following instructions describe what you must modify to make your ruleset running with a 2.3 server.

General

  • Set ruleset format of every file to options = "+Freeciv-ruleset-Devel-YYYY.MMM.DD" during development. For freeciv 2.4 option = "+Freeciv-2.4-ruleset" should be used.
  • Terrain colors are now saved in the terrain.ruleset file. Add the colors as RGB (red/green/blue) values:
color.r = 0
color.g = 0
color.b = 200
  • Player colors are now saved in the game.ruleset using a table (playercolors.colorlist). They are also defined as RGB (red/green/blue) values:
colorlist =
    { "r", "g", "b"
      255,   0,   0
    }

Lua

  • replace the following lua access structures in the lua script (default.lua and script.lua):
    • unit tile: replace unit.tile by unit:tile()
    • city tile: replace city.tile by city:tile()
    • city size: replace city.size by city:size()

Possibly needed updates

The following describes things you might need to consider, depending on your ruleset.

Effects

There's an effect of buildings like the Statue of Liberty where Has_Senate is rendered powerless -- it does not block declaring of war.

In 2.3, this behaviour was tied to the "Any_Government" effect. As of 2.4, it's moved to the "No_Anarchy" effect, because that's more logical. (GNA#19107)

(Mentioned here for completeness; in most rulesets these two effects are used together, so it makes no difference, but perhaps someone is using just one of them. If so, there's no way of recreating the exact same behaviour you had before.)

Features

The following information describes what features have been added since Freeciv 2.3.

General

  • The cities.ruleset fiels now contain a section citizen with the configuration for the citizens.

Units

Community content is available under CC-BY-SA unless otherwise noted.