PKHex Error on Pokemon Omega Ruby sav file

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

  1. pm12

    pm12 Newbie

    Jan 4, 2015
    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:

    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

    Sep 14, 2008
    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.