Discussion Astral Chain Save Editing

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by HylianLZ, Sep 5, 2019.

  1. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Hey folks. I'm still new here, and I thought I'd offer a little something. It's some save editing stuff I found for Astral Chain

    This is a copy of what I put in the pinned discussion, but it seems to be bigger than I thought it would be, so I figured I'd make a thread dedicated to it, so we don't bog down the cheats discussion. Feel free to post any questions and/or things you've found and we can work toward increasing our knowledge and ability to edit saves.

    Some random stuff mostly, and some of it moves a bit save-to-save, but hopefully it helps someone.

    From what I can tell, everything in the game is stored in int32 values, meaning it will use 4 bytes to store data. AKA 00 00 00 00, and the values are stored inversely. You'll see below how 999 is represented as E7 03, but the hex value is actually 3E7 for 999. It's the same for all the values, it seems, though some bytes appear to contain float values, such as the orders, the structure doesn't differ much.

    To find the save you wish to edit, it's a bit of a chore, since the game saves rotation-ally. What I do is buy/sell some stuff, then save at a PC and make note of the exact money I have, then open all the saves ending in a number and find that value with an integer search. Only one file should have the correct number, and that's the file you edit.

    First, some that seem static.
    Hex address | value stored
    8EDD0 | Money
    8EDC8 | Gene Codes

    Next are two I found the rough area of. I'll try to break them down as best I understand them.
    The first is Orders. You can mark them all a certain way, to complete all the orders and collect the rewards. :)
    They seem to be between AEFB0(00) - AF570(07), though I have seen it move slightly, so don't use that as a guarantee.
    [​IMG]
    The first 01 seems to mark that it's unlocked and readable. 60, 70, or 80 marks it's "State" 80 is not complete, 60 is complete with rewards available, and 70 is complete with rewards already collected.
    The second offsets 04 and 0C mark that the part of the order that requires a certain number of something is also complete. Without all of it set correctly, you won't be able to take pictures. The game will freeze.
    Here is what you will paste between AEFB0(00) and AF570(07)
    Code:
    WIP

    And last is inventory.
    It seems to start somewhere around 75660, but like Orders, it can move up or down a little.
    [​IMG]
    You can easily change the amount you have of items, at offsets 00 and 08.
    However, from what I've been able to tell, values of the item itself are stored at offsets 04 and 0C and changing them doesn't change the item that's in the inventory.
    There are also FF FF FF FF values below there that are space for new items, but changing them does not add items to inventory.
    The red parts are the values of the number of the items in inventory, so in this, I've changed the 3 different material codes to 999, so I'm maxed out on all of them. 031B is premium, 021B is rare, and 011B is common. I didn't find those, someone else did earlier. I just used that to help myself find these addresses.

    I'd be happy to edit your save for you to get the orders, provided you do the whole buy/sell/save thing and tell me how much money you have to make finding the correct save easier. I've done a few already, and it's not terribly time consuming.
     
    Last edited by HylianLZ, Sep 6, 2019
    velvetmxo, Haedus, felonius and 2 others like this.
  2. Deobulakenyo

    Deobulakenyo GBAtemp Regular

    Member
    4
    Oct 8, 2018
    Philippines
    This is good. I followed your instructions in the cheats thread and all orders are now completed.

    Finding which save file is the latest (there are 4 i think) what i did was to change the offsets of one save.dat and then i copied all the changes i made and wrote it on the other save files. then restore the save file folder via checkpoint. this way, whichever was the latest file is sure to be changed.

    Thanks a bunch
     
    Last edited by Deobulakenyo, Sep 5, 2019
    HylianLZ likes this.
  3. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Here ya go @Thejigmaster
    I moved it here for the sake of that thread. Hope that's alright.

    — Posts automatically merged - Please don't double post! —

    That works too, sure. The only thing I would worry about doing it that way, is if you have both files in use, like I do, you could inadvertently change the other one too. Plus the extra work.
     

    Attached Files:

    • Save.zip
      File size:
      91.6 KB
      Views:
      128
    Deobulakenyo likes this.
  4. Thejigmaster

    Thejigmaster Advanced Member

    Newcomer
    2
    Jul 2, 2019
    United States
    Thanks! I really appreciate it, I'll try it out and update :)

    Edit: Perfect!! thanks so much.
     
    Last edited by Thejigmaster, Sep 5, 2019
    HylianLZ likes this.
  5. wingmaster2001

    wingmaster2001 Newbie

    Newcomer
    1
    Sep 5, 2019
    Switzerland
    @HylianLZ
    I'd like all order complete (I'll claim them) if you can do that. I'm too scared to do anything wrong. Money value is 99'999'999

    Thank you very much.
     

    Attached Files:

    Last edited by wingmaster2001, Sep 5, 2019
  6. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Just FYI, max money isn't helpful when searching, and is why I said to sell/buy something then save. 3/4 of your saves had max money. Luckily, I have other methods of finding which save is the latest, it's just a pain. Here ya go.
     

    Attached Files:

    • save.zip
      File size:
      859.5 KB
      Views:
      41
  7. myangel

    myangel GBAtemp Regular

    Member
    3
    Nov 17, 2015
    United States
    Hi can you please edit my save too for complete order my money are 8,015,919 G
     

    Attached Files:

    Last edited by myangel, Sep 5, 2019
  8. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Doesn't look like you did the whole buy/sell thing either, since 2 files had the same amount of money. But here it is. Please make it easy on me guys and follow the simple instructions.
     

    Attached Files:

  9. myangel

    myangel GBAtemp Regular

    Member
    3
    Nov 17, 2015
    United States
    thx sorry i though it was only money change would be enough will try it now thx again

    Edit: It working 100% order complete now thx
     
    Last edited by myangel, Sep 5, 2019
    HylianLZ likes this.
  10. Kyrara

    Kyrara GBAtemp Regular

    Member
    6
    Apr 4, 2007
    Germany
    mh has anyone a 100% Order with working Camera?
    i have Copy Past the numbers from @HylianLZ but if i use the Camera the game Freeze.
    i change in my save all 80 to 60 but only come to 127/185
     
  11. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Send me your save. I'll take a look. Also, save at a PC after buying/selling and let me know how much you have left.
     
  12. Kyrara

    Kyrara GBAtemp Regular

    Member
    6
    Apr 4, 2007
    Germany
    SaveData_2 is the current save with 3.205.609 Money
     
  13. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Try this. IDK about the freezing camera. It freezes on mine too. I don't yet know the cause. I'm still messing with the bytes on my save to try and narrow down what's causing it. If you're missing the last order, let me know. I altered one thing different on this one compared to normal, still testing the camera freeze problem.
     

    Attached Files:

    • tgi3.zip
      File size:
      398.8 KB
      Views:
      28
  14. Kyrara

    Kyrara GBAtemp Regular

    Member
    6
    Apr 4, 2007
    Germany
    yeah the save has still the camera problem.
    i have now 185/185 and the Camera is working ^^
    you need to set all value correct and not simply to 01 and it works for me
     
    HylianLZ likes this.
  15. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    @Kyrara Can you upload the working one with the fixed camera? I want to see how it looks, if you don't mind.

    Edit: nevermind. I got it.
    Edit2: Nevermind the nevermind. I still don't got it. it's not a 1:1 ratio
     
    Last edited by HylianLZ, Sep 6, 2019
  16. Kyrara

    Kyrara GBAtemp Regular

    Member
    6
    Apr 4, 2007
    Germany
    My full list:

    Code:
    00 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00 70 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 00 00 00 70 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 50 C3 00 00 01 00 00 60 50 C3 00 00 01 00 00 60 50 C3 00 00 01 00 00 60 05 00 00 00 01 00 00 60 0A 00 00 00 01 00 00 60 0A 00 00 00 01 00 00 60 0A 00 00 00 01 00 00 60 0A 00 00 00 01 00 00 60 05 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 78 00 00 00 01 00 00 60 47 01 00 00 01 00 00 60 01 00 00 00 01 00 00 60 98 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 17 00 00 00 01 00 00 60 E8 03 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 50 00 00 00 01 00 00 60 A7 00 00 00 01 00 00 60 14 00 00 00 01 00 00 60 2B 00 00 00 01 00 00 60 1C 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 0A 00 00 00 01 00 00 60 1E 00 00 00 01 00 00 60 10 27 00 00 00 00 00 70 A0 86 01 00 00 00 00 70 20 A1 07 00 01 00 00 60 E8 03 00 00 00 00 00 70 10 27 00 00 01 00 00 60 A0 86 01 00 01 00 00 60 A0 86 01 00 00 00 00 70 20 A1 07 00 01 00 00 60 80 84 1E 00 01 00 00 60 0A 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 04 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 27 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 24 00 00 00 00 00 00 60 00 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 01 00 00 60 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    need only overwrite from 000AEFA0
     
    Last edited by Kyrara, Sep 7, 2019
    Haedus and HylianLZ like this.
  17. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Thanks! This will help a ton!
     
  18. timbershake

    timbershake Newbie

    Newcomer
    1
    Sep 7, 2019
    Malaysia
    how do i remove my max gene codes ingame?

    i mean i jsut want to make it lower to 1mil instead of 99mil
     
    Last edited by timbershake, Sep 7, 2019
  19. HylianLZ
    OP

    HylianLZ Member

    Newcomer
    1
    Aug 31, 2019
    United States
    Gene codes offset is 8EDC8 in the save. And you don't really need even that much. I'm pretty sure you can max out all the legions with less than 100k.
     
  20. Kyrara

    Kyrara GBAtemp Regular

    Member
    6
    Apr 4, 2007
    Germany
    change it in the save or use this cheat:

    [1 mil Genecode]
    04000000 0A3151E0 000F4240

    [500k Genecode]
    04000000 0A3151E0 0007A120

    [5k Genecode]
    04000000 0A3151E0 00001388
     
    Last edited by Kyrara, Sep 7, 2019
Quick Reply
Draft saved Draft deleted
Loading...