The script is an auto job robot I wrote for the MUD.
What it dose is just load a sqlite3 db for generating gps map.
Quote:
conn=assert(sqlite3.open(GetInfo(67).."JHL/map.db"))
for rooms in conn:nrows("select rowid,name,desc,exits,escroom,zone,escroom,npcs,items,links from rooms") do
map[tostring(rooms["rowid"])] = {
name = rooms["name"],
zone = rooms["zone"]
}
if rooms["desc"] and rooms["desc"] ~= "" then
map[tostring(rooms["rowid"])].desc = rooms["desc"]
end
if rooms["exits"] and string.find(rooms["exits"], ",") then
dynamic_exit_rooms[tostring(rooms["rowid"])] = utils.split(rooms["exits"], ",")
else
if (rooms["desc"] and rooms["desc"] ~= "") or (rooms["exits"] and rooms["exits"] ~= "") then
map[tostring(rooms["rowid"])].exits = rooms["exits"]
end
end
if rooms["escroom"] and rooms["escroom"] ~= "" then
map[tostring(rooms["rowid"])].escroom = rooms["escroom"]
end
if rooms["npcs"] and rooms["npcs"] ~= "" then
map[tostring(rooms["rowid"])].npcs = rooms["npcs"]
end
if rooms["items"] and rooms["items"] ~= "" then
map[tostring(rooms["rowid"])].items = rooms["items"]
end
map[tostring(rooms["rowid"])].links = stringEx.totable(rooms["links"])
end
But I don't think it is the root cause of mush crash as the robot works fine in moste cases. The gps section has been successfully loaded again and again.
It's do hard to isolate the crash issue as I'm not sure whether the crash is caused by some script bug or mush bug.
It may be helpful if there is any way to get crash dump at the point of time failure occur. |