Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[C#] PKG1 Library

Junior Spellweaver
Joined
Jul 1, 2008
Messages
178
Reaction score
83
Sup fam, this is a part of a series of releases relating to

PKG1 is a library I built to replace reWZ and MapleLib for parsing WZ/PKG1 files. It's optimized for high-throughput applications and being able to multi thread reading from WZ files.

Repository URL:
Git Clone (HTTPS):

Example of usage:

Code:
PackageCollection v191 = new PackageCollection("/opt/v191/Base.wz");
WZProperty slimeNode = v191.Resolve("/Mob/100006"); // Resolves to Mob.wz/100006.img
string slimeName = slimeNode.ResolveOutlinkForOrNull<string>("String/Mob/100006");
// Since the 100006 slime is just a mob link to 0210100 I'll just skip to that for example of getting an image
Image<Rgba32> slimeImage = slimeNode.ResolveOutlinkForOrNull<Image<Rgba32>>("Mob/0210100/stand/0");
// If you look at the latest WZ files, this is actually an outlink that is automatically resolved by PKG1

All of the above can be done in a multi threaded environment.

As per usual, this is built with and can be compiled to near-native code on Linux, OSX, and Windows.
 
Back
Top