Entry 619
piney-apples as an AppImage, driven by a pad: data beside the AppImage, Play through $APPIMAGE, the flat Library, the save folder
Documented in piney-apples, the player's launcher.
Linked from The quit prompt holds the game's sound: the mixer stands the engine still, the prompt's own sounds on an SPU2 of their own, Real fullscreen in the game, and the launcher's Settings page on one typed settings table, The launcher's build in a process of its own.
Files28 in 13 directories
release-notes.md.github/workflows/launcher.ymlrelease.ymlCargo.lockREADME.mdcrates/piney-data/src/home.rscrates/piney-game/src/lib.rscrates/piney-launcher/Cargo.tomlcrates/piney-launcher/appimage/build.shpiney-apples.desktoppiney-apples.pngpiney-apples.svgcrates/piney-launcher/src/app.rsconfig.rsfound.rsframe.rsjob.rslibrary.rsmain.rsmotif.rsnav.rsreport.rstheme.rsdocs/README.mddocs/images/launcherdocs/port/launcher.mdplans/release.mdtools/docs.pyMentioned inplans/release.md:109
After 618, piney-apples ran on Windows and on a Linux desktop as a
plain executable. The maintainer wanted a Linux AppImage for the Steam
Deck, and with it a launcher a pad can drive. Their reviews along the way
reshaped the window: a flat list of rows in place of the cards, the
launcher's own frame, the system's own file dialogs, a save folder of the
player's choosing, and a Play for the game's four-part selector. This is
the first public release's launcher, v0.1.0. The reference is
docs/port/launcher.md.
The data folder inside an AppImage. An AppImage runs its executable
from a read-only squashfs mount ($APPDIR, /tmp/.mount_piney-...), so
"beside the executable" pointed into the mount. 618's launcher, made into
an AppImage, stopped at once: cannot write /tmp/.mount_piney-gbPNoC/usr/bin/piney-apples-data (Read-only file system). piney_data::home::portable now names the program and its
folder together. When $APPIMAGE and $APPDIR are both set and the
executable is inside $APPDIR, the program is the .AppImage file and
piney-apples-data goes beside it. A plain copy started from inside some
other AppImage inherits that environment but not its folder, so it keeps
its own. The resolver's tests cover both. Run from a fresh folder, the
AppImage made piney-apples-data beside itself, added Infection, built
it (stamp data = 35, pack = 2, disc = 1 SLUS_202.67 2598567936 9349383e707e0cad) and --start 1 booted the title movie.
Play, and closing the launcher. Play now runs the program the
resolver names, so inside an AppImage the game is $APPIMAGE --play ...,
with a runtime and mount of its own. The old way was tested too: a game
started from the launcher's own mount ($APPDIR/usr/bin/piney-apples --play) went on for 30 s after the launcher ended. The runtime 20251108
keeps a busy mount alive. But that game looked for its data inside the
mount (.../usr/bin/piney-apples-data/memcard/slot1: Read-only file system; no memory card), so it played without saves. The plain build was
already sound: a closed launcher leaves its child running. What was
missing was the other way round. A launcher opened while a game ran did
not know it, and could build over the game's chunks.pak or rewrite its
settings. The game-mode process now holds an exclusive lock on
playing.lock (File::try_lock) for its life. A launcher that finds it
held says "A game started earlier is still running", keeps Play, the
build and Settings waiting, and clears when the lock frees. --build and
--start refuse ("a game is running; close it first"). From the
AppImage: Play by keys, then the window closed (WM_DELETE_WINDOW); the
game went on 20 s later, a second --start 1 was refused, and the
launcher's old mount went once the game ended. Closing the window during
a build asks first: keep building, or cancel and close once the build has
stopped. Both were taken, and the cancelled build left the old one as it
was.
The master Play. With two or more volumes ready the Library offers
Play .hack//, which runs the game with no --volume, so piney-game
opens its four-part selector (Outbreak's unused trial_v2st). Its strip
is lit in the colours of the volumes ready. It is the pad's first stop.
From the AppImage on the Infection and Mutation build, the game logged
launcher - .hack//Infection - frame 1446 after 2400 frames.
The save folder. Settings shows it, with Change (the system's folder
dialog), Open and Reset to default. The choice is kept in launcher.toml
and passed as --card to every game the launcher starts, --start too.
A run with save_folder set made that folder as its card. config::plan
checks a change first. The new folder must be writable and not inside the
old one or around it. An old folder with saves and an empty new one: copy
(the originals stay) or start empty. Both with saves: nothing is copied
or overwritten, and the player picks one. The tests write a save, copy
it, refuse to copy into a folder with saves of its own, and round-trip
the file with quotes and backslashes in the path. The bug report carries
the save folder, with the home folder as ~.
Builds without the discs. The coordinator asked whether the images
are needed after a build. The builder already keeps a volume whose image
is not given ("keeping ... from the build") and makes its port data again
from the build's own files. But the launcher's auto rebuild waited for
every missing image. It now waits only for a volume whose build it cannot
read that way: the chunk file must be of this builder's format and the
stamp must name the disc. In a fresh folder the stamp was set to data = 34 and the image path pointed nowhere. --status gave auto rebuild: Start([]), --build logged .hack//Infection (SLUS_202.67), 86 files from the build, the stamp read 35 again, and --start 1 booted. A later
volume added alone says on its row "Needs Infection's disc too" and
offers to add Infection's disc; the build leaves it out and makes the
others.
One build. The maintainer: "it builds a single master copy, so doing
it per row feels odd." piney-build makes one shared build (one
chunks.pak, a .disc per volume), so the window now shows one build. No
row has a Build button: a row's action is Play or adding its disc, and its
state reads "Not built yet", "Needs Infection's disc too", "No disc" or
"Building". Adding discs (the dialog, a drop, Scan a folder, Find discs,
--add-disc) starts the build of the whole library by itself. Discs added
while a build or a game runs are built once it ends, one more build: the
builder takes its discs when it starts, so restarting it would only throw
work away. The panel above the rows holds the build: "Building the game
from your discs" (the rebuild after an update reads "Updating the game
data"), one overall bar, the disc and step being worked on, and Cancel. A
failure shows its reason with Try again and Open log; discs left unbuilt
(a build cancelled) show "Not built yet" with Build. Otherwise the panel
is Play .hack//, for two or more volumes built. Adding Quarantine to the
Infection and Mutation build started a build of all four by itself, its
panel at 14% on "Infection: Reading the disc: 1.7 of 2.6 GB", each row
marked Building; Cancel the build and close then closed the window and
left the build as it was.
The window. The maintainer's reviews took it, in turn, from cards to rows, then away from glows to a flat look.
- Each volume has a row: its own colour on an edge bar (lit when ready) and a mark drawn as paths (rings round a point, parallel slants, a burst, nested squares sealed by a bar), "Vol. N" and the name, the boot file and image, the state where it needs words, and at most one action.
- A volume with no disc is dimmed except for its action.
- Every surface is one flat colour with 1px lines between; there are no gradients, glows or shadows.
- The maintainer's KDE showed the wallpaper through the window. Their KWin has a "Global Transparency" rule (95% active, 90% inactive): every pixel of a capture had alpha 242, the decoration's too. The window asks for an opaque background and fills it with solid colour, so it is opaque wherever no such rule applies.
- The frame is the launcher's own (
frame.rs): a title bar to drag (a double click maximises), minimise, maximise and close as line icons (close red under the pointer), a 1px border, and edges that resize. On Linux it is drawn only when the compositor grants client-side decorations. Windows and macOS get a transparent title bar with it under it. Fullscreen has none. - The status bar is gone. A good notice goes after 8 s; a problem stays. The version and the repository's link sit at the foot of the column, and the data folder's path is on Logs and help with links to the repository, its Releases and its Issues. Nothing is fetched.
The pad. nav.rs reads the gamepads through piney_game::input, the
game's own gilrs mapping (input made public), every 20 ms. It reads
only while the window is in front and no game runs. Presses held through
a game count as already pressed. The D-pad, or the left stick past half
way by its larger axis, moves the focus. The game's own stick reading was
not used, since it points a stick with y exactly centred down. Cross (A)
chooses, Circle (B) goes back, L1 and R1 turn the pages. A held direction
repeats after 400 ms, then every 110 ms. The keyboard does the same.
A page's focus places are rows of items. Up and down keep the item where they can, left from a row's first item goes to the column of pages, and left and right change a setting's value. The focus is a solid rim, drawn once a pad or key has moved it, and the pad's hints show in the column while the pad was the last input. A uinput Xbox 360 pad (python-evdev) drove it on XWayland: moving through the rows, the column, Settings, adding Outbreak and starting its build. The step logic and the stick reading have unit tests.
Dialogs and the Deck's Game Mode. Add discs, Scan a folder and the
save folder's Change open the system's own dialog, prompt_for_paths.
On Linux that is the XDG file chooser portal on Wayland and X11 alike
(GPUI's default features, through ashpd). On this KDE it opened KDE's
"Open File" dialog with "Add" on its button. When the dialog fails, the
notice says why and points at drag and drop. Under gamescope
(GAMESCOPE_WAYLAND_DISPLAY, or SteamGamepadUI=1) portal dialogs do
not show where a pad reaches them. There the window is fullscreen and Add
discs becomes Find discs (found.rs): the .hack discs beside the
program, in ~/Downloads, ~/Games and ~ (one folder down) and on
/run/media drives (two down) are listed, each added with A. If none is
found, it says where it looked. The save folder can only be reset there.
An in-app folder browser was built first and taken out at the
maintainer's word.
The AppImage. crates/piney-launcher/appimage/build.sh makes it with
appimagetool 1.9.1 and the type2 runtime 20251108 (both MIT, the AppImage
project), which release.yml fetches and checks by sha256. The AppDir
holds the stripped program, piney-apples.desktop
(desktop-file-validate passes), the icon and the licences, and nothing
else. The icon was drawn for the project: the field, a ring and the four
volumes' colours as arcs round a glass diamond. The CI-like build (libwebp
static) needs only libasound.so.2, libudev.so.1, libxkbcommon.so.0,
libxkbcommon-x11.so.0, libgcc_s, libm and libc, and opens the
Vulkan loader, Wayland and X11 itself. All are in SteamOS 3's base, and
none should be carried in an AppImage. It is 16.9 MB.
The release. release.yml now checks that the tag is piney-launcher's
version (0.1.0, which the launcher shows) before building. It adds the
AppImage to the Linux job, and asserts that the draft gets exactly three
assets: piney-apples-0.1.0-windows-x86_64.zip,
-linux-x86_64.tar.gz and -x86_64.AppImage. The draft's body is
.github/release-notes.md: which file for which system, the folder
beside the program, how to update, and the four discs. launcher.yml
checks the AppImage script's syntax and its .desktop file. Nothing was
tagged, pushed or published.
The README is now for players first. It opens with what the port is
and screenshots of the launcher only (six PNGs, 176 KB, under
docs/images/launcher/, made from a scratch home). Then come Download,
Quick start, the Steam Deck (Desktop Mode set-up, Add a Non-Steam Game,
Find discs in Game Mode, --start N as the launch option), which discs
work with each launcher message and what to do, the controls, where saves,
settings and logs live (moving the saves to a synced folder), updating,
and reporting a bug. The status, the engine and developer sections, the
licence, Third-party (now with the AppImage tools) and the use of AI
follow. tools/docs.py skips a folder of pictures with no pages in it.
Testing on a desktop in use. The test windows took keyboard focus as
they opened, and the maintainer was typing. Four times a stray key
reached a window. Three times it chose Play .hack// and started the
selector, and those games were stopped. Once it chose Copy bug report and
replaced the clipboard. One pad run went to another program's window. The later
captures sent keys to the window directly (xdotool key --window)
without making it active. Xvfb was tried for an isolated display, but the
NVIDIA Vulkan driver draws nothing there. The last retakes ran while a
small X client held the keyboard grab, so no typed key could reach the
window under test, and moved neither the pointer nor the focus.
Paths on screen. Review found /mnt/data/claude/scratch/... in the
Settings and Logs and help screenshots. Every path the window shows goes
through shown_path, the bug report's scrub (home as ~, the user's name
taken out); the unwritable page was the one that did not, and now does.
Settings and Logs and help were retaken with HOME at a scratch home and
the program in ~/Games/piney-apples/, so they read
~/Games/piney-apples/piney-apples-data/...; after the one-build change
the Library, the build, the focus and Find discs were retaken the same way
(keys sent to the window with a pause after it opens, which GPUI needs
before it takes them). All six committed PNGs were looked at for /mnt,
/home, a user name or a machine name: none.
Checks
- Crate tests: 826 passed, 0 failed (811 plus the launcher's 14 and the resolver's AppImage test); the launcher's 29 again after the one-build change.
- The piney-game suite: 352 / 0 / 153.
- Clippy (all targets and features) and fmt: clean.
cargo deny check licenses advisories: both pass, deny.toml unchanged (gilrs 0.11.2 is the launcher's new direct dependency, as the game's). tools/docs.py checkandcairns check: pass.cargo check --target x86_64-pc-windows-gnu -p piney-launcher: passes.- The final AppImage: 16,906,744 bytes, sha256
1b495501...3a8216. - No engine code changed, and the game's way of finding its files did not
either (piney-game never sets a portable folder), so no golden shots or
sweep were run.
piney_game::inputonly became public.
Nothing here has run on a Steam Deck. Game Mode was
imitated with SteamGamepadUI=1 (the Find discs list, the hidden Change)
and gamescope's fullscreen was not seen. Whether Steam's default layout
for a non-Steam game sends the controls as a gamepad, rather than as mouse
and keys, is the Deck's to show. The KDE dialog was captured on XWayland;
on native Wayland the window never came to the front while the desktop was
in use, though GPUI takes the same portal call on both. The frame was seen
on KDE only (XWayland); GNOME and Windows have not shown it, and the
Windows build is checked for the GNU target here and built for MSVC only
in CI. macOS was not built.