okopanja / SharkPlanner

SharkPlanner is a mod for entry of waypoints into ABRIS and PVI-800
GNU General Public License v3.0
5 stars 2 forks source link

User can not open Load and Save dialogs #47

Closed okopanja closed 1 year ago

okopanja commented 1 year ago

Under certain conditions the user will not be able to load and save diaglos.

This is typically representend with follwoing entry in the dcs.log.

2023-05-08 15:41:53.115 ALERT   LUACOMMON (Main): Error: GUI Error: [string "module('FileDialog', package.seeall)..."]:776: attempt to index field 'userFiles' (a nil value)

It appears that the environment for export script is not fully initialized and is missing the global variables normally available to Mission Editor.

In addition user loose the keyboard input since before dialog gets shown the sharkplanner restricts input.