cybersteve777.github.io - currently it's a test repo for PvZ2C lawnstrings server, simplified to just pushing raw file to the directory.
- nineteendo - for his pyvz2 tool
- Haruma - for his help with explaining algorithms
- vi_i_guess - for general file structure explanation here.
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 intoraw/<language_code>/<game_version>
folder underandroid_file.txt
name, result path should beraw/<language_code>/<game_version>/android_file.txt
. For iOS it will beraw/<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 creategh-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
andres_shipping
. All these directories will havepvz2_l.txt
andfile_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 createdgh-pages
branch. How to fix this? Go to your repositorySettings -> Pages
, change branch in corresponding section frommaster
togh-pages
and save settings. Now pages deployment task should rerun, and after finishing deployment your site will contain necessary files.
You need to edit serverconfig.rton
in dynamic.rsb(.smf)
file of the game.
You need to grab it from the following path: Android/data/com.popcap.<some package depeinding on store the game was downloaded from>/files
.
Said rton is located in Packages, and you'll need to decrypt and decode it.
I suggest Sen 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 for english translation (on iOS replace ad
with ios
):
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.
But before - back up original dynamic.rsb(.smf)
just in case. After that, launch your game, and you should see your translation here.
Most important steps will work even on iOS, the only difference will be in rton location. I don't have any Apple device nor tools to work with it, so can't help much. But if you are doing that on iOS, then you definitely know more than me)