Skip to content

Feature/ap web page - #130

Merged
OruizGl merged 2 commits into
nightlyfrom
feature/ap-web-page
Nov 25, 2026
Merged

OruizGl merged 2 commits into
nightlyfrom
feature/ap-web-page

Conversation

@OruizGl

@OruizGl OruizGl commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

OruizGl and others added 2 commits November 24, 2026 23:21
- core ap::build: the ap-build pipeline (register the other players'
  items, check the world, build with the AP staging hook) as one shared
  function. The extra items and the loose chest counts are cleared when
  the build ends, so the long-running app goes back to plain builds; one
  Archipelago build at a time.
- ootrr ap-build calls it. --help now lists ap-export, ap-build and
  ap-bridge.
- web: POST /api/ap/read (slot, seed, preset, counts, default mod name)
  and POST /api/ap/build (a job like /api/build). The folder checks are
  the seed build's own, split out of api_build::plan as place(). Plain
  and Archipelago builds refuse to start while the other is running.
  The mod folder gets a Spoiler.txt note so Delete all other seeds
  treats it like a seed.
- Archipelago page under Configuration: open the .apootrr, see what it
  holds, build with the Configuration page's folders, copy the settings
  string for a player file, and the multiworld steps.

Checked in the app with a hand-made patch: it is read, the build starts
and the mismatch is reported. No real multiworld patch was built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page now walks a player through four steps, plus notes for the host.

- core ap::world: the app packs ootrr.apworld itself. The Python sources
  of archipelago/ootrr are built into the exe, the logic bundles come
  from the same export as ootrr ap-export, and the manifest gets the
  container version, as tools/build_apworld.py does. Entries are stored
  (a small zip writer and reader), plus ootrr/built_by.txt with the app
  version. A test fails when a file of archipelago/ootrr is not listed.
- web ap_host: reads and sets ootrr_options.ootrr_exe in host.yaml as
  text, so comments and the other settings stay as they are.
- GET /api/ap/setup: Archipelago found, world installed and current,
  host.yaml pointing at this app. POST installs the world in
  custom_worlds and writes host.yaml; only an Archipelago folder is
  written to.
- GET /api/ap/world: the world file, for a host without the app.
- POST /api/ap/player: the player file. Settings that match a preset of
  the world name it; others go in as a settings string, exported once
  first so settings Archipelago cannot use are refused here.
- POST /api/ap/client: starts ArchipelagoLauncher with OOTRR Client, the
  room address, the player name and this app's path. Refused over LAN.
- The page: folder field with Browse and Check again, the three checks,
  player name, the two save buttons, one button to open the .apootrr and
  build, room address and Open the OOTRR Client, and Hosting the room.
- README and nightly changelog.

Checked in the app against a stand-in Archipelago folder: setup writes
the world and host.yaml, Python's zipfile and zipimport read the world
the same as a Python-made one, both player file forms come back, the
build runs and reports a mismatched patch. Not tried with a real
Archipelago install: loading the world there and starting the client
are untested.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@OruizGl
OruizGl merged commit b17a368 into nightly Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant