Skip to main content

A save file editor for The Battle Cats

Project description

Battle Cats Save File Editor

ko-fi

LiberaPay

BCSFE is a python command line save editor for The Battle Cats.

Join the discord server if you want to suggest new features, report bugs or get help on how to use the editor (please read the below tutorials first before asking for help).

Thanks to

Lethal's editor for giving me inspiration to start the project and it helped me work out how to patch the save data and edit cf/xp: https://www.reddit.com/r/BattleCatsCheats/comments/djehhn/editoren/

Beeven and csehydrogen's free and open source code, which helped me figure out how to patch save data: beeven/battlecats, csehydrogen/BattleCatsHacker

Anyone who has supported my on Ko-Fi or LiberaPay

Everyone who's given me saves, which helped to test save loading/saving and to test/develop new features

Installation

Note the following tutorials are for the device you wish to run the editor on, not the device that you have the game installed on.

For example just because you have the game on an android device, does not mean you have to run the editor on it. It is easier to run the editor on a PC / laptop rather than on a mobile device.

Windows / MacOS

  1. Install Python 3.9 or later if you don't already have it: https://www.python.org/downloads/

  2. Open a terminal such as PowerShell or Command Prompt

  3. Run the following command:

py -m pip install bcsfe
  1. If you get an error saying that py is not a recongnised command, then try:
python -m pip install bcsfe

or

python3 -m pip install bcsfe
  1. If you get an error saying No module named pip, then run:
py -m ensurepip --upgrade

Again change py for python or python3 if needed

  1. To run the editor, as long as Python is in your PATH, you should be able to run:
bcsfe
  1. If Python is not in your path you'll need to run:
py -m bcsfe

Again change py for python or python3 if needed.

If you are using Windows and you are still struggling, try watching this video here.

Linux

  1. Install Python 3.9 or later using your system's package manager if you don't already have it

  2. You might have to install pip seperately with a package called python-pip or something similar or you can run the following command:

python3 -m ensurepip --upgrade
  1. Depending on your distro you might not be able to install the editor directly using the system pip and you might need to use pipx (python-pipx) or create a virtual environment manually.

  2. Using pipx:

pipx install bcsfe
  1. If ~/.local/bin/ is in your path you should be able to run the editor with the command:
bcsfe
  1. You may also need to install tk with your system package manager to open the file selection dialog. This package may be called tk or python-tk or python3-tk.

If anyone wants to put the editor on the AUR or another package repo, feel free, I'll be happy to help if needed.

Android

You need to install a terminal emulator to be able to install and run Python packages.

Termux is a good option and is what this tutorial will use.

  1. Download Termux, you can either get it from F-Droid, or the APK directly from GitHub. DO NOT use the Google Play Store version, as it does not fully work.

I recommend using F-Droid since it can update Termux for you (and it's just a better alternative than using the Google Play Store).

On F-Droid Termux is called Termux Terminal emulator with packages

  1. Once Termux is installed, open it and run the following commands:
termux-setup-storage
termux-change-repo
pkg update
pkg upgrade
pkg install python python-pip

When it asks for a mirror, it doesn't really matter which one you pick, the default single mirror works fine.

  1. Install the editor with the following command:
pip install bcsfe

Or if that doesn't work try:

python -m pip install bcsfe
  1. Run the editor with the following command:
bcsfe

Or if that doesn't work try:

python -m bcsfe

Note that the editor might give you warnings about tkinter not being installed, you can just ignore those as tkinter will not work on mobile. This just means that instead of a graphical file selection dialog, you just have to type the file path manually.

For example to save your save file to your downloads directory, the path might look something like /storage/emulated/0/Download/SAVE_DATA or /sdcard/Download/SAVE_DATA

iOS

I do not have an iOS device, so there is no text tutorial, but Viarules has made a video tutorial here. The video uses iSH which is apparently quite slow, and other people recommend using a-Shell instead.

Terms of Use

By using the editor you agree to the following:

If you are using the editor to run a paid service that profits off of the editor (e.g a service to provide people with hacked accounts, or a paid discord bot to edit people's accounts, etc) you must make it very clear that you are using this save editor.

This should be done by linking this GitHub page, and explicitly stating that the tool you are using is available for free and that they don't need to use your service to hack their account.

This information needs to be visible and something the customer agrees to before any payment is made.

This also includes paid services which claim to teach people "How To Hack The Battle Cats". In those cases, this still applies, so you still need to state and have the customer acknowledge the things I said above.

Free services / derivative works (such as a third party discord bot or editor gui) are fine to use the editor under the hood as long as you abide by the License. Basically if you are distributing a program which uses the editor, you need to license your own program under the GPL or a compatible license (basically make it open source / free software too).

These terms are designed to prevent scams and the exploitation of users.

Also if you are profiting from the editor, it would be greatly appreciated if you could give back something and support me.

Usage

Once you have installed and ran the editor, you can now begin to edit your save file!

  1. In The Battle Cats enter the Change Account / Device menu in the Settings on the main menu.

  2. Then enter the Begin Data Transfer menu.

  3. Then click / tap Save Data to Server, this should give you a transfer code and a confirmation code.

  4. In the editor use the option called Download save file using transfer and confirmation code by entering the number 1

  5. Enter your transfer code

  6. Enter your confirmation code

  7. Select the country code that you are using, en=english, kr=korean, jp=japanese, tw=taiwanese.

Note that en also includes the it, es, fr, th, and de translations.

  1. Edit what you want. Note that in most cases, if you want to exit the current input you can enter q and press enter to go back to the previous menu

  2. In the editor, go into the Save Management category and select Save changes and upload to game servers (get transfer and confirmation codes). It may take some time, it may also fail, if it does then try again.

  3. This should give you a new transfer code and a new confirmation code.

  4. Back in-game, tap the Close Game button, then tap Cancel Data Transfer (and also possibly Start Game From Beginning)

  5. Go back into the Change Account / Device menu and then go into the Resume Data Transfer menu

  6. Enter the new codes, and tap Resume Transfer

  7. Then done! You should see your edits in-game.

  8. Every time that you want to make an edit to your save, you will have to re-upload it to the game servers in the editor and re-download it in-game, the saves aren't automatically linked together.

Apparently doing the Google Account / Apple Account link limits the number of data transfers you can do within a certain time. So to be safe, I would avoid linking your account.

Using a rooted device via adb

  1. Add adb to your PATH environment variable, or edit the config to set ADB path editor config option to the full path of the adb executable. You can download adb from platform-tools

  2. Open the editor and select the option named Pull save file from device using adb and enter your game version, or select the option named Select save file from file and select a copy of your save data

  3. Edit what you want

  4. Go into save management and select an option to push save data to the game

  5. Enter the game and you should see changes

Using a rooted device directly

  1. You need to be running the editor on the device itself, so you'll need to follow the Android tutorial to install the editor

  2. You may have to run the editor with sudo python -m bcsfe or something, so you might have to setup the termux root repo and run pkg install sudo

  3. In the editor select the option named Pull save file from root storage

  4. Edit what you want

  5. Go into save management and select an option to push save data to the game

  6. Enter the game and you should see changes

How to unban your account

  1. Select the option in Account to Unban account or just upload the save data to the game servers again

  2. It may take some time but after, you should be able to choose one of the options in save management to push the save data to the game.

How to prevent a ban in the future

  • Instead of editing in platinum tickets use the Platinum Shards feature

  • Instead of editing in rare tickets use the Normal Ticket Max Trade Progress (allows for unbannable rare tickets) feature

  • Instead of hacking in cat food, just edit everything in that you can buy with cat food, e.g battle items, catamins, xp, energy refills (leaderships), etc. If you really want catfood then you can clear and unclear catnip missions with the feature Catnip Challenges / Missions then entering 1 when asked. You'll need to collect the catfood in-game after each clear though

  • Instead of hacking in tickets, just hack in the cats/upgrades you want directly

Install from source

If you want the latest features then you can install the editor from the github.

  1. Download Git

  2. Run the following commands: (You may have to replace py with python or python3)

git clone https://github.com/fieryhenry/BCSFE-Python.git
cd BCSFE-Python
git checkout 3.0.0
pip install -e .
py -m bcsfe

Then if you want the latest changes you only need to run git pull in the downloaded BCSFE-Python folder. (use cd to change the folder)

Alternatively you can use pip directly, although it won't auto-update with the latest git commits.

py -m pip install git+https://github.com/fieryhenry/BCSFE-Python.git
py -m bcsfe

If you want to use the editor again all you need to do is run the py -m bcsfe command

Documentation

I only have documentation for the locales and themes atm, but I will probably add more documentation in the future.

License

BCSFE is licensed under the GNU GPLv3 which can be read here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bcsfe-3.0.0b8.tar.gz (187.0 kB view details)

Uploaded Source

Built Distribution

bcsfe-3.0.0b8-py3-none-any.whl (232.9 kB view details)

Uploaded Python 3

File details

Details for the file bcsfe-3.0.0b8.tar.gz.

File metadata

  • Download URL: bcsfe-3.0.0b8.tar.gz
  • Upload date:
  • Size: 187.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for bcsfe-3.0.0b8.tar.gz
Algorithm Hash digest
SHA256 afc5ae25014db7d848c8920914c20efe5e0012851ac02c6c93c79f234fe64c6f
MD5 3daf75c1a9dc25499c427dec6f89efdf
BLAKE2b-256 f0741d8a1c857623d0402e71c12cb3d12ca77432328c9444ffdace6bcdc60a77

See more details on using hashes here.

File details

Details for the file bcsfe-3.0.0b8-py3-none-any.whl.

File metadata

  • Download URL: bcsfe-3.0.0b8-py3-none-any.whl
  • Upload date:
  • Size: 232.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for bcsfe-3.0.0b8-py3-none-any.whl
Algorithm Hash digest
SHA256 632158de4b51a04dabadcb0b771f1f138212322311f4d30ac1130b24580a026b
MD5 d649606348ea35fd8934b3a3f3343f29
BLAKE2b-256 25c26bd1d7171ea1a0ff0822f9c5f3df858f07aef4618761c5de8e80a5c31887

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page