SkillAgentSearch skills...

WoWtoolsParser

Lua parser for wow.tools DBCs

Install / Use

/learn @Ketho/WoWtoolsParser
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

  • luafilesystem: https://luarocks.org/modules/hisham/luafilesystem
  • luasocket: https://luarocks.org/modules/luasocket/luasocket
  • luasec: https://luarocks.org/modules/brunoos/luasec
  • lua-cjson: https://luarocks.org/modules/openresty/lua-cjson
  • csv: https://luarocks.org/modules/geoffleyland/csv
View on GitHub
GitHub Stars10
CategoryDevelopment
Updated2y ago
Forks4

Languages

Lua

Security Score

80/100

Audited on Jul 29, 2023

No findings