I created parser to generate a LUA Table from the Rift Items.XML file. It looks like this:
Code:
RiftItems = {
["AAE6838D0201AEC0D6C9072C78"] = {
["ItemKey"] = "AAE6838D0201AEC0D6C9072C78",
["English"] = "Venerable Hammer of the Warfront",
["Value"] = "937",
["Rarity"] = "Rare",
["Icon"] = "item_icons\1h_mace_079",
["IsAugmented"] = "False",
["Slot"] = "OneHand",
["WeaponType"] = "1h_mace",
["MinimumDamage"] = "18",
["MaximumDamage"] = "33",
["Speed"] = "2.700000",
["Range"] = "3.000000",
["Strength"] = "7",
["Dexterity"] = "5",
["Endurance"] = "4",
["RequiredLevel"] = "20",
["RunebreakSkillLevel"] = "1",},
["B6BBBD1F01D2D6F7D805663C"] = {
["ItemKey"] = "B6BBBD1F01D2D6F7D805663C",
["English"] = "Templar's Bow of the Sinister",
["Value"] = "2350",
....
As you can see it parses the different item types and generates the specific properties for armor, weapons, etc. The resulting file is 23K (nice slimdown compared to the 500K XML).
When I tried to load this file into a Rift addon, I had a rather unexpected surprise:
http://www.imgplace.com/viewimg593/7...addonerror.png
ERROR: Object has more than 65536 constants
I realize people probably haven't thrown many large tables at the addon system yet, I'd just like to know if this is a fixable limitation or are we stuck at 65K variables? Imagine writing an auctioneer addon with a limit of 65K table entries 
A zip with the Lua table is available here
For more details on why I'm creating this table, see this thread
Bookmarks