Comments (2)
I never really tried to figure out how to compress the data again. I think it is just a matter of finding the correct settings.
filters = [{'id': lzma.FILTER_LZMA1, "preset": 9, 'dict_size': 262144}] # ??
compressor = lzma.LZMACompressor(format=lzma.FORMAT_ALONE, filters=filters)
out1 = compressor.compress(decompressed)
out2 = compressor.flush()
compressed = out1 + out2
I don't know how lzma exactly works, but I assume using this reference (ftp://ftp.uni-bayreuth.de/pub/packages/tools/lzma/tukaani.org/lzma/header-format-12.txt) you should be able to extract the settings from the header? But I can't really help :P
from cr-sc-dump.
Ok thanks that's fine. I'm just glad someone can respond
from cr-sc-dump.
Related Issues (20)
- PNG to SC HOT 1
- Encoding CSV support? HOT 1
- how to use cr-sc-dump HOT 4
- Unknown header (dl.sc) HOT 6
- lzma HOT 8
- Can't decryption sc file (no module named 'PIL') HOT 6
- clash of quest cant dump HOT 4
- HAY DAY SOME TEX / SC cannot get image HOT 5
- Decoder Error LZMA HOT 4
- Decoding does not work for CoC v15.0.3 apk HOT 1
- I try to cut sprites from galaxy1036 repo HOT 2
- LZMAError HOT 3
- .csv Unknown header HOT 3
- LZMAError Input format not supported by decoder HOT 16
- Can't download pylzham "Could not build wheels for pylzham" HOT 1
- Decoding does not work for CoC v16.0.4 apk HOT 5
- Help needed with pyliblzma HOT 4
- Sample files for all older formats? HOT 7
- Issue with new cards HOT 2
- Decoding new _dl.sc files HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cr-sc-dump.