Difference between revisions of "Savefile Manipulation"

From Terranigma Wiki
Jump to navigation Jump to search
(Started page)
 
m (Optimized Setup)
Line 7: Line 7:
Before:
Before:
# Equipped Item (0x4C)
# Equipped Item (0x4C)
# Money (0x00)
# Fluffy Position (0x00)
# First Slot ID Item (0x10)
# First Slot ID Item (0x10)


After:
After:
# Equipped Item (0x00)
# Equipped Item (0x00)
# Money (0x10)
# Fluffy Position (0x10)
# First Slot ID Item (0x4C)
# First Slot ID Item (0x4C)


Line 19: Line 19:
Setup:
Setup:
# Get item you want to duplication and nine small heals, since they will always be left most in the inventory
# Get item you want to duplication and nine small heals, since they will always be left most in the inventory
# Have 10 money
# Save to second slot
# Save to second slot
# Equip item you want to dupe and spent all your money
# Equip item you want to dupe
# Put Fluffy on the top left door in the inventory
# Save to first slot
# Save to first slot
# Reset game
# Reset game
Line 28: Line 28:
# Delete all the small heals
# Delete all the small heals
# Reenter the item inventory screen  
# Reenter the item inventory screen  
# Place Fluffy on the 2nd row and the 4th slot
# Save to first slot but as soon as the first slot item ID is written reset the system
# Save to first slot but as soon as the first slot item ID is written reset the system
   
   
Example:
Example: (Note: This shows a way using money)
[https://www.youtube.com/watch?v=RcuZShWzptU View]
[https://www.youtube.com/watch?v=RcuZShWzptU View]

Revision as of 08:50, 17 February 2021

Terranigma uses two checksum to verify its save file, an ADD of all the bytes and a XOR of all the bytes.

Due this its vulnerable to moving values around in the save file as long as the byte is at the some align.

In the following POC three values are being moved around to achieve item duplication.

Before:

  1. Equipped Item (0x4C)
  2. Fluffy Position (0x00)
  3. First Slot ID Item (0x10)

After:

  1. Equipped Item (0x00)
  2. Fluffy Position (0x10)
  3. First Slot ID Item (0x4C)

Note: Terranigma automatically sorts the inventory but only when reentering the inventory screen.

Setup:

  1. Get item you want to duplication and nine small heals, since they will always be left most in the inventory
  2. Save to second slot
  3. Equip item you want to dupe
  4. Put Fluffy on the top left door in the inventory
  5. Save to first slot
  6. Reset game
  7. Load second save file
  8. Unequip the item
  9. Delete all the small heals
  10. Reenter the item inventory screen
  11. Place Fluffy on the 2nd row and the 4th slot
  12. Save to first slot but as soon as the first slot item ID is written reset the system

Example: (Note: This shows a way using money)

View