jeanbmar / sc-compression Goto Github PK
View Code? Open in Web Editor NEWA Node.js module to decompress and compress game assets from Supercell games
A Node.js module to decompress and compress game assets from Supercell games
I love this, it really works for the newly encrypted files like missions.csv, but can you make an example script to recompress them too! thank you, i am new to this
I am decompressing a sc2
file.
Confirming it with following command in bash:
head -n 1 icons_orig.sc | grep -q ^SC && strings icons_orig.sc | grep -q START && echo "sc2 file"
actually yields "sc2 file".
But running the file
command on the now decompressed file gives following result:
icons.sc: SysEx File - IDP
What is that file format, how do I read / open it? I can't find anything useful online. I thought that it could maybe be used as a lookup table for the the corresponding *_tex.cv
file to get the rotation and position of each element, but that's just a hopeful guess.
As of now, signature is filled with 0.
Signature computation has to be reversed from client.
-ui_tex.sc
-loading_tex.sc
I am getting the same error in both files
enter a filepath or a directory:./ui_tex.sc
decompressing ./ui_tex.sc...
OOM
OOM
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "abort(OOM). Build with -s ASSERTIONS=1 for more info.".] {
code: 'ERR_UNHANDLED_REJECTION'
}
hey, I am trying to decrypt csv files but I am getting this error in macOS terminal.
Same error given as in #14
Node v16.13.0
Error:
[LZMA_FORMAT_ERROR: File format not recognized] {
code: 7,
desc: 'File format not recognized'
}
File Header:
53 43 00 00 00 04 00 00 00 01 00 00 00 10 30 75
6A 82 F9 BB 34 A4 02 FE F1 22 65 A1 DE 4B 53 43
4C 5A
How can I convert .SC to .json?
Hi!
When trying to decrypt clash-of-clans-15-0-3.apk/assets/sc/buildings.sc I get following error:
apk$ node decompress.mjs
enter a filepath or a directory:clash-of-clans-15-0-3.apk/assets/sc/buildings.sc
decompressing clash-of-clans-15-0-3.apk/assets/sc/buildings.sc...
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[LZMA_FORMAT_ERROR: File format not recognized] {
code: 7,
desc: 'File format not recognized'
}
Node.js v18.12.0
Any idea? Thanks!
Hi. Do you know how you can decrypt *.png.png files from the game Clash of Clans?
I can't re-encrypt files it crashes the game
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.