/WoWtoolsParser

Lua parser for wow.tools DBCs

Primary LanguageLuaMIT LicenseMIT

wow.tools Parser

Lua parser for CSV or JSON files from wow.tools by Marlamin

  • Files are downloaded and cached in dbc/cache/
  • If the respective file handler exists in dbc/ it will be used, see main.lua for example usage

Examples

Prints UiMap.db2

local parser = require "parser"
local csv = parser.ReadCSV("uimap")
for line in csv:lines() do
	print(table.unpack(line))
end

Prints the most recent classic ChrRaces.db2 build

local parser = require "parser"
parser.ExplodeCSV(parser.ReadCSV("chrraces", {build="1.13.2"}))

Prints a specific GlobalStrings.db2 build

local parser = require "parser"
local options = {
	build = "7.3.5.26972",
	header = true, -- index keys by header name
}

local globalstrings = parser.ReadCSV("globalstrings", options)
for line in globalstrings:lines() do
	print(line.ID, line.BaseTag, line.TagText_lang)
end

Dependencies