Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FWL fails to restart properly after issuing command datareftool/reload_plugins #73

Open
pacrox opened this issue Feb 8, 2021 · 1 comment

Comments

@pacrox
Copy link

pacrox commented Feb 8, 2021

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.

@pacrox 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_plugins Feb 8, 2021
@CrazyKnightGR
Copy link

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:

  1. developer_mode = 1 (doesn't work always, as sometimes the reading of preferings is slow and developer_mode gets 0)
  2. 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)
  3. If you prefer to listen the message simply use a waiting command to finish message, before return 0;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants