WIP: WTRTI v2.3 - 20230919
Added 2023-09-19 11:27:21 +0000 UTCGeneral:
Updated internal FM database to the game version 2.29.0.24.
Reduced "Updated Interval" increment value, 25 -> 5, from now you can set 5 ms update interval.
Included a new showcase HUD "Indicator" by Zekex: GFX HUD..
Scripting:
Added a new CLI option:
--script-watcher - which activates a watcher that checks the scripts for changes and reloads them when necessary.
DEV in the title bar means that script-watcher is enabled.
When the watcher is activated the scripts errors will be displayed in the GUI error window and in the Logs/WTRTI.log.
To make it easy to use, create a shortcut of WTRTI using this option and use it as the "Development Mode" for writing scripts.
Howto: Create a shortcut of the WTRTI.exe and add --script-watcher to the Target path in the Properties window.
Target: "c:\path\to\exe\WTRTI.exe" --script-watcher
Added an alternative getStateValue function, that returns the value and its state, otherwise default_value and false.
local value, state = getStateValue(str, default_value)
From now the gfxLine(x1, y1, x2, y2) requires the gfxBeginPath() and gfxStroke(), before use.
Fixes:
Fixed a bug that at some point leads to incorrect values for built-in indicators, e.g. "Pitch angle, deg"
Fixed failed auto-update when the app path has Unicode characters.
win32: Fixed the long-lived behaviour when the Open/Save dialogs opened in the recent used folder, instead of in the app configuration directory.
win32: Fixed launching the app from the start menu, when it's started in System32 working directory.
Improved scripting error handling.