Ketho / WoWtoolsParser

Lua parser for wow.tools DBCs

Home Page:https://wow.tools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WoW.tools Parser

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

Usage

Prints UiMap.db2

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

Prints the most recent classic ChrRaces.db2 build

local parser = require "wowtoolsparser"
parser:ExplodeCSV(parser:ReadCSV("chrraces", {build="1.13"}))

Prints a specific GlobalStrings.db2 build for the French locale, keyed by header name

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

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

Dependencies

About

Lua parser for wow.tools DBCs

https://wow.tools/

License:MIT License


Languages

Language:Lua 100.0%