|
1 | 1 | # XCoder - easy to use modding tool
|
| 2 | + |
2 | 3 | Multiplatform modding tool for ANY Supercell\`s game.
|
3 | 4 |
|
4 | 5 | ## About
|
5 |
| -Work with Supercell\`s files on **any** os! SC and CSV are supported for all Supercell\`s games. |
| 6 | + |
| 7 | +Work with Supercell\`s files on **any** os! SC and CSV are supported for all |
| 8 | +Supercell\`s games. |
6 | 9 |
|
7 | 10 | ### Features:
|
8 |
| -- SC compile / decompile; |
9 |
| -- Compression and decompression. |
| 11 | + |
| 12 | +- SC compile / decompile |
| 13 | +- Compression and decompression |
10 | 14 |
|
11 | 15 | ### How to install and use
|
| 16 | + |
12 | 17 | - On Windows:
|
13 |
| - - Download Python 3.7 or newer version from [official page](https://www.python.org/downloads/); |
14 |
| - - Install Python. While Installing, enable such parameters as "Add Python to PATH", "Install pip", "Install py launcher", "Associate files with Python" and "Add Python to environment variables"; |
15 |
| - - Download XCoder from the [releases page](https://github.com/Vorono4ka/XCoder/releases) and extract it; |
16 |
| - - Locate the extracted directory and install required modules: |
17 |
| - ```pip install -r requirements.txt```; |
18 |
| - - Execute "main.py" file. |
| 18 | + - Download Python 3.10 or newer version |
| 19 | + from [official page](https://www.python.org/downloads/) |
| 20 | + - Install Python. While Installing, enable such parameters as "Add Python to |
| 21 | + PATH", "Install pip", "Install py launcher", "Associate files with Python" and "Add Python to environment variables" |
| 22 | + - Download XCoder from the [releases page](https://github.com/xcoder-tool/XCoder/releases) and extract it |
| 23 | + - Locate the extracted directory and install required modules: |
| 24 | + ```cmd |
| 25 | + poetry install |
| 26 | + ``` |
| 27 | + - Run program with |
| 28 | + ```cmd |
| 29 | + poetry run python -m xcoder |
| 30 | + ``` |
19 | 31 |
|
20 | 32 | - On Linux:
|
21 |
| - - Open Terminal and install Python by executing following command: |
22 |
| - ```sudo apt-get update && sudo apt-get install python3 python3-pip```; |
23 |
| - - Download XCoder from the [releases page](https://github.com/Vorono4ka/XCoder/releases) and extract it; |
24 |
| - - Locate the extracted directory and install required modules by executing following command: |
25 |
| - ```sudo pip3 install -r requirements.txt```; |
26 |
| - - Execute "main.py" file. |
27 |
| - |
28 |
| -- On Android: |
29 |
| - - Download and install PyDroid app from [Google Play](https://play.google.com/store/apps/details?id=ru.iiec.pydroid3); |
30 |
| - - Open PyDroid and wait until Python installs; |
31 |
| - - Download XCoder from the [releases page](https://github.com/Vorono4ka/XCoder/releases) and extract it; |
32 |
| - - Install loguru using pip; |
33 |
| - - In PyDroid open and execute "main.py" file. |
| 33 | + - Open Terminal and install Python by executing following command: |
| 34 | + ```sh |
| 35 | + sudo apt-get update && sudo apt-get install python3 python3-poetry |
| 36 | + ``` |
| 37 | + - Download XCoder from the [releases page](https://github.com/xcoder-tool/XCoder/releases) and extract it |
| 38 | + - Locate the extracted directory and install required modules by executing following |
| 39 | + command: |
| 40 | + ```sh |
| 41 | + poetry install |
| 42 | + ``` |
| 43 | + - Run program with |
| 44 | + ```cmd |
| 45 | + poetry run python -m xcoder |
| 46 | + ``` |
| 47 | +
|
| 48 | +### Testing |
| 49 | +
|
| 50 | +The project supports unit-testing using the unittest module. To run tests by yourself, |
| 51 | +use the command: |
| 52 | +
|
| 53 | +```sh |
| 54 | +poetry run python -m unittest |
| 55 | +``` |
34 | 56 |
|
35 | 57 | ### How to enable KTX section
|
36 | 58 |
|
37 |
| - |
| 59 | + |
38 | 60 |
|
39 |
| -**Supercell also uses KTX textures in new versions of the games, so it is advisable to perform this step.** |
| 61 | +**Supercell also uses KTX textures in new versions of the games, so it is advisable to |
| 62 | +perform this step.** |
40 | 63 |
|
41 |
| -To enable the KTX module, you need to get the "PVRTexToolCLI" binary from the official site: https://developer.imaginationtech.com/pvrtextool/. |
| 64 | +To enable the KTX module, you need to get the "PVRTexToolCLI" binary from the official |
| 65 | +site: https://developer.imaginationtech.com/pvrtextool/. |
42 | 66 |
|
43 |
| -Then it is necessary to put CLI in "system/bin/" folder in the main script folder. |
| 67 | +Then it is necessary to put CLI in "bin/" folder in the main script folder. |
44 | 68 |
|
45 | 69 | ### In the plans:
|
| 70 | + |
46 | 71 | - CSV updating.
|
47 | 72 |
|
48 | 73 | ## Credits
|
49 |
| -This tool is based on Original [XCoder](https://github.com/MasterDevX/xcoder), Developer: [MasterDevX](https://github.com/MasterDevX)</br> |
| 74 | + |
| 75 | +This tool is based on Original [XCoder](https://github.com/MasterDevX/xcoder), |
| 76 | +Developer: [MasterDevX](https://github.com/MasterDevX)</br> |
50 | 77 |
|
51 | 78 | Many thanks to [spiky_Spike](https://github.com/spiky-s) for the provided developments
|
0 commit comments