Jump to content

Recommended Posts

Posted (edited)

Full disclosure, I'm working on an app that takes all the pokedex data from all games and combines it into one pokedex. Problem is, I know almost nothing about pokemon .sav file structure. While looking at the source code, I noticed gen 2 up has GetCaught() and GetSeen() functions, but gen 1 has not. Am I missing something, or is that not a part of gen 1 editing right now? Since my app really only needs these two functions, I'd like some help stripping it down to just those functions if anyone has ideas.

**Edit Found the functions in gen1, I'm just dumb 🤦‍♂️**

 

Follow Up question, is there a function I can use to force an export of the file? I've been looking for hours.

Edited by CH4R
Posted

The main GUI exports the save file with the following code:


    private static void ExportSAV(SaveFile sav, string path)
    {
        var ext = Path.GetExtension(path).ToLowerInvariant();
        var flags = sav.Metadata.GetSuggestedFlags(ext);

        try
        {
            File.WriteAllBytes(path, sav.Write(flags));
            sav.State.Edited = false;
            sav.Metadata.SetExtraInfo(path);
            Alert(MsgSaveExportSuccessPath, path);
        }
      ...

 

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
×
×
  • Create New...