ROM Hack WIP Pokemon Quest Save Editor (PQSE)

  • Thread starter Thread starter xSillusx
  • Start date Start date
  • Views Views 126,953
  • Replies Replies 297
  • Likes Likes 21
Big thanks to everyone helping out with this topic. Special thanks to @noircchack for the stone data information. Dont know how long you researched this but its amazing!

you're welcome ^^.
Great if you can purpose a most complete application possible. But indeed I spent a few days to understand/collect all this data (still do ^^), but since I played since the game has release, I had a lot of data, it helps to find the feature ;-)

Will you know how to do like "BOTW-Save-Editor-GUI" and "EdiZon", meaning, can directly edit backup only by launching the homebrew directly on Switch ?

Thanks.



Thank you noircchack.
Your research is also beneficial for me.

I don't know what the figure is for the last 30.
But I know that other numbers are lined up based on float.

ex : 109 231 251 61 → hex 6d e7 fb 3d → float(ieee754) 3dfbe76d → Dec 0.1230 → +12.3 %

Dec +0.99 → float 3F7D70A4→ A4, 70, 7D, 3F → 164, 112, 125, 63
Dec -0.99 → float BF7D70A4 → A4, 70, 7D, BF → 164, 112, 125, 191
Dec +1.99 → float 3FFEB852 → 52 B8 FE 3F → 82 184 254 63

you're welcome too ^^.

Great, well seen. It had to find that one :yay:

I understand now, why they are some value duplicate :

+1.21661556860 A69B443C 0.012
+1.2117116460 75B403C 0.0117 (rounded to 0.012)



PS : For each bonus here is if you need to put a positive value or a negative value in json file (save) :

ex of value :

Value wanted in game129/165/201th130/166/202th131/167/203th132/168/204th
12,310923125161
-12,3109231251189

bonusMax Bonus by Pokemon+ or - value
Natural Healing (%) +xx+300.0Positive values
Movement Speed (%) +xx+200.0Positive values
Critical Hit Rate (%) +xx+100.0Positive values
Critical Hit Damage (%) +xx+100.0Positive values
Time to Recover (%) -xx-50.0Negative values
HP upon Recovery (%) +xx+50.0Positive values
Hit Healing (%) +xx+10.0Positive values
Healing from K.O. (%) +xx+10.0Positive values
Resistant to ↓ Effects (%) +xx+100.0Negative values
Resistant to Status Conditions (%) +xx+100.0Negative values
 
Last edited by noircchack,
  • Like
Reactions: Dionis
So I don't know about you guys and the Android Version, but I was able to "decrypt" my Android save file. Here is my encrypted header of the save:
4C 4D B7 4D B3 87 B0 9A 1A 35 D9 5D F2 D3 2B AE 6C 34 BE 77 96 CB 58 D5 51 9A B2 AA 87 5E 36 C6 05 DC D7 83 1D CD 20 B5 29 AE 78 2A DE 89 5D FF E5 CF F2 73 1F F5 7A 5B B0 CD 74 A2 05 2B D2 23 3D 1F F9 F4

Here is my Decrypted header of the same save:
40 C7 00 00 0C 0C 0C 0C 0C 0C 0C 0C 0C 0C 0C 0C 38 00 00 00 01 00 00 00 10 00 00 00 34 00 00 00 20 00 00 00 28 85 B7 35 D3 ED 3D 28 39 35 4C 18 7E 40 41 95 76 90 8D 25 E9 F9 D0 E3 48 D0 6E 6C C4 A3 AE 40


For further testing I need someone to send me his/her (user & user_backup) files so I can compare some stuff.

Note: My header includes the first 4 bytes of the file size and the remaining 12 0x0C (Was this intentional? Or someone meant to pad with "12" so they accidentally padded with "12" 12 times?).

Anyways so, I didn't really "decrypt" it since the key is unknown, I did a RAM dump of my game right after the game loaded and here is my saved data.
 
  • Like
Reactions: xSillusx
Update: Got it.
IV: 6E 53 64 68 64 63 33 65 63 44 44 45 4D 37 66 41
AES Key: 2F 39 65 45 45 65 76 6D 77 4A 36 41 6E 75 58 39
AES Type: 256 bit CBC
 
  • Like
Reactions: noircchack
Update: Got it.
IV: 6E 53 64 68 64 63 33 65 63 44 44 45 4D 37 66 41
AES Key: 2F 39 65 45 45 65 76 6D 77 4A 36 41 6E 75 58 39
AES Type: 256 bit CBC

good find ^^.
I don't know how use this ;), so here is my backup from my phone (it's juste after after the tutorial, I don't play on phone).
 

Attachments

Can someone refer me to the explanation of how the switch version works so that I can try and mimic that for android? The android one is a bit different and is giving me different results.
 
Can someone refer me to the explanation of how the switch version works so that I can try and mimic that for android? The android one is a bit different and is giving me different results.
Hey! maybe this will help you:
as far as I understand things:
1. you decrypt the save file with the correct keys
2. you parse the decrypted save file into the correct save structure (with ZeroFormatter for example)
3. you can make changes directly to values
4. save the stuff with ZeroFormatter again
5. encrypt it
6. Done
This is a badly and oversimplified explanation on how this works (i think its not even 100% correct)
But if you understand C# you can look into the repository of the PQSE-GUI and see for yourself :)
 
Hey! maybe this will help you:
as far as I understand things:
1. you decrypt the save file with the correct keys
2. you parse the decrypted save file into the correct save structure (with ZeroFormatter for example)
3. you can make changes directly to values
4. save the stuff with ZeroFormatter again
5. encrypt it
6. Done
This is a badly and oversimplified explanation on how this works (i think its not even 100% correct)
But if you understand C# you can look into the repository of the PQSE-GUI and see for yourself :)
I understand C++ and PowerShell but C# has way too many code that is just.... (No offense to your bio). I will try to go through it but thanks for your help.
 
Hey! maybe this will help you:
as far as I understand things:
1. you decrypt the save file with the correct keys
2. you parse the decrypted save file into the correct save structure (with ZeroFormatter for example)
3. you can make changes directly to values
4. save the stuff with ZeroFormatter again
5. encrypt it
6. Done
This is a badly and oversimplified explanation on how this works (i think its not even 100% correct)
But if you understand C# you can look into the repository of the PQSE-GUI and see for yourself :)

I understand C++ and PowerShell but C# has way too many code that is just.... (No offense to your bio). I will try to go through it but thanks for your help.

I am starting out with learning encrypting and decrypting save files. Can anyone please point me to the right direction on learning the whole process.

thanks
 
I am starting out with learning encrypting and decrypting save files. Can anyone please point me to the right direction on learning the whole process.

thanks

Start with learning the common methods and how they work (DES / AES / RSA) Then use your favorite language to manipulate the files.
 
  • Like
Reactions: slickpsp
Thanks. I guess I should get better at C# a bit more then.
If you're on Windows, you can use Powershell, as it is related to C#. The reason I'm mentioning this is because powershell comes with packages already available which will save u lots of trouble.
 
If you're on Windows, you can use Powershell, as it is related to C#. The reason I'm mentioning this is because powershell comes with packages already available which will save u lots of trouble.
Thanks for the suggestion. I am still fairly new to all this so all this help is greatly appreciated.
 
I have my Android save files, but there is no way to edit it, basically I want to get 999 Mystical Shell and edit some legend to shiny
 
  • Like
Reactions: xSillusx

Site & Scene News

Popular threads in this forum