Enable bundled AMMC tools and document decoder simulation

This commit is contained in:
larssand
2026-09-02 21:13:49 +02:00
parent 9aeb638211
commit f2ba4b3c7b
14 changed files with 123 additions and 29 deletions

View File

@@ -240,6 +240,7 @@ flowchart LR
Postinstall --> SQLite[SQLite in-memory query]
Postinstall --> AMMC[Platform AMMC runtime check]
AMMC --> Glibc[Linux x64 GLIBC >= 2.39 warning]
AMMC --> Sim[ammc-sim fake decoder test source]
SetupPs --> ServerCtl[scripts/serverctl.js]
```
@@ -248,7 +249,8 @@ Important constraints:
- `better-sqlite3` is pinned to v12.11.x because its prebuilt Windows binary works with the supported Node.js releases; npm 12 is permitted to run only this dependency installer through `package.json#allowScripts`
- `npm ci --ignore-scripts` is unsupported because it leaves the native SQLite binding uninstalled
- AMMC Windows binaries and DLLs must remain together in `AMMC\\windows64`
- the bundled Linux x86-64 AMMC requires GLIBC 2.39+; `verify-install.js` reports host compatibility and executable permission without blocking the RC RaceCore server
- all bundled Linux x86-64 AMMC programs require GLIBC 2.39+; `verify-install.js` checks every program's executable permission and reports host compatibility without blocking the RC RaceCore server
- `ammc-sim` emulates a physical decoder for test passings; its output must still pass through `ammc-amb` and the normal WebSocket, validation, timing, and persistence flow
- `npm start` is already a background start; batch wrappers must not create a second detached npm process
- server process identity is stored in `data\\server.pid`
- Windows stdout/stderr use `logs\\server.out.log` and `logs\\server.err.log`