yerrt Posted January 11 Posted January 11 Hello, I am working on a project where I want to extract trainer information from my save files using the PKHeX.Core library but I'm having trouble getting started. I'd like to have this information output in a format that I can store in a local database initially. Can anyone help me with this or point me in the right direction? Thank you.
Kaphotics Posted January 12 Posted January 12 Depends how you want to store the data, and what kind of setup you have in mind. Since PKHeX.Core is on NuGet, you can add it as a project reference to any C# repo. Alternatively, you can manually download it and unzip it to get the DLL, and then add it manually to something like a LINQPad script to run a snippet of code to dump info into whatever format you want. var files = Directory.EnumerateFiles(@"C:\saves"); foreach (var file in files) { var sav = SaveUtil.GetVariantSAV(file); if (sav is null) // unrecognized continue; var trainerName = sav.OT; var version = sav.Version; $"{trainerName}\t{version}".Dump(); }
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