Doh\! Screwed up the error call. Should work right this time.
Cette révision appartient à :
Parent
b8a8f14555
révision
7fc1fbf834
|
@ -84,30 +84,30 @@ function QuestHelper:ZoneSanity()
|
|||
-- c,z should be equal to name, unless c = 5 and z = 0, in which case it should be equal to name .. " Continent"
|
||||
if QuestHelper_Zones[c][z] ~= name then
|
||||
sane = false
|
||||
QuestHelper:ExplicitError(false, string.format("'%s' has the wrong ID (should be %d,%d)."))
|
||||
QuestHelper_ErrorCatcher_ExplicitError(false, string.format("'%s' has the wrong ID (should be %d,%d)."))
|
||||
--QuestHelper:TextOut(string.format("'%s' has the wrong ID (should be %d,%d).", name, c, z))
|
||||
end
|
||||
|
||||
local pair = QuestHelper_ZoneLookup[name]
|
||||
if not pair then
|
||||
sane = false
|
||||
QuestHelper:ExplicitError(false, string.format("ZoneLookup['%s'] is missing data. PANIC!", name))
|
||||
QuestHelper_ErrorCatcher_ExplicitError(false, string.format("ZoneLookup['%s'] is missing data. PANIC!", name))
|
||||
elseif c ~= pair[1] or z ~= pair[2] then
|
||||
sane = false
|
||||
QuestHelper:ExplicitError(false, string.format("ZoneLookup['%s'] maps to wrong pair. It should be (%d, %d) but is (%d, %d)", name, c, z, pair[1], pair[2]))
|
||||
QuestHelper_ErrorCatcher_ExplicitError(false, string.format("ZoneLookup['%s'] maps to wrong pair. It should be (%d, %d) but is (%d, %d)", name, c, z, pair[1], pair[2]))
|
||||
--QuestHelper:TextOut("ZoneLookup['"..name.."'] maps to wrong pair.")
|
||||
end
|
||||
|
||||
local index = QuestHelper_IndexLookup[name]
|
||||
if QuestHelper_ZoneLookup[index] ~= pair then
|
||||
sane = false
|
||||
QuestHelper:ExplicitError(false, "ZoneLookup['"..name.."'] isn't equal to ZoneLookup["..index.."] they are "..tostring(QuestHelper_ZoneLookup[name]).." and "..tostring(QuestHelper_ZoneLookup[index])..", respectively.")
|
||||
QuestHelper_ErrorCatcher_ExplicitError(false, "ZoneLookup['"..name.."'] isn't equal to ZoneLookup["..index.."] they are "..tostring(QuestHelper_ZoneLookup[name]).." and "..tostring(QuestHelper_ZoneLookup[index])..", respectively.")
|
||||
--QuestHelper:TextOut("ZoneLookup['"..name.."'] isn't equal to ZoneLookup["..index.."] they are "..tostring(QuestHelper_ZoneLookup[name]).." and "..tostring(QuestHelper_ZoneLookup[index])..", respectively.")
|
||||
end
|
||||
|
||||
if not index or QuestHelper_NameLookup[index] ~= name then
|
||||
sane = false
|
||||
QuestHelper:ExplicitError(false, "NameLookup["..(index or "???").."] doesn't equal '"..name.."', it is "..tostring(QuestHelper_NameLookup[index]))
|
||||
QuestHelper_ErrorCatcher_ExplicitError(false, "NameLookup["..(index or "???").."] doesn't equal '"..name.."', it is "..tostring(QuestHelper_NameLookup[index]))
|
||||
--QuestHelper:TextOut("NameLookup["..(index or "???").."] doesn't equal '"..name.."', it is "..tostring(QuestHelper_NameLookup[index]))
|
||||
end
|
||||
end
|
||||
|
|
Référencer dans un nouveau ticket