PKHex Error on Pokemon Omega Ruby sav file

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by pm12, Jan 4, 2015.

  1. pm12
    OP

    pm12 Newbie

    Newcomer
    5
    0
    Jan 4, 2015
    Netherlands
    Hey Guys,

    Been looking in the threads but could not find this problem.
    I am using a sky3ds and backed up my save files of pokemon omega ruby to my desktop.
    When I then try to use it in PKHex, I get the following Error:

    Input file is too large (filename)

    After looking in the source code on github I found this line

    string ext = Path.GetExtension(path);
    [COLOR=rgba(0, 0, 0, 0.298039)] ​
    FileInfo fi = new FileInfo(path);
    [COLOR=rgba(0, 0, 0, 0.298039)] [/COLOR]​
    if (fi.Length > 0x10009C)
    [COLOR=rgba(0, 0, 0, 0.298039)] [/COLOR]​
    Util.Error("Input file is too large.", path);[/COLOR]


    Now the number 0x10009c is equivalent to 1048732 bytes.
    The save file itself is 10485848 bytes which is good. Problem is that the size on drive is 10489856 bytes which is too big. (see attachment (Attachment is dutch though.).

    I have no clue how to edit this in PKHex. PKHex is written in C#.
    The Github links are:
    https://github.com/kwsch/PKHeX/blob/master/PKX/f1-Main.cs
    and
    https://github.com/kwsch/PKHeX

    Does the program need to be edited to accept a file that is bigger than 10489856 bytes or is there another way. Please help me out.
     

    Attached Files:

  2. Shady Guy Jose

    Shady Guy Jose GBAtemp Fan

    Member
    368
    129
    Sep 14, 2008
    Portugal
    You'll never be able to open that. The saves need to be decrypted with SaveDataFiler first, and that requires installing a .cia file on the 3DS, which your Sky3DS doesn't, and probably never will, allow.
     
    MarkDarkness likes this.