The 0.2.8 Preview is based on PKForge v3.2.0, commit
c1d12b6d1b0239e57ead0c1e1add1432d24f7e3a. It reuses the release's park simulation,
scene, interaction handlers, overlays, game rules, save engines and Bank format.
It is an experimental preview; see VALIDATION.md for measured results and open
release checks, and 3.2.0 support and open gates for
each upstream change's Linux route. So were 0.2.4 to 0.2.7; the 0.2.3 Preview and earlier used v3.1.1.
Handheld compatibility separates verified hardware, previous trials, simulated firmware checks and unsupported userspaces.
Linux revision 0.2.10-dev extends the park preview with a native Home library,
Pokémon and save editors, Bank organization, durable transfers/recovery, generation,
offline events, collection tools, Showdown/QR and game-specific tools. This is a
development checkpoint towards full v3.2.0 parity. FEATURE_COVERAGE.md records
implementation and remaining acceptance gates; ACTION_INVENTORY.md audits the
portable engine actions. Neither document claims that every device/format path
has passed acceptance.
Extract PKForge-v3.2.0-linux-0.2.10-dev-arm64.zip into the Ports directory. This
one ZIP is for every firmware except NextUI, whatever the handheld's chip: the
nextui-… ZIPs (including nextui-h700) only work on the NextUI firmware.
| Firmware | Directory |
|---|---|
| ROCKNIX | /roms/ports/ (normally /storage/roms/ports/) |
| KNULLI | /userdata/roms/ports/ |
| ArkOS, dArkOS (ARM64, including compatible R36S community images) | /roms/ports/ or /roms2/ports/ |
| BananaOS (RG DS, RG DS Plus; experimental, hardware unverified) | roms/ports/ on the card (\\<address>\banana\roms\ports over its file sharing) |
| muOS | Data: ports/pkforge/ at the card's top level (/mnt/mmc/ports/, or /mnt/sdcard/ports/ on a second card); launchers: ROMS/Ports/ on the same card |
The launcher also looks in /mmc/ports/pkforge and in the ports folder of the
card PortMaster uses. A sibling pkforge folder takes precedence. Set
PKFORGE_HOME to the directory containing app for another card layout. Every
start writes PKForge-launcher.log beside the launcher: where it looked for the
pkforge folder, the firmware PortMaster reported, and how the app ended.
Only for the NextUI firmware, choose nextui-<platform>-arm64.zip: tg5040 for TrimUI
Brick/Brick Pro/Smart Pro, tg5050 for Smart Pro S, or h700 for Anbernic H700.
Extract at the SD-card root. It installs Tools/<platform>/PKForge.pak and
PKForge Pokepark.pak; keep both together. Both share .userdata/shared/pkforge,
outside the replaceable Paks. Preserve that directory during updates. muOS,
dArkOS and NextUI are experimental until tested on their respective hardware.
Keep PKForge.sh and PKForge Pokepark.sh beside the pkforge directory. Refresh
the game list if needed. PKForge opens Home; PKForge Pokepark opens the park
through --start-page park. Both share pkforge/userdata. The .NET 10 runtime is bundled.
No firmware image, system library or Sway configuration needs replacing.
Home can open a save, browse the Bank, link/scan emulator folders, filter the game library and enter Poképark. In storage, A picks up/drops a Pokémon, B cancels a carry or returns, Start opens Pokémon actions, X opens storage tools and L/R changes boxes. Select enters marking mode in saves; A marks and holding A while steering selects an area. In the Bank, Y marks a slot and Select opens Summary on a single screen or turns its page on the second screen. D-pad and A/B operate every picker/form. Text entry supports an on-screen keyboard, Unicode, an internal clipboard and UTF-8 files. In a save box or the Bank, choose Send to Poképark. In Summary, Select opens the box overview on a single screen. In the collection dex, Select opens all matching save/party/Bank locations on either display layout. An invitation leaves the original Pokémon in its save or Bank. Daycare write-back is controlled separately in the daycare menu.
After a scan, Home restores its saved catalogue at the next launch. Scan linked folders to refresh metadata. Cancelling a scan retains previously known saves and new discoveries; a completed scan removes files that are no longer present. Save names, edition choices and hidden status are reapplied immediately. This cache does not authorize writes: opening/editing still reads and validates the real file. Storage tools → Audit clones now offers the shared Android/Linux text report, structured findings and a local text export; the audit can be cancelled.
Revision 0.2.2 corrects travel animations: flight uses directional Hover/Float instead of the turning FlapAround attack, and Rollout uses rolling frames (Donphan's curled Special0 animation) instead of an upright spin. Deliberate dance/spin actions remain available.
Save in game and close the emulator before editing. After a write, start the game normally; an older emulator save state can overwrite the edited save data.
Home uses the Android-style cartridge shelf. Left/right selects a game; down moves to the Bank, Dex Autopilot, Poképark, Events and Settings tiles; up returns to the shelf. A selects/opens, B edits the selected cartridge's identity, L filters, Y links a folder, X opens a save and Start opens settings. On the shelf, touch opens a cartridge; hold it for its identity menu or drag to browse. Select opens the Linux library-actions list, including scan, continue and quit. KNULLI's firmware exit chord is Menu + Start. The app also provides Start + Select held for at least 0.6 seconds as an exit shortcut from anywhere in the app.
On KNULLI, the app matches face-button prompts to the frontend's configured
A/B/X/Y names when its Ports generator supplies the reversed default SDL layout.
An existing per-game Xbox layout is already correct and stays in effect. A
matching controller entry in userdata/gamecontrollerdb.txt takes precedence;
set PKFORGE_CONTROLLER_LAYOUT=sdl to retain SDL's original face-button semantics.
| Control | Park action |
|---|---|
| A | Meet selected Pokémon; confirm in menus |
| B | Save / Bank library; back in menus |
| X | Photograph, or visit an offered highlight |
| Y | Picnic |
| L / R | Fly between park regions |
| D-pad left / right | Select residents |
| D-pad up / down | Zoom |
| Left stick | Pan the camera, when available |
| R2 | Pan mode on or off: while on, the D-pad moves the camera (no holding a trigger down) |
| L2 | One screen only: swap to the park's journal, as the RGDS shows it below the park; L2 again to return |
| Right stick | Zoom, when available |
| Start | Options |
| Select | Spectate |
| Hold Start + Select | Exit cleanly |
The park is drawn at the panel's rate, up to 60 frames a second. Where a scene
cannot hold it (more than 15% of frames late, or slower than about 45 a second),
the park drops to a steady 30 and tries 60 again after 20 seconds, then less
often. Set PKFORGE_PARK_FPS=30 or =60 (for example in the launcher) to fix the
rate. If the A and B buttons do the opposite of the on-screen hints, turn on
Settings → Swap A and B.
Touch supports the upstream drag, pinch, tap, pat and care gestures. On the RGDS,
the park is on the top panel and its journal, menus and touch buttons are below.
The current RGDS ROCKNIX build maps physical top to DSI-2 and bottom to DSI-1.
Use --swap-screens only if another firmware assigns those connectors differently.
ROCKNIX's EmulationStation can leave the bottom panel disabled in sway, so SDL would
see one display. On dual-screen ROCKNIX devices, PKForge.sh turns on any disabled or
powered-off internal panel before starting and restores each panel's state on exit.
Single-screen handhelds use overlay menus. On one screen, L2 swaps to what the
RGDS's lower screen shows for the current view: the selected game on Home, the
Pokémon inspector in a box, the box overview behind a summary, and the journal in
the park. The other buttons keep working while swapped (moving through a box
updates the inspector); L2 again, or opening another screen, swaps back. Touch is
ignored while swapped. With two screens L2 does nothing. Automatic detection uses SDL's usable
outputs on every backend; a failed secondary window falls back to one screen.
Display changes and resume trigger a recheck. The saved second-screen toggle
and --display-mode auto|single|dual / --swap-screens overrides remain.
Where SDL has no mapping, the port imports the existing EmulationStation input
configuration, then tries identified NextUI device profiles. A user
userdata/gamecontrollerdb.txt takes precedence. L2 and R2 button and
analog-trigger bindings both work; the desktop keyboard uses R for L2 and E for R2. Camera input clears when menus
open, focus is lost, controllers disconnect or the app suspends.
PKForge follows the firmware's configured lid and power behavior. Its lid monitor only pauses/resumes application activity and saves park state; it does not change OS power settings, inhibit shutdown or force system suspend. With shutdown on lid close, the next session starts by launching PKForge again. The owner reported successful lid close/reopen checks on both reference handhelds during the latest interim trial. This does not certify a particular firmware suspend mode; each device's power policy remains unchanged.
All personal state is in pkforge/userdata/: settings, Bank, restore points,
sprite cache, photo album, imports, exports and launch logs. Preserve that directory
when replacing application files. Packages intentionally do not contain it.
Options → Download this park's assets caches the current residents' animation
sheets and portraits without decoding every animation into memory. First-time
downloads need internet access. Cached assets work offline; unavailable forms or
failed downloads use the bundled fallback sprites. Upstream's bounded sprite cache
is retained, so inviting many different species over time can evict older assets.
Choose local music through Options → Music. Menus, daytime and nighttime can
use different tracks. Photographs stay in pokepark-album; the Linux album's
export action copies an image into exports instead of invoking an Android share sheet.
Save writes validate the candidate, enforce the intended slot scope, make a restore
point, check that the source file still matches its baseline, then replace it
atomically. Failed mutations are rolled back in memory. Suspected hacks retain
the upstream confirmation; known corrupting layouts remain read-only.
Bank releases keep an entity copy in bank-restore-points.
Moves involving saves and the Bank stage all changed files in a durable recovery journal. Destinations publish before sources are removed. An interrupted operation blocks new mutations until Settings → Recover unfinished operation completes or restores it. Recovery refuses files changed outside its recorded fingerprints; preserved originals can be exported for manual recovery. Historical operations are available under Bank / transfer history.
Existing preview resident IDs, protection keys, save identities and restore points are recognized across known Linux path aliases without rewriting photographs, park state or Bank IDs. Keep the complete userdata directory when upgrading.
Requirements: .NET SDK 10.0.103 and a clean recursive Git checkout, or the complete source release archive with both pinned submodules included. The bundled runtime is pinned to 10.0.3. Normal builds restore NuGet dependencies from the network.
git submodule update --init --recursive
dotnet test PKForge.Linux.slnx -c Release
pwsh -File tools/linux/build.ps1
pwsh -File tools/linux/verify-package.ps1The binary ZIP, complete source ZIP, SHA256SUMS.txt and BUILDINFO.json are written
to dist/. Complete source archives build without Git metadata: the included
source manifest verifies all source files and pinned dependencies. Do not run
git submodule update inside an extracted archive. See RELEASING.md for CI and
publication. The native package targets
linux-arm64, uses SkiaSharp 3.116.1 and keeps trimming/AOT disabled. Linux native
dependencies are separate from the bundled CLR. App-local ICU 72.1.0.3 retains
Unicode/globalization support. ARM64 glibc 2.29 or newer, SDL2, libgcc,
libstdc++ and zlib are required. Firmware SDL/GPU libraries take precedence;
missing SDL2_mixer disables music and unavailable GLES falls back to raster where
SDL can create a raster window. KNULLI's Mali-only SDL requires working firmware
EGL even for those windows; missing EGL leaves a readable failure in the log.
HTTPS downloads need compatible OpenSSL and CA certificates. The launcher does
not install OS libraries or source firmware mods that rewrite graphics links;
missing Mali EGL/GLES SONAMEs use private compatibility links.
userdata/launcher.log records preflight/startup failures; graphical startup also
writes startup-diagnostics.json. Controller names and mapping selection appear
in the log, which rotates at 1 MiB.
userdata/pkforge-report.txt is the one file to send with a device report. It
lists the firmware, board, glibc, memory, SDL version and drivers, displays,
GPU or software drawing (and why), each controller with its mapping state and
GUID, the settings that change behaviour, each screen's time, frame rate and late
frames, memory over the run, the park's 30/60 switches and every distinct warning
or error. It is rewritten at start, at the first frame, every minute and at exit,
so a run that was killed or hung still leaves one; "Ended" says which. It holds no
saves, Pokémon or trainer names: paths are cut to their first two folders (or
<userdata>/…) and save-like file names become <file>.
app/native-dependencies.json records native
hashes, required symbol versions and NuGet provenance. Packaging rejects a higher
glibc requirement or a wrong CPU architecture.
Developer flags:
--data-dir PATH --display-mode auto|single|dual --swap-screens --software --windowed
--save PATH --demo --headless --seconds N --screenshot
--phase Morning|Day|Evening|Night --weather Sunny|Cloudy|Rain|Storm
--input-script PATH
--demo requires an explicit data directory and creates test-only residents. Never
point it at your personal data directory. Timed input scripts exercise the real
park router and menus, but do not represent physical button presses. Benchmarks
write performance.json; --screenshot also writes diagnostic images.
Measurement variables: PKFORGE_PROFILE=1 adds where each frame's drawing time
goes to performance.json, the park's steps included (simulation, ground,
objects, residents, scale-up). PKFORGE_PARK_DIRECT=0 draws the zoomed-out
(scale 1) park through its world bitmap as before 0.2.9, for comparisons.
PKFORGE_GPU_CACHE_MB sets the GPU texture budget (default 48).
Validation measurements and remaining hardware limitations are recorded in
VALIDATION.md. See ATTRIBUTION.md and the upstream source notices for credits.