Skip to content

Persistence - Chronos via Minotaur's game API and Apollo Rework - #784

Draft
jonpas wants to merge 47 commits into
masterfrom
new-website-minotaur
Draft

jonpas wants to merge 47 commits into
masterfrom
new-website-minotaur

Conversation

@jonpas

@jonpas jonpas commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Apollo on the new website (Minotaur)

This moves Chronos persistence off Athena and the Java Apollo (jni extension + Apollo.jar) onto Minotaur's game API. It also includes the Apollo Rework (close #201). Merge only together with the website switch-over: this branch talks to Minotaur, not to Athena. The mod, tac_apollo_server and Minotaur must be updated together, because the vehicle save format, the data replies and removeVehicle are new.

Extensions

  • New tac_apollo_server (Rust, 1.0.0) replaces the jni extension and Apollo.jar on game servers. It keeps Apollo's command names and replies, so the SQF calls stay the same (callServer → callServerExt). It logs to logs/tac_apollo_server.log.
    • Vehicles are sent as one [key, value] array, passed through as it is, so new vehicle data needs no extension change.
    • removeVehicle goes through the same background queue.
    • lockerAction takes the rounds of partly used magazines.
  • tac_apollo_client 1.1.0 reads from Minotaur's game API (/apollo/v1/). It also loads Kits and reports its version on load.
  • Live or dev website mode: dev servers use the development website (srv.theseus-aegis.com/minotaur), and live servers use www.theseus-aegis.com. api.theseus-aegis.com is no longer used.
  • Toolchain:
    • Rust edition 2024, rust-version 1.88;
    • dependencies updated (reqwest 0.13, arma-rs 1.13);
    • native TLS: OpenSSL 3 on Linux, schannel on Windows. Both extensions need at most glibc 2.34, so they load on servers with glibc 2.36;
    • no more x86 builds, since Arma 3 dropped 32-bit;
    • GitHub Workflow actions updated to v7.

Apollo Rework (#201)

  • Data only: Minotaur sends data, never SQF code. Vehicles and the Armory's box are made in SQF from that data (parseSimpleArray), and nothing from the website is compiled any more.
  • Persistent vehicles:
    • Saved every 60 s as one [key, value] array:
      • position and tilt, damage and hit points, fuel, lock, customization;
      • cargo (backpacks, uniforms and vests with their contents, magazines with their rounds, weapons with their attachments);
      • turret magazines and pylons;
      • ACE cargo (loaded objects with their inventory and persistent ID);
      • ACE fuel and ammo truck supply (limited, or "only specific magazines");
      • trench dig progress.
    • Persistent are vehicles loaded from Chronos, Zeus "Add object to Chronos" objects, and what players place, a second after placing:
      • deployed static weapons (ACE CSW, vanilla assembly) until packed up;
      • trenches, ACE sandbags and fortify objects;
      • ACE tripods.
    • Removal: a deleted persistent vehicle is removed from Chronos a second later, and is kept a week as a backup on the website. A mission ending removes nothing.
    • Settings (TAC Apollo › Vehicles, all on by default): objects that aren't vehicles, static weapons, turret ammo, pylons, ACE cargo, and ACE fuel and ammo supply. Each one that is off is neither saved nor loaded.
    • Map change reset (website): vehicles are cleared and positions reset only on a map change, by default. Staff can change that per server or for the next start on Logistics › Manage, and restore a reset.
    • Round-trip test (test servers): [cursorObject] remoteExec ["tac_apollo_fnc_testVehicleRoundTrip", 2] saves, deletes, loads and compares a vehicle.
  • Deaths registered when killed (playerDied at once), with the loadout and the bodybag's key. A player who leaves while dead isn't saved, and their corpse stays for its bodybag.

Features

  • Kits: members prepare kits on the website. The Armory's new Kits button (Chronos only) shows each kit's status (Ready, or N missing) and takes the whole kit from the locker in one go (TAKE KIT), or a selected item of it with an amount (TAKE).
  • Armory:
    • Stash All (Stash screen, Chronos only) empties backpacks, vests and uniforms into the box and stashes everything the locker accepts in one go. A message on the pad lists what it refused.
    • Partly used magazines are stashed with their rounds and come back emptiest first.
    • The pad as text: buttons, titles and labels are LCD14 Purista Bold text (stringtable) on the pad's screen grid, with frames drawn by the game, instead of pictures. Only the pad and three icons (camera, export, the amount's arrow) are pictures.
      • Main menu buttons organized.
      • The amount dropdown in the pad's style (framed, LCD Purista Bold text, olive list), above Take/Stash; Stash All and Take Kit are above Back.
    • Messages on the pad instead of ACE hints: Chronos unreachable, empty box, empty category or filter, no kits, box full, kit incomplete or not taken, and Stash All leftovers (the last four wait for OK). Export confirms on the pad.
  • Bodybags:
    • Return to owner (name) within 30 m of a Locker or Armory object sends the bag to the website. The 30 m distance is a CBA setting.
    • The bag holds what the player had when they died. The owner claims the items on the website.
    • The killer and returner aren't sent any more; nothing used them.
  • Persistent variables across missions: insignia, earplugs, the gunbag's weapon, safety, and zeroing for every muzzle (including grenade launchers).
    • ACE's zero reference is kept across missions. The elevation and windage dials are kept only for the mission.
    • The old earplug workaround in getLoadout is gone.
  • On reconnect within a mission: team colour, vehicle seat (the same one, else any free one), ACE medical and ACRE radio settings come back. The group comes from the slot. They're cleared at death.
  • HEMTT 1.23 warnings and help notes fixed.

Setup on game servers

  1. Remove the jni extension and Apollo.jar, and deploy tac_apollo_server_x64.
  2. Create a game server in the website's admin (Chronos · Apollo › Game servers) and copy its token.
  3. Give the server the token in APOLLO_SERVER_TOKEN (and APOLLO_SERVER_LIVE=true on live servers).
  4. Check logs/tac_apollo_server.log. It names the API address it uses and warns if no token is set.

Testing

  • The Rust extensions have their own tests (extensions/apollo-server/tests/minotaur.rs), and Minotaur's game API is covered on the website side.
  • In-game (Minotaur's docs/game-tests.md), on the test server against the development website:
    • Passed: Apollo basics, Kits, Bodybag recovery, Persistent variables, ACE cargo, the Armory locker and Stash All, deaths registered when killed, and most persistent vehicle checks (cargo, turrets, ACE fuel and ammo, ACE cargo, static objects and weapons, placed objects, removal, Zeus).
    • Found in testing, fixed, to retest:
      • pylons didn't save (the pylon objects were sent along; 76a012f);
      • grad_trenches on a slope loaded buried (tilted before placing at ground level; 6062939);
      • kits missed optics and accessories in a switched state (the save sends their base items; 6062939, with Minotaur).
    • Still to test:
      • the Shooting Range;
      • vehicles saved before the rework;
      • customization;
      • nothing removed at the mission end;
      • the vehicle settings;
      • the team colour on reconnect;
      • the map change reset;
      • the Armory pad as text (section 10; the buttons and main menu layout were seen in game).

🤖 Generated with Claude Code

jonpas and others added 11 commits November 11, 2026 06:13
New tac_apollo_server extension (Rust) replaces the jni extension and
Apollo.jar on game servers, keeping Apollo's commands and replies.
tac_apollo_client reads from Minotaur's game API (version 1.1.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… at /apollo/v1/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
apollo-client asks www.theseus-aegis.com, or srv.theseus-aegis.com/minotaur on test (debug)
servers; items and trainings now get the debug flag too. apollo-server uses the live website,
or the development one with debug = true; url still overrides. api.theseus-aegis.com is no
longer used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Armory's Kits button (row 2, Chronos only) lists the player's kits in the dropdown (Ready or
N missing) and the selected kit's items (in locker / in kit, short ones in red); Take kit takes
of each item what the locker has into the box. apollo-client 1.2.0 adds loadKits (Minotaur's
client/<player>/kits), apollo-server 1.1.0 adds lockerTakeKit (server/kits/<player>, through
the locker queue as lockerAction). The button and title pictures are placeholders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re the owner claims the items

- Apollo: the death's key and the loadout at the moment of death are kept on the body and sent with
  the death (fnc_getLoadout shared with saving); fnc_bodybagReturn counts the bag, caps it by what
  went in, sends it (bodybagReturn), deletes it and hints what can be claimed.
- Bodybag: the owner on the body and the bag, the record of what went in, "Return to owner (name)"
  within the return distance (setting, 30 m) of a Locker or Armory object.
- Armory: objects set up with fnc_init are registered (tac_armory_objects).
- apollo-server 1.2.0: playerDied with the key and loadout, bodybagReturn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed them)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es need), dependencies updated (reqwest 0.13, arma-rs 1.13), no lazy_static or static mut; no more x86 builds (Arma 3 dropped 32-bit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, zeroing, safety) across missions; group, team, vehicle seat, ACE medical and ACRE radios kept for the mission on reconnect; vehicles' ACE cargo

- getVariables/setVariables (client): sent with every save and the death, put back on load (earplugs and the gunbag's weapon through CBA's extended loadout, the insignia, then zeroing and safety on the same weapon). The earplug workaround in getLoadout is gone.
- runtimeSave/runtimeApply: rewritten from apollo-back-to-vehicle: kept on disconnect only, cleared at death, applied on the player's machine (same seat, else any free one). getRadios/setRadios: ACRE settings matched by base class and order.
- vehicleSingletonSave: ACE cargo (class names, and loaded objects with their inventory), from apollo-vehicle-cargo.
- Bodybag: earplugs in the ears and the gunbag's weapon go into the bag.
- Extension: playerDied takes the variables, storeVehicle the ACE cargo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and ACE's sources

- currentZeroing [weapon, muzzle] returns [distance, step]: keep the distance (not the array, which the website dropped), skip a laser rangefinder's (step -1); setWeaponZeroing's false ends the step search.
- BIS_fnc_getUnitInsignia takes [unit]; BIS_fnc_setUnitInsignia_class is cleared first, or the insignia isn't put back on the new uniform (as ACE Arsenal does).
- The gunbag's weapon weight is added back on load: ACE's loadout hook doesn't, and taking the weapon out subtracts it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ssions, its elevation and windage dials only for the mission

- getVariables: each muzzle's zeroing (ace_common_fnc_getWeaponMuzzles) with its display name, and ACE's zero reference; setVariables puts each back (the step, else the step at that distance; the main muzzle and the zero reference only with the same optic).
- getScopeDials: elevation and windage per slot with the weapon, optic and zeroing mode; sent with each save, kept on disconnect with the runtime data, put back on reconnect.
- setScopeAdjustment: writes a slot's ACE values within the optic's turret limits (as ACE checks its own saved zero).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s only from the environment, client log tac_apollo_client.log, apollo-client tests

- Both extensions: the live and development websites default to the usual ones and can be
  overridden by APOLLO_URL and APOLLO_DEBUG_URL; each adds its own /apollo/v1/client or
  /apollo/v1/server. A server picks with APOLLO_SERVER_DEBUG, the client by the call's debug.
  On a server only APOLLO_SERVER_TOKEN is required.
- apollo-server: apollo-server.cfg and APOLLO_SERVER_URL are gone (servers run in Docker).
- apollo-client: logs to logs/tac_apollo_client.log; an unreadable response or a second
  logger setup no longer panics; tests for the addresses, direct and queued (multi-part)
  responses, non-ASCII replacement, an unreachable website and the commands.
- Versions 1.3.0 (client and server).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonpas and others added 10 commits November 19, 2026 13:30
…ns back to client 1.1.0 / server 1.0.0

- Both extensions use the development website by default (a local server and testing without a
  server included); only APOLLO_SERVER_LIVE=true on the live server picks the live one.
  APOLLO_URL / APOLLO_DEBUG_URL are now APOLLO_LIVE_URL / APOLLO_DEV_URL.
- apollo-server: getApi ("live" or "dev"); the server shares it as tac_apollo_liveApi (false until
  then) and players' apollo-client calls take it after debug (which still picks a test server's
  lockers and saves on the website).
- Versions are changed by hand for releases: apollo-client 1.1.0, apollo-server 1.0.0.
- README: no more jni / Apollo.jar notes; both extensions live in the mod folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…llo.jar mentions

- The development website is the test website, so its data is all for testing: Minotaur no
  longer keeps test servers' lockers and saves apart. apollo-client's calls drop `debug` (and
  ?debug=), taking only `live`; tac_apollo_isDebug is gone.
- apollo-server: getServerType is gone (Minotaur's GET server with it).
- Comments no longer mention jni and Apollo.jar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CBA settings: keep CBA's userconfig prefix (ignore_pboprefix)
- Fire Support: sort the stringtable
- Display3DEN casing
- Shooting Range: pushBackUnique
- Mission Autotest: count groups by side without countSide, which counts units only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its version on load

aws-lc's C code, built on a new glibc, needed glibc 2.38, so tac_apollo_server
could not be loaded on servers with glibc 2.36. Both extensions now need at most
glibc 2.34, using OpenSSL 3 on Linux and schannel on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nchers button

- The server stashes the fullest magazines first and sends the rounds of the partly used ones
  among them; apollo-server's lockerAction takes them as a new last argument (the website removes
  exactly those from the box and gives them back first, the emptiest first).
- The Launchers button is hidden while none are sold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tic weapons, round-trip test

- storeVehicle sends one [key, value] array, passed through by apollo-server as it is, so new
  vehicle data needs no new extension; removeVehicle goes through the same background queue.
- Saved: cargo with containers (backpacks, uniforms, vests) and magazine rounds, turret
  magazines, pylons, ACE fuel and ammo truck supply, the vehicle's tilt, trench dig progress;
  ACE cargo objects with their persistent ID.
- Persistent vehicles are registered in one place (registerVehicle, a hash map of ID to object,
  also for the Zeus module); a vehicle that's gone is removed from Chronos at the next save
  round, so nothing is removed when the mission ends.
- A vehicle loaded as ACE cargo isn't saved on its own.
- Static weapons players deploy (ACE CSW, vanilla assembly) are persistent until packed up.
- testVehicleRoundTrip: save, delete, load and compare one vehicle (test servers).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re merging are

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonpas and others added 10 commits November 23, 2026 14:20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a; removal on deletion

- fnc_vehicleSingletonLoad joins the pieces Minotaur sends, reads them with parseSimpleArray
  and makes the vehicle (spawn height and lift, customization, cargo via fnc_setCargo, ACE cargo,
  pylons with JIP, turrets after ACE CSW, ACE fuel/ammo, damage, lock, trench progress).
  Nothing from the website is compiled any more.
- Saves customization as BIS_fnc_getVehicleCustomization's data.
- fnc_registerVehicle adds a Deleted handler: removed from Chronos a second later, if still
  registered and gone (a mission ending runs no more timers); the save round is the fallback.
- Locker: fnc_lockerAction removes what was stashed itself, takes and kits add Minotaur's
  [class, count, rounds] entries (fnc_lockerQueue, fnc_boxCargo by item type).
- Round-trip test compares hit points, lock, static height and tilt, ACE fuel/ammo, customization
  too, and keeps loaded persistent cargo registered while it runs.
- apollo-server: comments and its integration test for data replies (no behaviour change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…istence part; ACE magazine supply

- fnc_handleKilled sends playerDied with the UID at once; the respawn (playerRespawned) only
  reloads the player, registering the death from the corpse if the killed event didn't.
  Leaving while dead saves nothing and leaves the corpse for its bodybag.
- CBA settings (TAC Apollo › Vehicles): objects that aren't vehicles (trenches), static weapons,
  turret ammo, pylons, ACE cargo, ACE fuel and ammo supply; each off is neither saved nor loaded.
- ACE ammo trucks with "only specific magazines" keep their magazines (ace_ammo_magazines);
  limited supply restored only while ACE's setting still matches. Round-trip test compares both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Stash All (Stash screen, Chronos): one server event; fnc_lockerStashAll empties backpacks,
  vests and uniforms into the box, then stashes each class with fnc_lockerAction (weapons first),
  one refresh and a hint of what the locker refused. getStashVariant shared with single stashes;
  lockerAction returns whether it was done and can skip its own notify.
- fnc_registerPlaced: trenches (ace_trenches_placed), ACE fortify objects, ACE sandbags and
  tripods (class init), deployed static weapons, each with its setting, a second after placing.
- Settings: objects are anything not AllVehicles; static weapons include ACE CSW tripods.
- READMEs for the apollo and armory addons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…erver reset texts updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
getAllPylonsInfo's pylon object made the saved data unreadable for Minotaur.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonpas jonpas changed the title Apollo Server: Chronos persistence through Minotaur's game API Apollo/Armory - Chronos through Minotaur's game API and Apollo Rework Nov 24, 2026
@jonpas jonpas changed the title Apollo/Armory - Chronos through Minotaur's game API and Apollo Rework Persistence - Chronos via Minotaur's game API and Apollo Rework Nov 24, 2026
jonpas and others added 15 commits November 24, 2026 13:58
…t base items

- A grad_trenches trench is tilted, then placed at ATL height 0, as grad_trenches does; tilted
  after placing, one on a slope loaded buried.
- getVariables sends base_items: [class, base] for loadout items in another state
  (tac_armory_fnc_getBaseVariant), so Minotaur's kits count them as their item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Each button is its label in Arma's LCD14 font (no shadow) over one frame picture
  (btnFrame.paa, cut from the old art), set with setButton; titles and Amount are text.
- Labels and titles come from the stringtable; Kits gets its own label and title.
- Stash All moved between Back and Stash (PIC_X + 0.18): it overlapped Stash.
- 24 text pictures removed; the pad and the camera and export icons stay pictures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only Rifles, to compare in game with the other buttons' btnFrame.paa; setButton leaves a
frame control's text empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setButton takes the label and tooltip as text (LLSTRING at the call); the category titles come
from a hashmap of LLSTRINGs instead of a key built at runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tics without ST_VCENTER, Chronos error text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emove btnFrame.paa and picture leftovers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd empty lists as messages on the pad

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he pad

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… after any click)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o/Attachments, Items/Insignias, then Kits/Stash

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TAKE (with the amount) is where Take/Stash is, and TAKE KIT where Stash All is, as on the Stash screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… text); no kits loaded in single player

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LCD14 has mismatched size on certain characters, switched to PuristaBold. Fits nicely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apollo Rework

2 participants