mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #01003
[Bug 495741] Re: LuaGlobal.lua not found - won't start after updating
I can't replicate this on Win7. I'm getting a good deletion and good copy. Do me a favor and go to line 98 and replace lines 98 through 115 with this:
-------------
bool ok=file_doc_old.remove();
if( ok ) qDebug()<<"Removed Documentation";
else qDebug()<<"Could not remove Documentation";
file_doc_old.remove();
bool copy_doc = file_doc.copy( directory+"/mudlet_documentation.html" );
if (doc_copy) qDebug()<<"Copied Documentation OK";
else qDebug()<<"Could not copy documentation";
QFile file_lua(":/LuaGlobal.lua");
file_lua.setPermissions( QFile::WriteOwner | QFile::ReadOwner );
QFile file_lua_old( directory+"/LuaGlobal.lua" );
file_lua_old.setPermissions( QFile::WriteOwner | QFile::ReadOwner );
bool remove_lua = file_lua_old.remove();
if (remove_lua) qDebug()<<"Removed LuaGlobal OK";
else qDebug()<<"Could not remove LuaGlobal";
bool copy=file_lua.copy( directory+"/LuaGlobal.lua" );
if (copy) qDebug()<<"Copied LuaGlobal OK";
else qDebug()<<"Could not copy LuaGlobal";
-------------
Rebuild and try again with the debug output.
--
LuaGlobal.lua not found - won't start after updating
https://bugs.launchpad.net/bugs/495741
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
Status in Mudlet the MUD client: New
Bug description:
After updating mudlet (a few minutes before posting this) from git and remaking, Mudlet won't start but hangs at the splash with "LUA_ERROR: Lua error:cannot open /home/username/.config/mudlet/LuaGlobal.lua: File not found". Here's a copy/paste snippet:
[rh@clodius src]$ mudlet
deleting old manual< "/home/rh/.config/mudlet/mudlet_documentation.html" >
Debug: deleting old manual< "/home/rh/.config/mudlet/mudlet_documentation.html" >
OK deleted file
Debug: OK deleted file
LUA_ERROR: Lua error:cannot open /home/rh/.config/mudlet/LuaGlobal.lua: Filen eller katalogen finns inte
Debug: LUA_ERROR: Lua error:cannot open /home/rh/.config/mudlet/LuaGlobal.lua: Filen eller katalogen finns inte
^C
[rh@clodius src]$ cp /usr/share/mudlet/LuaGlobal.lua ~/.config/mudlet/
[rh@clodius src]$ mudlet
deleting old manual< "/home/rh/.config/mudlet/mudlet_documentation.html" >
Debug: deleting old manual< "/home/rh/.config/mudlet/mudlet_documentation.html" >
OK deleted file
Debug: OK deleted file
LUA_ERROR: Lua error:cannot open /home/rh/.config/mudlet/LuaGlobal.lua: Filen eller katalogen finns inte
Debug: LUA_ERROR: Lua error:cannot open /home/rh/.config/mudlet/LuaGlobal.lua: Filen eller katalogen finns inte
^C
[rh@clodius src]$
References