How to update a lua script from 2.6 to 3.0

703pages on
this wiki
Add New Page
Add New Page Talk0

This document describes how to convert freeciv 2.6 compatible lua script to TRUNK version (one that will become freeciv 3.0) compatible ones. Please check these carefully to avoid your script mis-behaving, maybe in some rarely reached special case. These are changes to scripting API requiring special attention. Additions to the API that do not affect old scripts are not listed. Currently this goes up to compatibility with freeciv trunk revision ?????.

Turn numberEdit

game.turn and turn_started signal have been deprecated. Use game.current_turn and turn_begin signal instead.

See alsoEdit

How to update from an old to the next...
...tileset 1.14 to 2.0 2.0 to 2.1 2.1 to 2.2 2.2 to 2.3 2.3 to 2.4 2.4 to 2.5 2.5 to 2.6 2.6 to 3.0
...ruleset n/a n/a n/a 2.2 to 2.3 2.3 to 2.4 2.4 to 2.5 2.5 to 2.6 2.6 to 3.0
...lua script n/a n/a n/a n/a n/a n/a 2.5 to 2.6 2.6 to 3.0

Also on Fandom

Random Wiki