Android EW Modding Tools
#1
This should hopefully be useful for anyone who is planning to make/port mods to the Android version of the game.
Tools provided (for most tools, just drop the file you want to use the tool with on the executable):
- Sewer — unpacks obb files when given an obb file, or creates an obb file when given a folder
- FixTOC — after doing edits, use this on the main directory (the one with Binaries, Engine and XComGame) to rebuild AndroidTOC.txt
- Compressor — use this on a compressed upk file to decompress it, do it again to recompress (this will also automatically rebuild .uncompressed_size)
- Decryptor/Encryptor — some files are encrypted (only tested with Coalesced_*.bin so far), use this with those files to decrypt/encrypt them respectively
- Coalescer — like Sewer, but for Coalesced_*.bin files (which contain the configuration files)
How to use them:
- unpack obb with Sewer
- to edit ini files:
- decrypt Coalesced_INT.bin with Decryptor
- unpack it with Coalescer
- edit whatever you need to edit
- repack, encrypt
- to edit upk files:
- if the file is compressed, decompress it with Compressor
- edit whatever you need to edit
- recompress if desired (the engine works fine with decompressed files too)
- run FixTOC on the main folder
- pack the folder with Sewer
- copy obb to device, replacing the existing one
- .
- profit
Some screenshots of results:
- simple localization file edit, renamed Assault Rifle: http://i.imgur.com/TBuJv6r.jpg
- hex edit to make every new soldier have the same nationality and gender: http://i.imgur.com/CP0e9iq.jpg
- Some generic UE tools work on the Android files too, such as UE Explorer
- Some upk files appear to be encrypted; I haven’t yet figured out how to handle them
- PatchUPK doesn’t work yet, but I’ve forked it and will try to get it working (although I haven’t made a lot of progress on that yet)
- If you did something wrong, the game will crash as soon as it loads whatever you edited
- Iteration is pretty slow (since each obb file is 1-2GB), I might look into making a tool to patch the existing obb files directly on the device
- OBB files normally have a size limit of 2GB, but I can’t confirm whether or not the game actually limits the size (each packed file is limited to 2GB though)
- xxx files are just upk files with a different extension
Edited by Bogdacutu, 27 December 2015 — 03:09 PM.
Источник