User:NoseOfCthulhu/Sandbox2

Guide:Inventory editing on Terraria mobile version (Android)

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 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.

This guide is:
 * An overview of tools that can be used to add items to a character's inventory, in amounts ranging from 1 to 999 (artificially up to 32767). This includes items not obtainable in-game but present in the game code, and the in-game fictional currency ("coins").

This guide is not:
 * A map viewer.
 * A map editor.
 * A character visuals (hair, skincolor, etc) editing tool.
 * A multiplayer properties tool.
 * A tool that can be used to edit a character's inventory while playing. Exiting and re-opening the game is required.
 * Exception: One of the method's listed can change an item's stack value without exiting, though under arguably cumbersome conditions.

The provided methods are not required for accessing the following features (you only need a device file explorer): (these features were found in the directory )
 * Letters/numbers for non-English translations
 * Music
 * Sound effects for the Holy Hand Grenade, Turkor the Ungrateful, and Worm Pet

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 - 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. When creating this guide, SuperSU was used.


 * 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
Hex Editor is a Russian app developed by GoAndroid and made available on the Play Store. It can read and edit data in the form of hexadecimal digits. This process can presumably also be done with similar apps. More specifically, Hex Editor can edit a character file out-of-game (as opposed to in-game), allowing new items and/or different stack values to be present when the character is loaded into a world.

Hex Editor download locations:
 * [Official site] (homepage)
 * [link] (this is the download of the app's .apk-file. This must be installed manually once downloaded to your device. You may have to allow installation "from unknown sources" in your device's settings to do this (image))

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 home screen (the character must exit the world).
 * Open the Hex Editor app (image 2), 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
Game Killer is a Chinese app created by Maocai Luo which can identify and edit game values. According to the official website (translated, see below) it holds support for Android 5 (Lollipop). In this guide, the Game Killer method is unclear, less understood, and seemingly more risky than the Hex Editor method. Unlike Hex Editor, Game Killer works largely in-game to modify values while the game is running.

Game Killer download locations:
 * [Official site] (v3.11)
 * [direct download link]
 * [link] (v3.11)

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
Lucky Patcher is an app which supposedly can greatly enhance user control over other installed apps. Like Game Killer it requires root permission. Lucky Patcher appears to partially require the Busybox app and may notify the user if Busybox is not installed. Unlike Game Killer, Lucky Patcher does not have support for Android 5 (according to http://lucky-patcher.netbew.com/).

Lucky Patcher download locations:
 * [link] (Official site?)
 * [link] (Official site?)
 * [direct download link] (v5.6.8)
 * [link] (v5.6.8)

Busybox download locations (seemingly not required, but provided here anyway):
 * [Official site]
 * [link] (v1.23.2)

Patching instructions
 * 1. 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.

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).


 * 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). When prompted for search type, you can select either  or   (image 3). Warning! This may cause your device to crash. If so, you may try again, assuming your device does not become damaged and has problems restarting.


 * 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.