1
0
Bifurcation 0

Changed all the chat frame spams to errors. We need to get a handle on what is going on with the localization.

Cette révision appartient à :
Nathanial.C.Jones 2010-12-02 11:11:43 +00:00
Parent 4968270390
révision d98bc1fe58
2 fichiers modifiés avec 13 ajouts et 8 suppressions

Voir le fichier

@ -434,8 +434,7 @@ function QuestHelper_BuildZoneLookup()
end
end
end
-- Sanity is failing BEFORE exiting the function... Duplicate indices... owa tagu siam.
-- It's still failing now. BUT... That happens to be because The Maelstrom and The Maelstrom Continent Share the same damn name in QuestHelper_Zones. We need to rectify this... LOOK AT SAUR'S CODE.
-- Sanity is failing BEFORE exiting the function... Duplicate indices... owa tagu siam. This is now true ONLY for non enUS version (grumble).
QuestHelper:Assert(QuestHelper:ZoneSanity())
else
-- Called from some lua script.

Voir le fichier

@ -84,25 +84,31 @@ 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:TextOut(string.format("'%s' has the wrong ID (should be %d,%d).", name, c, z))
QuestHelper: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 or c ~= pair[1] or z ~= pair[2] then
if not pair then
sane = false
QuestHelper:TextOut("ZoneLookup['"..name.."'] maps to wrong pair.")
QuestHelper:ExplicitError(false, string.format("ZoneLookup['%s'] is missing data. PANIC!", name))
else if 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:TextOut("ZoneLookup['"..name.."'] maps to wrong pair.")
end
local index = QuestHelper_IndexLookup[name]
if QuestHelper_ZoneLookup[index] ~= pair then
sane = false
QuestHelper:TextOut("ZoneLookup['"..name.."'] isn't equal to ZoneLookup["..index.."] they are "..tostring(QuestHelper_ZoneLookup[name]).." and "..tostring(QuestHelper_ZoneLookup[index])..", respectively.")
QuestHelper: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:TextOut("NameLookup["..(index or "???").."] doesn't equal '"..name.."', it is "..tostring(QuestHelper_NameLookup[index]))
QuestHelper: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
end