A tool for decoding (sc to png) and encoding (png to sc) sc files used in Supercell games.
- Download the version you need from releases (apk - for android, setup.exe - installer for Windows, zip archive with exe for Windows)
- Select the desired option (each one is described below)
- Select or type the input file or folder
- Optionally select either type the out folder or file, or it will be selected automatically !IT WILL BE DELETED!
- Press the button at the bottom (not close) and wait
Converts sc to png
Input file - _tex.sc , not .sc! or _dl.sc in rare cases
Starting with the 54th version of brawl stars, zktx files appeared. They need to be placed in the same folder as the input file
Out folder - the folder in which the apg will be saved
Converts png to sc
Input folder - folder with png and json file(optionally)
The name of the json file must match the name of the folder
Out file - where to save sc
If you need sc for the old version, change the compression in the json file from Zstandard to Lzma
Converts a lot of sc files to png, it is usfull to simply copy the sc folder from the apk and decode them all at once
Input folder - folder with _tex.sc , not .sc! or _dl.sc files
Outfolder - the folder where the folders will be created in which the pngs will be saved
Converts many png folders to sc files
Input folder - a folder with folders containing png
Output folder - the folder where the sc files will be saved
This file generated after decoding example:
{
"Textures": [
{
"Encoding": "khronos",
"PixelFormat": "RGBA8",
"Filtering": "LINEAR_NEAREST",
"Linear": true
},
{
"Encoding": "khronos",
"PixelFormat": "RGBA8",
"Filtering": "LINEAR_NEAREST",
"Linear": true
}
],
"IsDL": false,
"HasZKTX": true,
"Compression": "Zstandard"
}
Can be khronos (low weight) and raw (fast encoding) if HasZKTX enabled textures are encoded in khronos
Example ui_highres_tex with Zstandard compression:
Encoding | Encoding time | File size |
---|---|---|
khronos | 35 s | 30 MB |
raw | 7 s | 41 MB |
I recommend using raw during mod development and khronos on release.
Parameter responsible for the existence of zktk files
Parameter responsible for creating dl file (combining sc and tex_sc), usually used in Clash Royale requires sc file in the folder.
File compression, with HasZKTX enabled, Zstandard is always used. Example of compression on ui_highres_tex
Compression | File encoding time | File weight | Total |
---|---|---|---|
Lzma | 41 s | 26MB | Longer but compresses better. |
Lzham | 73sec | 27MB | It's useless. |
Zstandard | 35secs | 30MB | Standard, fast and compresses well. |
My social networking nickname is lilmuff1 message me or join Telegram or Discord