The Modding Hub now runs on your own computer Modding Hub 現在改為在你自己的電腦上執行

This address used to be the tool itself. The tool can now take a whole game apart and put it back together, and that only works on your own computer. Download it once, then follow this page step by step — no experience needed. 這個網址以前就是工具本身。現在工具可以把整個遊戲拆開再組回去,而這只能在你自己的電腦上做到。下載一次,然後跟著這個頁面一步一步做就可以,不需要任何經驗。

Download the Modding Hub 下載 Modding Hub

Free. Opens Google Drive in a new tab. Works on Mac and Windows. Your game files never leave your computer. 免費。會在新分頁開啟 Google 雲端硬碟。支援 Mac 與 Windows。你的遊戲檔案不會離開你的電腦。

What it can do它能做什麼

One page, with buttons, for the jobs that used to need several programs and a terminal. 一個有按鈕的頁面,取代以前需要好幾個程式加上終端機才能完成的工作。

Five words you will see你會看到的五個詞

New to modding? Read these first. Everything else on this page uses them. 第一次做模組?先看這幾個詞,下面的說明都會用到。

APK
The file an Android game is installed from. Think of it as the game packed into one box. 安裝 Android 遊戲用的檔案。可以想像成把整個遊戲裝進一個箱子。
XAPK
Several APKs zipped together. Some download sites give you this instead. The Hub turns it into one APK for you. 幾個 APK 打包在一起。有些下載網站給你的是這種檔案。Hub 會幫你把它變回一個 APK。
Decompile反編譯
Opening the box: the APK is unpacked into a normal folder you can look inside, and the game’s locked data is unlocked (decrypted). 打開箱子:把 APK 拆成一個普通資料夾讓你看裡面的東西,同時把遊戲上鎖的資料解開(解密)。
Build建置
Closing the box again: your changed folder is packed back into an APK. 把箱子重新封好:把你改過的資料夾重新打包成 APK。
Sign簽名
A seal on the box. Android refuses to install an APK without one. The Hub makes your own seal the first time and reuses it. 箱子上的封條。沒有封條的 APK,Android 不會讓你安裝。Hub 第一次會幫你做一個屬於你的封條,之後一直沿用。

What you need需要準備什麼

Tick these off before you start. 開始之前,逐項確認。

Only want the editors (cat stats, enemies, stages…)? You need just the first three. Skip Java and Python, and in step 4 open index.html instead. 只想用編輯工具(貓咪數值、敵人、關卡…)?只需要前三項。可以略過 Java 與 Python,第 4 步改為打開 index.html。

Set it up設定步驟

About ten minutes, only the first time. Pick your computer: 只有第一次需要,大約十分鐘。先選你的電腦:

  1. Download the Hub下載 Hub

    1. Open the download page.打開下載頁面。
    2. At the top, click the folder name, then Download.點上方的資料夾名稱,再按下載。
    3. Wait. Google Drive makes a .zip file and saves it in your Downloads folder.等一下。Google 雲端硬碟會產生一個 .zip 檔,存到你的下載資料夾。
  2. Unzip it onto your Desktop解壓縮到桌面

    1. Double-click the .zip. A folder appears next to it.雙擊 .zip,旁邊會出現一個資料夾。
    2. Right-click the .zip → Extract All… → Extract.在 .zip 上按右鍵 →解壓縮全部…→解壓縮。
    3. Drag the Battle Cats Modding Hub folder onto your Desktop.把 Battle Cats Modding Hub 資料夾拖到桌面。

    Keep the folder in one piece. Don’t take single files out of it — they only work together. 資料夾要保持完整,不要把裡面的檔案單獨拿出來,它們要放在一起才能運作。

  3. Install Java and Python安裝 Java 與 Python

    Java

    1. Go to adoptium.net and click the big download button. It picks the right version for your computer.到 adoptium.net,按最大的下載按鈕。網站會自動選好適合你電腦的版本。
    2. Open the downloaded file and keep clicking Continue / Next until it says it is finished.打開下載的檔案,一直按繼續/下一步,直到顯示安裝完成。

    Python

    1. Press ⌘ + Space, type Terminal, press Return. A window with text opens — this is the Terminal.按 ⌘ + 空白鍵,輸入 Terminal(終端機),按 Return。會開出一個文字視窗,這就是終端機。
    2. Copy this, paste it into the Terminal, press Return:複製下面這行,貼到終端機,按 Return:
      python3 --version
    3. If you see something like Python 3.12.1, you already have it. If a box asks to install “command line developer tools”, click Install and wait — that installs Python for you.如果看到類似 Python 3.12.1,代表已經有了。如果跳出視窗問要不要安裝「command line developer tools」,按安裝並等它完成,Python 就會一起裝好。

    Leave the Terminal open; you use it once more in step 4.先不要關終端機,第 4 步還會用到一次。

    1. Go to python.org/downloads and click the yellow Download Python button.到 python.org/downloads,按黃色的 Download Python 按鈕。
    2. Open the file. Before anything else, tick “Add python.exe to PATH” at the bottom of the first screen. Then click Install Now.打開檔案。第一個畫面最下方的「Add python.exe to PATH」一定要先勾選,然後按 Install Now。
    3. Click the Start button, type cmd, press Enter. A black window opens.按開始按鈕,輸入 cmd,按 Enter,會開出一個黑色視窗。
    4. Copy this, paste it into the black window (right-click pastes), press Enter, and wait until it finishes:複製下面這行,貼到黑色視窗(按右鍵就會貼上),按 Enter,等它跑完:
      py -m pip install pycryptodomex cryptography
  4. Start the Hub啟動 Hub

    The first time only — macOS has to be told the Start file is allowed to run:只有第一次需要:先讓 macOS 允許啟動檔執行。

    1. In the Terminal, paste this and press Return. Nothing appears afterwards — that means it worked.在終端機貼上這行,按 Return。之後什麼都不會顯示,這代表成功了。
      chmod +x ~/Desktop/"Battle Cats Modding Hub/Start Modding Hub.command"
    2. Open the folder on your Desktop. Right-click Start Modding Hub.command → Open → Open.打開桌面上的資料夾。在 Start Modding Hub.command 上按右鍵 →打開→打開。

    After this first time, just double-click Start Modding Hub.command.第一次之後,直接雙擊 Start Modding Hub.command 就可以了。

    1. Open the folder on your Desktop and double-click Start Modding Hub.bat.打開桌面上的資料夾,雙擊 Start Modding Hub.bat。
    2. If a blue box says “Windows protected your PC”, click More info → Run anyway.如果出現藍色的「Windows 已保護您的電腦」,按其他資訊→仍要執行。
    You should now see你現在應該看到 a small text window that says “The Battle Cats Modding Hub is running”, and your browser opening the Hub by itself. Keep the small window open while you use the Hub — closing it turns APK Tool off. 一個寫著「The Battle Cats Modding Hub is running」的文字小視窗,瀏覽器也會自動打開 Hub。使用期間請不要關閉這個小視窗,關掉的話 APK Tool 就會停止。

Make your first mod製作第一個模組

Everything happens on the APK Tool page — it is the first item on the left. 所有步驟都在 APK Tool 頁面完成,就是左邊第一項。

  1. Drop in your game拖入遊戲檔

    Drag your .apk or .xapk onto the box that says Drop your .apk or .xapk here. Leave the three ticks as they are.把 .apk 或 .xapk 拖到寫著 Drop your .apk or .xapk here 的方框。三個勾選項目保持原樣即可。

    You should see你應該看到 a progress bar. A full game takes about 2–5 minutes. When it is done, a green box says Decompiled. 一條進度列。完整的遊戲大約需要 2 至 5 分鐘。完成後會出現綠色方框,寫著 Decompiled。
  2. Open the Decrypted folder打開 Decrypted 資料夾

    Click Open the Decrypted folder. Inside is a folder named after your game, with two folders in it:按 Open the Decrypted folder。裡面有一個以你的遊戲命名的資料夾,再裡面有兩個資料夾:

    • game files — this is where you mod. Cat stats, enemies, stages and pictures, already unlocked. One folder per pack.主要在這裡改。貓咪數值、敵人、關卡與圖片,全部已經解鎖,每個資料包一個資料夾。
    • apk — the rest of the game (app name, icon, code). Leave it alone unless you know what you are changing.遊戲的其他部分(App 名稱、圖示、程式碼)。除非你清楚自己在改什麼,否則不用動它。
  3. Change something改一些東西

    Open a file inside game files, change it, and save it in the same place with the same name. For a first try, open a cat’s stats file in a text editor and change one number.打開 game files 裡的檔案,修改後用相同名稱存回原位置。第一次可以先用文字編輯器打開一隻貓的數值檔,改一個數字試試。

    Prefer buttons to text files? Use the editors in the left menu, then on the Mod files page press Send to this game.比較喜歡用按鈕操作?可以用左邊選單的編輯工具,再到 Mod files 頁面按 Send to this game。

  4. Build + sign建置並簽名

    Back on APK Tool, find your game under Build and sign and click Build + sign. The Hub finds the files you changed by itself.回到 APK Tool,在 Build and sign 找到你的遊戲,按 Build + sign。Hub 會自己找出你改過的檔案。

    You should see你應該看到 a green box saying Built and signed, and a file ending in -signed.apk downloading. That is your mod. 綠色方框寫著 Built and signed,同時下載一個名稱結尾是 -signed.apk 的檔案。那就是你的模組。
  5. Put it on your phone放到手機上

    1. In the game, save your progress with a transfer code first.先在遊戲裡用引繼碼備份進度。
    2. Uninstall the original Battle Cats from the phone.在手機上解除安裝原版貓咪大戰爭。
    3. Copy the -signed.apk to the phone (cable, Google Drive or a chat app all work), tap it, and allow installing.把 -signed.apk 複製到手機(用傳輸線、Google 雲端硬碟或通訊軟體都可以),點一下,允許安裝。

    Why uninstall? Your mod has your seal, not the official one, and Android won’t swap one seal for another.為什麼要先解除安裝?因為模組上的是你的封條,不是官方的,Android 不允許直接換封條覆蓋安裝。

Stuck?卡住了?

Find what you see, click it for the fix. 找到你看到的情況,點開就有解決方法。

APK Tool shows instructions, not a box to drop intoAPK Tool 顯示的是說明,沒有拖放的方框

You opened index.html. Close that tab and open the Hub with the Start file (step 4) instead.你打開的是 index.html。關閉分頁,改用啟動檔開啟(第 4 步)。

Mac: “cannot be opened” or “does not have appropriate access privileges”Mac:「無法打開」或「沒有適當的取用權限」

Do the first-time part of step 4 again: the chmod line, then right-click → Open. If you put the folder somewhere other than the Desktop, type chmod +x (with a space) in the Terminal, drag the Start file into the window, and press Return.重新做一次第 4 步的第一次設定:先貼 chmod 那一行,再按右鍵 → 打開。如果資料夾不是放在桌面,就在終端機輸入 chmod +x (後面有空格),把啟動檔拖進視窗,再按 Return。

The small window says “Java: NOT FOUND”小視窗顯示「Java: NOT FOUND」

Java is not installed yet. Do the Java part of step 3, close the small window, and start the Hub again.還沒安裝 Java。完成第 3 步的 Java 部分,關閉小視窗,再重新啟動 Hub。

Windows: the window flashes and closes, or mentions “encryption backend”Windows:視窗一閃就關,或提到「encryption backend」

Python is missing, or the py -m pip install line in step 3 was skipped. Reinstall Python with “Add python.exe to PATH” ticked, then run that line.沒有安裝 Python,或第 3 步的 py -m pip install 那一行還沒執行。重新安裝 Python 並勾選「Add python.exe to PATH」,再執行那一行。

A red box appears while decompiling or building反編譯或建置時出現紅色方框

The red text is the tool explaining what went wrong. When decompiling, untick Decode resources and try again. When building, the message usually names a file you edited — open it and check you saved it correctly.紅色文字是工具在說明哪裡出錯。反編譯時,取消勾選 Decode resources 再試一次。建置時,訊息通常會寫出你改過的某個檔案,打開確認是否有正確儲存。

The game installs but crashes or shows old values遊戲裝得上,但會閃退或數值沒有改變

Usually one edited file has a mistake, such as a missing comma. Undo your last change, Build + sign again, and change one thing at a time so you know which edit caused it.通常是某個改過的檔案有錯,例如少了逗號。復原最後一次修改,重新 Build + sign,之後一次只改一樣東西,就能知道是哪個修改造成的。