Operating system or device - Godot version:
Win 7 (x64) desktop
Godot v2.1.2
Issue description:
The use of the ternary operator causes the exported .exe to crashes. The applications runs perfectly fine when in editor but not when exported.
The export debug reports the following error:
SCRIPT ERROR: GDScript::load_byte_code: Parse Error: Expected end of statement (var)
At: res://TernaryTest.gdc :6
Error: GDScript::load_byte_code: Method/Function Failed, returning: ERR_PARSE_ERROR
At: modules\gdscript\gd_script.cpp:720
Steps to reproduce:
Link to minimal example project:
Test project
@gonzo191 did you update export templates also?
@volzhs OK it works now. I was not aware I had to do that.
That's one reason to use the Steam version, it'll update the export templates along with everything else.
Most helpful comment
@gonzo191 did you update export templates also?