View Single Post
12-11-13, 07:22 PM   #20
Nimhfree
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 267
I must be mistaken about the error loading my 5MB being related to size. I will dredge up that version and post whatever the error was. I am guessing it is related to the number of "ifs" if it is not size related, but will know for sure later.

Edited to add:
It turns out the actual error I am getting is:

1x Grail-059\Grail-QuestNames.lua:142112: control structure too long near "<eof>"

Basically the file structure looks like:

if locale == "enUS" or locale == "enGB" then

elseif locale == "deDE" then

elseif locale == "esES" then

-- all the rest of the locales until

else
print("Unsupported locale", locale)
end

Each of the "language sections" has over 12,000 lines in it looking like:
G[32647]='工作令:金蓮會I'
G[32648]='工作令:金蓮會II'

However, within each section there are if blocks with various line count in them like:

if release >= 17345 then
G[11488]='博學者殿堂'
G[11490]='占卜者的占卜'
G[11492]='難以殺死'
end

Last edited by Nimhfree : 12-11-13 at 08:04 PM.
  Reply With Quote