Skip to content

Version 1.5.4

Compare
Choose a tag to compare
@EliteMasterEric EliteMasterEric released this 16 Jul 16:23
· 110 commits to master since this release

[1.5.4] - 2022-07-16

This patch includes several major bug fixes and convenience improvements.

Added

  • Added a new error message which occurs when a script cannot locate a module you try to import.
    • If you encounter this message, make sure you typed the package name correctly, and make sure the module is exempt from Haxe's Dead Code Elimination process.

Fixed

  • Fixed an issue where attempting to annotate @:hscriptClass on a class which utilized nested type parameters would fail to compile.
    • This now allows for FlxState and FlxSubState to be scripted, among other things.
  • Fixed an issue where, if a function in a scripted class calls another function within that class, the local variable scope is destroyed.
  • Fixed a compilation issue which occurs when hscriptPos is not enabled (hscript.Error has no field line)
    • Line numbers will now display as #??? by default. To enable line numbers on script errors (highly recommended), add <haxedef name="hscriptPos" value="true" /> to your project.xml file.

Known Issues

  • A build error hscript.Interp has no field setVar may occur. If this happens, make sure you are using the latest version of HScript, version 2.5.0.