/cr-sc-dump

Python script to extract pngs from Supercell’s *.sc, *_dl.sc, *_tex.sc, *.csv, *.ktx, and *.sctx files.

Primary LanguagePython

cr-sc-dump

Python script to extract pngs from Supercell’s *.sc, *_dl.sc, *_tex.sc, or *.csv files.

Installation

pip install -r requirements.txt

Optional: If you want to use dumpsc.py inside a container

docker build --pull -t dumpsc .

Usage

Download Clash Royale APK, unzip and navigate to path/to/assets/sc/. Works the same for any other Supercell game.

Or pull /data/data/com.supercell.clashroyale/update/ from your rooted Android device.

To extract pngs from files ending with _tex.sc try

python dumpsc.py path/to/filename_tex.sc

To extract pngs from files ending with .sc or _dl.sc try

python dumpsc.py path/to/filename_dl.sc --old

To decompress files ending with .csv try

python dumpsc.py path/to/filename.csv

Here an example on how to use the contianer

docker run --rm -it --volume "$PWD":/data --user="$(id -u):$(id -g)" dumpsc <*_tex.sc>

Additional Links

Credits