Jump to content
exec

MackLib - Pack library

Recommended Posts

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 only development 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 certainly 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×