ROM Hack PKHex Error on Pokemon Omega Ruby sav file

pm12

Member
OP
Newcomer
Joined
Jan 4, 2015
Messages
5
Trophies
0
Age
32
XP
77
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: 542

Shady Guy Jose

Well-Known Member
Member
Joined
Sep 14, 2008
Messages
519
Trophies
1
Age
31
XP
2,648
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
  • Skelletonike @ Skelletonike:
    We do have tons of canned sardines and tuna though.
  • BigOnYa @ BigOnYa:
    I was just kidding, that's what my wife thinks tho, her family convinced her, had to prove to her they wrong before she would eat anything w it. https://genius.com/Daniel-peng-is-erythorbate-in-hot-dogs-really-earthworms-annotated
    +1
  • BigOnYa @ BigOnYa:
    I like how MS added a few free-to-play games in the Gamepass list and they promoting them like they gave us something.
  • MysticStarlight @ MysticStarlight:
    A Switch 1 direct right before the Switch 2 direct? i'm surprised
  • BigOnYa @ BigOnYa:
    It will prob be the last direct focused on Switch 1.
  • MysticStarlight @ MysticStarlight:
    And half of it will be shovelware but hey, let's see
    +1
  • BigOnYa @ BigOnYa:
    I should sell my Switch, haven't touched it in months
  • MysticStarlight @ MysticStarlight:
    I've played every game I wanted to play on Switch and am now bored of the system. If this Direct doesn't show anything of my interest, i'll be ready to move on. I still have a modded Lite to mess around with homebrew and emulators tho
  • K3Nv3 @ K3Nv3:
    $5 and I'll throw in ancientboi
    +1
  • BigOnYa @ BigOnYa:
    Ill prob play mine more once I get out this hospital n out this white jacket. My imaginary friend here says I'm doing better n should be let free soon.
  • K3Nv3 @ K3Nv3:
    Ancientboi says you're doing better in the bedroom?
  • S @ salazarcosplay:
    how are oyu doing big on ya? have you avoided ban on the switch?
    +1
  • BigOnYa @ BigOnYa:
    I have 2, 1 v1 Erista (Softmodded/banned like 5 years ago), and 1 OLED (Stock non modded). I'm doing good n you.
  • K3Nv3 @ K3Nv3:
    My cat broke mine
  • BigOnYa @ BigOnYa:
    Your little brother you mean
  • K3Nv3 @ K3Nv3:
    https://youtube.com/shorts/U7LMc_X7HB8 that's messed up like feeding babies to mothers
  • S @ salazarcosplay:
    @BigOnYa can I am gonna have to open my switch. The micro SD port stopped working.
  • BigOnYa @ BigOnYa:
    Yea heard that's the hardest thing to fix, replacing the USB c port. Prob better take somewhere to fix.
  • BigOnYa @ BigOnYa:
    Oh nvm, the micro SD card easy fix, you can buy new daughter board w new SD card slot, pop off old board, pop on new
  • BigOnYa @ BigOnYa:
    Sorry I'm playing fallout 76 n distracted
  • K3Nv3 @ K3Nv3:
    Are you talking to yourself
  • Ooglesmurf @ Ooglesmurf:
    Who else would one talk to.
  • K3Nv3 @ K3Nv3:
    Deeze nuts
  • BigOnYa @ BigOnYa:
    Yea that show is pretty good, only seen few episodes tho
  • BigOnYa @ BigOnYa:
    Ok good talking to you @BigOnYa , later
    BigOnYa @ BigOnYa: Ok good talking to you @BigOnYa , later