ROM Hack WIP QEdit - A Pokemon Quest Web-Based Save Editor

shearx

Active Member
OP
Newcomer
Joined
Jun 13, 2018
Messages
38
Trophies
0
Age
37
XP
249
Country
United States
For android compatibility, I simply created my own version of pqSave, I decrypt my Android save with it, then I encrypt it using the normal pqSave. Then I use this tool to mod my save. Then I download my saved file. After that I decrypt it using the normal pqSave, then I encrypt it again using my custom pqSave. This way it works :D

As for your save
it's in jp.pokemongame something. inside the 'files' folder.
can you share the modified PqSave with me? I can use it to support android saves in the editor
 

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
I'm trying to upload it here idk if it will work. Anyways. So sometimes it works fine and your editor reads it fine, sometimes it doesn't. I haven't figured it out yet. That's why I'm asking people for their android saves. Anyways all u have to do is just replace the Encryption Key you use. IDK if you're hosting "PqSave.exe" on your server and executing it when people upload their files, or if you have your own code. Anyways just download PqAndr.rar and unzip it and use it the way you use PqSave. The files are similar and have a similar structure (As the Switch Save works on android).
 

Attachments

  • PqAndr.rar
    5 MB · Views: 522

shearx

Active Member
OP
Newcomer
Joined
Jun 13, 2018
Messages
38
Trophies
0
Age
37
XP
249
Country
United States
I'm trying to upload it here idk if it will work. Anyways. So sometimes it works fine and your editor reads it fine, sometimes it doesn't. I haven't figured it out yet. That's why I'm asking people for their android saves. Anyways all u have to do is just replace the Encryption Key you use. IDK if you're hosting "PqSave.exe" on your server and executing it when people upload their files, or if you have your own code. Anyways just download PqAndr.rar and unzip it and use it the way you use PqSave. The files are similar and have a similar structure (As the Switch Save works on android).
I’ve tried building passive with the new key (iv is the same), but I get errors when attempting to decrypt the saves. Something about invalid padding and whatnot.
 

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
I’ve tried building passive with the new key (iv is the same), but I get errors when attempting to decrypt the saves. Something about invalid padding and whatnot.
Decrypting shouldn't yield you any errors. I will give you my android Save so that you can try on it.
user is the android file
user_e are encrypted using the respective keys (switch/android)
user_d is the decrypted one.

Could it be that on android the key is different per user?!
 

shearx

Active Member
OP
Newcomer
Joined
Jun 13, 2018
Messages
38
Trophies
0
Age
37
XP
249
Country
United States
Decrypting shouldn't yield you any errors. I will give you my android Save so that you can try on it.
user is the android file
user_e are encrypted using the respective keys (switch/android)
user_d is the decrypted one.

Could it be that on android the key is different per user?!
that could definitely be the case. I have an android save from another thread, and the using the keys you provided, I always get an error when attempting to decrypt with them.
 

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
that could definitely be the case. I have an android save from another thread, and the using the keys you provided, I always get an error when attempting to decrypt with them.
Can u send them my way? I'm trying a different save file from my device to try to see.
 

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
which save? all I see are the modified PqSave you uploaded, no actual save files..
Sorry my bad, I'm still unfamiliar with how uploading works here.

So I just tried it with my brother's save, and I got his key which was indeed different
his key: yU1qRiR9RvOT9WoB
my hey: /9eEEevmwJ6AnuX9
the IV is the same for both.

Edit:
So I need as many tries as possible to be able to understand how key generation on Android works. Maybe it's a base 64 encoding of something. Under this line I will post whatever "keys" I find in my game:

  • 39e0c09f-60c5-48d6-b448-dd274e9dd03d
  • c388bd10-7798-438f-90fb-ccab35a496d3
  • 985a5a53-d612-470f-bf3a-d94a23741cd5
  • f4b2b321-4a53-43f5-85a6-b71afa3cca15
  • enfs2oWEb3tZFWFDJILT0Ziab4rZ86U5gsRZrx+0/EWKbllN3pusITS9mjFXibA+ELjFBvl4uMGE
h1CjOcBrIt+7aE8FJuo29W1irAAgzWqd1v69TZsO4DwB0qizXR/UztuURgQ/BDsG5HhPt5o/fs9m
QLuM2z69ojxHXklH8t/geuUmVqUvfL9PG/vbUmWHX0sogTWEW/qVzEvzv12hmWdB8owZp3PRh+V1
7AXGdqpZQBSS7dHXY+Hz07jfSXZ0ndTovZdBa9ShI6EbeoL8upMUm1QPeLgAg3CFpb8LuNl5SW4/
Kur7Lvw2al9vl5NGGSDn74Z0Vuwf5hkaRallnA==

  • 320201807121e418971eca64718bac81719575093b6
 

Attachments

  • thethinySave.rar
    156 KB · Views: 234
Last edited by thethiny,

slowbruh

Member
Newcomer
Joined
Jul 16, 2018
Messages
5
Trophies
0
Age
23
XP
55
Country
Finland
Sorry my bad, I'm still unfamiliar with how uploading works here.

So I just tried it with my brother's save, and I got his key which was indeed different
his key: yU1qRiR9RvOT9WoB
my hey: /9eEEevmwJ6AnuX9
the IV is the same for both.

Edit:
So I need as many tries as possible to be able to understand how key generation on Android works. Maybe it's a base 64 encoding of something. Under this line I will post whatever "keys" I find in my game:

  • 39e0c09f-60c5-48d6-b448-dd274e9dd03d
  • c388bd10-7798-438f-90fb-ccab35a496d3
  • 985a5a53-d612-470f-bf3a-d94a23741cd5
  • f4b2b321-4a53-43f5-85a6-b71afa3cca15
  • enfs2oWEb3tZFWFDJILT0Ziab4rZ86U5gsRZrx+0/EWKbllN3pusITS9mjFXibA+ELjFBvl4uMGE
h1CjOcBrIt+7aE8FJuo29W1irAAgzWqd1v69TZsO4DwB0qizXR/UztuURgQ/BDsG5HhPt5o/fs9m
QLuM2z69ojxHXklH8t/geuUmVqUvfL9PG/vbUmWHX0sogTWEW/qVzEvzv12hmWdB8owZp3PRh+V1
7AXGdqpZQBSS7dHXY+Hz07jfSXZ0ndTovZdBa9ShI6EbeoL8upMUm1QPeLgAg3CFpb8LuNl5SW4/
Kur7Lvw2al9vl5NGGSDn74Z0Vuwf5hkaRallnA==

  • 320201807121e418971eca64718bac81719575093b6
the key is made from pqdata.xml file because if you edit it the game will say that they can't open you save, but editing pretty much any other file gives no sort of errors.
 
Last edited by slowbruh,

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
the key is made from pqdata.xml file because if you edit it the game will say that they can't open you save, but editing pretty much any other file gives no sort of errors.
I noticed too that it is stored AS IT IS in the memory. It isn't being decoded from base64. So in memory I can see my IV, Key, and then the "skey" (the one you're referring to). I'm trying to find connections.
Meanwhile, the game save file of android is 100% like the switch version, IDK why the tools fail to read them.

Edit: The "
" is converted into 0A in memory. So it is part of the key.
 
Last edited by thethiny,

slowbruh

Member
Newcomer
Joined
Jul 16, 2018
Messages
5
Trophies
0
Age
23
XP
55
Country
Finland
I noticed too that it is stored AS IT IS in the memory. It isn't being decoded from base64. So in memory I can see my IV, Key, and then the "skey" (the one you're referring to). I'm trying to find connections.
Meanwhile, the game save file of android is 100% like the switch version, IDK why the tools fail to read them.

Edit: The "
" is converted into 0A in memory. So it is part of the key.
how can I see the key from my memory on a emulator?
EDIT: i transferred my data from my phone to a rooted bluestacks emulator. My idea was to transfer data to bluestacks -> extract files ->use pqsave -> put edited files into bluestacks -> back up with pokemon quest servers -> transfer to original phone. My problem is that i have no idea what my key is and how to find it.
 
Last edited by slowbruh,

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
how can I see the key from my memory on a emulator?
EDIT: i transferred my data from my phone to a rooted bluestacks emulator. My idea was to transfer data to bluestacks -> extract files ->use pqsave -> put edited files into bluestacks -> back up with pokemon quest servers -> transfer to original phone. My problem is that i have no idea what my key is and how to find it.
You cannot browse the memory of blue stacks. However, you can use bluestacks itself.
Download GameGuardian apk and install it. Then run it in bluestacks then open the game until it says press anything to start (Right when music plays and the PQ Logo appears).
open GameGuardian (it will be a small shield) and in one of the icons there is a magnifying glass with "T" on it. Press it then choose text (it might say sand). Then search for this:
nSdhdc3ecDDEM7fA
DO NOT ENABLE UTF-16.
Then it will find 6-8 results. HOLD on the first one and "Go to address".
Then on top right you will find the menu (3 horizontal lines)
Go to the bottom of the list and press the button that is format data or something like that.
Enable String Representation.
Now you will see 'nSdhdc3ecDDEM7fA' Scattered across 4 rows. Scroll a bit down and you (might) find it again. Scroll a bit down then you will find a string of text, this is your key. The string will be 4 rows as well.
 
  • Like
Reactions: skylex77

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
@thethiny can you share your Android version editor or sell it to me, I really want to edit my pokemon I have my save files ready :)
Just like what slowbruh said. If you wait an hour I will release a tool here that will make your own decryptor/encryptor. Don't forget that you need your keys (Follow my previous post to obtain them).
 

wardude202

Member
Newcomer
Joined
Jul 18, 2018
Messages
8
Trophies
0
Age
27
XP
56
Country
Australia
@thethiny yoyo so im working on what you said but i can't seem to find the nSdhdc3ecDDEM7fA more than once, may i add you on something so we can chat? i have it all open and setup right now its just a matter of finding the keys

--------------------- MERGED ---------------------------

im unable to PM you since im a new user
 
Last edited by wardude202,

thethiny

Well-Known Member
Member
Joined
Jun 18, 2009
Messages
137
Trophies
0
XP
253
Country
United States
@thethiny yoyo so im working on what you said but i can't seem to find the nSdhdc3ecDDEM7fA more than once, may i add you on something so we can chat? i have it all open and setup right now its just a matter of finding the keys

--------------------- MERGED ---------------------------

im unable to PM you since im a new user
Facebook/Twitter/YouTube, same username.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/wZgjSNb-o4c?si=ajt4Lgq_LTYcXxs2 +1