Difference between revisions of "NML:Changes 0.4"

From GRFSpecs
Jump to navigationJump to search
(add changes based on using python3)
 
m (style for variables, callbacks and constants)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div style="float:right; padding-left:12px; background:none;">{{NMLNavMain}}</div>
 
<div style="float:right; padding-left:12px; background:none;">{{NMLNavMain}}</div>
   
== Introduction ==
+
== Change to python3 ==
 
With NML 0.4 we change some of its foundations, it now is written in python3 and requires python 3.2 or newer. Requirements are:
 
With NML 0.4 we change some of its foundations, it now is written in python3 and requires python 3.2 or newer. Requirements are:
 
* python 3.2 or newer
 
* python 3.2 or newer
Line 8: Line 8:
   
 
== Other changes ==
 
== Other changes ==
  +
* New warnings about and flags for realsprites: (NO)ALPHA, (NO)WHITE and (NO)ANIM. See explanation in [[NML:Realsprites|realsprite page]].
None yet
 
  +
* Rigerous caching of real sprites. This improves encoding speed a lot on subsequent runs, especially for NewGRFs with many real sprites, more so for 32bpp
  +
* Statistics on the NewGRF on used IDs for vehicles, houses, etc as well as available switches, parameters etc
  +
  +
== Language additions ==
  +
* Feature: vehicle property <code style="color:darkgreen">effect_spawn_model_and_powered</code> and related callback <code style="color:darkgreen">create_effect</code>
  +
* Feature: <code style="color:darkgreen">EFFECT_SPRITE_NONE</code> constant for <code style="color:darkgreen">create_effect</code> callback
  +
* Feature: support for <code style="color:darkgreen">OTTD_RECOLOUR</code> action5 sprite(s)
  +
* Feature: Support for Latin translations
  +
* Feature: <code style="color:darkgreen">wagon_speed_limits</code> variable to test for enabled wagon speed limits. (issue #6474)
  +
  +
  +
There's numerous other fixes, changes and additions. For a full changelog, see http://bundles.openttdcoop.org/nml/releases/0.4.0/changelog.txt
  +
Get the latest release version from the bundles server: http://bundles.openttdcoop.org/nml/releases/LATEST/

Latest revision as of 13:21, 19 February 2015

Change to python3

With NML 0.4 we change some of its foundations, it now is written in python3 and requires python 3.2 or newer. Requirements are:

  • python 3.2 or newer
  • python3-pillow (imaging library)
  • python3-ply (lexer library)

Other changes

  • New warnings about and flags for realsprites: (NO)ALPHA, (NO)WHITE and (NO)ANIM. See explanation in realsprite page.
  • Rigerous caching of real sprites. This improves encoding speed a lot on subsequent runs, especially for NewGRFs with many real sprites, more so for 32bpp
  • Statistics on the NewGRF on used IDs for vehicles, houses, etc as well as available switches, parameters etc

Language additions

  • Feature: vehicle property effect_spawn_model_and_powered and related callback create_effect
  • Feature: EFFECT_SPRITE_NONE constant for create_effect callback
  • Feature: support for OTTD_RECOLOUR action5 sprite(s)
  • Feature: Support for Latin translations
  • Feature: wagon_speed_limits variable to test for enabled wagon speed limits. (issue #6474)


There's numerous other fixes, changes and additions. For a full changelog, see http://bundles.openttdcoop.org/nml/releases/0.4.0/changelog.txt Get the latest release version from the bundles server: http://bundles.openttdcoop.org/nml/releases/LATEST/