exec Posted June 9, 2018 Posted June 9, 2018 MackLib is a .NET library primarily designed to read Mabinogi's pack files, with the possibly unique function to read the entire package folder to get the latest version of all files, just like the client does. Originally developed only for fun, it has been used and tested in several applications at this point, and just today I finally added a way to create new and modify/recreate existing pack files. The library isn't perfect yet, and creating pack files is highly experimental, but we haven't had any problems reading files with it since I initially wrote it. Usage Example: var path = Path.Combine(PackReader.GetMabinogiDirectory(), "package"); using (var pr = new PackReader(path)) { var entry = pr.GetEntry(@"data\db\itemdb.xml"); using (var ms = new MemoryStream(entry.GetData())) using (var sr = new StreamReader(ms)) { // read itemdb } } GitHub: https://github.com/exectails/MackLib
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now