GithubHelp home page GithubHelp logo

arkdelkaos / cr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smlbiobot/cr

0.0 2.0 0.0 1.48 GB

Clash Royale: data and cards

Home Page: http://discord.me/sml

Python 0.26% Smali 99.74% Shell 0.01%

cr's Introduction

Clash Royale

APK

Assets were extracted from the Clash Royale APK using publicly available scripts.

  • Latest version: 1.8.0 (released on March 13, 2017)

Image assets (*.SC)

CR-SC-Dump is used to decrypt sc/*_tex.sc files which output image sprites of the character animations

Additionally, sc_decode is used to turn the sprites into useful frames.

CSV files decryption

QuickBMS is used to decrypt the CSV files.

Step by Step

  1. Rename apk to zip and expand to folder with any zip file handler.

  2. Copy dumpsc.py into ./assets/sc folder and run find . -name '*_tex.sc' | xargs python ./dumpsc.py This will decrypt texture files as PNG inside the ./assets/sc folder. Keep them for use later. You may remove dumpsc.py from the folder after it has done its job.

  3. Run find . -not -name '*_tex.sc' -name '*.sc' -exec quickbms ./clash_royale.bms {} \; to use QuickBMS and the Clash Royale BMS script to decrypt remaining sc files in ./assets/sc folder.

  4. Run ./decoder_csv.py . to unpack csv files in ./assets/csv_client and ./assets/csv_logic

  5. With all the sc files decoded, you can now safely remove them. find -name '*.sc' -exec rm {} \;

  6. Copy sc_decode.py to ./assets/sc/ folder and change that as your working folder. Run find . -type f -not -name '*tex' -not -name '*.png' -not -name '*.py' -exec python3 ./sc_decode.py -s {} \; in ./assets/sc folder

Fan Kit

The official Clash Royale Fan Kit is included here for easy access. It is somewhat outdated as it was released in August, 2016.

Card Generation

A couple of Photoshop files were created to generate card graphics with the same dimension. This was achieved by using the dataset function paired with CSV data.

  • Folder: ./card-gen

Fun stuff

Python playground scripts just for fun.

cr's People

Contributors

smlbiobot avatar

Watchers

 avatar  avatar

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.