Skip to content

Welcome to LuaDBC, your go-to library for reading World of Warcraft DBC files effortlessly! πŸŒβš™οΈ

Notifications You must be signed in to change notification settings

iThorgrim/lua_dbc_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LuaDBC πŸš€

Welcome to LuaDBC, your go-to library for reading World of Warcraft DBC files effortlessly! πŸŒβš™οΈ

Table of Contents πŸ“‘

Introduction 🌟

LuaDBC is a Lua library designed to simplify the reading of World of Warcraft DBC files. It utilizes the power of LuaRocks with two essential modules - lanes and struct. πŸ› οΈ

Getting Started πŸš€

To start using LuaDBC in your project, follow these simple steps:

luarocks install lanes
luarocks install struct
  • Include LuaDBC in your project.

Usage πŸ“¦

DBC_Lib = require("dbc_lib")
local items = DBC_Lib:new("../data/dbc/Item.dbc") -- Change for the path of our Item.dbc

-- Search by "hand"
 for _, item in pairs( items.data ) do
   print(item:GetClass())
end

-- "GetBy" method
local item = items:GetByID(17)
print(item:GetClass())

-- Fluent search "Where"
local query_result = items:Query():WhereClass(1):WhereSubClass(0)()
for _, query_item in pairs(query_result) do
   print(query_item:GetClass()) 
end

Todo πŸ“

  • Write to DBC: Implement the ability to write data to the end of a DBC file.
  • Delete Rows: Allow for the deletion of specific rows within a DBC file.
  • Auto-generate DBC: Explore the option of auto-generating a DBC file based on a database.
  • Update Data: Provide functionality to update existing data within DBC files.
  • Multiple Loc Columns: Enhance compatibility to read DBCs with multiple Loc columns (Loc[1-x]).

Dependencies 🌐

Make sure to install these dependencies using LuaRocks before integrating LuaDBC into your project.

Contributing 🀝

Contributions are welcome! If you have any improvements or bug fixes, feel free to submit a pull request.

About

Welcome to LuaDBC, your go-to library for reading World of Warcraft DBC files effortlessly! πŸŒβš™οΈ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages