|
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:
|
| 11 | + |
8 | 12 | - SC compile / decompile;
|
9 | 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.7 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 " |
| 22 | + Add Python to environment variables"; |
| 23 | + - Download XCoder from |
| 24 | + the [releases page](https://github.com/Vorono4ka/XCoder/releases) and extract it; |
| 25 | + - Locate the extracted directory and install required modules: |
| 26 | + ```pip install -r requirements.txt```; |
| 27 | + - Execute "main.py" file. |
19 | 28 |
|
20 | 29 | - 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. |
| 30 | + - Open Terminal and install Python by executing following command: |
| 31 | + ```sudo apt-get update && sudo apt-get install python3 python3-pip```; |
| 32 | + - Download XCoder from |
| 33 | + the [releases page](https://github.com/Vorono4ka/XCoder/releases) and extract it; |
| 34 | + - Locate the extracted directory and install required modules by executing following |
| 35 | + command: |
| 36 | + ```sudo pip3 install -r requirements.txt```; |
| 37 | + - Execute "main.py" file. |
27 | 38 |
|
28 | 39 | - 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. |
| 40 | + - Download and install PyDroid app |
| 41 | + from [Google Play](https://play.google.com/store/apps/details?id=ru.iiec.pydroid3); |
| 42 | + - Open PyDroid and wait until Python installs; |
| 43 | + - Download XCoder from |
| 44 | + the [releases page](https://github.com/Vorono4ka/XCoder/releases) and extract it; |
| 45 | + - Install loguru using pip; |
| 46 | + - In PyDroid open and execute "main.py" file. |
| 47 | + |
| 48 | +### Testing |
| 49 | + |
| 50 | +The project supports unit-testing using the unittest module. To run tests by yourself, you can use the command: |
| 51 | + |
| 52 | +```cmd |
| 53 | +python -m unittest |
| 54 | +``` |
| 55 | + |
| 56 | +or |
| 57 | + |
| 58 | +```sh |
| 59 | +python3 -m unittest |
| 60 | +``` |
| 61 | + |
| 62 | +or using the poetry |
| 63 | + |
| 64 | +```sh |
| 65 | +poetry run python -m unittest |
| 66 | +``` |
34 | 67 |
|
35 | 68 | ### How to enable KTX section
|
36 | 69 |
|
37 |
| - |
| 70 | + |
38 | 71 |
|
39 |
| -**Supercell also uses KTX textures in new versions of the games, so it is advisable to perform this step.** |
| 72 | +**Supercell also uses KTX textures in new versions of the games, so it is advisable to |
| 73 | +perform this step.** |
40 | 74 |
|
41 |
| -To enable the KTX module, you need to get the "PVRTexToolCLI" binary from the official site: https://developer.imaginationtech.com/pvrtextool/. |
| 75 | +To enable the KTX module, you need to get the "PVRTexToolCLI" binary from the official |
| 76 | +site: https://developer.imaginationtech.com/pvrtextool/. |
42 | 77 |
|
43 | 78 | Then it is necessary to put CLI in "system/bin/" folder in the main script folder.
|
44 | 79 |
|
45 | 80 | ### In the plans:
|
| 81 | + |
46 | 82 | - CSV updating.
|
47 | 83 |
|
48 | 84 | ## Credits
|
49 |
| -This tool is based on Original [XCoder](https://github.com/MasterDevX/xcoder), Developer: [MasterDevX](https://github.com/MasterDevX)</br> |
| 85 | + |
| 86 | +This tool is based on Original [XCoder](https://github.com/MasterDevX/xcoder), |
| 87 | +Developer: [MasterDevX](https://github.com/MasterDevX)</br> |
50 | 88 |
|
51 | 89 | Many thanks to [spiky_Spike](https://github.com/spiky-s) for the provided developments
|
0 commit comments