Skip to content

Gethe/WoWtoolsParser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lua parser for wow.tools DBCs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 100.0%