ROM Hack PKHex Error on Pokemon Omega Ruby sav file

pm12

Member
OP
Newcomer
Joined
Jan 4, 2015
Messages
5
Trophies
0
Age
31
XP
67
Country
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.
 

Attachments

  • Naamloos.png
    Naamloos.png
    7.6 KB · Views: 528

Shady Guy Jose

Well-Known Member
Member
Joined
Sep 14, 2008
Messages
519
Trophies
1
Age
31
XP
2,459
Country
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.
 
  • Like
Reactions: MarkDarkness

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: Good night