ROM Hack RELEASE xv2savdec - Tool to decrypt/encrypt Dragon Ball Xenoverse 2 Switch save files

  • Thread starter ukee
  • Start date
  • Views 100,889
  • Replies 165
  • Likes 10

ukee

Well-Known Member
OP
Member
Joined
Nov 23, 2015
Messages
236
Trophies
0
XP
775
Country
Malaysia
The experimental "conversion" involves taking header information from a decrypted Switch version save, swapping it with the header information from a decrypted PC version save temporarily, adding a few bytes after the header and at the bottom from the PC version save so not only are most of the data shifted to match the decrypted PC version save, but also the save is changed to match the filesize of the PC version temporarily. These temporary changes are so you can then open the decrypted savefile with lazybones's Xenoverse 2 PC version save editor and edit things that haven't been found quite yet for the Switch version offsets. Granted, things are still shifted differently even with 8 bytes being added to the file so not everything can be changed properly. However, using this method results in more editing than what he have from the known Switch version offsets. Then you simply save the changes to the save data and then revert the experimental changes by removing the extra bytes and changing the header back to the Switch version. I didn't realize it at first, but I forgot one extra step and that being that each Switch version save has their own personal header and you need to copy that first line and save it somewhere in order for it to work properly. Then when reverting it back to Switch version save format you copy it back and remove the extra bytes so the re-encryptor recognizes it. I highly recommend making a backup of the save before doing any editing or trying any of this. I know for sure trying to edit mentor customizations won't work because the data is shifted and I don't know exactly how. I did manage to unlock everything including all the quests though and even recovered data from an old borked save file and imported the characters to the new save file. Can't exactly guarantee everyone can get this method working and I had help doing it anyway. However, if you can pull it off the results are great. I even set presets with unobtainable boss skills beyond the crystal raid boss skills.
I just tried the conversion method thing and failed to make it work with the save editor, the editor keep giving an error on parsing time similar to what happened to @NSW-Shadow.

I'm guessing it has something to do with header information being wrong or something?
Also my save file's header starts off with 23 53 41 56 00 0C 00 00 F1 97 12 F2 00 00 00 00 if that makes any difference.
 
  • Like
Reactions: NSW-Shadow

supermariorick

Well-Known Member
Member
Joined
Jun 18, 2010
Messages
640
Trophies
1
XP
816
Country
United States
With this we can have the skill and the clothes that only get in the online events?
Yes. If you can find the offsets or somehow get the experimental "conversion" working. I guess it's having issues working for everybody. In any case, you can likely do most things without "conversion" by hex editing the Switch version save and using the data from the PC version save editing to cross-reference and figure out how to manually edit it yourself. It's too bad EdiZon doesn't have the means to add checksum algorithms yet or we could add a script that injects save files with dragon balls (since you can't set them to 99 and you can only get a full set of seven each time without RAMhacking). I'll have to look into how to actually get save "conversion" working for others as the method I have only seems to work with my save for now.
 

MonadoRequiem

Member
Newcomer
Joined
Jan 13, 2019
Messages
5
Trophies
0
Age
24
XP
58
Country
United Kingdom
The experimental conversion worked for me. It only renders characters unusable and crashes the game when trying to load certain characters if you mess with their mentor data, specifically your advancement level. I recommend making a back-up of your previous file so characters can be recovered, as lazybone's editor allows importing and exporting of characters.

Everything else works fine, from what I know. I'll send screenshots soon.
 

NSW-Shadow

Active Member
Newcomer
Joined
Aug 3, 2018
Messages
32
Trophies
0
Age
36
XP
201
Country
United States
The experimental conversion worked for me. It only renders characters unusable and crashes the game when trying to load certain characters if you mess with their mentor data, specifically your advancement level. I recommend making a back-up of your previous file so characters can be recovered, as lazybone's editor allows importing and exporting of characters.

Everything else works fine, from what I know. I'll send screenshots soon.
and I heard mentor data was a weird are, so I presume that
The shop mod doesn't work either
Shop mod lost support awhile ago, only option now is to hex edit your stuff or try the conversion
 

MonadoRequiem

Member
Newcomer
Joined
Jan 13, 2019
Messages
5
Trophies
0
Age
24
XP
58
Country
United Kingdom
The experimental conversion worked for me. It only renders characters unusable and crashes the game when trying to load certain characters if you mess with their mentor data, specifically your advancement level. I recommend making a back-up of your previous file so characters can be recovered, as lazybone's editor allows importing and exporting of characters.

Everything else works fine, from what I know. I'll send screenshots soon.
upload_2019-1-18_5-0-44.png


My switch file loaded up
 

NSW-Shadow

Active Member
Newcomer
Joined
Aug 3, 2018
Messages
32
Trophies
0
Age
36
XP
201
Country
United States
I just tried the conversion method thing and failed to make it work with the save editor, the editor keep giving an error on parsing time similar to what happened to @NSW-Shadow.

I'm guessing it has something to do with header information being wrong or something?
Also my save file's header starts off with 23 53 41 56 00 0C 00 00 F1 97 12 F2 00 00 00 00 if that makes any difference.
Ukee, Monado took a crack at my save and it still failed. He has come to the conclusion that maybe our actual time in the game is what is giving the parse time error?? I'm unsure of anything, but ig knowing how long you've played XV2 and generic save info would be a start in getting a fix someday
 

omega7

Well-Known Member
Member
Joined
Jun 16, 2018
Messages
106
Trophies
0
Age
27
XP
565
Country
Australia
Thank you for the save tool.

Here are some save addresses found on 1.10.00, and some explanations about the formats that the items are in.
I am not sure if they are correct or not, or if they are different depending on the save or version.
So, it is a good idea to make a copy of saves before changing anything.

"WW WW 00 00 XX YY ZZ 00"
(WW - ID)
(00 - Nothing)
(XX - Category)
(YY - Amount)
(ZZ - Equipped)
(00 - Nothing)

For example:
"07 01 00 00 03 14 00 00"

07 01 - ("0107" = ID "263")
03 - (Category "03" "Feet"?)
14 - (Amount "20")
00 - (Equipped "0")

I am not sure how equip numbers work beyond "00".
A "01" might mean the character in save slot 1.

There are "FF FF FF FF FF 00 00"s below the existing items.
These should be overwritten with new items.

IDs start from "00 00" and might go up to "50 01" (337), but looking in-game, I see less items despite that number, which might mean that there are some that are not used.
I am not sure if adding IDs that are not used will have any adverse effects on the game and saves or not.

Also, it might take a while to write all of the items, since there are about 1,144 items, as far as I can tell, and if you added equipment going from "00 00" to "50 01" and then items, that would probably mean writing 1,788+ entries.
Upper Body? - 1408
Category: 00?
Total: 252+?

Lower Body? - 2408
Category: 01?
Total: 252+?

Hands? - 3408
Category: 02?
Total: 152+?

Feet? - 4408
Category: 03?
Total: 244+?

Accessories? - 5408
Category: 04?
Total: 136+?
Food? - 6408
Category: 05?
Total: 19+?

Mixing Items? - 7408
Category: 06?
Total: 32+?

Important Items - 8408
Category: 07
Total: ?
Dragon Balls: 01, 02, 03, 04, 05, 06, 07
Distorted Time Eggs: 08, 09, 0A, 0B, 0C

Capsules? - 9408
Category: 08?
Total: 37+?

Gifts - ?
Category: ?
Total: 8+?

They might be in the same area as Capsules are.
QQ Bangs - A408
Category: 09
Total: ?

The format for QQ Bangs: WW WW WW 00 XX YY ZZ 00
(W - Attribute Levels)
(00 - Nothing)
(XX - Category)
(YY - Amount)
(ZZ - Equipped)
(00 - Nothing)

I am guessing that attribute levels go from "0" to "A".
(0) = (-5)
(1) = (-4)
(2) = (-3)
(3) = (-2)
(4) = (-1)
(5) = (0)
(6) = (+1)
(7) = (+2)
(8) = (+3)
(9) = (+4)
(A) = (+5)

For example, "A0 3A 76 00 09 01 00 00" might be:
A - (Health +5)
0 - (Ki -5)
3 - (Stamina -2)
A - (Basic ATK +5)
7 - (Strike Supers +2)
6 - (Ki Blast Supers +1)
09 - (Category "09")
01 - (Amount "1")
The first two might be Super Souls and Skills.

? - B248
? - D428
? - F248
? - 13428
? - 15428
? - 17428
Gifts are part of Mixing items, cross checked with PC save editor.Super soul is in 6408
 
Last edited by omega7,
  • Like
Reactions: Kotomine Kirei

Dtk0kai

Well-Known Member
Newcomer
Joined
Jul 1, 2017
Messages
52
Trophies
0
Age
31
XP
152
Country
United States
Thank you for the save tool.

Here are some save addresses found on 1.10.00, and some explanations about the formats that the items are in.
I am not sure if they are correct or not, or if they are different depending on the save or version.
So, it is a good idea to make a copy of saves before changing anything.

"WW WW 00 00 XX YY ZZ 00"
(WW - ID)
(00 - Nothing)
(XX - Category)
(YY - Amount)
(ZZ - Equipped)
(00 - Nothing)

For example:
"07 01 00 00 03 14 00 00"

07 01 - ("0107" = ID "263")
03 - (Category "03" "Feet"?)
14 - (Amount "20")
00 - (Equipped "0")

I am not sure how equip numbers work beyond "00".
A "01" might mean the character in save slot 1.

There are "FF FF FF FF FF 00 00"s below the existing items.
These should be overwritten with new items.

IDs start from "00 00" and might go up to "50 01" (337), but looking in-game, I see less items despite that number, which might mean that there are some that are not used.
I am not sure if adding IDs that are not used will have any adverse effects on the game and saves or not.

Also, it might take a while to write all of the items, since there are about 1,144 items, as far as I can tell, and if you added equipment going from "00 00" to "50 01" and then items, that would probably mean writing 1,788+ entries.
Upper Body? - 1408
Category: 00?
Total: 252+?

Lower Body? - 2408
Category: 01?
Total: 252+?

Hands? - 3408
Category: 02?
Total: 152+?

Feet? - 4408
Category: 03?
Total: 244+?

Accessories? - 5408
Category: 04?
Total: 136+?
Food? - 6408
Category: 05?
Total: 19+?

Mixing Items? - 7408
Category: 06?
Total: 32+?

Important Items - 8408
Category: 07
Total: ?
Dragon Balls: 01, 02, 03, 04, 05, 06, 07
Distorted Time Eggs: 08, 09, 0A, 0B, 0C

Capsules? - 9408
Category: 08?
Total: 37+?

Gifts - ?
Category: ?
Total: 8+?

They might be in the same area as Capsules are.
QQ Bangs - A408
Category: 09
Total: ?

The format for QQ Bangs: WW WW WW 00 XX YY ZZ 00
(W - Attribute Levels)
(00 - Nothing)
(XX - Category)
(YY - Amount)
(ZZ - Equipped)
(00 - Nothing)

I am guessing that attribute levels go from "0" to "A".
(0) = (-5)
(1) = (-4)
(2) = (-3)
(3) = (-2)
(4) = (-1)
(5) = (0)
(6) = (+1)
(7) = (+2)
(8) = (+3)
(9) = (+4)
(A) = (+5)

For example, "A0 3A 76 00 09 01 00 00" might be:
A - (Health +5)
0 - (Ki -5)
3 - (Stamina -2)
A - (Basic ATK +5)
7 - (Strike Supers +2)
6 - (Ki Blast Supers +1)
09 - (Category "09")
01 - (Amount "1")
The first two might be Super Souls and Skills.

? - B248
? - D428
? - F248
? - 13428
? - 15428
? - 17428

So I'm a total noob when it comes to hex editing, I was trying to make sense of what you said in regards to the QQ bangs locations and I couldn't find them. Perhaps I'm not looking in the right spot or Im 100 percent lost and didn't even recognize it. Could you possibly post a screen shot of the qq bang hex string so I can know what I'm looking for. I'm on v1.11.00
 
Last edited by Dtk0kai,

omega7

Well-Known Member
Member
Joined
Jun 16, 2018
Messages
106
Trophies
0
Age
27
XP
565
Country
Australia
So I'm a total noob when it comes to hex editing, I was trying to make sense of what you said in regards to the QQ bangs locations and I couldn't find them. Perhaps I'm not looking in the right spot or Im 100 percent lost and didn't even recognize it. Could you possibly post a screen shot of the qq bang hex string so I can know what I'm looking for. I'm on v1.11.00
upload_2019-1-26_0-29-13.png

Hopes this help.A note on category number, you have to put in the correct numbers as stated in Kirei's post or else some items wont work
 

NSW-Shadow

Active Member
Newcomer
Joined
Aug 3, 2018
Messages
32
Trophies
0
Age
36
XP
201
Country
United States
To anyone who actually got the experimental PC conversion to work. I give up on making my save work but uh, pls share a copy of your save or something so that I could modify it some more etc.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BakerMan @ BakerMan: well then show them how to scratch it (this is a verbalase joke)