User:JohnnyTOS/Game Data Extraction

This page contains know-how on how to extract information from the game files. Note that all information in these page are based on the Android version of the game, and any scripts available are written in Python using Windows.

Required tools

 * Python 3 - to run the scripts
 * Asset Studio - for extracting game data/images from *.unity3d files
 * A rooted phone - required in order to access/copy the game files (an alternative option is to use an emulator running ToS)

Important Files

 * /data/data/com.madhead.tos.zh/shared_prefs/com.madhead.tos.zh.v2.playerprefs.xml - contains game data such as monster/craft stats, stage/floor info, skill info, etc.
 * /storage/emulated/0/Android/data/com.madhead.tos.en/files/bundles/ - this folder is where the unity3d files are stored, which contains the game assets. Notable files include:
 * 51ef0d6f8cbcb77979fae770bb5d7907.unity3d - contains the LOCALE.csv file, which contains all English/Chinese in-game texts.

com.madhead.tos.zh.v2.playerprefs.xml
Running the below script will extract the json-encoded data from the com.madhead.tos.zh.v2.playerprefs.xml file. Copy the code into a text editor and save the file with a .py extension. Place both files into the same folder and run the script.