Clash Royale .sc files decrypt

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Johnny
Posts: 16
Joined: Fri Oct 28, 2016 9:54 am

Re: Clash Royale .sc files decrypt

Post by Johnny »

aluigi wrote:@Johnny
The syntax of the commands reported on that link is correct but pyliblzma is an obsolete package of 6 years ago that can't be installed on Windows by default ("close_fds is not supported on Windows ").
Just my 2 cents in case you get no answer from the other user.


Damn i thought i was just not reading the instructions right
Thx aluigi
barbossa42
Posts: 11
Joined: Thu Oct 20, 2016 11:18 am

Re: Clash Royale .sc files decrypt

Post by barbossa42 »

I remember having some trouble with pyliblzma too, but can't remember how I solved it =(
If you have any info, please share here or open an issue on Github.
Johnny
Posts: 16
Joined: Fri Oct 28, 2016 9:54 am

Re: Clash Royale .sc files decrypt

Post by Johnny »

I found something interesting in the clash royale reddit. Can someone tell me what the guy did or about the software(s) he used bc it seems like he found a way to do it. Thx

Link:
https://www.reddit.com/r/ClashRoyale/co ... zard_card/
The image:
http://i.imgur.com/YGlx1kt.png

(I can see he has bluestacks and microsoft visual studios express open as well as this thing called "GL - Kosmos")
barbossa42
Posts: 11
Joined: Thu Oct 20, 2016 11:18 am

Re: Clash Royale .sc files decrypt

Post by barbossa42 »

GL Kosmos looks like something the author built with Visual Studio... The spritesheets and strings are extractable already, so nothing new there.
I'm currently working on the .sc files and started a wiki on GitHub, any help is appreciated: https://github.com/umop-aplsdn/sc_decode/wiki
Also:
Image
Xhulio
Posts: 5
Joined: Mon Nov 14, 2016 4:20 pm

Re: Clash Royale .sc files decrypt

Post by Xhulio »

https://www.facebook.com/BerkanYildizGL/?fref=ts

That's hes facebookwebsite so u guys can contact it for Kosmos Application
Xhulio
Posts: 5
Joined: Mon Nov 14, 2016 4:20 pm

Re: Clash Royale .sc files decrypt

Post by Xhulio »

@barbossa42 u have open the .SC files?and with what u have open them?im searching for one app to open but i can't find,Hope you will help me :c
Xhulio
Posts: 5
Joined: Mon Nov 14, 2016 4:20 pm

Re: Clash Royale .sc files decrypt

Post by Xhulio »

barbossa42 wrote:GL Kosmos looks like something the author built with Visual Studio... The spritesheets and strings are extractable already, so nothing new there.
I'm currently working on the .sc files and started a wiki on GitHub, any help is appreciated: https://github.com/umop-aplsdn/sc_decode/wiki
Also:
Image


Can you help me please?
barbossa42
Posts: 11
Joined: Thu Oct 20, 2016 11:18 am

Re: Clash Royale .sc files decrypt

Post by barbossa42 »

Try with Python 3.5, using this version of the script:
https://github.com/123456abcdef/cr-sc-d ... /dumpsc.py
rus_lol_
Posts: 18
Joined: Sun Nov 06, 2016 6:33 am

Re: Clash Royale .sc files decrypt

Post by rus_lol_ »

Hey!I extract sc file python script. how do compiling .png to .sc?I tried to remake script,but did not work(
P.s. sorry my english
Johnny
Posts: 16
Joined: Fri Oct 28, 2016 9:54 am

Re: Clash Royale .sc files decrypt

Post by Johnny »

Can smn plz tell me what works and what doesn't work. I tried a lot of things but its just not working for me i guess. I don't understand how the python code works cause in the code, i don't see any reference to a file or folder location where my .sc files are.
rus_lol_
Posts: 18
Joined: Sun Nov 06, 2016 6:33 am

Re: Clash Royale .sc files decrypt

Post by rus_lol_ »

Johnny wrote:Can smn plz tell me what works and what doesn't work. I tried a lot of things but its just not working for me i guess. I don't understand how the python code works cause in the code, i don't see any reference to a file or folder location where my .sc files are.


I personally put .sc and now this script to a folder with python, call the console and type a command "python dumpsc.py ui_tex.sc" Warning! The script works only with files ending in "_tex.sc"
barbossa42
Posts: 11
Joined: Thu Oct 20, 2016 11:18 am

Re: Clash Royale .sc files decrypt

Post by barbossa42 »

As rus_lol_ said, dumpsc processes a single "_tex.sc" file. There are instructions in the code on how to process a whole folder.
Assuming you are using windows:
1- put the script in the same folder as the _tex.sc files
2- shift-right-click on the folder, click "Open command prompt here"
3- type "for %v in (*tex.sc) do dumpsc.py %v", hit Enter
If the script doesn't work, reply with the error message, and which version of python you're running ("python --version" in the command prompt)
CamC999
Posts: 19
Joined: Tue Nov 22, 2016 9:25 pm

Re: Clash Royale .sc files decrypt

Post by CamC999 »

barbossa42 wrote:As rus_lol_ said, dumpsc processes a single "_tex.sc" file. There are instructions in the code on how to process a whole folder.
Assuming you are using windows:
1- put the script in the same folder as the _tex.sc files
2- shift-right-click on the folder, click "Open command prompt here"
3- type "for %v in (*tex.sc) do dumpsc.py %v", hit Enter
If the script doesn't work, reply with the error message, and which version of python you're running ("python --version" in the command prompt)



Ok so i did all of this and the error message i get is this:

C:\Users\cam\Desktop\sc>for %v in (*tex.sc) do dumpsc.py %v

C:\Users\cam\Desktop\sc>dumpsc.py arena_training_tex.sc
'dumpsc.py' is not recognized as an internal or external command,
operable program or batch file.

It does this for all .tex.sc files. Can someone please help? :?

UPDATE: I was able to fix the error by renaming my script to "dumpsc.py" :)

PROBLEM: For every .tex.sc file it asks me what to open it with. Do i use an image editor like PaintShop Pro? Help? :?
barbossa42
Posts: 11
Joined: Thu Oct 20, 2016 11:18 am

Re: Clash Royale .sc files decrypt

Post by barbossa42 »

The script should have output a bunch of PNG files on the same folder where you ran it...
Maybe try with "for %v in (*_tex.sc) do python dumpsc.py %v"
CamC999
Posts: 19
Joined: Tue Nov 22, 2016 9:25 pm

Re: Clash Royale .sc files decrypt

Post by CamC999 »

barbossa42 wrote:The script should have output a bunch of PNG files on the same folder where you ran it...
Maybe try with "for %v in (*_tex.sc) do python dumpsc.py %v"


Okay thanks ill give it a try but first i have to upgrade windows on my emulator :cry: the struggle
CamC999
Posts: 19
Joined: Tue Nov 22, 2016 9:25 pm

Re: Clash Royale .sc files decrypt

Post by CamC999 »

Okay so i did everything barbossa42 said and i get this error:

C:\Users\cam\Desktop\sc>for %v in (*_tex.sc) do python dumpsc.py %v

C:\Users\cam\Desktop\sc>python dumpsc.py arena_training_tex.sc
Traceback (most recent call last):
File "dumpsc.py", line 6, in <module>
from PIL import Image
ImportError: No module named 'PIL'

It also does this for every SC file in the folder ending in _tex.sc

UPDATE: I was able to fix the issue by installing "pillow" for python (The link can be found here: https://pypi.python.org/pypi/Pillow/3.4.2#downloads)

ALSO: I was able to find all of the images by fixing the problem above! thank you everyone!

P.S. I can share the audio and images with any of you on google drive if you want :lol:

Here are some sample files!

ui_spells_tex_.png


chr_electro_wizard_tex.png


ui_spells_tex.png
Johnny
Posts: 16
Joined: Fri Oct 28, 2016 9:54 am

Re: Clash Royale .sc files decrypt

Post by Johnny »

CamC999 wrote:P.S. I can share the audio and images with any of you on google drive if you want


Yes please I've been really struggling to find a way to get it. It would be super awesome if you could share it to me. Thx
(my email: tempjohn111@gmail.com)
Again thx :)
CamC999
Posts: 19
Joined: Tue Nov 22, 2016 9:25 pm

Re: Clash Royale .sc files decrypt

Post by CamC999 »

Johnny wrote:
CamC999 wrote:P.S. I can share the audio and images with any of you on google drive if you want


Yes please I've been really struggling to find a way to get it. It would be super awesome if you could share it to me. Thx
(my email: tempjohn111@gmail.com)
Again thx :)



Okay cool will do johnny! :lol:
HeniX
Posts: 4
Joined: Sat Nov 26, 2016 12:24 pm

Re: Clash Royale .sc files decrypt

Post by HeniX »

Hey can anyone help me in this project(video support is appreciated)
MY GMAIL: blackberryto47@gmail.com
Thank You
CamC999
Posts: 19
Joined: Tue Nov 22, 2016 9:25 pm

Re: Clash Royale .sc files decrypt

Post by CamC999 »

HeniX wrote:Hey can anyone help me in this project(video support is appreciated)
MY GMAIL: blackberryto47@gmail.com
Thank You


Okay, so I have already shared you the sound and image files via google drive. I am likely to make a video tutorial on YouTube soon, since there are no tutorials that seem to support this topic. I will say that it takes a lot of patience and is not so easy. Anyways, I will give further notice about the video tutorial. I hope this helps! (Anyone who doesn't want to have to go through the whole process of decrypting the _tex.sc files can just post their gmail on this forum, and I will share everything to them on the drive) :D