I'm trying to display text on a Lua Canvas in the BizHawk emulator but I keep getting the same error at the line of my 'LuaCanvas.drawText' command.
I haven't found any example scripts for Bizhawk that make use of the canvas
gui.createcanvas(640, 480);
while true do
LuaCanvas.drawText(100, 100, message);
emu.frameadvance();
end
The script opens two canvas windows instead of the desired one canvas, and doesn't have the 'message' string that I provided.
Error message reads: NLua.Exceptions.LuaScriptException: [string "main"]:3: attempt to index global 'LuaCanvas' (a nil value)