Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSteve777 committed Dec 28, 2024
1 parent d1dbe82 commit 0b31813
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
## How to use:
It needs to be done in two steps:

- Select `use this template -> create new repository`, name it with `<your_github_username>.github.io` (lower case every letter here), and put your android translation into `raw/<game_version>` folder under `android_file.txt` name, result path should be `raw/<game_version>/android_file.txt`.
For iOS it will be `raw/<game_version>/ios_file.txt`.
- Select `use this template -> create new repository`, name it with `<your_github_username>.github.io` (lower case every letter here), and put your android translation into `raw/<language_code>/<game_version>` folder under `android_file.txt` name, result path should be `raw/<language_code>/<game_version>/android_file.txt`.
For iOS it will be `raw/<language_code>/<game_version>/ios_file.txt`.
Push the changes, and you'll see 2 actions running on github, one after another.
First one will create `gh-pages` branch, and there will be folders with such structure: `<game_version>/ad` and `<game_version/ios>`.
If some of raw files weren't present, e.g., `raw/<game_version>/ios_file.txt`, then `<game_version/ios>` folder won't be created.
First one will create `gh-pages` branch, and there will be folders with such structure: `<game_version>/<language_code>/ad` and `<game_version/<language_code>/ios>`.
If some of raw files weren't present, e.g., `raw/<game_version>/<language_code>/ios_file.txt`, then `<game_version>/<language_code>/ios>` folder won't be created.
These folders will contain two folders - `res_release` and `res_shipping`. All these directories will have `pvz2_l.txt` and `file_list.txt` files ready to use for your server-side pvz2c lawnstrings.
- Your site is kinda online, but it doesn't contain necessary for you files. Why? Because Github Pages are currently built from `master` branch, and not recently created `gh-pages` branch.
How to fix this? Go to your repository `Settings -> Pages`, change branch in corresponding section from `master` to `gh-pages` and save settings.
Expand All @@ -28,10 +28,10 @@ Said rton is located in Packages, and you'll need to decrypt and decode it.
I suggest [Sen](https://github.com/harumazzz/Sen.Environment) for that.
After converting said file to json, find `LawnStringServerConfig` and replace corresponding links with your own ones.

Example links for 3.5.8 on android (on iOS replace `ad` with `ios`):
Example links for 3.5.8 on android for **en**glish translation (on iOS replace `ad` with `ios`):
```
https://<your_github_username>.github.io/3.5.8/ad/res_release
https://<your_github_username>.github.io/3.5.8/ad/res_shipping
https://<your_github_username>.github.io/3.5.8/en/ad/res_release
https://<your_github_username>.github.io/3.5.8/en/ad/res_shipping
```

After that, encrypt and encode json back to rton, pack `dynamic.rsb(.smf)` file back and put it into the game folder.
Expand Down

0 comments on commit 0b31813

Please sign in to comment.