Beruflich Dokumente
Kultur Dokumente
Extracting Save:
The save files can be extracted from the 3DS using SaveDataFiler or other home-brew
alternatives.
1. The save data is under “EXT” with the label “000016a9” (using SaveDataFiler)
(4) scratch.dat
(a) Beats me….. but this file takes forever to extract
rev.1
Inventory Editing “.p” files:
The player save files contain many things, including the items the player is carrying. So
far I’ve been able to understand how these items are recorded in the file. Future study
can be done to examine how other player attributes are stored, like player skin, coin
count, player name, etc.
This is where the player name is stored, I suspect the player appearance is also determined
here
This is an array of zeros. As stupid as it sounds, it’s important. This marks the start of the
player’s inventory. In my experience, it’s always 39 bytes long
This is where the items are stored. I’ll explain later how exactly they’re stored. This section
will always be 200 bytes long, starting after the array of zeroes.
So first of all: items are stored in 5 byte sections. Each item and it’s amount, and attributes are
held in a five byte section.
rev.1
Let’s look at the first 5 bytes in the section:
03 00 01 00 00
1. What item is it?
a. This is stored in the first two bytes “03 00”
b. The item id is actually the decimal equivalent of [the second byte][the first byte]
(So basically 0003 as a decimal: so just 3)
a. Item ID’s can be found at http://terraria.wikia.com/wiki/Data_IDs, under “Positive IDs”
c. Editing the item: The Terra Blade has an item id of 757, according to the above website.
a. first convert 757 to hex: 02 F5
b. Flip the bytes: F5 02
c. Replace 03 00 with F502
d. you now have a terra blade
3. Modifiers?
a. This is stored in the fifth byte “00” (:/ I should have picked a better example haha)
b. You just replace this with the hex version of the modifier id you want
a. Mod ids can be found at http://terraria.gamepedia.com/Prefix_IDs
c. Editing the modifier: Say you want 999 *Legendary* terra blades
a. The mod id for legendary is 81
b. convert 81 to hex: 51
c. Replace the last byte with 51
rev.1
Proposed Flowchart:
START
Finished? no
Yes
Alter hex values, and
replace the original 200 FINISHED
bytes
rev.1