I use Dropbox to sync my MUSHclient directory and when I edit my script file (and it autoreloads) I end up with a race condition and sometimes MUSHclient gives me a:
If MUSHclient "wins" the race and the error pops up then forcing a reload (CTRL+SHIFT+r) fails to reload the script file and, from what I can tell, any triggers that call a script function silently fail. i.e. you don't get that black on red called-a-failed-trigger notice. The whole race condition makes it tough to debug from the user end.
If you manually go into the World Properties->Script and do basically anything relating to the script file it will reload normally but the hotkey combo itself doesn't work.
It's completely work-around-able, but a bug nonetheless.
I dug around git for a while looking for a solution but I'm a hardware guy. Following complex software code is not my forte.
Edit: Ok, from what I can tell, there's some master-suspend-on-double-plus-bad-error that halts interpretation across the board which prevents the hotkey from even bothering (exact text below). It's not eliminated by anything in the script tab, it's only eliminated by something that rechecks the files. Even opening "Browse" and canceling it results in a sucessful relod.
A sharing violation occurred while accessing X:\MUSHClient\scripts\script-file.lua.
If MUSHclient "wins" the race and the error pops up then forcing a reload (CTRL+SHIFT+r) fails to reload the script file and, from what I can tell, any triggers that call a script function silently fail. i.e. you don't get that black on red called-a-failed-trigger notice. The whole race condition makes it tough to debug from the user end.
If you manually go into the World Properties->Script and do basically anything relating to the script file it will reload normally but the hotkey combo itself doesn't work.
It's completely work-around-able, but a bug nonetheless.
I dug around git for a while looking for a solution but I'm a hardware guy. Following complex software code is not my forte.
Edit: Ok, from what I can tell, there's some master-suspend-on-double-plus-bad-error that halts interpretation across the board which prevents the hotkey from even bothering (exact text below). It's not eliminated by anything in the script tab, it's only eliminated by something that rechecks the files. Even opening "Browse" and canceling it results in a sucessful relod.
Send-to-script cannot execute because scripting is not enabled.