So I have a copy of Ultra Sun on my homebrewed 3DS. I used the latest version of Checkpoint to get my Ultra Sun savefile to be used with pkhex. But the outputted save didn't work with pkhex and would just give the same error. I have no clue on why it doesn't work. If it adds anything, the savefile is from my real Ultra Sun cartridge.
main