Unknown header (dl.sc)
Closed this issue · 6 comments
Why does not it work? What should be done?
C:\DECODE\cr-sc-dump-master>python dumpsc.py ex/emotes_bday_03_dl.sc --old
ex/emotes_bday_03_dl.sc
Exception Unknown header
Exception Unknown header
indicates the file you passed is not a sc
file. The first two bytes should be 0x53 0x43
.
For me its working fine. Tested with
python dumpsc.py --old emotes_bday_03_dl.sc
emotes_bday_03_dl.sc
(md5: 3e62a5993b8cf6de3d8cfc29a4e5b625
, cr-fingerprint: e49eab889ba99cdf0e40d98b8b3e38b5ff443d38
)
What version of emotes_bday_03_dl.sc
are you using?
What version of
emotes_bday_03_dl.sc
are you using?
this is https://www.mediafire.com/file/9ion8krlbbvdc2m/emotes_bday_03_dl.sc/file
The file you provided is already decompressed. You have to provide the original (compressed) file to this script.
The file you provided is already decompressed. You have to provide the original (compressed) file to this script.
How to get PNG from top SC file?
If you really want to process your provided file, apply the following changes.
Line 113-117:
# decompressed = decompress(data[26:])
# md5_hash = data[10:26]
# if hashlib.md5(decompressed).digest() != md5_hash:
# raise Exception("File seems corrupted")
decompressed = data
Line 195:
# file_type = check_header(data)
file_type = "sc"
Then execute the script again python dumpsc.py --old emotes_bday_03_dl.sc
.
(I still recommend using the original file.)
If you really want to process your provided file, apply the following changes.
Thank you, it works