GithubHelp home page GithubHelp logo

jeanbmar / sc-compression Goto Github PK

View Code? Open in Web Editor NEW
40.0 5.0 10.0 1.11 MB

A Node.js module to decompress and compress game assets from Supercell games

JavaScript 100.00%
brawl-stars clash-of-clans clash-royale supercell

sc-compression's People

Contributors

fourcinnamon0 avatar jeanbmar avatar mnclem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sc-compression's Issues

Example recompression.js file?

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

Filetype after decompression

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.

I can't decode some .sc files

-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'
}

Cannot find module

I have been trying different versions of the script and it does not work for me, I have tried to move the path of the files and I still get the same problem. I did everything it says in the readme file. Thanks in advance.

image

Cannot decrypt Clash of Clans v15.0.4 SC files

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

Info

How can I convert .SC to .json?

Cannot decrypt Clash of Clans v15.0.3 apk sc files

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!

png.png

Hi. Do you know how you can decrypt *.png.png files from the game Clash of Clans?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.