deadmza Posted October 29, 2024 Posted October 29, 2024 (edited) Hello everyone, I was curious about using My Pokemon Ranch so I tried using old backups from savefiles from long ago. Dragged and dropped them on pkhex savedata.bin and everything worked good. But, I can't assign them to my Mii and my pokemon they look like they're from Hayley. Any idea if this is possible to fix? I know it's super niche haha EDIT: Also, as all the pokemon counts towards Hayley, Ranch level can't be upgraded. Its stucks on level 1 without possibilities to upgrade Edited October 29, 2024 by deadmza spelling
Kaphotics Posted October 29, 2024 Posted October 29, 2024 Try to use the batch editor to set the properties for the trainer who deposited them: https://github.com/kwsch/PKHeX/blob/2cd9632c4aaaac36a451d6bbebef6312701aae30/PKHeX.Core/PKM/RK4.cs#L303-L323 OwnershipStatus might instead be the integer for which Mii owns the Pokémon. Replace the TID/SID/OT with values you'd expect to see for yours. .OwnershipType=1 .OwnershipStatus=2 .HandlingTrainerTID=1234 .HandlingTrainerSID=1234 .HandlingTrainerName=Me You can edit various features of the Ranch save data via the Block Data editor.
deadmza Posted October 30, 2024 Author Posted October 30, 2024 22 hours ago, Kaphotics said: Try to use the batch editor to set the properties for the trainer who deposited them: https://github.com/kwsch/PKHeX/blob/2cd9632c4aaaac36a451d6bbebef6312701aae30/PKHeX.Core/PKM/RK4.cs#L303-L323 OwnershipStatus might instead be the integer for which Mii owns the Pokémon. Replace the TID/SID/OT with values you'd expect to see for yours. .OwnershipType=1 .OwnershipStatus=2 .HandlingTrainerTID=1234 .HandlingTrainerSID=1234 .HandlingTrainerName=Me You can edit various features of the Ranch save data via the Block Data editor. Awesome. Do you have any documentation to read so I know how can I put those lines in the batch editor? I'm not good at coding, so this is a little strange to me, but I could read and try it out. Also, there is not block data editor when I load a Ranch save file. OR at least I haven't found in the sav tab as always 1
MOONECO Posted December 5, 2024 Posted December 5, 2024 On 10/29/2024 at 7:48 AM, deadmza said: Hello everyone, I was curious about using My Pokemon Ranch so I tried using old backups from savefiles from long ago. Dragged and dropped them on pkhex savedata.bin and everything worked good. But, I can't assign them to my Mii and my pokemon they look like they're from Hayley. Any idea if this is possible to fix? I know it's super niche haha EDIT: Also, as all the pokemon counts towards Hayley, Ranch level can't be upgraded. Its stucks on level 1 without possibilities to upgrade I've been having the same issue. . . pretty new to coding but if you figured out a way i'd love to hear it! Im trying so many different methods but i cant crack the code on how to set Miis to Pokemon
deadmza Posted December 9, 2024 Author Posted December 9, 2024 Nop, I really didn't understand a thing, nor how should I use those commands on the batch editor, since it requires to pick "party" or "boxes" so I was lost. And I gave up. Maybe someone can figure out and help us
deadmza Posted January 8, 2025 Author Posted January 8, 2025 On 10/29/2024 at 2:13 PM, Kaphotics said: Try to use the batch editor to set the properties for the trainer who deposited them: https://github.com/kwsch/PKHeX/blob/2cd9632c4aaaac36a451d6bbebef6312701aae30/PKHeX.Core/PKM/RK4.cs#L303-L323 OwnershipStatus might instead be the integer for which Mii owns the Pokémon. Replace the TID/SID/OT with values you'd expect to see for yours. .OwnershipType=1 .OwnershipStatus=2 .HandlingTrainerTID=1234 .HandlingTrainerSID=1234 .HandlingTrainerName=Me You can edit various features of the Ranch save data via the Block Data editor. Update: after googling I finally understood how to run the batch editor properly because Ranch don't have party, and using all boxes would replace information from Hayley's pokemons, and I didn't wanted that, I made a folder, stored there my pokemons and tried using that folder. The good news is the batch editor recognized them. But the bad news are that after acknowledging them, I tried using your commands, replacing handling trainer tid, sid and name. But since I really don't know hot to get the integer of the Mii owning the pokemon, I used your value of ownership status (set=2). And now I've got this message. Hope you understood what I did, and thanks in advance if you're reading this.
Kaphotics Posted January 8, 2025 Posted January 8, 2025 2 minutes ago, deadmza said: Update: after googling I finally understood how to run the batch editor properly because Ranch don't have party, and using all boxes would replace information from Hayley's pokemons, and I didn't wanted that, I made a folder, stored there my pokemons and tried using that folder. The good news is the batch editor recognized them. But the bad news are that after acknowledging them, I tried using your commands, replacing handling trainer tid, sid and name. But since I really don't know hot to get the integer of the Mii owning the pokemon, I used your value of ownership status (set=2). And now I've got this message. Hope you understood what I did, and thanks in advance if you're reading this. You put OwnershipStatus twice and missed OwnershipType 1
deadmza Posted January 8, 2025 Author Posted January 8, 2025 10 hours ago, Kaphotics said: You put OwnershipStatus twice and missed OwnershipType Oh my good, that was definitely embarrassing. Well, fixed that and all the files were modified correctly. Put the savefile again into Dolphin and gave me a lot of errors like this one, but after clicking the right option that appears on that warning in spanish (ignore for this time) game runs without problems. After that update using the batch my pokemon started to show levels for example, so they are definitively modified properly; but they are still not recognized as belonging to me. I suppose it's because the ownershiptype/status problem. And I don't know how to get that data. Maybe from my Mii or maybe my Wii system?
Pejoo Posted 1 hour ago Posted 1 hour ago I figured it out, the only catch being you're gonna have to edit someone else's save file because it requires an actual DS to have connected at least once. Basically, you're gonna want download a suitable save file, I used this one. Then you're gonna download this set of tools from 2014, which, despite being discontinued, are barely enough for the job. Then you're gonna put the borrowed save file in the bin folder of PR-Tools and use "PR-IDchanger.exe" It's gonna ask you for TID and SID. It is also gonna ask you for a HEX string that's going to replace the previous save file owner's name, for that you might find to use this python function to figure out what the HEX for your trainer name is: def decode_pokemon_string(hex_str): name = "" # We look at 4 characters (2 bytes) at a time for i in range(0, len(hex_str), 4): chunk = hex_str[i:i+4] # Convert Little Endian (e.g., '3A01') to an integer (0x013A) # We swap the first byte and second byte value = int(chunk[2:4] + chunk[0:2], 16) # FFFF is the end of the string, so we stop there! if value == 0xFFFF: break # Uppercase logic (A-Z) if 299 <= value <= 324: name += chr(value - 234) # Lowercase logic (a-z) elif 325 <= value <= 350: name += chr(value - 228) else: # If it's a special character or space, we can add more logic here! name += "?" return name Once that's done, it's going to generate a savedata-new.bin file, drag it over "PR-Hashupdate.exe" and it's going to generate "savedata_hashed.bin" in the same directory, that's your new save file that you're gonna drag back into the save directory that dolphin is going to read from. Rename it "savedata.bin" and you're done. The trainer for that save file now has your own name and you can edit the caretaker Mii in-game to match. Now that you have a save file with your trainer name you're gonna want to get rid of all the previous owner's Pokémon so you can start anew with your own, you might be already familiar with this process: Open savedata.bin with PKHeX Clear all boxes of Pokémon, you can easily do this by using the "Load Boxes" option and loading an empty folder while agreeing to clear subsequent boxes. Leave all but ONE Pokémon for Hayley, if she doesn't have at least one Pokémon for herself the game will freeze when she attempts to talk to you, that's because the game can't find Pokémon in memory to pull next to her. Save the empty ranch save file Open the game save file where your own Pokémon are and export the boxes you wish to deposit as batches of PKM files. Batch edit the cluster of PKM files you exported to include these strings: .OwnershipType=1 .OwnershipStatus=2 .HandlingTrainerTID=*The TID you put earlier in PR-IDchanger* .HandlingTrainerSID=*The SID you put earlier in PR-IDchanger* .HandlingTrainerName=*The Trainer Name you put earlier in PR-IDchanger* 6.Once you edited the batch to include the strings, open the empty ranch save file you prepared and import your boxes there, overwrite the save and you're done. You should now have a Pokémon Ranch save file with all your Pokémon assigned to a trainer with your own name! It's not quite like starting fresh but it works, miracolously.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now