Setup scripts and guide to run Pokewilds on android.
Work in progress. Bugs expected.
If something is unclear or missing please create an issue.
Install and setup the following apps.
- Termux (F-Droid / Github)
- Termux:X11 (Github) or use Termux:X11-extra for onscreen touch controls (Github)
- Termux:API (F-Droid / Github) (optional for closing notification)
- Termux:Widget (F-Droid / Github) (optional but recommended to create a shortcut to execute the script)
Open Termux and run the following. This will create an environment for Pokewilds to run.
termux-setup-storage && yes | pkg update && pkg upgrade -y && pkg install x11-repo pulseaudio proot-distro termux-api wget unzip -y && pkg install termux-x11-nightly -y && proot-distro install --override-alias pokewilds debian && proot-distro login pokewilds -- bash -c "apt update && apt upgrade -y && apt install x11-utils pulseaudio-utils openjdk-21-jre-headless unclutter -y"If you want a fullscreen window (default is a square) run the following command.
proot-distro login pokewilds -- bash -c "apt install openbox wmctrl -y"Choose a command to download the scripts based on your preference.
Option 1: square game window
mkdir -p ~/.shortcuts && wget -O ~/.shortcuts/start_pokewilds.sh "https://raw.githubusercontent.com/Temder/Pokewilds-Android/refs/heads/main/start_pokewilds_square.sh" && chmod +x ~/.shortcuts/start_pokewilds.sh && wget -O ~/.shortcuts/stop_pokewilds.sh "https://raw.githubusercontent.com/Temder/Pokewilds-Android/refs/heads/main/stop_pokewilds.sh" && chmod +x ~/.shortcuts/stop_pokewilds.shOption 2: fullscreen/flexible game window
mkdir -p ~/.shortcuts && wget -O ~/.shortcuts/start_pokewilds.sh "https://raw.githubusercontent.com/Temder/Pokewilds-Android/refs/heads/main/start_pokewilds_fullscreen.sh" && chmod +x ~/.shortcuts/start_pokewilds.sh && wget -O ~/.shortcuts/stop_pokewilds.sh "https://raw.githubusercontent.com/Temder/Pokewilds-Android/refs/heads/main/stop_pokewilds.sh" && chmod +x ~/.shortcuts/stop_pokewilds.shOption 1: Automatic download/extraction (paste command in Termux)
mkdir -p /sdcard/Pokewilds && wget -O /sdcard/Pokewilds/pokewilds.zip "https://github.com/SheerSt/pokewilds/releases/latest/download/pokewilds-otherplatforms.zip" && unzip -o /sdcard/Pokewilds/pokewilds.zip -d /sdcard/Pokewilds/ && rm /sdcard/Pokewilds/pokewilds.zipOption 2: Manual download/extraction (fallback if Option 1 is not working)
- Download the archive (Link)
- Create the directory /storage/emulated/0/Pokewilds if it does not exist yet
- Extract/copy the contents of the archive to /storage/emulated/0/Pokewilds
- the result paths should look like the following: /storage/emulated/0/Pokewilds/pokewilds-v0.8.11-otherplatforms/[game files]
Run the following command in Termux. If the game is not running, post the output as an issue in the github repository. If the game runs you can stop it by pressing CTRL + C inside Termux and continue to the next steps.
~/.shortcuts/start_pokewilds.shYou can choose to run the game everytime with the command or create a shortcut by following the steps
- Go to the widget creation process on your homescreen (usually by long pressing on your homescreen and choosing widget)
- Select Termux:Widget -> Termux shortcut 1 x 1 and place it on your homescreen
- Select the start_pokewilds.sh entry
The shortcut should now execute the script and launch the game.
You can play the game by connecting a keyboard (or controller not tested) to your phone.
Another option is using Termux:X11-extra with onscreen touch controls:
- Download the control layout file
- Open Termux:X11-extra and navigate to Preferences -> Keyboard -> Show additional keyboard -> Import Virtual Key Preset
- Select the downloaded file
- you can also create your own or edit my provided controls
The following settings are recommended. Smaller resolutions are better for performance. The display resolution mode setting will only work with the full screen when the option fullscreen/flexible game window was chosen.
| Setting | Location | Value | Description |
|---|---|---|---|
| Display resolution mode | Output | scaled or exact | scaled: whole display; exact: specific resolution |
| Display scale | if Display resolution mode is scaled | as high as possible | uses the whole screen and scales it down by the factor |
| Display resolution | if Display resolution mode is exact | as low as possible | sets the game window to an exact resolution |
| Fullscreen | Output | On | hides the status bar |
| Screen orientation | Output | Landscape | automaticly orients the game to lanscape |