Git Product home page Git Product logo

dumpsc's Introduction

Dumpsc

Dumpsc is an adapted version of cr-sc-dump. This version aim to support all kind of _tex.sc files from different Supercell games.

Usage

If your file is compressed run the following command:

python dumpsc.py <your_tex_sc_file> -d

else simply use:

python dumpsc.py <your_tex_sc_file>

Dependencies

To install Dumpsc dependencies run the following command:

python -m pip install -r requirements.txt

dumpsc's People

Contributors

galaxy1036 avatar

Stargazers

Knobse avatar  avatar  avatar  avatar Demir avatar George Dahoud avatar Monish Sudhagar avatar JameyPlay avatar Michał Jażdżyk avatar LionSheep avatar  avatar  avatar Santosh Bhandari avatar Danilaboni avatar  avatar Crezinx avatar

Watchers

James Cloos avatar

dumpsc's Issues

No modulel named 'lzham'

>python -m pip install -r requirements.txt
Requirement already satisfied: Pillow in appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from -r requirements.txt (line 1)) (10.0.0)
Collecting pylzham (from -r requirements.txt (line 2))
  Using cached pylzham-0.1.3.tar.gz (112 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: zstandard in appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from -r requirements.txt (line 3)) (0.21.0)
ERROR: Could not find a version that satisfies the requirement liblzfse (from versions: none)
ERROR: No matching distribution found for liblzfse

>python dumpsc.py test_tex.sc
Traceback (most recent call last):
  File "\Downloads\Dumpsc-master\dumpsc.py", line 3, in <module>
    import lzham
ModuleNotFoundError: No module named 'lzham'

>

I am trying to get assets from the new evolution update

Getting errors when using this

HI I am getting some error when I use this tool. I am using an M1 machine and I think this might be related to it.

Traceback (most recent call last):
File "/Users/admin/Dumpsc/dumpsc.py", line 3, in
import lzham
File "/opt/homebrew/lib/python3.9/site-packages/lzham/init.py", line 1, in
from .compress import LZHAMCompressor, compress
File "/opt/homebrew/lib/python3.9/site-packages/lzham/compress.py", line 1, in
from . import _lzham
ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/lzham/_lzham.cpython-39-darwin.so, 2): no suitable image found. Did find:
/opt/homebrew/lib/python3.9/site-packages/lzham/_lzham.cpython-39-darwin.so: mach-o, but wrong architecture
/opt/homebrew/lib/python3.9/site-packages/lzham/_lzham.cpython-39-darwin.so: mach-o, but wrong architecture

Issue with Dumpsc within the latest Brawl Stars Version (38.111)

As of the latest version of Brawl Stars (38.111), the file compression has changed on the .sc files, which returns a error while attempting to retrieve latest game assets, including Star Power Icons, Gadget Icons, Brawler Icons. and Player Icons.

I'm not 100% sure exactly what has changed, but I have a rough idea on it. I'm using the forked repository by statscell (https://github.com/Statscell/Dumpsc), which combines this repository and XCoder to create a .sc file converter and Image splitter.

Best regards ✌️

Tile cannot extend outside image

Hello,

I am getting this error.

$ python Dumpsc.py info_hogrider_tex.sc
[*] Processing info_hogrider_tex.sc
fileType: 83, fileSize: 67, subType: 1, width: 0, height: 4096
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\PIL\ImageFile.py", line 498, in _save
    fh = fp.fileno()
AttributeError: '_idat' object has no attribute 'fileno'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Dumpsc.py", line 156, in <module>
    process_sc(basename, f.read(), path, args.decompress)
  File "Dumpsc.py", line 132, in process_sc
    img.save(path + baseName + ('_' * picCount) + '.png', 'PNG')
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\PIL\Image.py", line 2084, in save
    save_handler(self, fp, filename)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\PIL\PngImagePlugin.py", line 910, in _save
    ImageFile._save(im, _idat(fp, chunk), [("zip", (0, 0) + im.size, 0, rawmode)])
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\PIL\ImageFile.py", line 506, in _save
    e.setimage(im.im, b)
SystemError: tile cannot extend outside image

ClashOfClans: Does not work on background_*.sc files

The script works for everything else but background_* files it crashes. Any idea what's the fix?

APK link: https://www.apkmirror.com/apk/supercell/clash-of-clans/clash-of-clans-14-635-9-release/clash-of-clans-14-635-9-2-android-apk-download/

 INFO  Processing background_clan_capital_02_tex.sc
 INFO   ├── Detected LZHAM compression
 INFO   └── Cannot decompress background_clan_capital_02_tex !
Traceback (most recent call last):
  File "/tmp/Dumpsc/Main.py", line 67, in <module>
    extract_images()
  File "/tmp/Dumpsc/Main.py", line 46, in extract_images
    images = process_sc(f"{sc_file_name}_tex", f.read(), f"{sc_output_dir}/texture/", True)
  File "/tmp/Dumpsc/System/Dumpsc.py", line 110, in process_sc
    while len(decompressed[i:]) > 5:
TypeError: 'NoneType' object is not subscriptable

The files

$ ls | grep background_
background_cc_gamearea.sc
background_cc_gamearea_tex.sc
background_clan_capital_02.sc
background_clan_capital_02_tex.sc
background_clan_capital.sc
background_clan_capital_tex.sc
background_gamearea.sc
background_gamearea_tex.sc
background_npc.sc
background_npc_tex.sc
background_player_2.sc
background_player_2_tex.sc
background_player.sc
background_player_tex.sc
background_war.sc
background_war_tex.sc

PS: I am using this repo https://github.com/Statscell/Dumpsc that uses https://github.com/Galaxy1036/Dumpsc

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.