You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After issuing the command datareftool/reload_plugins, FlyWithLua's plugin restarts properly, but the Lua interpreter stops with this error reported only on screen (no trace on Log.txt file): [string "FLYWITHLUA_DEBUG()"]:1 attempt to call global "FLYWITHLUA_DEBUG" (a nil value)
Manually forcing FWL to reload all scripts, solves the problem.
I've tested without any script installed, to be sure not to have any possible interference.
Best.
The text was updated successfully, but these errors were encountered:
pacrox
changed the title
FWL fail to restart properly after issuing command datareftool/reload_plugins
FWL fails to restart properly after issuing command datareftool/reload_pluginsFeb 8, 2021
The problem is with XPLMSpeakString("All Lua Script files loaded."); at line 7940 doesn't have enough time to finish before reloading plugins.
So your option are:
developer_mode = 1 (doesn't work always, as sometimes the reading of preferings is slow and developer_mode gets 0)
delete lines 7938-7941 (keep in mind that if other plugin use XPLMSpeakString() also you will have crash, so wait to finish before pressing reload plugins)
If you prefer to listen the message simply use a waiting command to finish message, before return 0;
After issuing the command
datareftool/reload_plugins
, FlyWithLua's plugin restarts properly, but the Lua interpreter stops with this error reported only on screen (no trace on Log.txt file):[string "FLYWITHLUA_DEBUG()"]:1 attempt to call global "FLYWITHLUA_DEBUG" (a nil value)
Manually forcing FWL to reload all scripts, solves the problem.
I've tested without any script installed, to be sure not to have any possible interference.
Best.
The text was updated successfully, but these errors were encountered: