There is a new .sc file variation found in the root files of Clash of Clans. It isn't compatible with clash_royale.bms at the moment.
Can it be added?
Example file: https://drive.google.com/file/d/1mof40LLEh2tZXEI214NS6oPA5_6sRfTG/view?usp=sharing
New Clash of Clans .sc variant
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: New Clash of Clans .sc variant
The script is correct and even the decompression code is correct, but I have no idea why the compression fails.
It's zstd and the decompression works but there is something wrong near the end, maybe some corrupted bytes or data not related to the compressed data.
If you launch quickbms with the -e option it will dump the decompressed data even when the error occurs, as you can see the file seems correctly decompressed.
Try it:
quickbms.exe -e clash_royale.bms hero_bk_ice_dl_opt.sc
It's zstd and the decompression works but there is something wrong near the end, maybe some corrupted bytes or data not related to the compressed data.
If you launch quickbms with the -e option it will dump the decompressed data even when the error occurs, as you can see the file seems correctly decompressed.
Try it:
quickbms.exe -e clash_royale.bms hero_bk_ice_dl_opt.sc
-
- Posts: 6
- Joined: Sat Jul 24, 2021 9:34 am
Re: New Clash of Clans .sc variant
It's working now, thank you for the response!
-
- Posts: 6
- Joined: Sat Jul 24, 2021 9:34 am
Re: New Clash of Clans .sc variant
Unfortunately this has become an issue again even when forcing files using -e option.
This compression has now been added to all files including ones with _tex.sc pairs and the Python program I use (in addition to quickbms) to cut chunks from sc files doesn't like these files after they've been through quickbms. Here's the program:https://github.com/MasterDevX/XCoderThe author hasn't updated it in a while but it continued to work when files were first put through quickbms. Here's the steps I took:
1) Put through a matching pair of .sc and _tex.sc files through quickbms using -e option.
2) Added the file extension .sc back to the files after quickbms and moved them into the "in" folder for the python script
3) Ran the python script, output below:
It's entirely possible that quickbms is working as it should (and it is more likely the case) and that this python program has finally become too old to do what it needs to, but I thought I'd check again just in case.
I've tried newer programs that are able to cut sprites fine with this compression but I haven't found a program that just leaves them as chunks. Some of them assemble chunks together into movie clips which results in them being over lower resolution. The quickbms + xcoder method did exactly what I needed before.
Thanks again!
This compression has now been added to all files including ones with _tex.sc pairs and the Python program I use (in addition to quickbms) to cut chunks from sc files doesn't like these files after they've been through quickbms. Here's the program:https://github.com/MasterDevX/XCoderThe author hasn't updated it in a while but it continued to work when files were first put through quickbms. Here's the steps I took:
1) Put through a matching pair of .sc and _tex.sc files through quickbms using -e option.
2) Added the file extension .sc back to the files after quickbms and moved them into the "in" folder for the python script
3) Ran the python script, output below:
It's entirely possible that quickbms is working as it should (and it is more likely the case) and that this python program has finally become too old to do what it needs to, but I thought I'd check again just in case.
I've tried newer programs that are able to cut sprites fine with this compression but I haven't found a program that just leaves them as chunks. Some of them assemble chunks together into movie clips which results in them being over lower resolution. The quickbms + xcoder method did exactly what I needed before.
Thanks again!
-
- Posts: 1
- Joined: Wed Dec 07, 2022 5:49 pm
Re: New Clash of Clans .sc variant
Hello,
could you post any of the programs you used to extract images from the quickbms output?
I am trying to get all clash royale images and are kinda new to this whole topic.
Thanks a lot!
could you post any of the programs you used to extract images from the quickbms output?
I am trying to get all clash royale images and are kinda new to this whole topic.
Thanks a lot!
-
- Posts: 14
- Joined: Wed Jul 06, 2022 9:39 am
Re: New Clash of Clans .sc variant
Now bms can only be applied to the old version of sc, and the new version cannot be decrypted for the time being.aff3n wrote:Hello,
could you post any of the programs you used to extract images from the quickbms output?
I am trying to get all clash royale images and are kinda new to this whole topic.
Thanks a lot!
[i've been looking for help]