static void Main(string[] args) { Console.WriteLine("WildStar Client Database Extractor"); Console.WriteLine(); Console.WriteLine("Loading archive info..."); var archiveManager = new ArchiveManager(Environment.CurrentDirectory + "/Patch/ClientData.index"); Console.WriteLine("Done."); Console.WriteLine(); Console.WriteLine("Loading '.tbl' files..."); var tbl = archiveManager.GetFiles(".tbl"); Console.WriteLine("Done."); Console.WriteLine(); Console.WriteLine("Writing '.tbl' files to 'ClientDB' folder..."); System.IO.Directory.CreateDirectory("./ClientDB/"); tbl.ToList().ForEach(f => System.IO.File.WriteAllBytes($"./ClientDB/{f.Key}", f.Value)); Console.WriteLine($"Extracted {tbl.Count} files."); Console.ReadKey(); }
static void ExtractClientTables() { Console.WriteLine("Loading '.tbl' files..."); // Get all .tbl files. var tbl = archiveManager.GetFiles(".tbl", 0x4454424C); Console.WriteLine("Done."); Console.WriteLine(); Console.WriteLine("Writing '.tbl' files to 'ClientDB' folder..."); System.IO.Directory.CreateDirectory("./ClientDB/"); tbl.ToList().ForEach(f => System.IO.File.WriteAllBytes($"./ClientDB/{f.Key}", f.Value)); Console.WriteLine($"Extracted {tbl.Count} files."); }