1. supermariorick

    supermariorick GBAtemp Advanced Fan
    Member

    Joined:
    Jun 18, 2010
    Messages:
    569
    Country:
    United States
    Given that EdiZon supports additional scripts that parse save data before applying edits and some of these scripts even include save decryption algorithms in their code, it may eventually be possible to make a full fledged save editor using EdiZon on the console itself with save decryption included because we have the source code of the save decryptor here.

    edit: @ukee oh wait you're the same person that made the Cyber Sleuth save editor for EdiZon. I have my research and testing notes on the Xenoverse 2 save structure all in one place compiled from what's here and what I tested if you want it. The Citadel is really shitty when it comes to open sourcing their PC modding software because they are hypocritically against any console modding whatsoever. It's stupid so I don't expect to really find source code for a PC save editor to use to cross reference and get the Switch version save offsets by comparing and testing using the similar mapping to find where things are. It would take a lot to somehow get a complete save editor to the level of the one that's on the PC version without access to source code. However, I can share what we have so far and what I have been able to use for the hex editing I have done every time new content comes out.
     
    Last edited: Nov 5, 2019
  2. Light_Strategist

    Light_Strategist Advanced Member
    Newcomer

    Joined:
    Mar 14, 2017
    Messages:
    53
    Country:
    Hey, have you at all searched for the Hero Collosseum save data? That seems to be displaced from the regular stuff on the Switch. I'm largely asking because a hiccup from Lazybone's editor mixed a few things there up and left me with a bugged figure I can't erase. As well as claiming my 23 Vegeta and 45 Piccolo are in decks when they're not, with Piccolo not being able to be put in one at all. I can't erase it because "it's part of a deck" and even though I've replaced the glitch figures in the decks, but Vegeta and Piccolo are apparently still part of a deck and can't be replaced. It's infuriating and I just wanna clear the issue.
     
  3. supermariorick

    supermariorick GBAtemp Advanced Fan
    Member

    Joined:
    Jun 18, 2010
    Messages:
    569
    Country:
    United States
    I haven't touched Hero Colosseum at all. You might have to research that yourself and find the Switch offsets in a hex editor.

    What I have been doing though is more testing and I found out where the clothes are and already have the new gold outfits from the latest update unlocked.

    I have found out that accessories are at 0x5408 and you can easily add another outfit in a new slot and increment the ID by 1 every slot and set the value as 0x63 to add in the new outfits

    everything so far from what other people here have found and what I was able to figure out myself:


    B428 = Super Skills
    D428 = Ultimate Skills
    F428 = Evasive Skills
    13428 = ??
    15428 = Awakening Skills

    1408 = ??? possibly clothes?
    2408 = ??? possibly clothes? 2
    3408 = ??? possibly clothes? 3
    4408 = ??? possibly clothes? 4
    5408 = Accessories
    6408 = Food
    7408 = Mixing Items and Gifts
    8408 = Imporant items and dragon balls
    write 01 00 00 00 07 01 00 00 02 00 00 00 07 01 00 00 03 00 00 00 07 01 00 00 04 00 00 00 07 01 00 00 05 00 00 00 07 01 00 00 06 00 00 00 07 01 00 00 07 00 00 00 07 01 00 00
    at 8408 to 843F to get all the dragon balls. Note that you can only get one of each in each load and have to write data in the save
    again to get the dragon balls again. This can become a script in EdiZon since checksum support is out but it will have to be reverse engineered from xv2savedec
    9408 = Capsules
    A408 = QQ Bangs

    edit:
    If anyone's got any experience with EdiZon and its current support for savefile decryption and re-encryption algorithms, the decryption/ re-encryption algorithm is in the source code for the tool in the OP and you can feel free to take the research data here and put it into an EdiZon configuration that supports writing with encryption taken into account. If you have any questions about how the save data structure works that pertains to making the EdiZon save editor, I am still doing research myself but I have come to slowly figure out how some of these things work.
     
    Last edited: Dec 12, 2019
    Light_Strategist likes this.
  4. Light_Strategist

    Light_Strategist Advanced Member
    Newcomer

    Joined:
    Mar 14, 2017
    Messages:
    53
    Country:
    I was gonna say, I think that the Hero Colosseum is the big code shift that throws the files off from the PC version but I'm not savvy enough to try and find the evidence.

    Although, props for reading my mind about wanting the new stuff from the recent update though. I've been sat pretty much twiddling my thumbs in waiting for Lazybone's Editor just to grab them. Gonna have to try and sort something there out when I'm done with what I'm doing and see what happens.
     
  5. supermariorick

    supermariorick GBAtemp Advanced Fan
    Member

    Joined:
    Jun 18, 2010
    Messages:
    569
    Country:
    United States
    I might have found where CaC data is stored too. all you have to do is text string search your CaC's name in the decrypted save file in a hex editor and it will find the name but I still have to figure out where all currently equipped stuff like skills and clothes and accessories are stored right next to it. And I actually was trying to get the new stuff myself. Getting the new skills is easy, but after my experience with save editing a different game, I've started recognizing patterns with save data mapping better and I've finally found out where clothes and accessories are stored so I already have the golden lab coat and golden Majuub outfits that aren't out yet but will be available officially in a future raid quest.
     
  6. DaSwitchMan

    DaSwitchMan Newbie
    Newcomer

    Joined:
    Dec 14, 2019
    Messages:
    6
    Country:
    United States
    My file address only stops at 0XB0770. The conversion says it's supposed to be 0XB788. Is this an error on my end or what?
     
    Last edited: Dec 14, 2019
  7. DaSwitchMan

    DaSwitchMan Newbie
    Newcomer

    Joined:
    Dec 14, 2019
    Messages:
    6
    Country:
    United States
    Or if possible could someone post their save with everything unlocked including the new dlc moves and clothes?
     
  8. Light_Strategist

    Light_Strategist Advanced Member
    Newcomer

    Joined:
    Mar 14, 2017
    Messages:
    53
    Country:
    Seems like you forgot to add the 8 bytes from the second step. You should otherwise be fine.
     
  9. supermariorick

    supermariorick GBAtemp Advanced Fan
    Member

    Joined:
    Jun 18, 2010
    Messages:
    569
    Country:
    United States
    don't do the experimental """"conversion"""" anymore
    I have been finding out where the Switch offsets are when you decrypt it and have started finding out how to write changes without the PC version save editor.

    Here's everything so far including what everyone else found and some confusion as to which is which but this should give people a head start


    0x24-0x28 - Zeni
    0x29-0X2D - TP Medal

    1408 = ??? possibly clothes?
    2408 = ??? possibly clothes? 2
    3408 = ??? possibly clothes? 3
    4408 = ??? possibly clothes? 4
    5408 = Super Souls? Accessories? needs more testing
    6408 = Food
    7408 = Mixing Items and Gifts
    8408 = Imporant items and dragon balls
    write 01 00 00 00 07 01 00 00 02 00 00 00 07 01 00 00 03 00 00 00 07 01 00 00 04 00 00 00 07 01 00 00 05 00 00 00 07 01 00 00 06 00 00 00 07 01 00 00 07 00 00 00 07 01 00 00
    at 8408 to 843F to get all the dragon balls. Note that you can only get one of each in each load and have to write data in the save
    again to get the dragon balls again. This can become a script in EdiZon since checksum support is out but it will have to be reverse engineered xv2savedec
    9408 = Capsules
    A408 = QQ Bangs

    Unlocked Skills
    write 01 over 00 at the beginning of each skill data slot to unlock each skill (works across updates. even works on 1.14.00)

    B428 = Super Skills
    D428 = Ultimate Skills
    F428 = Evasive Skills
    13428 = ??
    15428 = Awakening Skills

    1E828 = First CaC Character data block
    2AEF0 = Second CaC Character data block
    375B8 = Third CaC Character data block
    43C80 = Fourth CaC Character data block
    50348 = Fifth CaC Character data block

    Equipped Skill slots (Character Block + slot = offset)

    +0x110 = Super Skill 1
    +0x10C = Super Skill 2
    +0x114 = Super Skill 3
    +0x118 = Super Skill 4
    +0x120 = Ultimate Skill 1
    +0x11C = Ultimate Skill 2
    +0x124 = Evasive Skill
    +0x12C = Awakening Skill

    I haven't quite pinpointed the presets yet but I think I'm close.

    be careful with boss-only and character exclusive skills. some may work like the variations of the crystal raid ones that don't
    have the cooldown and others will load but the animations won't work properly potentially causing the CaC to glitch out until
    an enemy hits it out of the animation so the CaC can move again. However some character exclusive skills like Ultra Instinct
    Goku's skills won't load at all for the CaC and will cause a softlock forcing you to do a soft restart. the trick with the ones
    that do work but glitch is that you have to get the animation to finish somehow like comboing into another move cancelling out
    the failing animation preventing the CaC from freezing their animations. It's possible the game will correct the boss skills
    being equipped by the CaC on boot so it's better to save them in a skill preset.
     
    Last edited: Dec 15, 2019
  10. Light_Strategist

    Light_Strategist Advanced Member
    Newcomer

    Joined:
    Mar 14, 2017
    Messages:
    53
    Country:
    I'd say "not all heroes wear capes" but I don't know if you do or don't and I don't want to assume you don't.
    (So... That sounded better in my head...)

    Roughly how far through are you? You said you were able to find the new golden clothes from the update but it seems like that'd be a priority around the time of release.


    I don't remember in great detail but I did play around with those sorts of things a good while back for the sake of it. I seem to remember that if the skill in question isn't meant to be owned by the player, it will appear as if it's not actually equipped, even though it is, however, loading the skill menu as if you were going to change it and it not even being changed will remove it. Memory's a bit shaky but I'm about 85% sure that's what happens.

    There's a kinda fun bug with the Non-CaC Super Saiyan Super Saiyan 2 and Super Vegeta skills (dunno if it applies to Future Super Saiyan) in that if they're used by a Female, it loads a specific set of usable hairs, although trying to alter the hairstyle for Super Saiyan 3 always seems to bug out and give the character a misplaced hairstyle. Not a massive deal but something fun to acknowledge.
     
    Last edited: Dec 15, 2019
  11. Burorī

    Burorī GBAtemp Regular
    Member

    Joined:
    Mar 23, 2018
    Messages:
    187
    Country:
    Belgium
    You don't need to edit everything manually, you can just change your Switch Save values to look like the PC one and use the PC Save Editor
     
  12. DaSwitchMan

    DaSwitchMan Newbie
    Newcomer

    Joined:
    Dec 14, 2019
    Messages:
    6
    Country:
    United States
    How do I add the 8 bytes. Do i go to edit insert bytes and put 8? It's kinda confusing but I think i can do it.
     
  13. Light_Strategist

    Light_Strategist Advanced Member
    Newcomer

    Joined:
    Mar 14, 2017
    Messages:
    53
    Country:
    Pretty sure he knows since he was the one that layed out that conversion method to us at the time.

    The missing 8 bytes should be added by using Ctrl + V instead of Ctrl +B which is used for overwriting.
     
  14. DaSwitchMan

    DaSwitchMan Newbie
    Newcomer

    Joined:
    Dec 14, 2019
    Messages:
    6
    Country:
    United States
    I replace the first line with
    23 53 41 56 00 0B 00 00 0D 4D A9 68 63 65 78 75 then add the 8 bytes which is
    27 10 2C 29 96 67 D3 01 and my last line should be
    0xB0788, but it's 0xB0780. What step am i missing. Do i copy the 8 bytes and ctrl v or what?
     
  15. chaosmeta

    chaosmeta Member
    Newcomer

    Joined:
    Oct 23, 2019
    Messages:
    13
    Country:
    Singapore
    Hi, considering that im a noob at hex editing and stuff like that. any kind soul can help to do save editing for my save data? Would like to have everything unlocked and if its not too much to ask and also 125 all attributes on all my CACs. Im currently on 1.14.00 (latest version)
     
  16. supermariorick

    supermariorick GBAtemp Advanced Fan
    Member

    Joined:
    Jun 18, 2010
    Messages:
    569
    Country:
    United States
    I am doing work on making it so you don't need the experimental "conversion" to edit XV2 saves anymore - which by the way I was the one to get from a friend of mine on Discord that knows a lot about XV2 save editing. Hopefully we can eventually get an EdiZon config out of this given all the progress on the Switch offsets and the fact EdiZon supports save encryption now. Also upon doing that experimental "conversion" not all of the offsets match with the PC version and have to be shifted to the Switch version offsets anyway. It would be better to to just actually find out the Switch offsets and make an EdiZon config instead of relying on the PC version save editor.
     
    Green Mii and Light_Strategist like this.
  17. Light_Strategist

    Light_Strategist Advanced Member
    Newcomer

    Joined:
    Mar 14, 2017
    Messages:
    53
    Country:
    Godspeed to ya. I know it wasn't me you replied to but praise helps with motivation right? And you've been a cornerstone for the Switch side of Xenoverse 2 mods so it's also my thanks.
     
  18. Burorī

    Burorī GBAtemp Regular
    Member

    Joined:
    Mar 23, 2018
    Messages:
    187
    Country:
    Belgium
    That's a good thing, editing a XV2 save file on Switch is a pain in the ass
     
    Light_Strategist likes this.
  19. DaSwitchMan

    DaSwitchMan Newbie
    Newcomer

    Joined:
    Dec 14, 2019
    Messages:
    6
    Country:
    United States
    Well while we wait for that do anyone mind posting their save wit the new dlc and everything unlocked? Ik i asked already.
     
  20. supermariorick

    supermariorick GBAtemp Advanced Fan
    Member

    Joined:
    Jun 18, 2010
    Messages:
    569
    Country:
    United States
    skills are at

    B428 = Super Skills
    D428 = Ultimate Skills
    F428 = Evasive Skills
    15428 = Awakening Skills

    you can go to the bottom of the unlocked skills list in each one (the skill slots look like 0Y 00 XX 06 00 00 XX 06. Y is either 0 for locked or 1 for unlocked and XX is the skill ID which can be ignored since the save automatically fills all the skill slots in the skill list with data)
    and look through the skill slots and all you have to do is replace 00 at the beginning of each skill slot with 01 to unlock each skill until you have made sure every instance of each skill in the list is updated so each skill will be unlocked when you re-encrypt and apply the edited save.

    As for the new mentor gifts, they are stored at 7408
    you just have to go to the bottom of the list before FF FF FF FF FF 00 00 00 and then you overwrite the next empty slot being FF FF FF FF FF 00 00 00 with something like XX 00 00 00 06 YY 00 00
    XX being the ID of the mentor gift and YY being the amount (i put 63 for 99 of each gift)
    it's easy to get the ones you don't have if you simply go to the last mentor gift slot in the list and copy that one then use it to overwrite the next empty slot then increment the mentor gift id in hexadecimal to the next mentor gift ID after that one and set the amount to whatever you want in hexadecimal. You can repeat for each next empty slot until you reach 49 which is the Majuub gift which will let you unlock the End of Z quest.

    you can apply the same way as getting the mentor gifts to get the new accessories and clothes


    1408 = ??? possibly clothes?
    2408 = ??? possibly clothes? 2
    3408 = ??? possibly clothes? 3
    4408 = ??? possibly clothes? 4

    it's been a guessing game to which one of these is which but I have found that incrementing the ID for every 5 or so slots and going back and forth with save editing has eventually gotten me all of the new outfits.

    the format for accessories and clothes looks like XX 01 00 00 00 YY 00 00 where XX is the clothes/accessory ID and YY is the amount
    same thing, I used 63 to get 99 of each and then I simply incremented the ID from the last ID in the list to the next ID until I unlocked all of them.

    I am still trying to find out where the unlocked super souls slots are as I have only been able to find the skills, clothes/accessories, and mentor gifts so far.

    Other than that, finding the CaC data blocks is easy. All you have to do is a text string search in a hex editor for the name of each of your CaCs. I've kinda been doing a cross-referencing ID lists guessing game for all of the equippable skills and I might have even managed to find out where the presets are stored.

    It's even possible to equip some of the boss skills without the crystal raid boss cooldowns and mode limitations. However not all of them work properly and could cause a softlock when you try to use them.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - xv2savdec, Xenoverse, decrypt