Guide:Mobile inventory editing

This is a guide for inventory editing on the mobile version of Terraria.

Background
The world of Terraria features a number of interesting items which gradually can be obtained buring the gameplay. Many players, for different reasons, find however this to be a slow and lacking way of acquisition. Hence there are many tools and methods to make desired items in desired quanties more accessible. Examples for the PC version of Terraria includes various inventory editors and map viewers.

The mobile version of Terraria is by comparison more difficult to enable similar functions on. This guide attempts to list two methods which can be used to do this on devices running the Android system (tested on Android KitKat version 4.4.4). Both methods work by modifying a character file.

Requirements

 * Root permission (also known as "superuser", but not to be confused with apps that can be used to utilize root permission (see below for examples)). Root permission is a feature in which a device system has been altered to grant the user additional administrative privileges such as deeper system browsing, enhanced features of certain apps, access to normally hidden and unavailable files, and the ability to edit and/or remove normally inaccessible data. Despite the multitude of benefits, most (if not all) devices that can be rooted are initially not due to user safety and protection of "bloatware". Rooting can be a complex and hazardous process with the risk of destroying your device - likely also voiding your warranty - and every Android version has its own way of being rooted. As such, this guide does not have the capacity to describe rooting procedures for all Android devices capable of running Terraria.
 * As part of the rooting process, an app allowing the user to control what apps are granted root permission is required. The installation of this will likely be part of any guide providing root instructions for your device. Examples of such apps are SuperSU, Superuser by ChainsDD, Superuser by ClockworkMod, and Kingo SuperUser. SuperSU was used when creating this guide.


 * Apps: "Hex Editor" OR "Game Killer" + "Lucky Patcher" (see respective sections below).

Character backup
To prevent any loss of data it might be a good idea to backup characters before modifying them. Characters are (on the device used when creating this guide) stored in. Character names are stored as  (i.e. a character named "Paul" will be stored as " " where   is a number). This directory can be explored and the playerfile copied with root permission-utilizing system browsers such as the Root Browser app. It appears that the in-game character selection list and the playername.player files list is in reverse order, meaning the copy will appear above the original file in the selection screen.

Notice that the number appears to determine whether the game can recognize the .player file. If a character backup is created and later re-inserted into the folder for a newer version of the game, the game may not be able to load the character. In such cases, do the following:
 * Enter the game and create a character with the same name as your backup.
 * Exit the game and navigate to the new character's file.
 * Copy the new character's file number and replace your backup's file number with it.
 * Replace the new character file with your old character file. Your backup should now be playable.

The above information also applies to world-files, which are similarly saved as.

Method 1: MobInvGuide - Icon Hex Editor.png Hex Editor
Instructions:
 * Load your character into your world and acquire a (only one).
 * Then, place that Dirt Block in the second inventory slot (image 1).
 * Afterwards, quit to the main menu or to the device's home screen (the character must exit the world).
 * Open the Hex Editor app, then click the gear-symbol in the upper right corner (image 2).
 * Check the box for Root permissions (image 3).


 * A stack of 999 items has the Hex Editor entry  (hexadecimal  ). It appears that the highest stack that artificially can be created is 32767 (Hex Editor entry  ).

Method 2: MobInvGuide - Icon Game Killer.png Game Killer
Installation:
 * Download the Game Killer .apk file to your device and manually install it (image 1).
 * You may have to allow installation "from unknown sources" in your device's settings to do this (image 3).

{| class="terraria"

MobInvGuide - Icon Lucky Patcher.png Lucky Patcher
Patching instructions
 * Download the Lucky Patcher app, install it, and grant it root permission as with the Game Killer app (image 1). When you open Lucky Patcher it may notify you if a new version is available. Though possibly not necessary it is likely a good idea to download and install this (image 2).

Another app called GameSpector (official site) can be used for Game Killer version 1.90, but as this guide concerns Game Killer v3.11 that app will not be further detailed.
 * }

For Game Killer, item number (i.e. stack) modifying and item ID modifying (for adding items) works a bit differently.

Adding items (changing items into other items)

 * Start Game Killer and Terraria. The order doesn't matter as long as you end up with both of them running simulatenously. This is shown by the Game Killer draw-over symbol seen while Terraria is in foreground (image 1).


 * Further item change (without quitting the game) can be done by selecting an item and activating Game Killer, which automatically should display a list of the item's ID which can be modified with "Modify all values". Restarting the game may require the initial process over again.
 * See below for details on adding mobile items.

Stack modification

 * Start Game Killer and Terraria. The order seemingly doesn't matter as long as you end up with both of them running simulatenously. This is shown by the Game Killer draw-over symbol seen while Terraria is in foreground (image 1).
 * It appears that two stacks of items, in addition to the item(s) you want to increase the number of, is a reliable way of making this work. For example, if you have 1 and want more, you can use 2  and 3 s.
 * Place the Stone Blocks in the first inventory slot. Make sure they remain your "active item" (yellow slot instead of blue) (image 2).
 * Click on the Game Killer icon. Enter 3 in the search field and click the magnifying glass symbol (search) (image 3).


 * Subsequent stack editing can be done by placing items in the same inventory slot. When opening Game Killer it should automatically identify the stack value, which in turn can be modified with "Modify all values". It might however still be a good idea to always specify (with the search function) the new item(s)' stack value before modifying it.

Though the in-game max stack is 999, it appears that the highest stack that artificially can be created is 32767.

Adding mobile items
It is possible to use Hex Editor or Game Killer to add mobile-exclusive items as well, but the item IDs for these are not as straightforward as for items in the PC version such as the Palladium Sword. For some reason it seems mobile items have two item IDs, and sometimes only the latter will work (the former may create an item that simply disappears when you try using it). As such it is recommended to only use the second ID. A table providing these are shown below.
 * Some items, such as pets, may still disappear when trying to use them. In such cases, try edit the item to be a stack (i.e. of 2 or more) instead of single (image 17). The stack can be used and un-stacked without disappearing.