Lua compile error after upgrading to Windows 11

Posted by Vexuss on Wed 18 Dec 2024 04:35 PM — 7 posts, 9,184 views.

#0
I recently upgraded from windows 10 to 11 and now when I load in a game and plugin I get this message

Error number:0
Event: Compile Error
Raised by: Plugin: Health_Bar_miniwindow

[string "Sandbox"]:1: '<name>' expected near '\'

I don't know much about coding with Lua or this plugin but I would love for this to stop popping up every time I load my game.
Australia Forum Administrator #1
Try looking at File -> Global Preferences -> Lua.

See if there is a stray backslash there. You could probably remove whatever is in that "Sandbox" box, and it should work.
#2
Nick Gammon said:

Try looking at File -> Global Preferences -> Lua.

See if there is a stray backslash there. You could probably remove whatever is in that "Sandbox" box, and it should work.


this is whats on that page, I don't think anything is wrong here...

C:\Program Files\MUSHclient\lua5.1.dll
Australia Forum Administrator #3

C:\Program Files\MUSHclient\lua5.1.dll

That line should not be there. Remove it.

#4
Nick Gammon said:

> C:\Program Files\MUSHclient\lua5.1.dll

That line should not be there. Remove it.


That worked. Weird, only started after I updated to windows 11. I'll have to check all of my worlds. Thank you!
Australia Forum Administrator #5
It's a global configuration, so it would affect all worlds, and the fix will fix all worlds.
USA Global Moderator #6
Realistically, you also should not have MUSHclient in C:\Program Files\ and should instead put it into a location not locked down by UAC.