Debugging LuaGlobal.lua
Posted: Thu May 13, 2010 2:47 pm
Would it be possible to change Mudlet's behavior of trampling LuaGlobal.lua to recreating it if it doesn't exist? (Or more fancy, wrapping the dofile in a pcall and trample if it errors, and moving the file to a .bak extension)
There's a lot of stuff in there that I was going to rewrite; functions that can be more elegant (RGB2Hex, indent), and others that are just wrong (the unnecessary PadHex, table.pickle, saveVars). It makes debugging the code difficult since it gets overwritten every startup.
Also, needing to recompile an exe to update a script seems like it's defeating the main advantage of having a scripting engine: easily modifiable source code.
There's a lot of stuff in there that I was going to rewrite; functions that can be more elegant (RGB2Hex, indent), and others that are just wrong (the unnecessary PadHex, table.pickle, saveVars). It makes debugging the code difficult since it gets overwritten every startup.
Also, needing to recompile an exe to update a script seems like it's defeating the main advantage of having a scripting engine: easily modifiable source code.