Move Aetheria simulation tuning into daemon authority
This commit is contained in:
parent
403913e899
commit
70607384fc
12 changed files with 449 additions and 121 deletions
|
|
@ -264,7 +264,8 @@ export type AetheriaRuntimeDaemonFrameDocumentSlot =
|
|||
| "duplicateImportedFactIds"
|
||||
| "cumulativeImportedFactIds"
|
||||
| "cumulativeRejectedImportedFactIds"
|
||||
| "renderSettings";
|
||||
| "renderSettings"
|
||||
| "simulationSettings";
|
||||
|
||||
export const aetheriaRuntimeDaemonFrameDocumentSlots: Record<AetheriaRuntimeDaemonFrameDocumentSlot, number> = {
|
||||
schema: 0,
|
||||
|
|
@ -289,6 +290,7 @@ export const aetheriaRuntimeDaemonFrameDocumentSlots: Record<AetheriaRuntimeDaem
|
|||
cumulativeImportedFactIds: 19,
|
||||
cumulativeRejectedImportedFactIds: 20,
|
||||
renderSettings: 21,
|
||||
simulationSettings: 22,
|
||||
};
|
||||
|
||||
export type AetheriaRuntimeDaemonHealthDocumentSlot =
|
||||
|
|
|
|||
|
|
@ -93,9 +93,9 @@ app.whenReady().then(async () => {
|
|||
rtsVerseId,
|
||||
"--daemon-id",
|
||||
rtsDaemonId,
|
||||
"--rts-cultmesh-port",
|
||||
"--client-cultmesh-port",
|
||||
rtsCultMeshPort.toString(),
|
||||
"--rts-cultmesh-advertise-host",
|
||||
"--client-cultmesh-advertise-host",
|
||||
rtsCultMeshAdvertiseHost,
|
||||
"--tick-interval-ms",
|
||||
"20",
|
||||
|
|
@ -536,7 +536,7 @@ function stringOr(value: unknown, fallback: string): string {
|
|||
|
||||
function requireClient(): AetheriaCultMeshClient {
|
||||
if (!rtsClient)
|
||||
throw new Error("Aetheria RTS CultMesh client is not initialized.");
|
||||
throw new Error("Aetheria CultMesh client is not initialized.");
|
||||
return rtsClient;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ try {
|
|||
$daemonOutput = dotnet run --project (Join-Path $repoRoot "Aetheria.State.Daemon\Aetheria.State.Daemon.csproj") -- `
|
||||
--state $statePath `
|
||||
--once `
|
||||
--rts-cultmesh-port 0 2>&1
|
||||
--client-cultmesh-port 0 2>&1
|
||||
}
|
||||
finally {
|
||||
$ErrorActionPreference = $previousErrorActionPreference
|
||||
|
|
@ -32,12 +32,12 @@ try {
|
|||
}
|
||||
|
||||
foreach ($line in $daemonOutput) {
|
||||
if ($line -match "Aetheria RTS CultMesh endpoint: (rudp://127\.0\.0\.1:\d+)") {
|
||||
if ($line -match "Aetheria client CultMesh endpoint: (rudp://127\.0\.0\.1:\d+)") {
|
||||
$endpoint = $Matches[1]
|
||||
}
|
||||
}
|
||||
if ([string]::IsNullOrWhiteSpace($endpoint)) {
|
||||
Write-Error "Stage 7C verifier failed: one-shot daemon did not report an RTS CultMesh endpoint."
|
||||
Write-Error "Stage 7C verifier failed: one-shot daemon did not report a client CultMesh endpoint."
|
||||
}
|
||||
|
||||
$smokeScript = Join-Path $tempRoot "stage7c-smoke.mjs"
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ try {
|
|||
"--",
|
||||
"--state",
|
||||
$statePath,
|
||||
"--rts-cultmesh-host",
|
||||
"--client-cultmesh-host",
|
||||
"127.0.0.1",
|
||||
"--rts-cultmesh-port",
|
||||
"--client-cultmesh-port",
|
||||
$port,
|
||||
"--tick-interval-ms",
|
||||
"20",
|
||||
|
|
|
|||
Loading…
Reference in a new issue