@wildshard/engine 0.0.1 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +128 -0
- package/budgets/calibration/m5-2026-10-01T08-07-18-573Z.json +3985 -0
- package/budgets/calibration/m5-2026-10-01T22-02-53-510Z.json +4473 -0
- package/budgets/calibration-reports/README.md +25 -0
- package/budgets/calibration-reports/_template.desktop.json +1994 -0
- package/budgets/calibration-reports/_template.phone.json +2069 -0
- package/budgets/calibration-reports/assessment.json +571 -0
- package/budgets/calibration-reports/driftwood-isle.phone.json +72 -0
- package/budgets/calibration-reports/far-reach.desktop.json +73158 -0
- package/budgets/calibration-reports/far-reach.phone.json +73086 -0
- package/budgets/calibration-reports/nalati-grasslands-x22.desktop.json +19525 -0
- package/budgets/calibration-reports/nalati-grasslands.phone.json +72 -0
- package/budgets/calibration-reports/nine-dragon-stack-g224.desktop.json +146 -0
- package/budgets/calibration-reports/nine-dragon-stack.phone.json +89 -0
- package/budgets/calibration-reports/pine-hollow.desktop.json +54949 -0
- package/budgets/calibration-reports/pine-hollow.phone.json +72 -0
- package/budgets/calibration-reports/sunscar-dunes.desktop.json +7788 -0
- package/budgets/calibration-reports/sunscar-dunes.phone.json +9378 -0
- package/budgets/calibration.json +4473 -0
- package/budgets/ceiling-re-records.json +71 -0
- package/budgets/ceiling-sources.json +5985 -0
- package/budgets/desktop-reference.json +7 -0
- package/budgets/g224-ceiling-re-record.json +15 -0
- package/budgets/grid-strip-room.json +9 -0
- package/budgets/nalati-ceiling-sources.json +44 -0
- package/budgets/shard-size-baseline.json +552 -0
- package/budgets/x22-ceiling-re-record.json +15 -0
- package/budgets/x7-ceiling-sources.json +41 -0
- package/index.html +622 -0
- package/lint/api-undocumented.json +7 -0
- package/lint/authored-html.d.mts +4 -0
- package/lint/authored-html.mjs +313 -0
- package/lint/base64-debt.json +18 -0
- package/lint/class-moves.json +4 -0
- package/lint/client-plan-boundary.d.mts +2 -0
- package/lint/client-plan-boundary.mjs +102 -0
- package/lint/debug-flags.d.mts +5 -0
- package/lint/debug-flags.mjs +190 -0
- package/lint/declaration-config.d.mts +2 -0
- package/lint/declaration-config.mjs +19 -0
- package/lint/edge-exemptions.json +6 -0
- package/lint/engine-internal.json +26 -0
- package/lint/engine-side-edges.json +5 -0
- package/lint/engine-sides.d.mts +30 -0
- package/lint/engine-sides.json +1794 -0
- package/lint/engine-sides.mjs +269 -0
- package/lint/engine-words.json +7 -0
- package/lint/exec-max-buffer.mjs +88 -0
- package/lint/generated-import-debt.json +117 -0
- package/lint/generated-source-debt.json +1029 -0
- package/lint/host-callback-syntax.d.mts +4 -0
- package/lint/host-callback-syntax.mjs +62 -0
- package/lint/host-callbacks.d.mts +6 -0
- package/lint/host-callbacks.mjs +123 -0
- package/lint/host-files.d.mts +1 -0
- package/lint/host-files.mjs +7 -0
- package/lint/host-reviews.json +14 -0
- package/lint/layer-edges.json +15 -0
- package/lint/layer-exports.d.mts +2 -0
- package/lint/layer-exports.mjs +23 -0
- package/lint/legacy-line-basis.json +995 -0
- package/lint/listed-view-code.json +13 -0
- package/lint/manifest-closure-budget.json +6 -0
- package/lint/nine-tiling-baseline.json +35 -0
- package/lint/no-base64.d.mts +19 -0
- package/lint/no-base64.mjs +112 -0
- package/lint/no-binary-json.json +174 -0
- package/lint/no-generated-import.d.mts +22 -0
- package/lint/no-generated-import.mjs +114 -0
- package/lint/page-events.json +895 -0
- package/lint/platform-pending-users.json +2520 -0
- package/lint/platform-pending-users.md +18 -0
- package/lint/ratchet-files.d.mts +2 -0
- package/lint/ratchet-files.mjs +45 -0
- package/lint/ratchet.json +230 -0
- package/lint/ratchet.mjs +212 -0
- package/lint/recorded-debt.mjs +24 -0
- package/lint/row-functions.json +173 -0
- package/lint/runtime-files.d.mts +12 -0
- package/lint/runtime-files.json +16 -0
- package/lint/runtime-files.mjs +69 -0
- package/lint/runtime-performance.d.mts +6 -0
- package/lint/runtime-performance.json +14 -0
- package/lint/runtime-performance.mjs +184 -0
- package/lint/schema-types.d.mts +9 -0
- package/lint/schema-types.mjs +114 -0
- package/lint/shard-coupling.json +333 -0
- package/lint/shard-imports.d.mts +5 -0
- package/lint/shard-imports.mjs +43 -0
- package/lint/shard-layout.json +64 -0
- package/lint/shard-platform.json +24 -0
- package/lint/shard-words.pin.json +421 -0
- package/lint/shardfile-boundaries.d.mts +10 -0
- package/lint/shardfile-boundaries.mjs +122 -0
- package/lint/sim-closure.d.mts +3 -0
- package/lint/sim-closure.json +3 -0
- package/lint/sim-closure.mjs +112 -0
- package/lint/sim-players.json +17 -0
- package/lint/sim-schema-leaves.json +1 -0
- package/lint/source-stamps.mjs +12 -0
- package/lint/syntax-values.mjs +299 -0
- package/lint/tile-bake-debt.json +556 -0
- package/lint/url-params.json +48 -0
- package/lint/weapon-subclasses.json +4 -0
- package/lint/wildshard-plugin.d.ts +13 -0
- package/lint/wildshard-plugin.js +1196 -0
- package/package.json +1298 -3
- package/scripts/agent-parity.mjs +1524 -0
- package/scripts/agent-sync.mjs +518 -0
- package/scripts/agent-time.py +475 -0
- package/scripts/apfs-clone.mjs +67 -0
- package/scripts/api-origin.d.mts +3 -0
- package/scripts/api-origin.mjs +38 -0
- package/scripts/app-build/appCook.ts +19 -0
- package/scripts/app-build/assetHashes.ts +57 -0
- package/scripts/app-build/assetLimits.d.mts +15 -0
- package/scripts/app-build/assetLimits.mjs +61 -0
- package/scripts/app-build/assetTables.d.mts +19 -0
- package/scripts/app-build/assetTables.mjs +68 -0
- package/scripts/app-build/audioPacks.ts +41 -0
- package/scripts/app-build/bakedTextures.d.mts +2 -0
- package/scripts/app-build/bakedTextures.mjs +59 -0
- package/scripts/app-build/basis.ts +25 -0
- package/scripts/app-build/bootExtras.ts +127 -0
- package/scripts/app-build/bootModules.ts +271 -0
- package/scripts/app-build/bootProductTiers.ts +48 -0
- package/scripts/app-build/bootProducts.ts +67 -0
- package/scripts/app-build/buildIdentity.d.mts +16 -0
- package/scripts/app-build/buildIdentity.mjs +89 -0
- package/scripts/app-build/catalogue.ts +216 -0
- package/scripts/app-build/chunkReport.d.mts +3 -0
- package/scripts/app-build/chunkReport.mjs +29 -0
- package/scripts/app-build/contentBase.d.mts +2 -0
- package/scripts/app-build/contentBase.mjs +34 -0
- package/scripts/app-build/controlChunks.ts +106 -0
- package/scripts/app-build/crossroadsRig.ts +17 -0
- package/scripts/app-build/doctorOutput.mjs +19 -0
- package/scripts/app-build/finalChunkNames.d.mts +3 -0
- package/scripts/app-build/finalChunkNames.mjs +94 -0
- package/scripts/app-build/gen.ts +100 -0
- package/scripts/app-build/gridSeams.d.mts +16 -0
- package/scripts/app-build/gridSeams.mjs +95 -0
- package/scripts/app-build/homeIcons.d.mts +20 -0
- package/scripts/app-build/homeIcons.mjs +64 -0
- package/scripts/app-build/importMap.d.mts +7 -0
- package/scripts/app-build/importMap.mjs +102 -0
- package/scripts/app-build/noTopLevelAwait.d.mts +4 -0
- package/scripts/app-build/noTopLevelAwait.mjs +36 -0
- package/scripts/app-build/outputProducts.d.mts +10 -0
- package/scripts/app-build/outputProducts.mjs +114 -0
- package/scripts/app-build/previousDeploy.d.mts +24 -0
- package/scripts/app-build/previousDeploy.mjs +245 -0
- package/scripts/app-build/serviceWorker.ts +145 -0
- package/scripts/app-build/splitOutput.d.mts +6 -0
- package/scripts/app-build/splitOutput.mjs +98 -0
- package/scripts/app-build/standaloneOutput.d.mts +4 -0
- package/scripts/app-build/standaloneOutput.mjs +31 -0
- package/scripts/app-build/validationReceipts.d.mts +2 -0
- package/scripts/app-build/validationReceipts.mjs +25 -0
- package/scripts/app-build/versionFiles.ts +20 -0
- package/scripts/app-build/worldMapAtlas.ts +62 -0
- package/scripts/app-build/writtenBundle.ts +51 -0
- package/scripts/app-build-pipeline-proof.mjs +67 -0
- package/scripts/app-build-pipeline.mjs +274 -0
- package/scripts/assert-store-layout.mjs +17 -0
- package/scripts/author-bundle-cache.d.mts +1 -0
- package/scripts/author-bundle-cache.mjs +137 -0
- package/scripts/author-bundle-usage.d.mts +3 -0
- package/scripts/author-bundle-usage.mjs +20 -0
- package/scripts/authored-manifest.d.mts +7 -0
- package/scripts/authored-manifest.mjs +217 -0
- package/scripts/authoring-inputs.d.mts +8 -0
- package/scripts/authoring-inputs.mjs +104 -0
- package/scripts/bake-grid-seams.mjs +110 -0
- package/scripts/bake-input-hashes.d.mts +6 -0
- package/scripts/bake-input-hashes.mjs +59 -0
- package/scripts/bake-loader.mjs +105 -0
- package/scripts/bake-output.d.mts +29 -0
- package/scripts/bake-output.mjs +84 -0
- package/scripts/bench-load.mjs +391 -0
- package/scripts/boot-dist-plan.mjs +47 -0
- package/scripts/boot-dist.py +251 -0
- package/scripts/boot-pack-parts.d.mts +2 -0
- package/scripts/boot-pack-parts.mjs +51 -0
- package/scripts/boot-publication-proof.d.mts +2 -0
- package/scripts/boot-publication-proof.mjs +64 -0
- package/scripts/boot-publication.d.mts +19 -0
- package/scripts/boot-publication.generated.json +3684 -0
- package/scripts/boot-publication.mjs +100 -0
- package/scripts/boot-temp-warn.sh +70 -0
- package/scripts/boot-timing-proof.mjs +264 -0
- package/scripts/browser-lane.sh +288 -0
- package/scripts/browser-slot-lock.py +49 -0
- package/scripts/budget-ceilings.mjs +88 -0
- package/scripts/budget-ratchet.d.mts +1 -0
- package/scripts/budget-ratchet.mjs +8 -0
- package/scripts/build-app.mjs +49 -0
- package/scripts/build-cache-report.d.mts +20 -0
- package/scripts/build-cache-report.mjs +104 -0
- package/scripts/build-mirror.d.mts +24 -0
- package/scripts/build-mirror.mjs +387 -0
- package/scripts/build-server.mjs +47 -0
- package/scripts/build-without-browser.mjs +14 -0
- package/scripts/built-product.d.mts +22 -0
- package/scripts/built-product.mjs +187 -0
- package/scripts/calibrate.mjs +43 -0
- package/scripts/capture-main-menu-hero.mjs +457 -0
- package/scripts/catalogue-all-heads.ts +35 -0
- package/scripts/changelog.d.mts +18 -0
- package/scripts/changelog.mjs +129 -0
- package/scripts/chaos-proxy-core.mjs +978 -0
- package/scripts/chaos-proxy-proof.mjs +1130 -0
- package/scripts/chaos-proxy.mjs +68 -0
- package/scripts/chaos-router.mjs +107 -0
- package/scripts/chaos-rules.mjs +197 -0
- package/scripts/check-chunks.d.mts +8 -0
- package/scripts/check-chunks.mjs +143 -0
- package/scripts/check-closed-components.d.mts +7 -0
- package/scripts/check-closed-components.mjs +87 -0
- package/scripts/check-css.mjs +235 -0
- package/scripts/check-custom-sections-zero.d.mts +2 -0
- package/scripts/check-custom-sections-zero.mjs +43 -0
- package/scripts/check-devserver.d.mts +2 -0
- package/scripts/check-devserver.mjs +29 -0
- package/scripts/check-engine-sides.mjs +85 -0
- package/scripts/check-graph.d.mts +9 -0
- package/scripts/check-graph.mjs +217 -0
- package/scripts/check-listeners.mjs +122 -0
- package/scripts/check-model-sources.mjs +106 -0
- package/scripts/check-models.d.mts +22 -0
- package/scripts/check-models.mjs +367 -0
- package/scripts/check-page-events.mjs +386 -0
- package/scripts/check-paths.allow.json +1282 -0
- package/scripts/check-paths.mjs +97 -0
- package/scripts/check-platform-ratchets.d.mts +7 -0
- package/scripts/check-platform-ratchets.mjs +297 -0
- package/scripts/check-shards.d.mts +5 -0
- package/scripts/check-shards.mjs +101 -0
- package/scripts/check-sim-players.mjs +82 -0
- package/scripts/check-spelled-paths.d.mts +1 -0
- package/scripts/check-spelled-paths.mjs +34 -0
- package/scripts/chromium-keychain-check.mjs +140 -0
- package/scripts/chromium-keychain.d.mts +1 -0
- package/scripts/chromium-keychain.mjs +5 -0
- package/scripts/chromium-memory-browser.d.mts +4 -0
- package/scripts/chromium-memory-browser.mjs +52 -0
- package/scripts/ci-bisect.py +91 -0
- package/scripts/ci-browser.sh +45 -0
- package/scripts/ci-checks.d.mts +2 -0
- package/scripts/ci-checks.mjs +94 -0
- package/scripts/ci-disk-census.py +58 -0
- package/scripts/ci-docs-proof.mjs +84 -0
- package/scripts/ci-exact-reuse.d.mts +3 -0
- package/scripts/ci-exact-reuse.mjs +73 -0
- package/scripts/ci-generated-manifest.sh +18 -0
- package/scripts/ci-native-fixtures.mjs +36 -0
- package/scripts/ci-pack.d.mts +14 -0
- package/scripts/ci-pack.mjs +231 -0
- package/scripts/ci-playwright-install.sh +11 -0
- package/scripts/ci-product-cache.d.mts +2 -0
- package/scripts/ci-product-cache.mjs +57 -0
- package/scripts/ci-products.py +285 -0
- package/scripts/ci-proof-jobs.d.mts +3 -0
- package/scripts/ci-proof-jobs.mjs +34 -0
- package/scripts/ci-selection.mjs +63 -0
- package/scripts/ci-shard-wall-proof.mjs +26 -0
- package/scripts/ci-shard-wall.mjs +35 -0
- package/scripts/ci-static.sh +63 -0
- package/scripts/commit.sh +305 -0
- package/scripts/commit_lane.py +42 -0
- package/scripts/committed-fast-checks.mjs +262 -0
- package/scripts/committed-source-tables.mjs +47 -0
- package/scripts/compare-platform-steps.mjs +15 -0
- package/scripts/compiler-code.d.mts +3 -0
- package/scripts/compiler-code.mjs +69 -0
- package/scripts/complete-at-control-snapshot.mjs +297 -0
- package/scripts/complete-at-control.mjs +580 -0
- package/scripts/content-base-proof.mjs +158 -0
- package/scripts/content-sw-proof.mjs +215 -0
- package/scripts/cook-admission-proof.mjs +42 -0
- package/scripts/cook-audit.ts +57 -0
- package/scripts/cook-job.mjs +32 -0
- package/scripts/cook-parts-report.mjs +34 -0
- package/scripts/cook-revision.ts +60 -0
- package/scripts/cook-to-play.mjs +96 -0
- package/scripts/cook-worker.mjs +78 -0
- package/scripts/cook-worker.service +5 -0
- package/scripts/cook.mjs +19 -0
- package/scripts/core-heap-diagnostic.d.mts +21 -0
- package/scripts/core-heap-diagnostic.mjs +52 -0
- package/scripts/cpu-admission-proof.mjs +55 -0
- package/scripts/cpu-admission.mjs +32 -0
- package/scripts/cpu-admission.py +243 -0
- package/scripts/cpu-broker-proof.mjs +96 -0
- package/scripts/cpu-broker.mjs +56 -0
- package/scripts/cpu-broker.py +119 -0
- package/scripts/cpu-census-proof.py +193 -0
- package/scripts/cpu-census.py +374 -0
- package/scripts/crossroads-proof.mjs +32 -0
- package/scripts/crossroads-rig/core.d.ts +16 -0
- package/scripts/crossroads-rig/core.js +417 -0
- package/scripts/crossroads-rig/desktop-probe.mjs +163 -0
- package/scripts/crossroads-rig/index.html +21 -0
- package/scripts/crossroads-rig/phone.js +74 -0
- package/scripts/crossroads-rig/production-probe.mjs +160 -0
- package/scripts/crossroads-rig/production.html +23 -0
- package/scripts/crossroads-rig/production.md +28 -0
- package/scripts/crossroads-rig/rig.js +36 -0
- package/scripts/crossroads-rig/sim-probe.mjs +217 -0
- package/scripts/crossroads-rig/stage.sh +11 -0
- package/scripts/crossroads-smoke.mjs +83 -0
- package/scripts/debug-settings.d.mts +24 -0
- package/scripts/debug-settings.mjs +80 -0
- package/scripts/decision-legacy-lines.d.mts +4 -0
- package/scripts/decision-legacy-lines.mjs +30 -0
- package/scripts/deck-skip-proof.mjs +63 -0
- package/scripts/deny-browser.mjs +11 -0
- package/scripts/docs-inputs-proof.mjs +31 -0
- package/scripts/doctor-proof.mjs +186 -0
- package/scripts/dome-cameras.d.mts +27 -0
- package/scripts/dome-cameras.mjs +77 -0
- package/scripts/download-bench/link.mjs +101 -0
- package/scripts/e2e-client.mjs +153 -0
- package/scripts/e2e-offline.sh +9 -0
- package/scripts/e2e-paths.mjs +31 -0
- package/scripts/e2e-watcher.mjs +191 -0
- package/scripts/e7-doctor-proof.mjs +61 -0
- package/scripts/e7-doctor-request-proof.mjs +179 -0
- package/scripts/e7-doctor-worker-proof.mjs +221 -0
- package/scripts/e7-live-staging-proof.mjs +72 -0
- package/scripts/e7-playtest-table.mjs +67 -0
- package/scripts/e7-records-proof.mjs +17 -0
- package/scripts/e7-voice-staging-proof.mjs +94 -0
- package/scripts/engine-ci-budget.ts +39 -0
- package/scripts/engine-ci-membership-proof.ts +26 -0
- package/scripts/engine-ci-plan.ts +120 -0
- package/scripts/engine-ci-proof.mjs +41 -0
- package/scripts/engine-ci-sequencer.ts +18 -0
- package/scripts/engine-ci-shard.mjs +28 -0
- package/scripts/engine-ci.config.ts +17 -0
- package/scripts/engine-order-proof.mjs +41 -0
- package/scripts/environment-boundary-proof.mjs +28 -0
- package/scripts/fetch-assets.mjs +76 -0
- package/scripts/format-hook.mjs +20 -0
- package/scripts/format-lock.d.mts +6 -0
- package/scripts/format-lock.mjs +120 -0
- package/scripts/format-package.d.mts +4 -0
- package/scripts/format-package.mjs +12 -0
- package/scripts/frame-cost-report.ts +85 -0
- package/scripts/frame-floor-args.d.mts +14 -0
- package/scripts/frame-floor-args.mjs +156 -0
- package/scripts/frame-floor-buffer-pressure.d.mts +3 -0
- package/scripts/frame-floor-buffer-pressure.mjs +91 -0
- package/scripts/frame-floor-draw-report.d.mts +38 -0
- package/scripts/frame-floor-draw-report.mjs +112 -0
- package/scripts/frame-floor-gl-time.d.mts +4 -0
- package/scripts/frame-floor-gl-time.mjs +104 -0
- package/scripts/frame-floor-gpu-bisect.mjs +120 -0
- package/scripts/frame-floor-grid.d.mts +67 -0
- package/scripts/frame-floor-grid.mjs +552 -0
- package/scripts/frame-floor-inventory.d.mts +2 -0
- package/scripts/frame-floor-inventory.mjs +10 -0
- package/scripts/frame-floor-jsc-gc.d.mts +15 -0
- package/scripts/frame-floor-jsc-gc.mjs +122 -0
- package/scripts/frame-floor-native-pressure.d.mts +4 -0
- package/scripts/frame-floor-native-pressure.mjs +78 -0
- package/scripts/frame-floor-native.mjs +108 -0
- package/scripts/frame-floor-navigation.d.mts +12 -0
- package/scripts/frame-floor-navigation.mjs +41 -0
- package/scripts/frame-floor-pause-ablation.d.mts +15 -0
- package/scripts/frame-floor-pause-ablation.mjs +90 -0
- package/scripts/frame-floor-pending.d.mts +16 -0
- package/scripts/frame-floor-pending.mjs +29 -0
- package/scripts/frame-floor-programs.mjs +39 -0
- package/scripts/frame-floor-report-phase.d.mts +10 -0
- package/scripts/frame-floor-report-phase.mjs +41 -0
- package/scripts/frame-floor-script-profile.d.mts +20 -0
- package/scripts/frame-floor-script-profile.mjs +159 -0
- package/scripts/frame-floor-settings.d.mts +6 -0
- package/scripts/frame-floor-settings.mjs +118 -0
- package/scripts/frame-floor-standing.d.mts +4 -0
- package/scripts/frame-floor-standing.mjs +20 -0
- package/scripts/frame-floor-task-clock.d.mts +4 -0
- package/scripts/frame-floor-task-clock.mjs +284 -0
- package/scripts/frame-floor-timeline-session.ts +76 -0
- package/scripts/frame-floor-wasm-constructors.d.mts +6 -0
- package/scripts/frame-floor-wasm-constructors.mjs +37 -0
- package/scripts/frame-floor-wasm-probe.d.mts +2 -0
- package/scripts/frame-floor-wasm-probe.mjs +51 -0
- package/scripts/frame-floor-webkit-timeline.d.mts +26 -0
- package/scripts/frame-floor-webkit-timeline.mjs +285 -0
- package/scripts/frame-floor.mjs +1290 -0
- package/scripts/full-test-log-proof.py +191 -0
- package/scripts/full-test-report.py +154 -0
- package/scripts/function-source.d.mts +3 -0
- package/scripts/function-source.mjs +48 -0
- package/scripts/g571-hosts.d.mts +3 -0
- package/scripts/g571-hosts.mjs +54 -0
- package/scripts/game-plugins.d.mts +22 -0
- package/scripts/gate-related-tests.d.mts +7 -0
- package/scripts/gate-related-tests.mjs +178 -0
- package/scripts/gen-api.d.mts +10 -0
- package/scripts/gen-api.mjs +134 -0
- package/scripts/gen-boot-cache.d.mts +2 -0
- package/scripts/gen-boot-cache.mjs +146 -0
- package/scripts/gen-budget-derivations.d.mts +1 -0
- package/scripts/gen-budget-derivations.mjs +43 -0
- package/scripts/gen-programs.d.mts +8 -0
- package/scripts/gen-programs.mjs +82 -0
- package/scripts/gen-shard-words.d.mts +4 -0
- package/scripts/gen-shard-words.mjs +188 -0
- package/scripts/gen-source.d.mts +4 -0
- package/scripts/gen-source.mjs +73 -0
- package/scripts/gen-starter-arm-clips.d.mts +4 -0
- package/scripts/gen-starter-arm-clips.mjs +17 -0
- package/scripts/gen-starter-bag.d.mts +4 -0
- package/scripts/gen-starter-bag.mjs +16 -0
- package/scripts/gen-starter-effects.d.mts +4 -0
- package/scripts/gen-starter-effects.mjs +16 -0
- package/scripts/gen-starter-weapons.d.mts +4 -0
- package/scripts/gen-starter-weapons.mjs +16 -0
- package/scripts/gen.mjs +6 -0
- package/scripts/generate-title-launch.mjs +55 -0
- package/scripts/generated-files.d.mts +6 -0
- package/scripts/generated-files.mjs +86 -0
- package/scripts/generated-input-reading.d.mts +3 -0
- package/scripts/generated-input-reading.mjs +89 -0
- package/scripts/generated-policy.d.mts +13 -0
- package/scripts/generated-policy.mjs +113 -0
- package/scripts/generated-source.d.mts +11 -0
- package/scripts/generated-source.mjs +214 -0
- package/scripts/generation-cache-prune.d.mts +10 -0
- package/scripts/generation-cache-prune.mjs +128 -0
- package/scripts/gfx-toggle/compare.mjs +133 -0
- package/scripts/git-common.d.mts +1 -0
- package/scripts/git-common.mjs +13 -0
- package/scripts/git-rule-counts.mjs +16 -0
- package/scripts/git-source-view.mjs +225 -0
- package/scripts/goldens/board.py +176 -0
- package/scripts/goldens/capture-inputs.d.mts +4 -0
- package/scripts/goldens/capture-inputs.mjs +35 -0
- package/scripts/goldens/capture.mjs +214 -0
- package/scripts/goldens/colour_shift.py +27 -0
- package/scripts/goldens/native-residency.d.mts +10 -0
- package/scripts/goldens/native-residency.mjs +104 -0
- package/scripts/goldens/plot-inputs.d.mts +12 -0
- package/scripts/goldens/plot-inputs.mjs +46 -0
- package/scripts/gpu-gate/matrix.d.mts +3 -0
- package/scripts/gpu-gate/matrix.mjs +48 -0
- package/scripts/gpu-gate/probe.mjs +30 -0
- package/scripts/gpu-gate/status.d.mts +4 -0
- package/scripts/gpu-gate/status.mjs +112 -0
- package/scripts/gpu-perf/com.wildshard.gpu-perf.plist +11 -0
- package/scripts/gpu-perf/install.sh +31 -0
- package/scripts/gpu-perf/nightly.mjs +216 -0
- package/scripts/gpu-perf/nightly.sh +7 -0
- package/scripts/gpu-perf/report.d.mts +18 -0
- package/scripts/gpu-perf/report.mjs +109 -0
- package/scripts/gpu-perf/timing.sh +17 -0
- package/scripts/gpu-trace-frames.mjs +113 -0
- package/scripts/grid-crossing-walk-proof.mjs +172 -0
- package/scripts/grid-gate-proof.mjs +126 -0
- package/scripts/grid-ready-latches.d.mts +7 -0
- package/scripts/grid-ready-latches.mjs +44 -0
- package/scripts/grid-ready-memory.d.mts +3 -0
- package/scripts/grid-ready-memory.mjs +86 -0
- package/scripts/grid-runtime-evidence.d.mts +4 -0
- package/scripts/grid-runtime-evidence.mjs +107 -0
- package/scripts/grid-spawn-proof.mjs +317 -0
- package/scripts/guard-counts.d.mts +8 -0
- package/scripts/guard-counts.mjs +136 -0
- package/scripts/guard-index-tree.d.mts +2 -0
- package/scripts/guard-index-tree.mjs +19 -0
- package/scripts/heavy-lane-lease.d.mts +2 -0
- package/scripts/heavy-lane-lease.mjs +33 -0
- package/scripts/heavy-lane.py +652 -0
- package/scripts/herdr-prompt.sh +13 -0
- package/scripts/herdr-question-open.sh +22 -0
- package/scripts/hero-shots.mjs +168 -0
- package/scripts/home-icons.mjs +27 -0
- package/scripts/host-activity.ts +41 -0
- package/scripts/hud-worst/chat.ts +33 -0
- package/scripts/hud-worst.mjs +344 -0
- package/scripts/inbox-pull.mjs +129 -0
- package/scripts/inline-shell-css.mjs +30 -0
- package/scripts/input-hash-memo.d.mts +16 -0
- package/scripts/input-hash-memo.mjs +109 -0
- package/scripts/input-snapshot.d.mts +2 -0
- package/scripts/input-snapshot.mjs +45 -0
- package/scripts/ios-memory-watchdog.py +339 -0
- package/scripts/iphone-mem-reading.sh +40 -0
- package/scripts/js-entry-census.mjs +54 -0
- package/scripts/js-payload-heap.mjs +23 -0
- package/scripts/json-declarations.d.mts +3 -0
- package/scripts/json-declarations.mjs +101 -0
- package/scripts/json-output-guard.d.mts +6 -0
- package/scripts/json-output-guard.mjs +50 -0
- package/scripts/ktx2-engine-map.json +156 -0
- package/scripts/ktx2-tables.d.mts +5 -0
- package/scripts/ktx2-tables.mjs +103 -0
- package/scripts/land.d.mts +17 -0
- package/scripts/land.mjs +888 -0
- package/scripts/lane-watchdog.d.mts +11 -0
- package/scripts/lane-watchdog.mjs +256 -0
- package/scripts/latch-grid-evidence.d.mts +1 -0
- package/scripts/latch-grid-evidence.mjs +68 -0
- package/scripts/lift-pending-batches-proof.mjs +135 -0
- package/scripts/lift-pending-batches.mjs +124 -0
- package/scripts/lift-pending-history-proof.mjs +41 -0
- package/scripts/lift-pending-proof.mjs +27 -0
- package/scripts/lift-pending-schedule.mjs +23 -0
- package/scripts/lift-pending.d.mts +1 -0
- package/scripts/lift-pending.mjs +78 -0
- package/scripts/link-node-modules.d.mts +1 -0
- package/scripts/link-node-modules.mjs +291 -0
- package/scripts/lint-all.mjs +50 -0
- package/scripts/lint-cli.mjs +10 -0
- package/scripts/lint-fast.mjs +30 -0
- package/scripts/lint-game-selection-proof.mjs +27 -0
- package/scripts/lint-game.mjs +26 -0
- package/scripts/lint-tools.d.mts +4 -0
- package/scripts/lint-tools.mjs +28 -0
- package/scripts/listed-view-code.d.mts +7 -0
- package/scripts/listed-view-code.mjs +93 -0
- package/scripts/live-prepush.py +352 -0
- package/scripts/load-mem-probe.mjs +248 -0
- package/scripts/loading-bar-rule.mjs +107 -0
- package/scripts/loading-benchmark/accuracy-data.d.mts +12 -0
- package/scripts/loading-benchmark/accuracy-data.mjs +92 -0
- package/scripts/loading-benchmark/cache-bodies.d.mts +14 -0
- package/scripts/loading-benchmark/cache-bodies.mjs +103 -0
- package/scripts/loading-benchmark/catalogue.d.mts +8 -0
- package/scripts/loading-benchmark/catalogue.mjs +41 -0
- package/scripts/loading-benchmark/sim-shard.d.mts +60 -0
- package/scripts/loading-benchmark/sim-shard.mjs +289 -0
- package/scripts/loading-benchmark/transport.d.mts +9 -0
- package/scripts/loading-benchmark/transport.mjs +109 -0
- package/scripts/loading-card-proof.mjs +298 -0
- package/scripts/loading-fence-proof.mjs +67 -0
- package/scripts/loading-flow/analyse.mjs +280 -0
- package/scripts/loading-flow/benchmax.mjs +179 -0
- package/scripts/loading-flow/board.py +104 -0
- package/scripts/loading-flow/drive.mjs +283 -0
- package/scripts/loading-flow/layer-parity-proof.mjs +69 -0
- package/scripts/loading-flow/link-probe.mjs +99 -0
- package/scripts/loading-flow/profile.mjs +54 -0
- package/scripts/loading-flow/run.sh +51 -0
- package/scripts/loading-flow/source-maps-proof.mjs +86 -0
- package/scripts/loading-flow/source-maps.mjs +73 -0
- package/scripts/loading-flow/stalls.d.mts +39 -0
- package/scripts/loading-flow/stalls.mjs +141 -0
- package/scripts/loading-flow/sweep-input-proof.mjs +127 -0
- package/scripts/loading-flow/sweep-input.mjs +70 -0
- package/scripts/loading-flow/sweep-report.mjs +112 -0
- package/scripts/loading-flow/sweep.sh +101 -0
- package/scripts/loading-flow/target-proof.mjs +56 -0
- package/scripts/loading-flow/target.mjs +39 -0
- package/scripts/loading-time-left-proof.mjs +121 -0
- package/scripts/loading-time-left-rule.mjs +49 -0
- package/scripts/look-loop/cameras.d.mts +18 -0
- package/scripts/look-loop/cameras.mjs +109 -0
- package/scripts/look-loop/fit-lut.py +142 -0
- package/scripts/look-loop/palette-delta.py +183 -0
- package/scripts/look-loop/regions/driftwood-isle.json +25 -0
- package/scripts/look-loop/regions/far-reach.json +225 -0
- package/scripts/look-loop/regions/open-plot-night-market.json +855 -0
- package/scripts/look-loop/regions/pine-hollow.json +22 -0
- package/scripts/look-loop/regions/sunscar-dunes.json +281 -0
- package/scripts/look-loop/targets.py +229 -0
- package/scripts/look-loop/test_look_loop.py +133 -0
- package/scripts/look-loop/views.mjs +176 -0
- package/scripts/main-menu-aerial-plan.mjs +8 -0
- package/scripts/main-menu-aerial-poses.ts +292 -0
- package/scripts/main-pull.mjs +84 -0
- package/scripts/main-watch.d.mts +19 -0
- package/scripts/main-watch.mjs +248 -0
- package/scripts/manifest-art-inputs.json +4 -0
- package/scripts/manifest-budget.mjs +44 -0
- package/scripts/manifest-declaration.d.mts +3 -0
- package/scripts/manifest-declaration.mjs +40 -0
- package/scripts/manifest-spawns.mjs +38 -0
- package/scripts/manifest-static-imports.d.mts +2 -0
- package/scripts/manifest-static-imports.mjs +83 -0
- package/scripts/map-hash.d.mts +20 -0
- package/scripts/map-hash.mjs +155 -0
- package/scripts/map-painter.d.mts +13 -0
- package/scripts/map-painter.mjs +97 -0
- package/scripts/map-stylize.py +241 -0
- package/scripts/memory/cpuOwners.d.mts +4 -0
- package/scripts/memory/cpuOwners.mjs +51 -0
- package/scripts/memory/heapReader.d.mts +3 -0
- package/scripts/memory/heapReader.mjs +59 -0
- package/scripts/memory/js-heap-ratchet.json +17 -0
- package/scripts/memory/jsHeap.d.mts +6 -0
- package/scripts/memory/jsHeap.mjs +52 -0
- package/scripts/memory-report-blocks.d.mts +28 -0
- package/scripts/memory-report-blocks.mjs +60 -0
- package/scripts/memory-report-data.d.mts +25 -0
- package/scripts/memory-report-data.mjs +222 -0
- package/scripts/memory-report-graphic.d.mts +5 -0
- package/scripts/memory-report-graphic.mjs +90 -0
- package/scripts/memory-report-snapshot.d.mts +4 -0
- package/scripts/memory-report-snapshot.mjs +13 -0
- package/scripts/memory-report.d.mts +5 -0
- package/scripts/memory-report.mjs +94 -0
- package/scripts/mmo-bots.mjs +241 -0
- package/scripts/mobile-graphics-proof.mjs +120 -0
- package/scripts/model-spin-recording.d.mts +4 -0
- package/scripts/model-spin-recording.mjs +25 -0
- package/scripts/model-spin.mjs +327 -0
- package/scripts/module-cache-proof.mjs +43 -0
- package/scripts/name-prompt-proof.mjs +136 -0
- package/scripts/native-recorder-cache.d.mts +33 -0
- package/scripts/native-recorder-cache.mjs +287 -0
- package/scripts/native-retention-proof.mjs +79 -0
- package/scripts/night-market-kit-budget.d.mts +12 -0
- package/scripts/night-market-kit-budget.mjs +80 -0
- package/scripts/nightly-heads.ts +176 -0
- package/scripts/nightly-model.ts +127 -0
- package/scripts/nightly-tag.d.mts +1 -0
- package/scripts/nightly-tag.mjs +32 -0
- package/scripts/nightly.proof.ts +105 -0
- package/scripts/nightly.ts +43 -0
- package/scripts/nine-sim-memory.mjs +353 -0
- package/scripts/no-binary-json.d.mts +12 -0
- package/scripts/no-binary-json.mjs +270 -0
- package/scripts/non-engine-admission-proof.mjs +27 -0
- package/scripts/number-path-probe.d.mts +7 -0
- package/scripts/number-path-probe.mjs +57 -0
- package/scripts/offline-proof-rules.d.mts +23 -0
- package/scripts/offline-proof-rules.mjs +123 -0
- package/scripts/offline-proof.mjs +498 -0
- package/scripts/online-phone-proof.mjs +330 -0
- package/scripts/online-proof.mjs +150 -0
- package/scripts/online-ride-proof.mjs +74 -0
- package/scripts/online-rig.mjs +114 -0
- package/scripts/page-parity.mjs +99 -0
- package/scripts/page-release/content.d.mts +30 -0
- package/scripts/page-release/content.mjs +299 -0
- package/scripts/page-release/flow.d.mts +60 -0
- package/scripts/page-release/flow.mjs +365 -0
- package/scripts/page-release/hosts/workers.d.mts +8 -0
- package/scripts/page-release/hosts/workers.mjs +160 -0
- package/scripts/page-release/packs.mjs +108 -0
- package/scripts/page-release/redact.d.mts +1 -0
- package/scripts/page-release/redact.mjs +19 -0
- package/scripts/page-release.mjs +101 -0
- package/scripts/page-size.d.mts +13 -0
- package/scripts/page-size.mjs +198 -0
- package/scripts/parallel-fast-lint.d.mts +1 -0
- package/scripts/parallel-fast-lint.mjs +54 -0
- package/scripts/parity/audio-diagnostics.d.mts +5 -0
- package/scripts/parity/audio-diagnostics.mjs +63 -0
- package/scripts/parity/audio-settle.mjs +111 -0
- package/scripts/parity/black-frame.d.mts +11 -0
- package/scripts/parity/black-frame.mjs +58 -0
- package/scripts/parity/boot-smoke.d.mts +47 -0
- package/scripts/parity/boot-smoke.mjs +585 -0
- package/scripts/parity/boot-timing-delay.mjs +54 -0
- package/scripts/parity/browser-escape.d.mts +2 -0
- package/scripts/parity/browser-escape.mjs +50 -0
- package/scripts/parity/budgetCeilings.d.mts +3 -0
- package/scripts/parity/budgetCeilings.mjs +30 -0
- package/scripts/parity/budgets.d.mts +7 -0
- package/scripts/parity/budgets.mjs +73 -0
- package/scripts/parity/cache.d.mts +1 -0
- package/scripts/parity/cache.mjs +40 -0
- package/scripts/parity/canvas-bytes.d.mts +13 -0
- package/scripts/parity/canvas-bytes.mjs +96 -0
- package/scripts/parity/capture-rpc.d.mts +2 -0
- package/scripts/parity/capture-rpc.mjs +41 -0
- package/scripts/parity/capture-trace.d.mts +6 -0
- package/scripts/parity/capture-trace.mjs +63 -0
- package/scripts/parity/clock.d.mts +1 -0
- package/scripts/parity/clock.mjs +89 -0
- package/scripts/parity/combat.d.mts +14 -0
- package/scripts/parity/combat.mjs +81 -0
- package/scripts/parity/compare.d.mts +10 -0
- package/scripts/parity/compare.mjs +177 -0
- package/scripts/parity/explorer-smoke.d.mts +21 -0
- package/scripts/parity/explorer-smoke.mjs +310 -0
- package/scripts/parity/fast-png.d.mts +18 -0
- package/scripts/parity/fast-png.mjs +68 -0
- package/scripts/parity/fingerprint.mjs +8 -0
- package/scripts/parity/fixed-render.d.mts +11 -0
- package/scripts/parity/fixed-render.mjs +79 -0
- package/scripts/parity/frame-budget.d.mts +3 -0
- package/scripts/parity/frame-budget.mjs +39 -0
- package/scripts/parity/frame-bytes.d.mts +8 -0
- package/scripts/parity/frame-bytes.mjs +45 -0
- package/scripts/parity/frames.mjs +8 -0
- package/scripts/parity/glbytes.d.mts +8 -0
- package/scripts/parity/glbytes.mjs +148 -0
- package/scripts/parity/grid-boot-waits.d.mts +13 -0
- package/scripts/parity/grid-boot-waits.mjs +43 -0
- package/scripts/parity/heat-bytes.d.mts +5 -0
- package/scripts/parity/heat-bytes.mjs +32 -0
- package/scripts/parity/hover-touch.mjs +153 -0
- package/scripts/parity/hud.d.mts +4 -0
- package/scripts/parity/hud.mjs +17 -0
- package/scripts/parity/image-routes.d.mts +5 -0
- package/scripts/parity/image-routes.mjs +29 -0
- package/scripts/parity/init.d.mts +15 -0
- package/scripts/parity/init.mjs +63 -0
- package/scripts/parity/lane-browser.mjs +14 -0
- package/scripts/parity/offline.d.mts +5 -0
- package/scripts/parity/offline.mjs +24 -0
- package/scripts/parity/phone-route-browser.d.mts +20 -0
- package/scripts/parity/phone-route-browser.mjs +241 -0
- package/scripts/parity/phone-route-page.d.mts +10 -0
- package/scripts/parity/phone-route-page.mjs +245 -0
- package/scripts/parity/phone-route-runner.d.mts +2 -0
- package/scripts/parity/phone-route-runner.mjs +39 -0
- package/scripts/parity/phone-route.d.mts +43 -0
- package/scripts/parity/phone-route.mjs +212 -0
- package/scripts/parity/pool.d.mts +4 -0
- package/scripts/parity/pool.mjs +74 -0
- package/scripts/parity/poses.d.mts +6 -0
- package/scripts/parity/poses.mjs +57 -0
- package/scripts/parity/probe.d.mts +2 -0
- package/scripts/parity/probe.mjs +13 -0
- package/scripts/parity/profile.d.mts +2 -0
- package/scripts/parity/profile.mjs +52 -0
- package/scripts/parity/record.d.mts +8 -0
- package/scripts/parity/record.mjs +102 -0
- package/scripts/parity/resources.mjs +58 -0
- package/scripts/parity/saves.d.mts +1 -0
- package/scripts/parity/saves.mjs +14 -0
- package/scripts/parity/serve.d.mts +9 -0
- package/scripts/parity/serve.mjs +125 -0
- package/scripts/parity/shader-code.d.mts +2 -0
- package/scripts/parity/shader-code.mjs +10 -0
- package/scripts/parity/ssim.d.mts +4 -0
- package/scripts/parity/ssim.mjs +44 -0
- package/scripts/parity/telemetry.d.mts +1 -0
- package/scripts/parity/telemetry.mjs +19 -0
- package/scripts/parity/timeout.mjs +7 -0
- package/scripts/parity/title-trace.d.mts +13 -0
- package/scripts/parity/title-trace.mjs +59 -0
- package/scripts/parity/value.d.mts +11 -0
- package/scripts/parity/value.mjs +50 -0
- package/scripts/parity/walk.d.mts +10 -0
- package/scripts/parity/walk.mjs +109 -0
- package/scripts/parity.mjs +310 -0
- package/scripts/perf/README.md +47 -0
- package/scripts/perf/cameras24.json +2963 -0
- package/scripts/perf/draw-census-page.d.mts +10 -0
- package/scripts/perf/draw-census-page.mjs +162 -0
- package/scripts/perf/draw-census-poses.d.mts +14 -0
- package/scripts/perf/draw-census-poses.mjs +44 -0
- package/scripts/perf/draw-census-report.d.mts +24 -0
- package/scripts/perf/draw-census-report.mjs +86 -0
- package/scripts/perf/draw-census.mjs +156 -0
- package/scripts/perf/exact-world-capture.mjs +167 -0
- package/scripts/perf/gpu-census-coverage.d.mts +6 -0
- package/scripts/perf/gpu-census-coverage.mjs +47 -0
- package/scripts/perf/gpu-census-overdraw.mjs +105 -0
- package/scripts/perf/gpu-census-page.d.mts +11 -0
- package/scripts/perf/gpu-census-page.mjs +53 -0
- package/scripts/perf/gpu-census-report.d.mts +3 -0
- package/scripts/perf/gpu-census-report.mjs +15 -0
- package/scripts/perf/gpu-census.d.mts +6 -0
- package/scripts/perf/gpu-census.mjs +95 -0
- package/scripts/perf/material-program-loan.d.mts +18 -0
- package/scripts/perf/material-program-loan.mjs +88 -0
- package/scripts/perf/world-pixel-difference.d.mts +5 -0
- package/scripts/perf/world-pixel-difference.mjs +22 -0
- package/scripts/phone-loading/chromium.ts +113 -0
- package/scripts/phone-loading/cpu-profile.ts +47 -0
- package/scripts/phone-loading/fixtures.ts +18 -0
- package/scripts/phone-loading/instrument.ts +219 -0
- package/scripts/phone-loading/link.ts +115 -0
- package/scripts/phone-loading/main.ts +261 -0
- package/scripts/phone-loading/model.ts +123 -0
- package/scripts/phone-loading/native-body.ts +40 -0
- package/scripts/phone-loading/native-sizes.ts +194 -0
- package/scripts/phone-loading/network.ts +167 -0
- package/scripts/phone-loading/play.ts +132 -0
- package/scripts/phone-loading/post-control.ts +22 -0
- package/scripts/phone-loading/recording.ts +28 -0
- package/scripts/phone-loading/shaped-preview.ts +37 -0
- package/scripts/phone-loading/tsconfig.json +11 -0
- package/scripts/physics-baseline.mjs +433 -0
- package/scripts/physics-grid-entry.d.mts +15 -0
- package/scripts/physics-grid-entry.mjs +62 -0
- package/scripts/physics-grid.d.mts +10 -0
- package/scripts/physics-grid.mjs +102 -0
- package/scripts/physics-native.d.mts +6 -0
- package/scripts/physics-native.mjs +81 -0
- package/scripts/physics-route.json +4400 -0
- package/scripts/physics-walk.d.mts +16 -0
- package/scripts/physics-walk.mjs +79 -0
- package/scripts/pid-lock.d.mts +1 -0
- package/scripts/pid-lock.mjs +63 -0
- package/scripts/pin-assets.ts +94 -0
- package/scripts/pin-format.ts +43 -0
- package/scripts/pin-packs.ts +17 -0
- package/scripts/pins-exclude.d.mts +3 -0
- package/scripts/pins-exclude.mjs +54 -0
- package/scripts/pins-reuse.d.mts +27 -0
- package/scripts/pins-reuse.mjs +321 -0
- package/scripts/pins.ts +468 -0
- package/scripts/platform-chargebacks.d.mts +9 -0
- package/scripts/platform-chargebacks.mjs +135 -0
- package/scripts/playground-grapple.mjs +154 -0
- package/scripts/playground-harness.mjs +137 -0
- package/scripts/playground-horse.mjs +106 -0
- package/scripts/prebuilt-output.py +322 -0
- package/scripts/precommit-checks.d.mts +3 -0
- package/scripts/precommit-checks.mjs +115 -0
- package/scripts/precommit-inputs.d.mts +5 -0
- package/scripts/precommit-inputs.mjs +73 -0
- package/scripts/precommit-jobs.d.mts +5 -0
- package/scripts/precommit-jobs.mjs +85 -0
- package/scripts/precommit-source.py +493 -0
- package/scripts/preparation-cache-key.d.mts +2 -0
- package/scripts/preparation-cache-key.mjs +70 -0
- package/scripts/prepush-proof.mjs +36 -0
- package/scripts/preview-encoded-cache.d.mts +7 -0
- package/scripts/preview-encoded-cache.mjs +64 -0
- package/scripts/preview-lag.mjs +80 -0
- package/scripts/preview-server.mjs +256 -0
- package/scripts/preview-telemetry.d.mts +4 -0
- package/scripts/preview-telemetry.mjs +56 -0
- package/scripts/product-build-times.d.mts +3 -0
- package/scripts/product-build-times.mjs +42 -0
- package/scripts/program-discovery.d.mts +5 -0
- package/scripts/program-discovery.mjs +42 -0
- package/scripts/progress-recording.d.mts +6 -0
- package/scripts/progress-recording.mjs +26 -0
- package/scripts/progress-video.sh +27 -0
- package/scripts/proof-run.sh +69 -0
- package/scripts/prune-local-caches.mjs +10 -0
- package/scripts/public-grid.d.mts +11 -0
- package/scripts/public-grid.mjs +56 -0
- package/scripts/push-budget.d.mts +3 -0
- package/scripts/push-budget.mjs +5 -0
- package/scripts/push-cache-git-proof.mjs +32 -0
- package/scripts/push-cache-lease-proof.mjs +22 -0
- package/scripts/push-cache-proof.mjs +29 -0
- package/scripts/push-checks.d.mts +2 -0
- package/scripts/push-checks.mjs +116 -0
- package/scripts/push-cohort-proof.mjs +15 -0
- package/scripts/push-dependencies.mjs +97 -0
- package/scripts/push-dependency-proof.mjs +53 -0
- package/scripts/push-duration-sequencer.ts +26 -0
- package/scripts/push-environment.mjs +21 -0
- package/scripts/push-exclusion-proof.mjs +81 -0
- package/scripts/push-gate-copy.mjs +168 -0
- package/scripts/push-inputs.d.mts +4 -0
- package/scripts/push-inputs.mjs +99 -0
- package/scripts/push-lint-config.d.mts +4 -0
- package/scripts/push-lint-config.mjs +26 -0
- package/scripts/push-local-split.d.mts +15 -0
- package/scripts/push-local-split.mjs +116 -0
- package/scripts/push-loop.py +317 -0
- package/scripts/push-proof-cache.mjs +131 -0
- package/scripts/push-ref-tree-proof.mjs +63 -0
- package/scripts/push-related.mjs +29 -0
- package/scripts/push-selection-dev-proof.mjs +57 -0
- package/scripts/push-selection-proof.mjs +45 -0
- package/scripts/push-selection.d.mts +2 -0
- package/scripts/push-selection.mjs +65 -0
- package/scripts/push-vitest.config.ts +20 -0
- package/scripts/push_input_cache.py +306 -0
- package/scripts/quarantine-placement-proof.mjs +28 -0
- package/scripts/quarantine-renewal-proof.mjs +34 -0
- package/scripts/quarantine-window-proof.mjs +26 -0
- package/scripts/quest-complete-proof.mjs +78 -0
- package/scripts/quiet-cli.mjs +13 -0
- package/scripts/quiet_logs.py +79 -0
- package/scripts/ratchet-approval.d.mts +3 -0
- package/scripts/ratchet-approval.mjs +70 -0
- package/scripts/record-fence-reads.mjs +115 -0
- package/scripts/release-check.mjs +22 -0
- package/scripts/release-proof-proof.mjs +71 -0
- package/scripts/reload-title-proof.mjs +100 -0
- package/scripts/remote-air-proof.mjs +137 -0
- package/scripts/remote-bar-proof.mjs +75 -0
- package/scripts/remote-board-proof.mjs +129 -0
- package/scripts/remote-body-proof.mjs +101 -0
- package/scripts/remote-death-proof.mjs +134 -0
- package/scripts/remote-gait-proof.mjs +139 -0
- package/scripts/remote-held-proof.mjs +155 -0
- package/scripts/remote-hurt-proof.mjs +121 -0
- package/scripts/remote-map-proof.mjs +103 -0
- package/scripts/remote-name-proof.mjs +123 -0
- package/scripts/remote-players-proof.mjs +214 -0
- package/scripts/remote-room.mjs +75 -0
- package/scripts/remote-strike-proof.mjs +148 -0
- package/scripts/renderer-revision-replay.mjs +49 -0
- package/scripts/renderer-revision.d.mts +12 -0
- package/scripts/renderer-revision.mjs +101 -0
- package/scripts/renderer-revision.proof.mjs +71 -0
- package/scripts/repo-size.d.mts +43 -0
- package/scripts/repo-size.mjs +540 -0
- package/scripts/ring-cook.mjs +51 -0
- package/scripts/ring-step.ts +112 -0
- package/scripts/ring1.sh +79 -0
- package/scripts/room-deploy.mjs +130 -0
- package/scripts/room-soak.mjs +40 -0
- package/scripts/runtime_input_copies.py +49 -0
- package/scripts/scorecard.mjs +1156 -0
- package/scripts/script-scenario-metrics.d.mts +10 -0
- package/scripts/script-scenario-metrics.mjs +75 -0
- package/scripts/section-types.d.mts +3 -0
- package/scripts/section-types.mjs +35 -0
- package/scripts/sentry-maps.d.mts +9 -0
- package/scripts/sentry-maps.mjs +94 -0
- package/scripts/serialize-asset-tables.mjs +13 -0
- package/scripts/serve-build.sh +392 -0
- package/scripts/serve-port-lease.py +100 -0
- package/scripts/serve-shared-preview.py +295 -0
- package/scripts/server-origin.mjs +10 -0
- package/scripts/server-release/github.mjs +142 -0
- package/scripts/server-release/publish.d.mts +19 -0
- package/scripts/server-release/publish.mjs +143 -0
- package/scripts/server-release/sign.d.mts +10 -0
- package/scripts/server-release/sign.mjs +75 -0
- package/scripts/shard-component-spans.d.mts +15 -0
- package/scripts/shard-component-spans.mjs +18 -0
- package/scripts/shard-components.d.mts +16 -0
- package/scripts/shard-components.mjs +365 -0
- package/scripts/shard-coupling.d.mts +11 -0
- package/scripts/shard-coupling.mjs +238 -0
- package/scripts/shard-folders.mjs +14 -0
- package/scripts/shard-net-lines.d.mts +13 -0
- package/scripts/shard-net-lines.mjs +62 -0
- package/scripts/shard-output-content.d.mts +4 -0
- package/scripts/shard-output-content.mjs +27 -0
- package/scripts/shard-outputs.d.mts +12 -0
- package/scripts/shard-outputs.mjs +64 -0
- package/scripts/shard-phone-memory.d.mts +37 -0
- package/scripts/shard-phone-memory.mjs +556 -0
- package/scripts/shard-platform-format.d.mts +10 -0
- package/scripts/shard-platform-format.mjs +7 -0
- package/scripts/shard-platform-hosts.d.mts +2 -0
- package/scripts/shard-platform-hosts.mjs +93 -0
- package/scripts/shard-platform-output.d.mts +12 -0
- package/scripts/shard-platform-output.mjs +74 -0
- package/scripts/shard-platform-sections.d.mts +2 -0
- package/scripts/shard-platform-sections.mjs +9 -0
- package/scripts/shard-platform.d.mts +76 -0
- package/scripts/shard-platform.mjs +1072 -0
- package/scripts/shard-public.d.mts +3 -0
- package/scripts/shard-public.mjs +36 -0
- package/scripts/shard-runtime-closure.d.mts +3 -0
- package/scripts/shard-runtime-closure.mjs +30 -0
- package/scripts/shard-size-gate.d.mts +13 -0
- package/scripts/shard-size-gate.mjs +135 -0
- package/scripts/shard-size-watch.d.mts +7 -0
- package/scripts/shard-size-watch.mjs +70 -0
- package/scripts/shard-wire-meter.mjs +107 -0
- package/scripts/shardfile-cache.d.mts +17 -0
- package/scripts/shardfile-cache.mjs +268 -0
- package/scripts/shardfile-inputs.d.mts +19 -0
- package/scripts/shardfile-inputs.mjs +452 -0
- package/scripts/shardfile-validation-revision.d.mts +1 -0
- package/scripts/shardfile-validation-revision.mjs +30 -0
- package/scripts/shards.d.mts +7 -0
- package/scripts/shards.mjs +16 -0
- package/scripts/side-parity.d.mts +8 -0
- package/scripts/side-parity.mjs +220 -0
- package/scripts/sim-boost-lap.mjs +198 -0
- package/scripts/sim-grid-entry.mjs +534 -0
- package/scripts/sim-in-runtime.d.mts +6 -0
- package/scripts/sim-in-runtime.mjs +146 -0
- package/scripts/sim-lane.sh +351 -0
- package/scripts/sim-mem-phases.py +195 -0
- package/scripts/sim-memory.mjs +414 -0
- package/scripts/sim-node-loader.mjs +37 -0
- package/scripts/sim-presentation-proof.py +37 -0
- package/scripts/sim-quiet.py +160 -0
- package/scripts/sim-safari-ready.py +896 -0
- package/scripts/sim-transport.c +93 -0
- package/scripts/slice-inputs.ts +31 -0
- package/scripts/smoke-timings.py +34 -0
- package/scripts/snapshot-admission-proof.mjs +55 -0
- package/scripts/soak/boundary.mjs +110 -0
- package/scripts/soak/inspector.d.mts +18 -0
- package/scripts/soak/inspector.mjs +74 -0
- package/scripts/soak/memory-categories.d.mts +12 -0
- package/scripts/soak/memory-categories.mjs +28 -0
- package/scripts/socket-smoke.mjs +20 -0
- package/scripts/sort-sides.d.mts +33 -0
- package/scripts/sort-sides.mjs +919 -0
- package/scripts/source-generation-outputs.json +11 -0
- package/scripts/source-generators.d.mts +11 -0
- package/scripts/source-generators.mjs +59 -0
- package/scripts/source-input-proof.d.mts +12 -0
- package/scripts/source-input-proof.mjs +106 -0
- package/scripts/source-table-cache.d.mts +2 -0
- package/scripts/source-table-cache.mjs +102 -0
- package/scripts/sp-tools.py +150 -0
- package/scripts/sp-tools.sh +6 -0
- package/scripts/split-repair-data-shard.mjs +98 -0
- package/scripts/split-repair-guardian.mjs +26 -0
- package/scripts/split-repair-hare.mjs +54 -0
- package/scripts/split-repair-held-melee.mjs +41 -0
- package/scripts/split-repair-horse-panic.mjs +45 -0
- package/scripts/split-repair-movers.mjs +92 -0
- package/scripts/split-repair-nalati-signals.mjs +94 -0
- package/scripts/split-repair-perks.mjs +73 -0
- package/scripts/split-repair-pine-writes.mjs +76 -0
- package/scripts/split-repair-proof.mjs +24 -0
- package/scripts/split-repair-sky-trails.mjs +110 -0
- package/scripts/split-repair-stun.mjs +37 -0
- package/scripts/split-repair-wake-loss.mjs +35 -0
- package/scripts/split-repair-whip.mjs +44 -0
- package/scripts/staging-proof-lines.d.mts +8 -0
- package/scripts/staging-proof-lines.mjs +85 -0
- package/scripts/standalone-smoke.mjs +116 -0
- package/scripts/storage-policy.json +89 -0
- package/scripts/temp-janitor.d.mts +6 -0
- package/scripts/temp-janitor.mjs +40 -0
- package/scripts/template-format-proof.mjs +44 -0
- package/scripts/test-amber.d.mts +11 -0
- package/scripts/test-amber.mjs +90 -0
- package/scripts/test-build-tools.ts +24 -0
- package/scripts/test-facade-instancing.mjs +53 -0
- package/scripts/test-ios-memory-watchdog.py +107 -0
- package/scripts/test-products.json +389 -0
- package/scripts/test-quarantine.d.mts +6 -0
- package/scripts/test-quarantine.mjs +132 -0
- package/scripts/test-shard-plan.ts +66 -0
- package/scripts/test-timings.d.mts +14 -0
- package/scripts/test-timings.mjs +174 -0
- package/scripts/test_agent_time.py +155 -0
- package/scripts/test_browser_lane.py +239 -0
- package/scripts/test_lease_order.py +142 -0
- package/scripts/test_partition.py +23 -0
- package/scripts/test_prebuilt_output.py +258 -0
- package/scripts/test_products.py +20 -0
- package/scripts/test_serve_ports.py +645 -0
- package/scripts/test_sim_lane.py +1661 -0
- package/scripts/test_sim_quiet.py +140 -0
- package/scripts/texture-inputs.d.mts +4 -0
- package/scripts/texture-inputs.mjs +16 -0
- package/scripts/tile-bake-policy.d.mts +4 -0
- package/scripts/tile-bake-policy.mjs +43 -0
- package/scripts/tile-bake-report.d.mts +17 -0
- package/scripts/tile-bake-report.mjs +161 -0
- package/scripts/tile-bakes.d.mts +13 -0
- package/scripts/tile-bakes.mjs +100 -0
- package/scripts/timelapse.sh +44 -0
- package/scripts/title-assets.d.mts +6 -0
- package/scripts/title-assets.generated.json +9 -0
- package/scripts/title-assets.mjs +46 -0
- package/scripts/title-exit-proof.mjs +132 -0
- package/scripts/tsconfig.json +576 -0
- package/scripts/typecheck-lint.sh +21 -0
- package/scripts/typecheck-root.d.mts +2 -0
- package/scripts/typecheck-root.mjs +18 -0
- package/scripts/types/wildshard-probe.d.ts +29 -0
- package/scripts/types/worker-page.d.ts +55 -0
- package/scripts/uncatalogued-shard-proof.mjs +48 -0
- package/scripts/vite-tmp.d.mts +23 -0
- package/scripts/vite-tmp.mjs +157 -0
- package/scripts/vitest-bench.py +800 -0
- package/scripts/vitest-ci-files.ts +90 -0
- package/scripts/vitest-ci.config.ts +15 -0
- package/scripts/vitest-cpu.ts +46 -0
- package/scripts/vitest-environments.ts +41 -0
- package/scripts/vitest-fixture-snapshots.config.ts +8 -0
- package/scripts/vitest-lane.ts +53 -0
- package/scripts/vitest-module-cache.ts +49 -0
- package/scripts/vitest-native-escape.config.ts +9 -0
- package/scripts/vitest-plan.ts +94 -0
- package/scripts/vitest-push-guards.config.ts +13 -0
- package/scripts/vitest-push.config.ts +19 -0
- package/scripts/vitest-shard.ts +109 -0
- package/scripts/vitest-timings.ts +32 -0
- package/scripts/vitest-tmp.ts +83 -0
- package/scripts/vitest.sh +5 -0
- package/scripts/vps/dump.sh +50 -0
- package/scripts/vps/harden-apply.sh +490 -0
- package/scripts/vps/harden-caddy.sh +215 -0
- package/scripts/vps/harden.sh +358 -0
- package/scripts/vps/health-stub.mjs +11 -0
- package/scripts/vps/pull.mjs +156 -0
- package/scripts/vps/rebuild.sh +531 -0
- package/scripts/vps/restore-check.sh +35 -0
- package/scripts/vps/setup-state.mjs +121 -0
- package/scripts/vps/setup.sh +442 -0
- package/scripts/vps/uptime.sh +26 -0
- package/scripts/vps/wildshard-agent.pub +1 -0
- package/scripts/vps/wildshard-apply.mjs +127 -0
- package/scripts/vps/wildshard-config +211 -0
- package/scripts/vps-harden-proof.sh +117 -0
- package/scripts/vps-rebuild-proof.sh +170 -0
- package/scripts/warm-native-chrome.d.mts +6 -0
- package/scripts/warm-native-chrome.mjs +75 -0
- package/scripts/webkit-mem-reading.mjs +157 -0
- package/scripts/webkit-render-smoke.mjs +145 -0
- package/scripts/worker-bootstrap-proof.mjs +79 -0
- package/scripts/worker-client-death-return.mjs +97 -0
- package/scripts/worker-client-death.mjs +67 -0
- package/scripts/worker-client-fights.mjs +1438 -0
- package/scripts/worker-client-grid-entry.mjs +239 -0
- package/scripts/worker-client-hurt.mjs +92 -0
- package/scripts/worker-client-moments.mjs +340 -0
- package/scripts/worker-client-partner.mjs +93 -0
- package/scripts/worker-client-pine-durable.mjs +102 -0
- package/scripts/worker-client-pine-grid.mjs +77 -0
- package/scripts/worker-client-pine-import.mjs +93 -0
- package/scripts/worker-client-pine.mjs +114 -0
- package/scripts/worker-client-play.mjs +572 -0
- package/scripts/worker-client-proof.mjs +201 -0
- package/scripts/worker-client-repairs.mjs +108 -0
- package/scripts/worker-client-returns.mjs +51 -0
- package/scripts/worker-client-saves.mjs +146 -0
- package/scripts/worker-client-windup.mjs +50 -0
- package/scripts/worktree-ignore.d.mts +4 -0
- package/scripts/worktree-ignore.mjs +36 -0
- package/scripts/worktree-reap.mjs +214 -0
- package/scripts/worktree.mjs +339 -0
- package/src/.oxfmtrc.json +48 -0
- package/src/.oxlintrc.json +190 -0
- package/src/cli/main.ts +112 -0
- package/src/cli/version.ts +13 -0
- package/src/client/app/assetTables.ts +68 -0
- package/src/client/app/bootDownloads.ts +43 -0
- package/src/client/app/bootRoute.ts +27 -0
- package/src/client/app/calibrate.ts +9 -0
- package/src/client/app/dropModal.ts +99 -0
- package/src/client/app/entry.ts +439 -0
- package/src/client/app/failScreens.ts +561 -0
- package/src/client/app/identity.ts +10 -0
- package/src/client/app/main.ts +3 -0
- package/src/client/app/pageServices.ts +20 -0
- package/src/client/app/selectedManifests.ts +31 -0
- package/src/client/app/shardSelection.ts +46 -0
- package/src/client/app/titleSettings.ts +15 -0
- package/src/client/app.tsx +53 -0
- package/src/client/engine/ai/view/eliteController.ts +148 -0
- package/src/client/engine/ai/view/eliteEntry.ts +464 -0
- package/src/client/engine/aliasFixture.webp +0 -0
- package/src/client/engine/anim/channel.ts +58 -0
- package/src/client/engine/anim/machine.ts +77 -0
- package/src/client/engine/anim/rig.ts +150 -0
- package/src/client/engine/anim/rigAtlas.ts +73 -0
- package/src/client/engine/anim/rigParser.ts +59 -0
- package/src/client/engine/app/app.ts +262 -0
- package/src/client/engine/app/assets.ts +122 -0
- package/src/client/engine/app/cachedAssets.ts +116 -0
- package/src/client/engine/app/disposalCache.ts +30 -0
- package/src/client/engine/app/runtime.ts +16 -0
- package/src/client/engine/app/sceneOwnership.ts +317 -0
- package/src/client/engine/app/services.ts +20 -0
- package/src/client/engine/app/systems.ts +71 -0
- package/src/client/engine/app/ui.ts +33 -0
- package/src/client/engine/app/view/frameScheduler.ts +65 -0
- package/src/client/engine/app/view/pageActivity.ts +12 -0
- package/src/client/engine/app/view/presentation.ts +41 -0
- package/src/client/engine/app/view/presentationLoop.ts +56 -0
- package/src/client/engine/app/view/scopeEnvironment.ts +39 -0
- package/src/client/engine/app/workerScope.js +20 -0
- package/src/client/engine/audio/AmbienceBeds.ts +197 -0
- package/src/client/engine/audio/Audio.ts +634 -0
- package/src/client/engine/audio/Cues.ts +153 -0
- package/src/client/engine/audio/Music.ts +958 -0
- package/src/client/engine/audio/SetScore.ts +297 -0
- package/src/client/engine/audio/Stems.ts +277 -0
- package/src/client/engine/audio/Voices.ts +299 -0
- package/src/client/engine/audio/aacNative.ts +46 -0
- package/src/client/engine/audio/aacPull.ts +166 -0
- package/src/client/engine/audio/aacSource.ts +122 -0
- package/src/client/engine/audio/aacTrack.ts +115 -0
- package/src/client/engine/audio/aacWindows.ts +66 -0
- package/src/client/engine/audio/activity.ts +70 -0
- package/src/client/engine/audio/activityTimers.ts +37 -0
- package/src/client/engine/audio/ambience.ts +549 -0
- package/src/client/engine/audio/audioLog.ts +22 -0
- package/src/client/engine/audio/codecs.merge.d.ts +9 -0
- package/src/client/engine/audio/credits.ts +48 -0
- package/src/client/engine/audio/cueRouting.ts +93 -0
- package/src/client/engine/audio/declared.ts +95 -0
- package/src/client/engine/audio/declaredAmbience.ts +113 -0
- package/src/client/engine/audio/declaredBank.ts +104 -0
- package/src/client/engine/audio/declaredGameplay.ts +82 -0
- package/src/client/engine/audio/dsp.ts +164 -0
- package/src/client/engine/audio/gen.ts +538 -0
- package/src/client/engine/audio/interactSfx.ts +95 -0
- package/src/client/engine/audio/levelAudio.ts +131 -0
- package/src/client/engine/audio/loopWindow.ts +24 -0
- package/src/client/engine/audio/ownership.ts +16 -0
- package/src/client/engine/audio/playerVoices.ts +278 -0
- package/src/client/engine/audio/preload.ts +166 -0
- package/src/client/engine/audio/score/score.ts +60 -0
- package/src/client/engine/audio/scoreSelection.ts +19 -0
- package/src/client/engine/audio/surface.ts +71 -0
- package/src/client/engine/audio/synth.ts +301 -0
- package/src/client/engine/audio/unlock.ts +104 -0
- package/src/client/engine/audio/util.ts +95 -0
- package/src/client/engine/blocks.ts +6 -0
- package/src/client/engine/boot/audioFiles.ts +9 -0
- package/src/client/engine/boot/audioInventory.ts +34 -0
- package/src/client/engine/boot/audioPack.ts +54 -0
- package/src/client/engine/boot/bakedApi.ts +46 -0
- package/src/client/engine/boot/bakedTextures.ts +114 -0
- package/src/client/engine/boot/bootCache.ts +16 -0
- package/src/client/engine/boot/bootTrace.ts +362 -0
- package/src/client/engine/boot/browserChunkRecovery.ts +136 -0
- package/src/client/engine/boot/bytes.ts +272 -0
- package/src/client/engine/boot/catalog.ts +35 -0
- package/src/client/engine/boot/chunkRecovery.ts +41 -0
- package/src/client/engine/boot/clearDownloads.ts +128 -0
- package/src/client/engine/boot/contentBase.ts +77 -0
- package/src/client/engine/boot/contentRead.ts +151 -0
- package/src/client/engine/boot/diagnostics.ts +195 -0
- package/src/client/engine/boot/download.ts +112 -0
- package/src/client/engine/boot/dropNotice.ts +260 -0
- package/src/client/engine/boot/earlyPrograms.ts +123 -0
- package/src/client/engine/boot/extras.ts +324 -0
- package/src/client/engine/boot/filePolicy.ts +126 -0
- package/src/client/engine/boot/firstPlayMark.ts +43 -0
- package/src/client/engine/boot/gpuFiles.ts +176 -0
- package/src/client/engine/boot/gpuTrace.ts +42 -0
- package/src/client/engine/boot/idle.ts +52 -0
- package/src/client/engine/boot/imageDecode.ts +95 -0
- package/src/client/engine/boot/imageDecode.worker.ts +69 -0
- package/src/client/engine/boot/ktx2.generated.ts +157 -0
- package/src/client/engine/boot/lastEnd.ts +312 -0
- package/src/client/engine/boot/leaveAfterPaint.ts +16 -0
- package/src/client/engine/boot/liveJsonParser.ts +124 -0
- package/src/client/engine/boot/liveJsonParser.worker.ts +22 -0
- package/src/client/engine/boot/loadingDownloadText.ts +54 -0
- package/src/client/engine/boot/loadingPacks.ts +18 -0
- package/src/client/engine/boot/lowPower.ts +96 -0
- package/src/client/engine/boot/manifest.ts +12 -0
- package/src/client/engine/boot/pack.ts +180 -0
- package/src/client/engine/boot/parsedPages.ts +115 -0
- package/src/client/engine/boot/perflog.ts +15 -0
- package/src/client/engine/boot/plan.ts +256 -0
- package/src/client/engine/boot/prefetch.ts +188 -0
- package/src/client/engine/boot/prefetchQuota.ts +84 -0
- package/src/client/engine/boot/readContentResponse.ts +17 -0
- package/src/client/engine/boot/retry.ts +14 -0
- package/src/client/engine/boot/runtime.ts +21 -0
- package/src/client/engine/boot/shardPrefetch.ts +278 -0
- package/src/client/engine/boot/shell.ts +135 -0
- package/src/client/engine/boot/stuck.ts +106 -0
- package/src/client/engine/boot/stuckStep.ts +99 -0
- package/src/client/engine/boot/sw.ts +385 -0
- package/src/client/engine/boot/swGlobal.d.ts +9 -0
- package/src/client/engine/boot/texturePack.ts +182 -0
- package/src/client/engine/boot/timeLeft.ts +106 -0
- package/src/client/engine/boot/titleArrival.ts +101 -0
- package/src/client/engine/boot/weights.ts +21 -0
- package/src/client/engine/boot.ts +51 -0
- package/src/client/engine/build.d.ts +2 -0
- package/src/client/engine/calibrate/entry.ts +29 -0
- package/src/client/engine/calibrate/js.ts +39 -0
- package/src/client/engine/calibrate/math.ts +23 -0
- package/src/client/engine/calibrate/run.ts +93 -0
- package/src/client/engine/calibrate/wasm.ts +154 -0
- package/src/client/engine/combat/EquipmentService.ts +412 -0
- package/src/client/engine/combat/cues.ts +46 -0
- package/src/client/engine/combat/types.ts +21 -0
- package/src/client/engine/combat/view/Bow.ts +462 -0
- package/src/client/engine/combat/view/DropArc.ts +64 -0
- package/src/client/engine/combat/view/EquipmentHost.ts +15 -0
- package/src/client/engine/combat/view/SweptMelee.ts +691 -0
- package/src/client/engine/combat/view/bowProfile.ts +182 -0
- package/src/client/engine/combat/view/brass.ts +65 -0
- package/src/client/engine/combat/view/firearmFx.ts +25 -0
- package/src/client/engine/combat/view/hitscan.ts +29 -0
- package/src/client/engine/combat/view/melee.ts +67 -0
- package/src/client/engine/combat/view/projectedTrail.ts +42 -0
- package/src/client/engine/combat/view/projectile.ts +315 -0
- package/src/client/engine/combat/view/ranged.ts +460 -0
- package/src/client/engine/combat/view/rangedFeel.ts +39 -0
- package/src/client/engine/combat/view/slashTrail.ts +151 -0
- package/src/client/engine/core/Game.ts +1833 -0
- package/src/client/engine/core/GpuRecovery.ts +200 -0
- package/src/client/engine/core/Grade.ts +109 -0
- package/src/client/engine/core/KeepAlive.ts +32 -0
- package/src/client/engine/core/Tour.ts +46 -0
- package/src/client/engine/core/Volumetrics.ts +260 -0
- package/src/client/engine/core/apiOrigin.ts +12 -0
- package/src/client/engine/core/assets.ts +292 -0
- package/src/client/engine/core/bootstrap.ts +175 -0
- package/src/client/engine/core/crashFlag.ts +32 -0
- package/src/client/engine/core/crossroads.ts +4 -0
- package/src/client/engine/core/deflate.ts +110 -0
- package/src/client/engine/core/devMode.ts +49 -0
- package/src/client/engine/core/devPixels.ts +62 -0
- package/src/client/engine/core/drawBudget.ts +48 -0
- package/src/client/engine/core/errorReport.ts +248 -0
- package/src/client/engine/core/gpuOnly.ts +139 -0
- package/src/client/engine/core/graphicsMode.ts +62 -0
- package/src/client/engine/core/graphicsQuality.ts +117 -0
- package/src/client/engine/core/heldTiming.ts +24 -0
- package/src/client/engine/core/ktx2.ts +511 -0
- package/src/client/engine/core/ktx2Sources.ts +22 -0
- package/src/client/engine/core/ktx2Zstd.ts +151 -0
- package/src/client/engine/core/ktx2Zstd.worker.ts +31 -0
- package/src/client/engine/core/practiceRoom.ts +16 -0
- package/src/client/engine/core/reloadGuard.ts +21 -0
- package/src/client/engine/core/scopedCpu.ts +49 -0
- package/src/client/engine/core/scopedWorkerPool.ts +55 -0
- package/src/client/engine/core/shadowLayer.ts +8 -0
- package/src/client/engine/core/slowGpuPacing.ts +118 -0
- package/src/client/engine/core/sustainedFrames.ts +73 -0
- package/src/client/engine/core/tier.ts +126 -0
- package/src/client/engine/core/viewport.ts +130 -0
- package/src/client/engine/core/webglStartup.ts +50 -0
- package/src/client/engine/core/worldDepth.ts +183 -0
- package/src/client/engine/core/zstdFrame.ts +38 -0
- package/src/client/engine/debug/probe.ts +560 -0
- package/src/client/engine/debug/timerBaseline.ts +14 -0
- package/src/client/engine/entities/AnimalFactory.ts +766 -0
- package/src/client/engine/entities/AnimalHerdView.ts +413 -0
- package/src/client/engine/entities/AnimalView.ts +583 -0
- package/src/client/engine/entities/RowBodies.ts +276 -0
- package/src/client/engine/entities/animalMatrices.ts +179 -0
- package/src/client/engine/entities/animalShadow.ts +58 -0
- package/src/client/engine/entities/animalShells.ts +14 -0
- package/src/client/engine/entities/farHerd.ts +469 -0
- package/src/client/engine/entities/lowpoly.ts +155 -0
- package/src/client/engine/entities/species/loft.ts +253 -0
- package/src/client/engine/entities/species/look.ts +122 -0
- package/src/client/engine/events/maps.ts +58 -0
- package/src/client/engine/explore/Compare.ts +126 -0
- package/src/client/engine/explore/Explore.ts +648 -0
- package/src/client/engine/explore/FreeCam.ts +280 -0
- package/src/client/engine/explore/MiniMap.ts +283 -0
- package/src/client/engine/explore/ModelExplorer.ts +1155 -0
- package/src/client/engine/explore/Select.ts +176 -0
- package/src/client/engine/explore/SetExplorer.ts +553 -0
- package/src/client/engine/explore/TouchFly.ts +236 -0
- package/src/client/engine/explore/catalog.ts +159 -0
- package/src/client/engine/explore/diorama.ts +245 -0
- package/src/client/engine/explore/fatLines.ts +47 -0
- package/src/client/engine/explore/img/mockups/nalati-camp-live.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nalati-camp-target.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nalati-gully-live.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nalati-gully-target.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nalati-rail-live.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nalati-rail-target.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nine-gate-live.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nine-gate-target.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nine-stair-live.jpg +0 -0
- package/src/client/engine/explore/img/mockups/nine-stair-target.jpg +0 -0
- package/src/client/engine/explore/pick.ts +120 -0
- package/src/client/engine/explore/registry.ts +16 -0
- package/src/client/engine/explore/setView.ts +222 -0
- package/src/client/engine/explore/tiers.ts +27 -0
- package/src/client/engine/explore/viewPoint.ts +100 -0
- package/src/client/engine/fx/Impacts.ts +154 -0
- package/src/client/engine/fx/LightPool.ts +188 -0
- package/src/client/engine/fx/ParticlePool.ts +76 -0
- package/src/client/engine/fx/SiteLights.ts +119 -0
- package/src/client/engine/fx/effectField.ts +91 -0
- package/src/client/engine/fx/groundFx.ts +144 -0
- package/src/client/engine/fx/groundTell.ts +101 -0
- package/src/client/engine/fx/lightEmitters.ts +35 -0
- package/src/client/engine/input/ControlsPanel.ts +108 -0
- package/src/client/engine/input/InputService.ts +394 -0
- package/src/client/engine/input/bindingTable.ts +124 -0
- package/src/client/engine/input/bindings.ts +101 -0
- package/src/client/engine/input/dom.ts +62 -0
- package/src/client/engine/input/equipmentInput.ts +4 -0
- package/src/client/engine/input/gameplay.ts +36 -0
- package/src/client/engine/input/keycap.ts +25 -0
- package/src/client/engine/input/menuInput.ts +7 -0
- package/src/client/engine/input/platform.ts +36 -0
- package/src/client/engine/input/weaponActions.ts +8 -0
- package/src/client/engine/level/frame.ts +95 -0
- package/src/client/engine/level/installation.ts +107 -0
- package/src/client/engine/level/load.ts +97 -0
- package/src/client/engine/level/registrations.ts +59 -0
- package/src/client/engine/math/color.ts +6 -0
- package/src/client/engine/models/animalGeometry.ts +29 -0
- package/src/client/engine/models/castawayBody.ts +257 -0
- package/src/client/engine/models/colliders.ts +186 -0
- package/src/client/engine/models/creature.ts +66 -0
- package/src/client/engine/models/cull.ts +953 -0
- package/src/client/engine/models/gear.ts +87 -0
- package/src/client/engine/models/geometryPack.ts +14 -0
- package/src/client/engine/models/hoverboard.ts +29 -0
- package/src/client/engine/models/instancedBatch.ts +324 -0
- package/src/client/engine/models/interact.ts +26 -0
- package/src/client/engine/models/live.ts +174 -0
- package/src/client/engine/models/model.ts +449 -0
- package/src/client/engine/models/modelPose.ts +14 -0
- package/src/client/engine/models/nativeGeometry.ts +114 -0
- package/src/client/engine/models/ownedGeometry.ts +294 -0
- package/src/client/engine/models/place.ts +1476 -0
- package/src/client/engine/models/roster.ts +44 -0
- package/src/client/engine/models/sets.ts +74 -0
- package/src/client/engine/models/slots.ts +69 -0
- package/src/client/engine/models/staticSets.ts +119 -0
- package/src/client/engine/models/swimHands.ts +44 -0
- package/src/client/engine/models/trainingDummy.ts +46 -0
- package/src/client/engine/models/trainingDummyFigure.ts +16 -0
- package/src/client/engine/models/weld.ts +260 -0
- package/src/client/engine/net/attackPrediction.ts +38 -0
- package/src/client/engine/net/client.ts +314 -0
- package/src/client/engine/net/heldOnOthers.ts +167 -0
- package/src/client/engine/net/hurtOther.ts +12 -0
- package/src/client/engine/net/interpolator.ts +179 -0
- package/src/client/engine/net/nameTag.ts +88 -0
- package/src/client/engine/net/netClock.ts +90 -0
- package/src/client/engine/net/netPlayer.ts +265 -0
- package/src/client/engine/net/netRecord.ts +43 -0
- package/src/client/engine/net/onRep.ts +75 -0
- package/src/client/engine/net/otherPlayers.ts +239 -0
- package/src/client/engine/net/othersOnMap.ts +80 -0
- package/src/client/engine/net/predictionWorld.ts +100 -0
- package/src/client/engine/net/predictor.ts +233 -0
- package/src/client/engine/net/redial.ts +179 -0
- package/src/client/engine/net/remoteAir.ts +134 -0
- package/src/client/engine/net/remoteBoard.ts +128 -0
- package/src/client/engine/net/remoteDeath.ts +140 -0
- package/src/client/engine/net/remoteGait.ts +114 -0
- package/src/client/engine/net/remoteHurt.ts +123 -0
- package/src/client/engine/net/remoteStrike.ts +160 -0
- package/src/client/engine/net/voiceNear.ts +55 -0
- package/src/client/engine/net/webSocketTransport.ts +91 -0
- package/src/client/engine/physics/active.ts +15 -0
- package/src/client/engine/physics/boxFrame.ts +15 -0
- package/src/client/engine/physics/calibration.ts +31 -0
- package/src/client/engine/physics/debug.ts +68 -0
- package/src/client/engine/physics/navmeshLoad.ts +86 -0
- package/src/client/engine/physics/ragdoll.ts +513 -0
- package/src/client/engine/physics/ropeDeck.ts +112 -0
- package/src/client/engine/player/AimAssist.ts +183 -0
- package/src/client/engine/player/AimTargets.ts +55 -0
- package/src/client/engine/player/CameraFX.ts +89 -0
- package/src/client/engine/player/Hands.ts +216 -0
- package/src/client/engine/player/LockOnTarget.ts +395 -0
- package/src/client/engine/player/Player.ts +678 -0
- package/src/client/engine/player/Skins.ts +109 -0
- package/src/client/engine/player/TouchControls.ts +564 -0
- package/src/client/engine/player/WaterLine.ts +94 -0
- package/src/client/engine/player/WeaponPickup.ts +465 -0
- package/src/client/engine/player/bladeGlow.ts +120 -0
- package/src/client/engine/player/firstPersonArms.ts +384 -0
- package/src/client/engine/player/heldHandParts.ts +91 -0
- package/src/client/engine/player/viewmodelSources.ts +25 -0
- package/src/client/engine/player/viewmodelTextures.ts +261 -0
- package/src/client/engine/player/viewmodelTextures.worker.ts +28 -0
- package/src/client/engine/practice/DummyClips.ts +100 -0
- package/src/client/engine/practice/DummyMotion.ts +287 -0
- package/src/client/engine/practice/DummyStudio.ts +137 -0
- package/src/client/engine/practice/TrainingArena.ts +463 -0
- package/src/client/engine/practice/TrainingDummy.ts +160 -0
- package/src/client/engine/practice/TrainingDummyAssets.ts +80 -0
- package/src/client/engine/practice/arena.css +20 -0
- package/src/client/engine/practice/dummyMetadata.ts +12 -0
- package/src/client/engine/practice/lineup.ts +17 -0
- package/src/client/engine/practice/playground/Playground.ts +52 -0
- package/src/client/engine/practice/playground/catalog.ts +44 -0
- package/src/client/engine/practice/playground/devGrid.ts +173 -0
- package/src/client/engine/practice/playground/hud.ts +80 -0
- package/src/client/engine/practice/playground/load.ts +24 -0
- package/src/client/engine/practice/practiceLoan.ts +52 -0
- package/src/client/engine/practice/targets.ts +15 -0
- package/src/client/engine/pwa/cacheNames.ts +2 -0
- package/src/client/engine/pwa/sw.js +401 -0
- package/src/client/engine/quest/view/replica.ts +88 -0
- package/src/client/engine/quest/view/ui.ts +221 -0
- package/src/client/engine/quest/view.ts +209 -0
- package/src/client/engine/render/allocationBytes.ts +16 -0
- package/src/client/engine/render/allocationJournal.ts +125 -0
- package/src/client/engine/render/aoTransparency.ts +225 -0
- package/src/client/engine/render/budgetReport.ts +53 -0
- package/src/client/engine/render/budgets.ts +72 -0
- package/src/client/engine/render/calibration.ts +32 -0
- package/src/client/engine/render/calibrationGpu.ts +84 -0
- package/src/client/engine/render/changedTextureUploads.ts +118 -0
- package/src/client/engine/render/compileLights.ts +75 -0
- package/src/client/engine/render/compileShadows.ts +29 -0
- package/src/client/engine/render/composerDepth.ts +26 -0
- package/src/client/engine/render/compressedMipmaps.ts +59 -0
- package/src/client/engine/render/compressedTextureRetirement.ts +71 -0
- package/src/client/engine/render/compressedUpload.ts +107 -0
- package/src/client/engine/render/contextErrors.ts +14 -0
- package/src/client/engine/render/dataLook.ts +691 -0
- package/src/client/engine/render/desktopReference.ts +5 -0
- package/src/client/engine/render/diagnosticJournal.ts +23 -0
- package/src/client/engine/render/displayColour.ts +55 -0
- package/src/client/engine/render/doubleElements.ts +33 -0
- package/src/client/engine/render/drawGuards.ts +47 -0
- package/src/client/engine/render/drawHooks.ts +265 -0
- package/src/client/engine/render/drawNeutral.ts +19 -0
- package/src/client/engine/render/drawnEnvironment.ts +35 -0
- package/src/client/engine/render/entryWarmupBound.ts +19 -0
- package/src/client/engine/render/families/emissive.ts +224 -0
- package/src/client/engine/render/families/ground.ts +291 -0
- package/src/client/engine/render/families/measure.ts +191 -0
- package/src/client/engine/render/families/paintedTerrain.ts +388 -0
- package/src/client/engine/render/families/painterly.ts +288 -0
- package/src/client/engine/render/families/pbr.ts +67 -0
- package/src/client/engine/render/families/registry.ts +140 -0
- package/src/client/engine/render/families/toon.ts +193 -0
- package/src/client/engine/render/fencedUnits.ts +115 -0
- package/src/client/engine/render/firstFrameParts.ts +95 -0
- package/src/client/engine/render/fogPatches.ts +56 -0
- package/src/client/engine/render/frameCounter.ts +47 -0
- package/src/client/engine/render/frameDrawRange.ts +120 -0
- package/src/client/engine/render/gltfMaterialOrder.ts +83 -0
- package/src/client/engine/render/gpuClasses.ts +29 -0
- package/src/client/engine/render/gpuLabels.ts +437 -0
- package/src/client/engine/render/graph/colourFunction.ts +83 -0
- package/src/client/engine/render/graph/glsl.ts +1056 -0
- package/src/client/engine/render/graph/glslCodec.ts +48 -0
- package/src/client/engine/render/graph/glslMaterial.ts +463 -0
- package/src/client/engine/render/graph/glslPost.ts +79 -0
- package/src/client/engine/render/graph/glslProgram.ts +698 -0
- package/src/client/engine/render/graph/presets.ts +812 -0
- package/src/client/engine/render/graph/viewRay.ts +28 -0
- package/src/client/engine/render/graphBackend.ts +176 -0
- package/src/client/engine/render/hoverboardGeometry.ts +54 -0
- package/src/client/engine/render/instancedGeometry.ts +28 -0
- package/src/client/engine/render/instancedTwin.ts +40 -0
- package/src/client/engine/render/ktx2Probe.ts +299 -0
- package/src/client/engine/render/layeredMaps.ts +64 -0
- package/src/client/engine/render/lightUniforms.ts +22 -0
- package/src/client/engine/render/lighterTargets.ts +47 -0
- package/src/client/engine/render/lightmaps.ts +36 -0
- package/src/client/engine/render/look.ts +406 -0
- package/src/client/engine/render/lookLight.ts +107 -0
- package/src/client/engine/render/lut.ts +23 -0
- package/src/client/engine/render/memoryImages.ts +31 -0
- package/src/client/engine/render/memorySaver.ts +262 -0
- package/src/client/engine/render/offscreenBuild.ts +184 -0
- package/src/client/engine/render/offscreenPreparation.ts +41 -0
- package/src/client/engine/render/parkedDraws.ts +920 -0
- package/src/client/engine/render/pmremSize.ts +21 -0
- package/src/client/engine/render/postPreparation.ts +67 -0
- package/src/client/engine/render/precompile.ts +1833 -0
- package/src/client/engine/render/programRetention.ts +125 -0
- package/src/client/engine/render/readbackPreparation.ts +23 -0
- package/src/client/engine/render/regionCinematic.ts +212 -0
- package/src/client/engine/render/regionLook.ts +301 -0
- package/src/client/engine/render/releasedArrays.ts +13 -0
- package/src/client/engine/render/renderer.ts +68 -0
- package/src/client/engine/render/scatterInstances.ts +139 -0
- package/src/client/engine/render/scenePreparation.ts +27 -0
- package/src/client/engine/render/shaderPatches.ts +303 -0
- package/src/client/engine/render/shaderText.ts +95 -0
- package/src/client/engine/render/shadowDepthVariants.ts +35 -0
- package/src/client/engine/render/shadowMaterialOwnership.ts +120 -0
- package/src/client/engine/render/skinnedSpheres.ts +30 -0
- package/src/client/engine/render/skyEnvironment.ts +222 -0
- package/src/client/engine/render/staticMatrices.ts +88 -0
- package/src/client/engine/render/streamedInstances.ts +184 -0
- package/src/client/engine/render/textureBytes.ts +185 -0
- package/src/client/engine/render/textureUploadEvents.ts +60 -0
- package/src/client/engine/render/tierBenchmark.ts +54 -0
- package/src/client/engine/render/tierBoot.ts +50 -0
- package/src/client/engine/render/tierSelect.ts +27 -0
- package/src/client/engine/render/tiers.ts +78 -0
- package/src/client/engine/render/uniformCaches.ts +143 -0
- package/src/client/engine/render/uploadOwnership.ts +335 -0
- package/src/client/engine/render/viewmodel.ts +114 -0
- package/src/client/engine/render/viewmodelFeel.ts +374 -0
- package/src/client/engine/saves/indexed.ts +250 -0
- package/src/client/engine/saves/slots.ts +42 -0
- package/src/client/engine/saves/view/storage.ts +11 -0
- package/src/client/engine/script/client.ts +240 -0
- package/src/client/engine/telemetry/bootInbox.ts +18 -0
- package/src/client/engine/telemetry/browserErrors.ts +173 -0
- package/src/client/engine/telemetry/crossroads.ts +26 -0
- package/src/client/engine/telemetry/health.ts +40 -0
- package/src/client/engine/telemetry/model.ts +36 -0
- package/src/client/engine/telemetry/runtime.ts +62 -0
- package/src/client/engine/types/meshopt-simplifier.d.ts +10 -0
- package/src/client/engine/types/n8ao.d.ts +52 -0
- package/src/client/engine/ui/BootSettings.ts +97 -0
- package/src/client/engine/ui/BossBar.ts +141 -0
- package/src/client/engine/ui/Combat.ts +299 -0
- package/src/client/engine/ui/DeathFade.ts +104 -0
- package/src/client/engine/ui/DebugMenu.ts +199 -0
- package/src/client/engine/ui/EliteBar.ts +219 -0
- package/src/client/engine/ui/ErrorModal.ts +309 -0
- package/src/client/engine/ui/Feedback.ts +346 -0
- package/src/client/engine/ui/FirstHints.ts +279 -0
- package/src/client/engine/ui/HUD.ts +714 -0
- package/src/client/engine/ui/HurtArc.ts +102 -0
- package/src/client/engine/ui/ItemCard.ts +95 -0
- package/src/client/engine/ui/KeyHelp.ts +59 -0
- package/src/client/engine/ui/Loading.ts +851 -0
- package/src/client/engine/ui/LockOn.ts +131 -0
- package/src/client/engine/ui/Map.ts +280 -0
- package/src/client/engine/ui/Menu.ts +438 -0
- package/src/client/engine/ui/Minimap.ts +840 -0
- package/src/client/engine/ui/Perf.ts +356 -0
- package/src/client/engine/ui/ReloadPrompt.ts +42 -0
- package/src/client/engine/ui/RotateGate.ts +40 -0
- package/src/client/engine/ui/SavePanel.ts +62 -0
- package/src/client/engine/ui/Settings.ts +277 -0
- package/src/client/engine/ui/SpeedLines.ts +46 -0
- package/src/client/engine/ui/StartTitle.ts +39 -0
- package/src/client/engine/ui/ToastStack.ts +90 -0
- package/src/client/engine/ui/Update.ts +116 -0
- package/src/client/engine/ui/WeaponStrip.ts +272 -0
- package/src/client/engine/ui/WindupWarn.ts +116 -0
- package/src/client/engine/ui/authoredDebugRows.ts +3 -0
- package/src/client/engine/ui/buildCheck.ts +72 -0
- package/src/client/engine/ui/buildRow.ts +71 -0
- package/src/client/engine/ui/cards.ts +41 -0
- package/src/client/engine/ui/debugOptions.ts +230 -0
- package/src/client/engine/ui/declared.ts +89 -0
- package/src/client/engine/ui/devSwitch.ts +48 -0
- package/src/client/engine/ui/developerBanner.ts +32 -0
- package/src/client/engine/ui/diagnosticsCopy.ts +20 -0
- package/src/client/engine/ui/drawBudgetCounter.ts +10 -0
- package/src/client/engine/ui/errorScreen.ts +109 -0
- package/src/client/engine/ui/frameWindow.ts +50 -0
- package/src/client/engine/ui/graphicsBlock.ts +156 -0
- package/src/client/engine/ui/graphicsControls.ts +47 -0
- package/src/client/engine/ui/haptics.ts +28 -0
- package/src/client/engine/ui/hoverBoost.ts +61 -0
- package/src/client/engine/ui/hudAdapters.ts +61 -0
- package/src/client/engine/ui/hudSlots.ts +130 -0
- package/src/client/engine/ui/icons.ts +62 -0
- package/src/client/engine/ui/layers.ts +134 -0
- package/src/client/engine/ui/leaveGuard.ts +64 -0
- package/src/client/engine/ui/loadProgress.ts +67 -0
- package/src/client/engine/ui/loading.css +125 -0
- package/src/client/engine/ui/lookLightOption.ts +22 -0
- package/src/client/engine/ui/mapLabel.ts +18 -0
- package/src/client/engine/ui/mapPainter.ts +395 -0
- package/src/client/engine/ui/menuSettings.ts +188 -0
- package/src/client/engine/ui/namePrompt.ts +138 -0
- package/src/client/engine/ui/offlineDownload.ts +83 -0
- package/src/client/engine/ui/ownership.ts +14 -0
- package/src/client/engine/ui/panel.ts +166 -0
- package/src/client/engine/ui/perf.css +93 -0
- package/src/client/engine/ui/perfDock.ts +61 -0
- package/src/client/engine/ui/perfHud.ts +332 -0
- package/src/client/engine/ui/perfLap.ts +206 -0
- package/src/client/engine/ui/perfLapSummary.ts +92 -0
- package/src/client/engine/ui/perfProbe.ts +280 -0
- package/src/client/engine/ui/pinKeepOut.ts +59 -0
- package/src/client/engine/ui/playerDeath.ts +16 -0
- package/src/client/engine/ui/playerHurt.ts +70 -0
- package/src/client/engine/ui/playerReload.ts +55 -0
- package/src/client/engine/ui/reloadChip.ts +24 -0
- package/src/client/engine/ui/reloadCover.ts +110 -0
- package/src/client/engine/ui/review.ts +158 -0
- package/src/client/engine/ui/roomMap.ts +109 -0
- package/src/client/engine/ui/saveStrings.ts +9 -0
- package/src/client/engine/ui/settingsTabs.ts +249 -0
- package/src/client/engine/ui/styles/base.css +92 -0
- package/src/client/engine/ui/styles/boss.css +97 -0
- package/src/client/engine/ui/styles/combat.css +100 -0
- package/src/client/engine/ui/styles/debug.css +22 -0
- package/src/client/engine/ui/styles/elite.css +87 -0
- package/src/client/engine/ui/styles/explore.css +435 -0
- package/src/client/engine/ui/styles/feedback.css +63 -0
- package/src/client/engine/ui/styles/game.css +290 -0
- package/src/client/engine/ui/styles/gmenu.css +407 -0
- package/src/client/engine/ui/styles/hints.css +26 -0
- package/src/client/engine/ui/styles/itemcard.css +38 -0
- package/src/client/engine/ui/styles/menu.css +129 -0
- package/src/client/engine/ui/styles/minimap.css +87 -0
- package/src/client/engine/ui/styles/namePrompt.css +27 -0
- package/src/client/engine/ui/styles/playgrounds.css +18 -0
- package/src/client/engine/ui/styles/quest.css +65 -0
- package/src/client/engine/ui/styles/rotate.css +55 -0
- package/src/client/engine/ui/styles/touch.css +303 -0
- package/src/client/engine/ui/styles/update.css +27 -0
- package/src/client/engine/ui/tabs.ts +27 -0
- package/src/client/engine/ui/unstuck.ts +38 -0
- package/src/client/engine/ui/voiceSettings.ts +135 -0
- package/src/client/engine/world/Atmosphere.ts +333 -0
- package/src/client/engine/world/BakedSky.ts +155 -0
- package/src/client/engine/world/Boundary.ts +234 -0
- package/src/client/engine/world/Grass.ts +664 -0
- package/src/client/engine/world/Horizon.ts +237 -0
- package/src/client/engine/world/HorizonMatte.ts +399 -0
- package/src/client/engine/world/Terrain.ts +560 -0
- package/src/client/engine/world/TreeFactory.ts +128 -0
- package/src/client/engine/world/backdropLayer.ts +580 -0
- package/src/client/engine/world/blenderArea.ts +23 -0
- package/src/client/engine/world/bounds.ts +57 -0
- package/src/client/engine/world/cascadeCull.ts +251 -0
- package/src/client/engine/world/cascadeLights.ts +29 -0
- package/src/client/engine/world/cloudField.ts +29 -0
- package/src/client/engine/world/coarseTileMask.ts +100 -0
- package/src/client/engine/world/csmLightBlock.ts +23 -0
- package/src/client/engine/world/declaredProps.ts +226 -0
- package/src/client/engine/world/forest/Forest.ts +378 -0
- package/src/client/engine/world/forest/treeSet.ts +140 -0
- package/src/client/engine/world/forest/treeSpecies.ts +17 -0
- package/src/client/engine/world/frameCamera.ts +58 -0
- package/src/client/engine/world/geometryBake.ts +272 -0
- package/src/client/engine/world/geometryBounds.ts +77 -0
- package/src/client/engine/world/geometryKit.ts +163 -0
- package/src/client/engine/world/hiddenFaces.ts +153 -0
- package/src/client/engine/world/interact/Interactables.ts +690 -0
- package/src/client/engine/world/interact/kit.ts +6 -0
- package/src/client/engine/world/lookFlags.ts +15 -0
- package/src/client/engine/world/lowpolyKit.ts +270 -0
- package/src/client/engine/world/lut.ts +45 -0
- package/src/client/engine/world/painterly.ts +109 -0
- package/src/client/engine/world/pointLightSkip.ts +31 -0
- package/src/client/engine/world/pond.ts +184 -0
- package/src/client/engine/world/pondGrid.ts +5 -0
- package/src/client/engine/world/registry.ts +348 -0
- package/src/client/engine/world/shadowCadence.ts +14 -0
- package/src/client/engine/world/shadowChunks.ts +193 -0
- package/src/client/engine/world/shadowFade.ts +190 -0
- package/src/client/engine/world/shadowFilter.ts +117 -0
- package/src/client/engine/world/shadowVariants.ts +115 -0
- package/src/client/engine/world/skyBackdrop.ts +526 -0
- package/src/client/engine/world/skyRig.ts +577 -0
- package/src/client/engine/world/skyTextures.ts +103 -0
- package/src/client/engine/world/terrainTileView.ts +164 -0
- package/src/client/engine/world/tileStreamer.ts +823 -0
- package/src/client/engine/world/voxelAO.ts +338 -0
- package/src/client/engine/world/water/ripplePixels.ts +51 -0
- package/src/client/engine/world/water/ripples.ts +102 -0
- package/src/client/engine/world/weakShaderMap.ts +58 -0
- package/src/client/engine/world/wind.ts +112 -0
- package/src/client/game/Boss.ts +354 -0
- package/src/client/game/Elite.ts +529 -0
- package/src/client/game/Inventory.ts +123 -0
- package/src/client/game/Progress.ts +166 -0
- package/src/client/game/ambient/ambientFlock.ts +71 -0
- package/src/client/game/ambient/crowdDraw.ts +85 -0
- package/src/client/game/ambient/foragerDraw.ts +56 -0
- package/src/client/game/ambient/pageCrowds.ts +81 -0
- package/src/client/game/ambient/wingField.ts +46 -0
- package/src/client/game/animation/limbCollision.ts +46 -0
- package/src/client/game/animation/limbQueryPose.ts +141 -0
- package/src/client/game/animation/limbQueryView.ts +53 -0
- package/src/client/game/animation/limbView.ts +28 -0
- package/src/client/game/audio/cueDirector.ts +157 -0
- package/src/client/game/audio/forestPage.ts +30 -0
- package/src/client/game/audio/sceneDirector.ts +239 -0
- package/src/client/game/audio/sceneEvents.merge.d.ts +9 -0
- package/src/client/game/audio/theme.ts +229 -0
- package/src/client/game/audio/voicePatches.ts +108 -0
- package/src/client/game/bag/BagButton.ts +85 -0
- package/src/client/game/bag/bag.ts +239 -0
- package/src/client/game/bag/equipment.ts +18 -0
- package/src/client/game/bag/tabs.ts +194 -0
- package/src/client/game/boot/audio.generated.ts +9258 -0
- package/src/client/game/boot/bytes.generated.ts +1643 -0
- package/src/client/game/boot/loadingPaths.ts +121 -0
- package/src/client/game/boot/packs.generated.ts +5 -0
- package/src/client/game/boot/spawnDownload.ts +999 -0
- package/src/client/game/boot/versions.generated.ts +868 -0
- package/src/client/game/boss/arenaFire.ts +135 -0
- package/src/client/game/boss/arenaRoom.ts +715 -0
- package/src/client/game/boss/arenaRoomView.ts +530 -0
- package/src/client/game/boss/barFeed.ts +253 -0
- package/src/client/game/boss/encounterView.ts +463 -0
- package/src/client/game/boss/presentation.ts +18 -0
- package/src/client/game/boss/roamingProjection.ts +255 -0
- package/src/client/game/boss/slotRowsView.ts +95 -0
- package/src/client/game/boss/socketRig.ts +129 -0
- package/src/client/game/boss/timedEncounters.ts +83 -0
- package/src/client/game/combat/roamingSession.ts +107 -0
- package/src/client/game/compendium/Journal.ts +85 -0
- package/src/client/game/compendium/compendium.css +135 -0
- package/src/client/game/compendium/install.ts +181 -0
- package/src/client/game/compendium/journalView.ts +224 -0
- package/src/client/game/compendium/keepsakes.ts +169 -0
- package/src/client/game/compendium/keepsakesView.ts +70 -0
- package/src/client/game/complete/ShardComplete.ts +148 -0
- package/src/client/game/complete/complete.css +71 -0
- package/src/client/game/complete/declared.ts +111 -0
- package/src/client/game/cosmetics/bodyShadow.ts +148 -0
- package/src/client/game/cosmetics/cosmetics.ts +119 -0
- package/src/client/game/cosmetics/locker.ts +88 -0
- package/src/client/game/data/pickupCatalogue.json +1008 -0
- package/src/client/game/debug/browser.d.ts +10 -0
- package/src/client/game/draftTitles.ts +26 -0
- package/src/client/game/eliteView.ts +246 -0
- package/src/client/game/engineStrings.ts +12 -0
- package/src/client/game/equipmentTypes.merge.d.ts +10 -0
- package/src/client/game/firstPlay.css +18 -0
- package/src/client/game/firstPlay.ts +94 -0
- package/src/client/game/generators/pickups.ts +92 -0
- package/src/client/game/grapple/fontPreparation.ts +31 -0
- package/src/client/game/grapple/netClaw.ts +61 -0
- package/src/client/game/grapple/ribbon.ts +159 -0
- package/src/client/game/grapple/tool.ts +478 -0
- package/src/client/game/grid/admissionPriority.ts +41 -0
- package/src/client/game/grid/admissionYield.ts +37 -0
- package/src/client/game/grid/approachProductInputs.ts +72 -0
- package/src/client/game/grid/assetResidency.ts +188 -0
- package/src/client/game/grid/borderShimmer.ts +185 -0
- package/src/client/game/grid/budgetOverlay.css +40 -0
- package/src/client/game/grid/budgetOverlay.ts +238 -0
- package/src/client/game/grid/budgetPoints.ts +184 -0
- package/src/client/game/grid/cellChanges.ts +106 -0
- package/src/client/game/grid/cellClip.ts +611 -0
- package/src/client/game/grid/cellCover.ts +58 -0
- package/src/client/game/grid/cellLoading.ts +89 -0
- package/src/client/game/grid/cellPresence.ts +28 -0
- package/src/client/game/grid/cellScreens.ts +83 -0
- package/src/client/game/grid/copyIdentity.ts +98 -0
- package/src/client/game/grid/copyLayout.ts +153 -0
- package/src/client/game/grid/copyPrompts.ts +31 -0
- package/src/client/game/grid/edgeSources.ts +120 -0
- package/src/client/game/grid/enteredEquipment.ts +65 -0
- package/src/client/game/grid/enteredInteract.ts +43 -0
- package/src/client/game/grid/entryDownloads.ts +45 -0
- package/src/client/game/grid/entryReadPrefetch.ts +64 -0
- package/src/client/game/grid/farImpostorDecodeWorker.ts +32 -0
- package/src/client/game/grid/farImpostorPack.ts +18 -0
- package/src/client/game/grid/farImpostorView.ts +130 -0
- package/src/client/game/grid/farView.ts +235 -0
- package/src/client/game/grid/frame.ts +845 -0
- package/src/client/game/grid/frameLook.ts +215 -0
- package/src/client/game/grid/frameModel.ts +126 -0
- package/src/client/game/grid/gridHud.css +47 -0
- package/src/client/game/grid/gridHud.ts +126 -0
- package/src/client/game/grid/hazeBand.ts +77 -0
- package/src/client/game/grid/homeCheckpoint.ts +11 -0
- package/src/client/game/grid/homeMetadata.ts +40 -0
- package/src/client/game/grid/intent.ts +65 -0
- package/src/client/game/grid/live.ts +787 -0
- package/src/client/game/grid/liveSession.ts +969 -0
- package/src/client/game/grid/loadingRings.ts +49 -0
- package/src/client/game/grid/mapAtlas.build.d.ts +4 -0
- package/src/client/game/grid/mapAtlas.ts +33 -0
- package/src/client/game/grid/mapFrame.ts +81 -0
- package/src/client/game/grid/memoryRows.ts +32 -0
- package/src/client/game/grid/memoryWarning.css +11 -0
- package/src/client/game/grid/memoryWarning.ts +81 -0
- package/src/client/game/grid/menu.ts +49 -0
- package/src/client/game/grid/minimapBlend.ts +185 -0
- package/src/client/game/grid/nearGrain.ts +40 -0
- package/src/client/game/grid/nearPlaceholderPlan.ts +60 -0
- package/src/client/game/grid/nearPlaceholderView.ts +182 -0
- package/src/client/game/grid/neighbourLife.ts +151 -0
- package/src/client/game/grid/neighbourPanels.ts +84 -0
- package/src/client/game/grid/neighbourRows.ts +32 -0
- package/src/client/game/grid/oneWayIn.ts +114 -0
- package/src/client/game/grid/pageEntry.ts +234 -0
- package/src/client/game/grid/pageResidency.ts +216 -0
- package/src/client/game/grid/pageShell.ts +67 -0
- package/src/client/game/grid/prefetch.ts +344 -0
- package/src/client/game/grid/prefetchIndex.ts +28 -0
- package/src/client/game/grid/prefetchIndexCore.ts +41 -0
- package/src/client/game/grid/prelinkViews.ts +31 -0
- package/src/client/game/grid/preparationAdmission.ts +34 -0
- package/src/client/game/grid/productInputs.ts +98 -0
- package/src/client/game/grid/productLeases.ts +76 -0
- package/src/client/game/grid/products.ts +350 -0
- package/src/client/game/grid/refusal.ts +73 -0
- package/src/client/game/grid/regionLight.ts +102 -0
- package/src/client/game/grid/regionShell.ts +58 -0
- package/src/client/game/grid/regionSky.ts +104 -0
- package/src/client/game/grid/regionalBuildCheckpoint.ts +19 -0
- package/src/client/game/grid/regionalInputs.ts +34 -0
- package/src/client/game/grid/regionalRuntime.ts +518 -0
- package/src/client/game/grid/regionalView.ts +205 -0
- package/src/client/game/grid/regionalWorld.ts +609 -0
- package/src/client/game/grid/renderResidency.ts +95 -0
- package/src/client/game/grid/reveal.ts +163 -0
- package/src/client/game/grid/roadCull.ts +473 -0
- package/src/client/game/grid/roadGrain.ts +32 -0
- package/src/client/game/grid/roadGrain.worker.ts +20 -0
- package/src/client/game/grid/roadGrainPreparation.ts +45 -0
- package/src/client/game/grid/roadLook.ts +487 -0
- package/src/client/game/grid/roadLookPlatform.ts +196 -0
- package/src/client/game/grid/roadResources.ts +15 -0
- package/src/client/game/grid/roadSign.worker.ts +30 -0
- package/src/client/game/grid/roadSignPaint.ts +38 -0
- package/src/client/game/grid/roadSignPixels.ts +22 -0
- package/src/client/game/grid/roadSignPreparation.ts +45 -0
- package/src/client/game/grid/roadSky.ts +219 -0
- package/src/client/game/grid/roadSolid.ts +227 -0
- package/src/client/game/grid/roadTileArchive.ts +239 -0
- package/src/client/game/grid/roadTileBacking.ts +327 -0
- package/src/client/game/grid/roadTileCapture.worker.ts +14 -0
- package/src/client/game/grid/roadTileCaptureJob.ts +37 -0
- package/src/client/game/grid/roadTileCaptureWorker.ts +104 -0
- package/src/client/game/grid/roadTileCoarse.ts +28 -0
- package/src/client/game/grid/roadTileGeometry.ts +77 -0
- package/src/client/game/grid/roadTilePool.ts +157 -0
- package/src/client/game/grid/roadTileStream.ts +69 -0
- package/src/client/game/grid/roadTileWrite.worker.ts +24 -0
- package/src/client/game/grid/roadTileWriter.ts +67 -0
- package/src/client/game/grid/runtimeCost.ts +44 -0
- package/src/client/game/grid/seamLook.ts +177 -0
- package/src/client/game/grid/session.ts +1235 -0
- package/src/client/game/grid/shardfileFar.ts +88 -0
- package/src/client/game/grid/skinEnvelope.ts +135 -0
- package/src/client/game/grid/softWallLook.ts +116 -0
- package/src/client/game/grid/tileDecodeWorker.ts +24 -0
- package/src/client/game/grid/tileDecoder.ts +102 -0
- package/src/client/game/grid/titleOrder.ts +8 -0
- package/src/client/game/grid/titlePrefetchChoice.ts +35 -0
- package/src/client/game/grid/viewAdmissions.ts +36 -0
- package/src/client/game/grid/voidLook.ts +181 -0
- package/src/client/game/icons.merge.d.ts +49 -0
- package/src/client/game/icons.ts +240 -0
- package/src/client/game/identity.ts +28 -0
- package/src/client/game/inputContexts.ts +33 -0
- package/src/client/game/keyBindings.ts +37 -0
- package/src/client/game/loadout/actors.ts +15 -0
- package/src/client/game/loadout/claims.ts +728 -0
- package/src/client/game/loadout/cosmeticFinishes.ts +217 -0
- package/src/client/game/loadout/effects.ts +97 -0
- package/src/client/game/loadout/finishes.ts +60 -0
- package/src/client/game/loadout/held.ts +207 -0
- package/src/client/game/loadout/rangedPage.ts +142 -0
- package/src/client/game/looks/coverAppearance.ts +101 -0
- package/src/client/game/looks/daySky.ts +110 -0
- package/src/client/game/looks/forestGround.ts +49 -0
- package/src/client/game/looks/forestGroundInputs.ts +27 -0
- package/src/client/game/looks/forestRoofMask.ts +15 -0
- package/src/client/game/looks/forestWeather.ts +26 -0
- package/src/client/game/looks/graphDaySky.ts +245 -0
- package/src/client/game/looks/grassPresentation.ts +334 -0
- package/src/client/game/looks/keyedSky.ts +500 -0
- package/src/client/game/looks/lettering.ts +14 -0
- package/src/client/game/looks/overcast.ts +61 -0
- package/src/client/game/looks/paintedGroundMerge.ts +12 -0
- package/src/client/game/looks/paintedLook.ts +197 -0
- package/src/client/game/looks/painterlyLook.ts +259 -0
- package/src/client/game/looks/posedBufferPool.ts +67 -0
- package/src/client/game/looks/posedInstances.ts +199 -0
- package/src/client/game/looks/postGraphLook.ts +455 -0
- package/src/client/game/looks/riggedHulls.ts +451 -0
- package/src/client/game/looks/scaledPost.ts +236 -0
- package/src/client/game/looks/speciesBook.ts +224 -0
- package/src/client/game/looks/staticCapture.ts +225 -0
- package/src/client/game/looks/streamedCover.ts +330 -0
- package/src/client/game/looks/toonLighting.ts +28 -0
- package/src/client/game/looks/toonLook.ts +69 -0
- package/src/client/game/looks/toonSky.ts +60 -0
- package/src/client/game/looks/vertexWear.ts +49 -0
- package/src/client/game/loot/CoinBurst.ts +19 -0
- package/src/client/game/loot/CoinMotion.ts +169 -0
- package/src/client/game/loot/coinModel.ts +11 -0
- package/src/client/game/loot/coins.ts +21 -0
- package/src/client/game/loot/feed.ts +23 -0
- package/src/client/game/loot/loot.css +19 -0
- package/src/client/game/loot/runtime.ts +243 -0
- package/src/client/game/loot/tables.ts +30 -0
- package/src/client/game/loot/ui/CoinChip.ts +70 -0
- package/src/client/game/loot/ui/ShopPanel.ts +211 -0
- package/src/client/game/loot/ui/shop.css +42 -0
- package/src/client/game/mainMenu.css +177 -0
- package/src/client/game/mainMenu.ts +268 -0
- package/src/client/game/models/binarySource.ts +78 -0
- package/src/client/game/models/collectionDisplay.ts +133 -0
- package/src/client/game/models/collectionWall.ts +236 -0
- package/src/client/game/models/explorerCatalogue.ts +176 -0
- package/src/client/game/models/figureCatalogue.ts +172 -0
- package/src/client/game/models/fixedDraws.ts +178 -0
- package/src/client/game/models/heldGear.ts +76 -0
- package/src/client/game/models/interact.ts +107 -0
- package/src/client/game/models/islandLibrary.ts +179 -0
- package/src/client/game/models/kitFigureCard.ts +77 -0
- package/src/client/game/models/libraryModel.ts +67 -0
- package/src/client/game/models/mountedSpecimen.ts +45 -0
- package/src/client/game/models/pickupRows.ts +12 -0
- package/src/client/game/models/ropeDeckSite.ts +114 -0
- package/src/client/game/models/scenePartSpecimen.ts +102 -0
- package/src/client/game/models/sceneSpecimens.ts +103 -0
- package/src/client/game/models/socketRigCreature.ts +65 -0
- package/src/client/game/models/specimenCatalogue.ts +540 -0
- package/src/client/game/models/treeSet.ts +149 -0
- package/src/client/game/models/worldSceneCatalogue.ts +310 -0
- package/src/client/game/nativeItems.merge.d.ts +6 -0
- package/src/client/game/pageSaveKeys.ts +13 -0
- package/src/client/game/plugin/audio.ts +277 -0
- package/src/client/game/plugin/bakedGeometry.ts +103 -0
- package/src/client/game/plugin/bladeMoves.ts +117 -0
- package/src/client/game/plugin/bossStorm.ts +40 -0
- package/src/client/game/plugin/clientChannelView.ts +135 -0
- package/src/client/game/plugin/context.ts +198 -0
- package/src/client/game/plugin/followedMovers.ts +184 -0
- package/src/client/game/plugin/geometry.ts +2083 -0
- package/src/client/game/plugin/headless.ts +127 -0
- package/src/client/game/plugin/heldEquipment.ts +208 -0
- package/src/client/game/plugin/heldFirearm.ts +395 -0
- package/src/client/game/plugin/heldRecipe.ts +43 -0
- package/src/client/game/plugin/heldTool.ts +166 -0
- package/src/client/game/plugin/moverEvents.merge.d.ts +6 -0
- package/src/client/game/plugin/moverViews.ts +114 -0
- package/src/client/game/plugin/placeholderGeometry.ts +40 -0
- package/src/client/game/plugin/scene.ts +290 -0
- package/src/client/game/plugin/shaderFamily.ts +225 -0
- package/src/client/game/plugin/ui.ts +1511 -0
- package/src/client/game/plugin/weaponFamily.ts +779 -0
- package/src/client/game/population/netCounts.ts +12 -0
- package/src/client/game/population/pageAir.ts +37 -0
- package/src/client/game/population/pageLife.ts +289 -0
- package/src/client/game/population/pageReturns.ts +17 -0
- package/src/client/game/population/productCreatures.ts +71 -0
- package/src/client/game/population/projection.ts +227 -0
- package/src/client/game/population/rowSpecies.ts +15 -0
- package/src/client/game/population/signals.ts +24 -0
- package/src/client/game/population/speciesViewSlots.ts +55 -0
- package/src/client/game/population/wildlifeFeature.ts +208 -0
- package/src/client/game/population.merge.d.ts +9 -0
- package/src/client/game/practice/course.ts +154 -0
- package/src/client/game/practice/numericCourse.ts +35 -0
- package/src/client/game/practice/registration.ts +17 -0
- package/src/client/game/practice/scene.ts +47 -0
- package/src/client/game/quest/carriedProp.ts +113 -0
- package/src/client/game/quest/chapter.ts +355 -0
- package/src/client/game/quest/chapterDirector.ts +255 -0
- package/src/client/game/quest/chapterView.ts +165 -0
- package/src/client/game/quest/continuation.ts +53 -0
- package/src/client/game/quest/contractBoardPage.ts +85 -0
- package/src/client/game/quest/declaredPage.ts +199 -0
- package/src/client/game/quest/elitePage.ts +115 -0
- package/src/client/game/quest/figureOrbit.ts +32 -0
- package/src/client/game/quest/figures.ts +259 -0
- package/src/client/game/quest/finishedAfterSeen.ts +20 -0
- package/src/client/game/quest/hints.ts +90 -0
- package/src/client/game/quest/pageComposition.ts +331 -0
- package/src/client/game/quest/pageDoors.ts +25 -0
- package/src/client/game/quest/pageFacets.ts +76 -0
- package/src/client/game/quest/pageReference.ts +17 -0
- package/src/client/game/quest/presentation.css +4 -0
- package/src/client/game/quest/questPageViews.ts +168 -0
- package/src/client/game/quest/reward.ts +48 -0
- package/src/client/game/quest/story.ts +161 -0
- package/src/client/game/quest/trader.ts +176 -0
- package/src/client/game/riding/client.ts +373 -0
- package/src/client/game/riding/hud.ts +255 -0
- package/src/client/game/riding/mount.ts +317 -0
- package/src/client/game/riding/reins.ts +177 -0
- package/src/client/game/riding/ride.css +70 -0
- package/src/client/game/riding/seatedFigure.ts +78 -0
- package/src/client/game/saves.css +34 -0
- package/src/client/game/savesSettings.ts +189 -0
- package/src/client/game/session/clockSettings.ts +66 -0
- package/src/client/game/session/context.ts +61 -0
- package/src/client/game/session/crashResume.ts +36 -0
- package/src/client/game/session/data.ts +101 -0
- package/src/client/game/session/entryReadiness.ts +13 -0
- package/src/client/game/session/exitToTitle.ts +19 -0
- package/src/client/game/session/finish.ts +414 -0
- package/src/client/game/session/hudAccent.ts +30 -0
- package/src/client/game/session/loadout.ts +176 -0
- package/src/client/game/session/play.ts +824 -0
- package/src/client/game/session/positions.ts +8 -0
- package/src/client/game/session/readyFrame.ts +10 -0
- package/src/client/game/session/session.ts +193 -0
- package/src/client/game/session/settlePrograms.ts +29 -0
- package/src/client/game/session/titlePreparation.ts +43 -0
- package/src/client/game/session/world.ts +168 -0
- package/src/client/game/shard/declaredEntry.ts +44 -0
- package/src/client/game/shard/declaredPlumbing.ts +80 -0
- package/src/client/game/shard/declaredTargets.ts +64 -0
- package/src/client/game/shard/declaredUi.ts +23 -0
- package/src/client/game/shard/discovery.ts +80 -0
- package/src/client/game/shard/list.ts +26 -0
- package/src/client/game/shard/load.ts +94 -0
- package/src/client/game/shard/manifest.ts +910 -0
- package/src/client/game/shard/pageBoot.ts +52 -0
- package/src/client/game/shard/pagePolicy.ts +17 -0
- package/src/client/game/shard/registry.ts +74 -0
- package/src/client/game/shard/retainedHooks.ts +204 -0
- package/src/client/game/shard/scopedRuntime.ts +68 -0
- package/src/client/game/shard/spec.ts +69 -0
- package/src/client/game/shard/titleList.ts +86 -0
- package/src/client/game/shardfile/accent.ts +5 -0
- package/src/client/game/shardfile/assetCache.ts +46 -0
- package/src/client/game/shardfile/audioCatalogue.ts +16 -0
- package/src/client/game/shardfile/bakedKinds.ts +313 -0
- package/src/client/game/shardfile/bakedTiles.ts +253 -0
- package/src/client/game/shardfile/buildingCloud.ts +27 -0
- package/src/client/game/shardfile/calibrationScripts.ts +30 -0
- package/src/client/game/shardfile/caveInterior.ts +162 -0
- package/src/client/game/shardfile/client.ts +671 -0
- package/src/client/game/shardfile/clientAmbientLife.ts +31 -0
- package/src/client/game/shardfile/clientAssets.ts +163 -0
- package/src/client/game/shardfile/clientBossFight.ts +39 -0
- package/src/client/game/shardfile/clientBossTelegraph.ts +43 -0
- package/src/client/game/shardfile/clientCatalogue.ts +44 -0
- package/src/client/game/shardfile/clientCosmeticFinishes.ts +37 -0
- package/src/client/game/shardfile/clientCues.ts +22 -0
- package/src/client/game/shardfile/clientEliteConstruction.ts +44 -0
- package/src/client/game/shardfile/clientEliteEntry.ts +33 -0
- package/src/client/game/shardfile/clientEntryBinds.ts +32 -0
- package/src/client/game/shardfile/clientFinds.ts +20 -0
- package/src/client/game/shardfile/clientForestPage.ts +144 -0
- package/src/client/game/shardfile/clientGraphs.ts +319 -0
- package/src/client/game/shardfile/clientHeldMelee.ts +82 -0
- package/src/client/game/shardfile/clientItems.ts +25 -0
- package/src/client/game/shardfile/clientLibrary.ts +71 -0
- package/src/client/game/shardfile/clientMaterials.ts +296 -0
- package/src/client/game/shardfile/clientMeadow.ts +30 -0
- package/src/client/game/shardfile/clientModules.ts +24 -0
- package/src/client/game/shardfile/clientMoverOwners.ts +80 -0
- package/src/client/game/shardfile/clientNativeBook.ts +38 -0
- package/src/client/game/shardfile/clientPlaceSets.ts +74 -0
- package/src/client/game/shardfile/clientPlan.ts +529 -0
- package/src/client/game/shardfile/clientPlayerEnter.ts +22 -0
- package/src/client/game/shardfile/clientPopulation.ts +49 -0
- package/src/client/game/shardfile/clientPopulationProjection.ts +28 -0
- package/src/client/game/shardfile/clientPost.ts +94 -0
- package/src/client/game/shardfile/clientPropMaterials.ts +100 -0
- package/src/client/game/shardfile/clientQuestComposition.ts +87 -0
- package/src/client/game/shardfile/clientQuestPage.ts +98 -0
- package/src/client/game/shardfile/clientRecipes.ts +76 -0
- package/src/client/game/shardfile/clientResidency.ts +29 -0
- package/src/client/game/shardfile/clientReturnModules.ts +25 -0
- package/src/client/game/shardfile/clientRuntimeHooks.ts +66 -0
- package/src/client/game/shardfile/clientSceneHandles.ts +19 -0
- package/src/client/game/shardfile/clientScripts.ts +100 -0
- package/src/client/game/shardfile/clientSkins.ts +183 -0
- package/src/client/game/shardfile/clientSource.ts +221 -0
- package/src/client/game/shardfile/clientSpeciesProgram.ts +45 -0
- package/src/client/game/shardfile/clientSplatTerrain.ts +99 -0
- package/src/client/game/shardfile/clientStealthEntry.ts +72 -0
- package/src/client/game/shardfile/clientTargets.ts +73 -0
- package/src/client/game/shardfile/clientTimedEncounters.ts +42 -0
- package/src/client/game/shardfile/clientTrails.ts +42 -0
- package/src/client/game/shardfile/clientViewProgram.ts +101 -0
- package/src/client/game/shardfile/clientViews.ts +211 -0
- package/src/client/game/shardfile/clientWater.ts +108 -0
- package/src/client/game/shardfile/clientWaterSurfaces.ts +88 -0
- package/src/client/game/shardfile/clientWorker.ts +621 -0
- package/src/client/game/shardfile/clientWorldAssembly.ts +129 -0
- package/src/client/game/shardfile/constructionCheckpoint.ts +31 -0
- package/src/client/game/shardfile/controlFiles.ts +41 -0
- package/src/client/game/shardfile/controlRefinement.ts +229 -0
- package/src/client/game/shardfile/declaredTalks.ts +114 -0
- package/src/client/game/shardfile/emptyEquipment.ts +19 -0
- package/src/client/game/shardfile/emptyLook.ts +26 -0
- package/src/client/game/shardfile/enteredTileReadout.ts +27 -0
- package/src/client/game/shardfile/entryTransport.ts +222 -0
- package/src/client/game/shardfile/farStandIn.ts +79 -0
- package/src/client/game/shardfile/forestPage.ts +289 -0
- package/src/client/game/shardfile/groundMerge.ts +232 -0
- package/src/client/game/shardfile/heldClaimsEntry.ts +34 -0
- package/src/client/game/shardfile/homeBuildCache.ts +114 -0
- package/src/client/game/shardfile/homeGeometrySnapshot.ts +92 -0
- package/src/client/game/shardfile/hybrid.ts +537 -0
- package/src/client/game/shardfile/hybridPresentation.ts +16 -0
- package/src/client/game/shardfile/islandBook.ts +87 -0
- package/src/client/game/shardfile/itemModels.ts +78 -0
- package/src/client/game/shardfile/legacyAsset.ts +30 -0
- package/src/client/game/shardfile/lentLooks.ts +210 -0
- package/src/client/game/shardfile/lightEmitters.ts +100 -0
- package/src/client/game/shardfile/livingBuildings.ts +202 -0
- package/src/client/game/shardfile/look.ts +23 -0
- package/src/client/game/shardfile/mapImage.ts +49 -0
- package/src/client/game/shardfile/pageItems.ts +57 -0
- package/src/client/game/shardfile/pagePreparation.ts +40 -0
- package/src/client/game/shardfile/pageWater.ts +29 -0
- package/src/client/game/shardfile/paintedWorldStages.ts +132 -0
- package/src/client/game/shardfile/portalRideBinding.ts +62 -0
- package/src/client/game/shardfile/preparationReads.ts +61 -0
- package/src/client/game/shardfile/preparationTiming.ts +115 -0
- package/src/client/game/shardfile/presentation.ts +36 -0
- package/src/client/game/shardfile/product.ts +718 -0
- package/src/client/game/shardfile/productCacheCompletion.ts +53 -0
- package/src/client/game/shardfile/productChecks.ts +40 -0
- package/src/client/game/shardfile/productCost.ts +422 -0
- package/src/client/game/shardfile/productGround.ts +60 -0
- package/src/client/game/shardfile/productNavigation.ts +18 -0
- package/src/client/game/shardfile/productPreflight.ts +12 -0
- package/src/client/game/shardfile/questWorld.ts +17 -0
- package/src/client/game/shardfile/readAsset.ts +44 -0
- package/src/client/game/shardfile/reusableWholeLibrary.ts +102 -0
- package/src/client/game/shardfile/runtimeProduct.ts +396 -0
- package/src/client/game/shardfile/sceneBakeFiles.ts +22 -0
- package/src/client/game/shardfile/sceneBuffers.ts +207 -0
- package/src/client/game/shardfile/sceneDraws.ts +90 -0
- package/src/client/game/shardfile/sceneDressing.ts +456 -0
- package/src/client/game/shardfile/sceneHandles.ts +170 -0
- package/src/client/game/shardfile/sceneInputs.ts +21 -0
- package/src/client/game/shardfile/sceneInstances.ts +67 -0
- package/src/client/game/shardfile/sceneMotion.ts +161 -0
- package/src/client/game/shardfile/scenePools.ts +40 -0
- package/src/client/game/shardfile/sceneProfile.ts +12 -0
- package/src/client/game/shardfile/sceneRigFiles.ts +30 -0
- package/src/client/game/shardfile/sceneScatterPages.ts +47 -0
- package/src/client/game/shardfile/sceneSources.ts +153 -0
- package/src/client/game/shardfile/serverRoute.ts +38 -0
- package/src/client/game/shardfile/skinLayerPlayback.ts +67 -0
- package/src/client/game/shardfile/skinPlayback.ts +138 -0
- package/src/client/game/shardfile/slabLibrary.ts +203 -0
- package/src/client/game/shardfile/stillImage.ts +19 -0
- package/src/client/game/shardfile/streamingView.ts +78 -0
- package/src/client/game/shardfile/tileBufferedDraws.ts +49 -0
- package/src/client/game/shardfile/tileContent.ts +564 -0
- package/src/client/game/shardfile/tileDriver.ts +462 -0
- package/src/client/game/shardfile/tileEntry.ts +18 -0
- package/src/client/game/shardfile/tiledMesh.ts +146 -0
- package/src/client/game/shardfile/water.ts +8 -0
- package/src/client/game/shardfile/weatherFields.ts +31 -0
- package/src/client/game/shardfile/wholeGeometryPieces.ts +101 -0
- package/src/client/game/shardfile/wholeLibrary.ts +47 -0
- package/src/client/game/shardfile/wholeRefinementCover.ts +78 -0
- package/src/client/game/shardfile/wirePage.ts +260 -0
- package/src/client/game/shardfile/worldAssembly.ts +531 -0
- package/src/client/game/shardfile/worldBuildYield.ts +10 -0
- package/src/client/game/shardfile/worldEntry.ts +117 -0
- package/src/client/game/shardfile/worldSceneBatch.ts +105 -0
- package/src/client/game/shardfile/worldSceneGeometry.ts +171 -0
- package/src/client/game/shardfile/worldSceneMaterials.ts +90 -0
- package/src/client/game/shardfile/worldScenePlacement.ts +364 -0
- package/src/client/game/shardfile/worldScenePlacementPages.ts +61 -0
- package/src/client/game/shardfile/worldSceneReads.ts +83 -0
- package/src/client/game/shardfile/worldSceneStepSources.ts +69 -0
- package/src/client/game/shardfile/worldSceneSurface.ts +108 -0
- package/src/client/game/shardfile/worldSceneTextures.ts +134 -0
- package/src/client/game/shardfile/worldSceneUniforms.ts +17 -0
- package/src/client/game/shardfile/worldSceneWeld.ts +339 -0
- package/src/client/game/shardfile/worldScenes.ts +760 -0
- package/src/client/game/shardfile/worldUpdates.ts +149 -0
- package/src/client/game/stealth/controller.ts +115 -0
- package/src/client/game/stealth/stealth.css +70 -0
- package/src/client/game/summary.css +8 -0
- package/src/client/game/summary.ts +67 -0
- package/src/client/game/systems/audio/crossbowSounds.ts +71 -0
- package/src/client/game/systems/audio/firearmSounds.ts +43 -0
- package/src/client/game/systems/audio/meleeSounds.ts +40 -0
- package/src/client/game/systems/audio/silentScore.ts +6 -0
- package/src/client/game/systems/effects/starter.generated.ts +2 -0
- package/src/client/game/systems/effects/status.css +3 -0
- package/src/client/game/systems/effects/view.ts +35 -0
- package/src/client/game/systems/items/declaredSword.ts +149 -0
- package/src/client/game/systems/looks/fogProgram.ts +18 -0
- package/src/client/game/systems/looks/particles.ts +407 -0
- package/src/client/game/systems/looks/rainCurtain.ts +50 -0
- package/src/client/game/systems/looks/surfaceLooks.ts +138 -0
- package/src/client/game/systems/looks/trample.ts +139 -0
- package/src/client/game/systems/looks/waterSurface.ts +179 -0
- package/src/client/game/systems/npc/figureRows.ts +169 -0
- package/src/client/game/systems/npc/figureSkins.ts +130 -0
- package/src/client/game/systems/npc/kitFigure.ts +127 -0
- package/src/client/game/systems/npc/npcRig.ts +217 -0
- package/src/client/game/systems/npc/standingFigure.ts +111 -0
- package/src/client/game/systems/props/interact.ts +236 -0
- package/src/client/game/systems/species/bear.ts +30 -0
- package/src/client/game/systems/species/boar.ts +28 -0
- package/src/client/game/systems/species/install.ts +18 -0
- package/src/client/game/systems/species/view/bear.ts +246 -0
- package/src/client/game/systems/species/view/boar.ts +249 -0
- package/src/client/game/systems/tools/hoverboard.ts +107 -0
- package/src/client/game/systems/viewmodel/armAliases.json +24 -0
- package/src/client/game/systems/viewmodel/armClips.ts +8 -0
- package/src/client/game/systems/viewmodel/armRig.ts +293 -0
- package/src/client/game/systems/viewmodel/clips.generated.ts +2 -0
- package/src/client/game/systems/viewmodel/heldView.ts +458 -0
- package/src/client/game/systems/viewmodel/rigArms.ts +280 -0
- package/src/client/game/titleAssets.ts +9 -0
- package/src/client/game/titleDeck.ts +381 -0
- package/src/client/game/travel/travel.ts +99 -0
- package/src/client/game/ui/dataPanels.ts +95 -0
- package/src/client/game/ui/panelTemplates.ts +71 -0
- package/src/client/game/ui/panels.ts +109 -0
- package/src/client/game/upgrade.css +12 -0
- package/src/client/game/weapons/Bow.ts +14 -0
- package/src/client/game/weapons/Sword.ts +30 -0
- package/src/client/game/weapons/arcPower.ts +203 -0
- package/src/client/game/weapons/heldLauncher.ts +452 -0
- package/src/client/game/weapons/heldPolearm.ts +491 -0
- package/src/client/game/weapons/mountedBlade.ts +122 -0
- package/src/client/game/weather/forest.ts +281 -0
- package/src/client/game/weather/netClimate.ts +88 -0
- package/src/client/game/weather/pageSky.ts +31 -0
- package/src/client/game/weather/rainPresentation.ts +246 -0
- package/src/client/game/weather/weatherEvents.merge.d.ts +8 -0
- package/src/client/game/whatsNew.ts +31 -0
- package/src/client/game/whatsNewBanner.ts +125 -0
- package/src/client/host/online/chatCorner.ts +46 -0
- package/src/client/host/online/chatLines.ts +213 -0
- package/src/client/host/online/doctor.ts +321 -0
- package/src/client/host/online/doctorPage.ts +26 -0
- package/src/client/host/online/doctorView.ts +144 -0
- package/src/client/host/online/linkScreens.ts +300 -0
- package/src/client/host/online/reconnectStrip.ts +26 -0
- package/src/client/host/online/release.ts +28 -0
- package/src/client/host/online/shell.ts +312 -0
- package/src/client/host/online/voice.ts +468 -0
- package/src/client/host/online/voiceUi.ts +186 -0
- package/src/client/host/standalone/shell.ts +169 -0
- package/src/client/index.html +12 -0
- package/src/client/main.tsx +10 -0
- package/src/client/side.ts +2 -0
- package/src/client/tsconfig.json +13 -0
- package/src/cook/game/brotliSizeCache.d.mts +5 -0
- package/src/cook/game/brotliSizeCache.mjs +59 -0
- package/src/cook/game/contentNamed.ts +6 -0
- package/src/cook/game/cookJob.ts +103 -0
- package/src/cook/game/cookWorker.ts +413 -0
- package/src/cook/game/encodedBytes.ts +51 -0
- package/src/cook/game/engineHalf.ts +47 -0
- package/src/cook/game/entryDownloads.ts +36 -0
- package/src/cook/game/entryReadSet.ts +67 -0
- package/src/cook/game/entryTotals.ts +320 -0
- package/src/cook/game/fenceReads.ts +218 -0
- package/src/cook/game/gridCollision.ts +53 -0
- package/src/cook/game/gridEntryDownloads.ts +33 -0
- package/src/cook/game/gridStripPages.ts +239 -0
- package/src/cook/game/installedRuntimeReads.ts +48 -0
- package/src/cook/game/packStore.ts +120 -0
- package/src/cook/game/portableEncode.ts +7 -0
- package/src/cook/game/productTarball.ts +18 -0
- package/src/cook/game/shardCook.ts +350 -0
- package/src/cook/game/spawnParts.ts +294 -0
- package/src/cook/game/stripPack.ts +31 -0
- package/src/cook/side.ts +2 -0
- package/src/e2e/playwright.config.ts +60 -0
- package/src/e2e/smoke/game.ts +217 -0
- package/src/e2e/smoke/page-globals.d.ts +37 -0
- package/src/e2e/smoke/template2.spec.ts +146 -0
- package/src/e2e/status.spec.ts +13 -0
- package/src/scripts/ask-new.sh +29 -0
- package/src/scripts/asks.mjs +142 -0
- package/src/scripts/check-sides.mjs +70 -0
- package/src/scripts/herdr-prompt.sh +34 -0
- package/src/scripts/herdr-question-open.sh +67 -0
- package/src/scripts/md-wrap.mjs +229 -0
- package/src/server/app.ts +19 -0
- package/src/server/engine/ai/CreatureBrain.ts +23 -0
- package/src/server/engine/ai/bossContenders.ts +101 -0
- package/src/server/engine/ai/burstFlyer.ts +31 -0
- package/src/server/engine/ai/challengeGrazer.ts +31 -0
- package/src/server/engine/ai/eliteContinuation.ts +141 -0
- package/src/server/engine/ai/eliteKernels.ts +187 -0
- package/src/server/engine/ai/eliteLifecycle.ts +126 -0
- package/src/server/engine/ai/eliteRoster.ts +357 -0
- package/src/server/engine/ai/grazer.ts +1360 -0
- package/src/server/engine/ai/guardian.ts +20 -0
- package/src/server/engine/ai/guardianPolicy.ts +264 -0
- package/src/server/engine/ai/herd.ts +17 -0
- package/src/server/engine/ai/hunt.ts +46 -0
- package/src/server/engine/ai/moves.ts +202 -0
- package/src/server/engine/ai/orbitDiver.ts +33 -0
- package/src/server/engine/ai/pack.ts +29 -0
- package/src/server/engine/ai/patrolDiver.ts +31 -0
- package/src/server/engine/ai/perchHunter.ts +20 -0
- package/src/server/engine/ai/phases.ts +121 -0
- package/src/server/engine/ai/platform.ts +140 -0
- package/src/server/engine/ai/ramGrazer.ts +31 -0
- package/src/server/engine/ai/scriptBrain.ts +147 -0
- package/src/server/engine/ai/skirmisher.ts +20 -0
- package/src/server/engine/ai/species.ts +33 -0
- package/src/server/engine/combat/EquipmentPickup.ts +28 -0
- package/src/server/engine/combat/contactWeapon.ts +251 -0
- package/src/server/engine/combat/damageBook.ts +45 -0
- package/src/server/engine/combat/rewind.ts +7 -0
- package/src/server/engine/entities/AnimalManager.ts +752 -0
- package/src/server/engine/entities/bodyClear.ts +47 -0
- package/src/server/engine/entities/creatureRefill.ts +119 -0
- package/src/server/engine/entities/killHeight.ts +18 -0
- package/src/server/engine/level/context.ts +111 -0
- package/src/server/engine/net/chat.ts +97 -0
- package/src/server/engine/net/combatWire.ts +49 -0
- package/src/server/engine/net/commandQueue.ts +95 -0
- package/src/server/engine/net/handles.ts +74 -0
- package/src/server/engine/net/hitHistory.ts +114 -0
- package/src/server/engine/net/ledgerBook.ts +65 -0
- package/src/server/engine/net/room.ts +560 -0
- package/src/server/engine/net/serverClock.ts +43 -0
- package/src/server/engine/net/simWorld.ts +131 -0
- package/src/server/engine/net/tiers.ts +14 -0
- package/src/server/engine/physics/edgeEntries.ts +40 -0
- package/src/server/engine/physics/rapierBindings.ts +4 -0
- package/src/server/engine/saves/forwardedStorage.ts +43 -0
- package/src/server/engine/script/composition.ts +219 -0
- package/src/server/engine/script/decision.ts +573 -0
- package/src/server/engine/script/inputInboxV2.ts +116 -0
- package/src/server/engine/script/lane.ts +185 -0
- package/src/server/engine/script/ownedSimBatchV2.ts +205 -0
- package/src/server/engine/script/queries.ts +37 -0
- package/src/server/engine/script/queriesV2.ts +149 -0
- package/src/server/engine/script/simBatchV2.ts +125 -0
- package/src/server/engine/sim/playerSim.ts +443 -0
- package/src/server/engine/sim/respawn.ts +74 -0
- package/src/server/engine/sim/restore.ts +37 -0
- package/src/server/engine/sim.ts +711 -0
- package/src/server/game/animation/limbPopulation.ts +138 -0
- package/src/server/game/bake/entryways.ts +186 -0
- package/src/server/game/boss/arenaRoomEntry.ts +97 -0
- package/src/server/game/boss/arenaRoomFight.ts +103 -0
- package/src/server/game/boss/arenaRoomNative.ts +142 -0
- package/src/server/game/boss/arenaWords.ts +46 -0
- package/src/server/game/boss/bounty.ts +37 -0
- package/src/server/game/boss/captainNative.ts +122 -0
- package/src/server/game/boss/continuation.ts +37 -0
- package/src/server/game/boss/headlessArenaPose.ts +40 -0
- package/src/server/game/boss/headlessArenaViews.ts +54 -0
- package/src/server/game/boss/headlessCloudBody.ts +93 -0
- package/src/server/game/boss/native.ts +220 -0
- package/src/server/game/boss/nativeArenaSand.ts +93 -0
- package/src/server/game/boss/nativeArenaSeal.ts +26 -0
- package/src/server/game/boss/nativeWake.ts +50 -0
- package/src/server/game/boss/openArenaNative.ts +200 -0
- package/src/server/game/boss/openArenaRoom.ts +69 -0
- package/src/server/game/boss/openArenaState.ts +25 -0
- package/src/server/game/boss/patrolNative.ts +286 -0
- package/src/server/game/boss/roaming.ts +77 -0
- package/src/server/game/boss/slotHeights.ts +103 -0
- package/src/server/game/boss/slotsNative.ts +175 -0
- package/src/server/game/boss/windEliteNative.ts +139 -0
- package/src/server/game/grapple/native.ts +181 -0
- package/src/server/game/grid/durability.ts +166 -0
- package/src/server/game/grid/room.ts +53 -0
- package/src/server/game/grid/roomNet.ts +85 -0
- package/src/server/game/grid/simulation.ts +345 -0
- package/src/server/game/items.merge.d.ts +7 -0
- package/src/server/game/loadout/nativeAmmunition.ts +139 -0
- package/src/server/game/loadout/ownedEffects.ts +68 -0
- package/src/server/game/loot/harvest.ts +43 -0
- package/src/server/game/loot/personal.ts +70 -0
- package/src/server/game/loot/playerOwned.ts +235 -0
- package/src/server/game/plugin/bossPhase.ts +904 -0
- package/src/server/game/plugin/brain.ts +1325 -0
- package/src/server/game/plugin/mover.ts +601 -0
- package/src/server/game/plugin/nativeItems.ts +437 -0
- package/src/server/game/plugin/nativeRewind.ts +37 -0
- package/src/server/game/plugin/nativeSwept.ts +249 -0
- package/src/server/game/plugin/playerSeats.ts +62 -0
- package/src/server/game/plugin/scriptSeats.ts +89 -0
- package/src/server/game/plugin/simulation.ts +1623 -0
- package/src/server/game/population/actorProjectionV2.ts +276 -0
- package/src/server/game/population/actors.ts +136 -0
- package/src/server/game/population/directedLaw.ts +69 -0
- package/src/server/game/population/encounterBook.ts +78 -0
- package/src/server/game/population/encounterIntake.ts +78 -0
- package/src/server/game/population/environment.ts +86 -0
- package/src/server/game/population/mixedRoster.ts +353 -0
- package/src/server/game/population/nativeBake.ts +202 -0
- package/src/server/game/population/nativeManager.ts +426 -0
- package/src/server/game/population/nativeReturns.ts +99 -0
- package/src/server/game/population/perchBody.ts +97 -0
- package/src/server/game/population/projectedSites.ts +41 -0
- package/src/server/game/population/relations.ts +45 -0
- package/src/server/game/population/roster.ts +259 -0
- package/src/server/game/population/scriptStrikes.ts +67 -0
- package/src/server/game/population/shelter.ts +193 -0
- package/src/server/game/population/signals.ts +9 -0
- package/src/server/game/population/spawnScript.ts +797 -0
- package/src/server/game/population/specCatalogue.ts +11 -0
- package/src/server/game/quest/bodyOps.ts +253 -0
- package/src/server/game/quest/chapterRecords.ts +97 -0
- package/src/server/game/quest/eliteDrops.ts +36 -0
- package/src/server/game/quest/eliteFeature.ts +141 -0
- package/src/server/game/quest/killSteps.ts +34 -0
- package/src/server/game/quest/nativeBodyScripts.ts +29 -0
- package/src/server/game/quest/nativeChapter.ts +80 -0
- package/src/server/game/quest/nativeComposition.ts +548 -0
- package/src/server/game/quest/nativeEntry.ts +128 -0
- package/src/server/game/quest/nativeInputs.ts +29 -0
- package/src/server/game/quest/nativeSecret.ts +80 -0
- package/src/server/game/quest/serverChapters.ts +192 -0
- package/src/server/game/quest/serverDoors.ts +89 -0
- package/src/server/game/quest/serverPlaces.ts +32 -0
- package/src/server/game/riding/native.ts +362 -0
- package/src/server/game/riding/nativePopulation.ts +384 -0
- package/src/server/game/riding/nativeTaming.ts +331 -0
- package/src/server/game/riding/pastureController.ts +131 -0
- package/src/server/game/riding/roster.ts +108 -0
- package/src/server/game/riding/wildRefill.ts +37 -0
- package/src/server/game/roomRespawn.ts +60 -0
- package/src/server/game/shard/declaredEncounters.ts +22 -0
- package/src/server/game/shard/manifest-closure.generated.json +683 -0
- package/src/server/game/shard/portShares.generated.ts +2 -0
- package/src/server/game/shard/world.ts +5 -0
- package/src/server/game/shardfile/borrowedDecisions.ts +281 -0
- package/src/server/game/shardfile/bossRow.ts +236 -0
- package/src/server/game/shardfile/brainRuntime.ts +162 -0
- package/src/server/game/shardfile/decisions.ts +597 -0
- package/src/server/game/shardfile/declaredClimate.ts +22 -0
- package/src/server/game/shardfile/declaredKitItems.ts +243 -0
- package/src/server/game/shardfile/declaredTalks.ts +52 -0
- package/src/server/game/shardfile/groupRuntime.ts +302 -0
- package/src/server/game/shardfile/homeKeeper.ts +565 -0
- package/src/server/game/shardfile/nativeAssembly.ts +102 -0
- package/src/server/game/shardfile/nativeAssemblyHosts.ts +301 -0
- package/src/server/game/shardfile/nativeAssemblyInput.ts +68 -0
- package/src/server/game/shardfile/nativePlan.ts +28 -0
- package/src/server/game/shardfile/nativeRuntimeLoans.ts +52 -0
- package/src/server/game/shardfile/phasedBossRoaming.ts +427 -0
- package/src/server/game/shardfile/portalLinkProof.ts +66 -0
- package/src/server/game/shardfile/scriptComposition.ts +57 -0
- package/src/server/game/shardfile/scripts.ts +56 -0
- package/src/server/game/shardfile/statusEffects.ts +68 -0
- package/src/server/game/stealth/nativeStealth.ts +74 -0
- package/src/server/game/weapons/nativeHeld.ts +333 -0
- package/src/server/game/weather/continuation.ts +97 -0
- package/src/server/game/weather/reactions.ts +219 -0
- package/src/server/game/weather/wire.ts +42 -0
- package/src/server/host/bake/headlessWorker.ts +132 -0
- package/src/server/host/dedicated/cellHost.ts +171 -0
- package/src/server/host/dedicated/cellProtocol.ts +64 -0
- package/src/server/host/dedicated/cellWorker.ts +33 -0
- package/src/server/host/dedicated/crossing.ts +44 -0
- package/src/server/host/dedicated/dedicatedRoom.ts +419 -0
- package/src/server/host/dedicated/doorTrust.ts +55 -0
- package/src/server/host/dedicated/gridCells.ts +53 -0
- package/src/server/host/dedicated/main.ts +134 -0
- package/src/server/host/dedicated/packReader.ts +68 -0
- package/src/server/host/dedicated/playerDoc.ts +96 -0
- package/src/server/host/dedicated/playerSaves.ts +62 -0
- package/src/server/host/dedicated/playerStore.ts +82 -0
- package/src/server/host/dedicated/playtest.ts +41 -0
- package/src/server/host/dedicated/releaseFile.ts +71 -0
- package/src/server/host/dedicated/roadRoom.ts +151 -0
- package/src/server/host/dedicated/saves/database.ts +15 -0
- package/src/server/host/dedicated/saves/migrate.ts +26 -0
- package/src/server/host/dedicated/saves/migrations/0001-saves.sql +48 -0
- package/src/server/host/dedicated/saves/migrations/0002-report-delivery.sql +3 -0
- package/src/server/host/dedicated/saves/migrations/0003-place.sql +11 -0
- package/src/server/host/dedicated/saves/migrations/0004-names.sql +4 -0
- package/src/server/host/dedicated/saves/migrations/0005-profile.sql +41 -0
- package/src/server/host/dedicated/saves/names.ts +56 -0
- package/src/server/host/dedicated/saves/pgDatabase.ts +43 -0
- package/src/server/host/dedicated/saves/profile.ts +44 -0
- package/src/server/host/dedicated/saves/reportQueue.ts +49 -0
- package/src/server/host/dedicated/saves/saveStore.ts +117 -0
- package/src/server/host/dedicated/saves/writeQueue.ts +94 -0
- package/src/server/host/dedicated/seats.ts +12 -0
- package/src/server/host/dedicated/serverReports.ts +81 -0
- package/src/server/host/dedicated/serverSentry.ts +124 -0
- package/src/server/host/dedicated/shopGate.ts +36 -0
- package/src/server/host/dedicated/socketPump.ts +74 -0
- package/src/server/host/dedicated/socketTransport.ts +123 -0
- package/src/server/host/dedicated/voiceRelay.ts +138 -0
- package/src/server/host/dedicated/workerTable.ts +29 -0
- package/src/server/host/dedicated/world.ts +428 -0
- package/src/server/host/headless.ts +280 -0
- package/src/server/host/headlessProduct.ts +52 -0
- package/src/server/host/headlessRuntime.ts +354 -0
- package/src/server/host/ropeDecks.ts +69 -0
- package/src/server/host/standalone/cellWorld.ts +188 -0
- package/src/server/host/standalone/continuation.ts +58 -0
- package/src/server/host/standalone/fallFloor.ts +83 -0
- package/src/server/host/standalone/gridServer.ts +282 -0
- package/src/server/host/standalone/ledgerFilings.ts +33 -0
- package/src/server/host/standalone/progressWatch.ts +90 -0
- package/src/server/host/standalone/roadWorld.ts +49 -0
- package/src/server/host/standalone/serverHost.ts +132 -0
- package/src/server/host/standalone/serverProduct.ts +149 -0
- package/src/server/host/standalone/serverRuntime.ts +43 -0
- package/src/server/host/standalone/serverWorker.ts +22 -0
- package/src/server/host/tickWorkerHost.ts +250 -0
- package/src/server/host/tickWorkerLoop.ts +123 -0
- package/src/server/serve.ts +49 -0
- package/src/server/side.ts +2 -0
- package/src/shared/engine/ai/BossBrain.ts +287 -0
- package/src/shared/engine/ai/GroupBrain.ts +152 -0
- package/src/shared/engine/ai/ambientFlight.ts +60 -0
- package/src/shared/engine/ai/ambientFlock.ts +297 -0
- package/src/shared/engine/ai/ambientForager.ts +289 -0
- package/src/shared/engine/ai/bossScale.ts +8 -0
- package/src/shared/engine/ai/director.ts +94 -0
- package/src/shared/engine/ai/diver.ts +540 -0
- package/src/shared/engine/ai/eliteScript.ts +85 -0
- package/src/shared/engine/ai/encounters.ts +124 -0
- package/src/shared/engine/ai/flight.ts +69 -0
- package/src/shared/engine/ai/flock.ts +334 -0
- package/src/shared/engine/ai/hfsm.ts +51 -0
- package/src/shared/engine/ai/huntPattern.ts +987 -0
- package/src/shared/engine/ai/inspect.ts +6 -0
- package/src/shared/engine/ai/pinning.ts +13 -0
- package/src/shared/engine/ai/reach.ts +19 -0
- package/src/shared/engine/ai/stalker.ts +1502 -0
- package/src/shared/engine/ai/strikeRows.ts +17 -0
- package/src/shared/engine/ai/strikeState.ts +19 -0
- package/src/shared/engine/ai/strikes.ts +199 -0
- package/src/shared/engine/ai/weighted.ts +27 -0
- package/src/shared/engine/app/identity.ts +66 -0
- package/src/shared/engine/app/ownership.ts +155 -0
- package/src/shared/engine/app/pageSeat.ts +12 -0
- package/src/shared/engine/app/resources.ts +7 -0
- package/src/shared/engine/app/scheduler.ts +162 -0
- package/src/shared/engine/app/scope.ts +557 -0
- package/src/shared/engine/app/scopeEnvironment.ts +27 -0
- package/src/shared/engine/app/scopedProperty.ts +38 -0
- package/src/shared/engine/audio/audioProfiles.ts +161 -0
- package/src/shared/engine/audio/bootAudio.ts +316 -0
- package/src/shared/engine/boot/loadingWaits.ts +62 -0
- package/src/shared/engine/boot/serverProgress.ts +27 -0
- package/src/shared/engine/boot/steps.ts +63 -0
- package/src/shared/engine/boot/tables.ts +48 -0
- package/src/shared/engine/boot/timeline.ts +189 -0
- package/src/shared/engine/boot/timing.ts +96 -0
- package/src/shared/engine/boot/waits.ts +114 -0
- package/src/shared/engine/boot/workerTiming.ts +74 -0
- package/src/shared/engine/combat/Equipment.ts +66 -0
- package/src/shared/engine/combat/Firearm.ts +200 -0
- package/src/shared/engine/combat/Melee.ts +46 -0
- package/src/shared/engine/combat/Tool.ts +8 -0
- package/src/shared/engine/combat/Weapon.ts +133 -0
- package/src/shared/engine/combat/ammo.ts +17 -0
- package/src/shared/engine/combat/blocks/ads.ts +5 -0
- package/src/shared/engine/combat/blocks/melee.ts +19 -0
- package/src/shared/engine/combat/bowDraw.ts +140 -0
- package/src/shared/engine/combat/bowLaw.ts +54 -0
- package/src/shared/engine/combat/effects/EffectService.ts +216 -0
- package/src/shared/engine/combat/effects/types.ts +47 -0
- package/src/shared/engine/combat/health.ts +92 -0
- package/src/shared/engine/combat/impact.ts +8 -0
- package/src/shared/engine/combat/itemFamilies.ts +34 -0
- package/src/shared/engine/combat/items.ts +147 -0
- package/src/shared/engine/combat/lungeTarget.ts +42 -0
- package/src/shared/engine/combat/meleeProfile.ts +48 -0
- package/src/shared/engine/combat/pipeline.ts +157 -0
- package/src/shared/engine/combat/projectileContact.ts +275 -0
- package/src/shared/engine/combat/projectileFlight.ts +89 -0
- package/src/shared/engine/combat/projectileLaw.ts +148 -0
- package/src/shared/engine/combat/shotSpread.ts +38 -0
- package/src/shared/engine/combat/sweptBasePose.ts +75 -0
- package/src/shared/engine/combat/sweptBlade.ts +108 -0
- package/src/shared/engine/combat/sweptMeleeCore.ts +223 -0
- package/src/shared/engine/combat/targets.ts +20 -0
- package/src/shared/engine/core/clock.ts +57 -0
- package/src/shared/engine/core/config.ts +66 -0
- package/src/shared/engine/core/faults.ts +129 -0
- package/src/shared/engine/core/fixedStep.ts +5 -0
- package/src/shared/engine/core/frameCost.ts +227 -0
- package/src/shared/engine/core/framePacing.ts +179 -0
- package/src/shared/engine/core/harnessTap.ts +15 -0
- package/src/shared/engine/core/memoryAttribution.ts +137 -0
- package/src/shared/engine/core/memoryResources.ts +20 -0
- package/src/shared/engine/core/noise.ts +53 -0
- package/src/shared/engine/core/perfLap.ts +37 -0
- package/src/shared/engine/core/portableMath.ts +204 -0
- package/src/shared/engine/core/portableMathFirst.ts +4 -0
- package/src/shared/engine/core/practiceRoomState.ts +3 -0
- package/src/shared/engine/core/rng.ts +101 -0
- package/src/shared/engine/core/time.ts +8 -0
- package/src/shared/engine/core/workSlice.ts +111 -0
- package/src/shared/engine/entities/AnimalSim.ts +390 -0
- package/src/shared/engine/entities/animalPose.ts +401 -0
- package/src/shared/engine/entities/animalRig.ts +76 -0
- package/src/shared/engine/entities/animalStates.ts +2 -0
- package/src/shared/engine/entities/creatureFloor.ts +13 -0
- package/src/shared/engine/entities/eliteBrain.ts +36 -0
- package/src/shared/engine/entities/fightRules.ts +80 -0
- package/src/shared/engine/entities/ids.ts +18 -0
- package/src/shared/engine/entities/poseCadence.ts +9 -0
- package/src/shared/engine/entities/species/registry.ts +382 -0
- package/src/shared/engine/entities/species/rigs.ts +53 -0
- package/src/shared/engine/events/events.ts +107 -0
- package/src/shared/engine/input/commands.ts +34 -0
- package/src/shared/engine/input/netButtons.ts +4 -0
- package/src/shared/engine/level/data.ts +163 -0
- package/src/shared/engine/level/selection.ts +44 -0
- package/src/shared/engine/level/spec.ts +132 -0
- package/src/shared/engine/net/acts.ts +48 -0
- package/src/shared/engine/net/animalNet.ts +43 -0
- package/src/shared/engine/net/bits.ts +104 -0
- package/src/shared/engine/net/chatFilter.ts +40 -0
- package/src/shared/engine/net/chatWire.ts +18 -0
- package/src/shared/engine/net/chatWords.ts +7 -0
- package/src/shared/engine/net/command.ts +96 -0
- package/src/shared/engine/net/encounterNet.ts +32 -0
- package/src/shared/engine/net/frame.ts +159 -0
- package/src/shared/engine/net/identity.ts +40 -0
- package/src/shared/engine/net/ledgerWire.ts +24 -0
- package/src/shared/engine/net/measurements.ts +14 -0
- package/src/shared/engine/net/messages.ts +213 -0
- package/src/shared/engine/net/netSchemas.ts +38 -0
- package/src/shared/engine/net/playerNet.ts +80 -0
- package/src/shared/engine/net/schema.ts +157 -0
- package/src/shared/engine/net/shardNet.ts +25 -0
- package/src/shared/engine/net/socketFrames.ts +84 -0
- package/src/shared/engine/net/transport.ts +19 -0
- package/src/shared/engine/net/wireFrames.ts +123 -0
- package/src/shared/engine/net/wireMessages.ts +115 -0
- package/src/shared/engine/net/wireValues.ts +142 -0
- package/src/shared/engine/physics/CharacterMotor.ts +429 -0
- package/src/shared/engine/physics/Physics.ts +211 -0
- package/src/shared/engine/physics/bodies.ts +600 -0
- package/src/shared/engine/physics/box.ts +42 -0
- package/src/shared/engine/physics/creatures.ts +188 -0
- package/src/shared/engine/physics/declaredProps.ts +26 -0
- package/src/shared/engine/physics/entrySockets.ts +44 -0
- package/src/shared/engine/physics/frame.ts +39 -0
- package/src/shared/engine/physics/gridBorders.ts +38 -0
- package/src/shared/engine/physics/groups.ts +64 -0
- package/src/shared/engine/physics/heightPatch.ts +49 -0
- package/src/shared/engine/physics/meshCollision.ts +84 -0
- package/src/shared/engine/physics/mover.ts +60 -0
- package/src/shared/engine/physics/navmesh.ts +206 -0
- package/src/shared/engine/physics/navmeshUrl.ts +8 -0
- package/src/shared/engine/physics/nearColliders.ts +55 -0
- package/src/shared/engine/physics/overlap.ts +26 -0
- package/src/shared/engine/physics/paths.ts +135 -0
- package/src/shared/engine/physics/pieces.ts +139 -0
- package/src/shared/engine/physics/query.ts +161 -0
- package/src/shared/engine/physics/queryBatchV2.ts +118 -0
- package/src/shared/engine/physics/rapier-bg.d.ts +5 -0
- package/src/shared/engine/physics/rapier.ts +34 -0
- package/src/shared/engine/physics/readinessWalls.ts +49 -0
- package/src/shared/engine/physics/ropeChain.ts +128 -0
- package/src/shared/engine/physics/stripColliders.ts +21 -0
- package/src/shared/engine/physics/surface.ts +31 -0
- package/src/shared/engine/physics/terrain.ts +155 -0
- package/src/shared/engine/physics/terrainTiles.ts +20 -0
- package/src/shared/engine/physics/trainingTargets.ts +51 -0
- package/src/shared/engine/physics/transferWalls.ts +84 -0
- package/src/shared/engine/physics/wasmUrl.ts +3 -0
- package/src/shared/engine/player/MeleeSweep.ts +50 -0
- package/src/shared/engine/player/board.ts +129 -0
- package/src/shared/engine/player/combatMotion.ts +5 -0
- package/src/shared/engine/player/dash.ts +60 -0
- package/src/shared/engine/player/dodge.ts +14 -0
- package/src/shared/engine/player/fall.ts +29 -0
- package/src/shared/engine/player/hoverSpeed.ts +22 -0
- package/src/shared/engine/player/impulse.ts +30 -0
- package/src/shared/engine/player/jump.ts +30 -0
- package/src/shared/engine/player/lockOrbit.ts +72 -0
- package/src/shared/engine/player/modes.ts +239 -0
- package/src/shared/engine/player/motion.ts +391 -0
- package/src/shared/engine/player/motionState.ts +84 -0
- package/src/shared/engine/player/shove.ts +27 -0
- package/src/shared/engine/player/swim.ts +196 -0
- package/src/shared/engine/player/walk.ts +25 -0
- package/src/shared/engine/quest/core.ts +174 -0
- package/src/shared/engine/quest/dialogueClock.ts +191 -0
- package/src/shared/engine/quest/discovery.ts +42 -0
- package/src/shared/engine/quest/lastPlace.ts +80 -0
- package/src/shared/engine/quest/players.ts +162 -0
- package/src/shared/engine/quest/progress.ts +25 -0
- package/src/shared/engine/quest/viewPort.ts +22 -0
- package/src/shared/engine/saves/environment.ts +13 -0
- package/src/shared/engine/saves/legacy.ts +65 -0
- package/src/shared/engine/saves/runtime.ts +28 -0
- package/src/shared/engine/saves/saves.lock.json +551 -0
- package/src/shared/engine/saves/shape.ts +157 -0
- package/src/shared/engine/saves/store.ts +423 -0
- package/src/shared/engine/script/checkpointBytes.ts +18 -0
- package/src/shared/engine/script/decisionModule.ts +158 -0
- package/src/shared/engine/script/effects.ts +111 -0
- package/src/shared/engine/script/fixedMemory.ts +92 -0
- package/src/shared/engine/script/groupBankV2.ts +376 -0
- package/src/shared/engine/script/groupStepV2.ts +987 -0
- package/src/shared/engine/script/host.ts +443 -0
- package/src/shared/engine/script/moduleV2.ts +160 -0
- package/src/shared/engine/script/observationColumnsV2.ts +431 -0
- package/src/shared/engine/script/observationsV2.ts +139 -0
- package/src/shared/engine/script/state.ts +183 -0
- package/src/shared/engine/script/strings.ts +5 -0
- package/src/shared/engine/script/viewLane.ts +335 -0
- package/src/shared/engine/script/viewProgram.ts +315 -0
- package/src/shared/engine/sim/actRoutes.ts +72 -0
- package/src/shared/engine/sim/apiVersion.ts +2 -0
- package/src/shared/engine/sim/bands.ts +174 -0
- package/src/shared/engine/sim/cableTraversal.ts +356 -0
- package/src/shared/engine/sim/dayClock.ts +76 -0
- package/src/shared/engine/sim/edgeProfiles.ts +123 -0
- package/src/shared/engine/sim/encounterRows.ts +49 -0
- package/src/shared/engine/sim/leadPlayer.ts +16 -0
- package/src/shared/engine/sim/moverLifecycle.ts +80 -0
- package/src/shared/engine/sim/moverMotion.ts +130 -0
- package/src/shared/engine/sim/nearPlayer.ts +21 -0
- package/src/shared/engine/sim/netMotion.ts +17 -0
- package/src/shared/engine/sim/readiness.ts +77 -0
- package/src/shared/engine/sim/seamError.ts +100 -0
- package/src/shared/engine/sim/seamGeometry.ts +365 -0
- package/src/shared/engine/sim/seamLattice.ts +127 -0
- package/src/shared/engine/sim/shardRows.ts +106 -0
- package/src/shared/engine/sim/shore.ts +14 -0
- package/src/shared/engine/sim/snapshot.ts +482 -0
- package/src/shared/engine/sim/snapshotBase64.ts +25 -0
- package/src/shared/engine/sim/snapshotData.ts +460 -0
- package/src/shared/engine/sim/snapshotPhysics.ts +163 -0
- package/src/shared/engine/sim/snapshotReferenceMemo.ts +271 -0
- package/src/shared/engine/sim/strips.ts +134 -0
- package/src/shared/engine/strings.ts +751 -0
- package/src/shared/engine/world/BakedTerrain.ts +131 -0
- package/src/shared/engine/world/Heightfield.ts +129 -0
- package/src/shared/engine/world/bakedTerrainField.ts +85 -0
- package/src/shared/engine/world/dayCycle.ts +198 -0
- package/src/shared/engine/world/easedFields.ts +32 -0
- package/src/shared/engine/world/forest/placement.ts +391 -0
- package/src/shared/engine/world/forest/treeSpec.ts +15 -0
- package/src/shared/engine/world/groundField.ts +21 -0
- package/src/shared/engine/world/interact/barrel.ts +114 -0
- package/src/shared/engine/world/interact/flags.ts +229 -0
- package/src/shared/engine/world/interact/pickup.ts +22 -0
- package/src/shared/engine/world/interact/prompts.ts +47 -0
- package/src/shared/engine/world/interact/types.ts +327 -0
- package/src/shared/engine/world/interact/validate.ts +67 -0
- package/src/shared/engine/world/scalarChannel.ts +146 -0
- package/src/shared/engine/world/steppeWind.ts +193 -0
- package/src/shared/engine/world/terrainField.ts +217 -0
- package/src/shared/engine/world/terrainHeight.ts +19 -0
- package/src/shared/engine/world/water/body.ts +88 -0
- package/src/shared/engine/world/water/declared.ts +106 -0
- package/src/shared/engine/world/waves.ts +57 -0
- package/src/shared/engine/world/weather.ts +166 -0
- package/src/shared/engine/world/weatherContinuation.ts +121 -0
- package/src/shared/engine/world/windField.ts +49 -0
- package/src/shared/engine/world/windStrength.ts +6 -0
- package/src/shared/engine/world/yawFrame.ts +38 -0
- package/src/shared/game/achievements.ts +140 -0
- package/src/shared/game/ambient/flock.ts +374 -0
- package/src/shared/game/animation/limbBlend.ts +70 -0
- package/src/shared/game/animation/limbRig.ts +208 -0
- package/src/shared/game/bag/findsCatalogue.ts +58 -0
- package/src/shared/game/bag/itemCatalog.ts +18 -0
- package/src/shared/game/bag/items.ts +5 -0
- package/src/shared/game/bag/starter.generated.ts +3 -0
- package/src/shared/game/bag/starterItems.json +62 -0
- package/src/shared/game/boss/arenaAnswers.ts +49 -0
- package/src/shared/game/boss/arenaCollision.ts +16 -0
- package/src/shared/game/boss/arenaGround.ts +121 -0
- package/src/shared/game/boss/arenaPortal.ts +63 -0
- package/src/shared/game/boss/arenaRoomRows.ts +403 -0
- package/src/shared/game/boss/arenaWhirls.ts +88 -0
- package/src/shared/game/boss/jointTargets.ts +41 -0
- package/src/shared/game/boss/lane.ts +62 -0
- package/src/shared/game/boss/openArenaFight.ts +644 -0
- package/src/shared/game/boss/patrolLaw.ts +136 -0
- package/src/shared/game/boss/slotLaw.ts +173 -0
- package/src/shared/game/boss/wake.ts +60 -0
- package/src/shared/game/compendium/finds.ts +49 -0
- package/src/shared/game/compendium/registry.ts +28 -0
- package/src/shared/game/compendium/rules.ts +136 -0
- package/src/shared/game/compendium/state.ts +23 -0
- package/src/shared/game/compendium/tracker.ts +138 -0
- package/src/shared/game/compendium/types.ts +115 -0
- package/src/shared/game/eliteSystem.ts +349 -0
- package/src/shared/game/grapple/course.ts +14 -0
- package/src/shared/game/grapple/feed.ts +27 -0
- package/src/shared/game/grapple/sim.ts +352 -0
- package/src/shared/game/grid/allocator.ts +479 -0
- package/src/shared/game/grid/assembly.ts +73 -0
- package/src/shared/game/grid/catalogue.ts +197 -0
- package/src/shared/game/grid/catalogueDocument.ts +6 -0
- package/src/shared/game/grid/catalogueSlot.ts +53 -0
- package/src/shared/game/grid/cellEvents.ts +37 -0
- package/src/shared/game/grid/collisionStrips.ts +18 -0
- package/src/shared/game/grid/compiledStrips.ts +282 -0
- package/src/shared/game/grid/continuations.ts +43 -0
- package/src/shared/game/grid/crossing.ts +143 -0
- package/src/shared/game/grid/edgeProfiles.ts +31 -0
- package/src/shared/game/grid/farProxy.ts +302 -0
- package/src/shared/game/grid/ghosts.ts +42 -0
- package/src/shared/game/grid/gridAssetBytes.ts +59 -0
- package/src/shared/game/grid/gridCollision.ts +37 -0
- package/src/shared/game/grid/instances.ts +9 -0
- package/src/shared/game/grid/pageMode.ts +32 -0
- package/src/shared/game/grid/platformInputs.ts +11 -0
- package/src/shared/game/grid/postPairs.ts +40 -0
- package/src/shared/game/grid/readinessEdges.ts +13 -0
- package/src/shared/game/grid/recovery.ts +221 -0
- package/src/shared/game/grid/roadLayout.ts +169 -0
- package/src/shared/game/grid/roadRecovery.ts +99 -0
- package/src/shared/game/grid/rules.ts +45 -0
- package/src/shared/game/grid/runtimeCheckpoint.ts +58 -0
- package/src/shared/game/grid/seamData.ts +74 -0
- package/src/shared/game/grid/seamGeometry.ts +219 -0
- package/src/shared/game/grid/singleplayer.json +701 -0
- package/src/shared/game/grid/travellerCombat.ts +34 -0
- package/src/shared/game/grid/wallet.ts +104 -0
- package/src/shared/game/harvest.ts +16 -0
- package/src/shared/game/instanceSaves.ts +14 -0
- package/src/shared/game/inventoryLaw.ts +131 -0
- package/src/shared/game/ledger.ts +188 -0
- package/src/shared/game/loadout/itemCatalogue.ts +44 -0
- package/src/shared/game/loadout/persistence.ts +20 -0
- package/src/shared/game/loadout/pouch.ts +46 -0
- package/src/shared/game/localSaveKeys.ts +9 -0
- package/src/shared/game/looks/dayClock.ts +112 -0
- package/src/shared/game/looks/dayLookPresets.ts +75 -0
- package/src/shared/game/looks/keyedSkyClock.ts +15 -0
- package/src/shared/game/loot/Bounty.ts +49 -0
- package/src/shared/game/loot/Owned.ts +112 -0
- package/src/shared/game/loot/Purse.ts +94 -0
- package/src/shared/game/loot/coinAmounts.ts +17 -0
- package/src/shared/game/loot/coinBurstState.ts +23 -0
- package/src/shared/game/loot/deaths.ts +14 -0
- package/src/shared/game/loot/exchange.ts +71 -0
- package/src/shared/game/loot/ownedRows.ts +24 -0
- package/src/shared/game/loot/tableRows.ts +11 -0
- package/src/shared/game/newGame.ts +56 -0
- package/src/shared/game/plugin/animation.ts +618 -0
- package/src/shared/game/plugin/bodyBoss.ts +119 -0
- package/src/shared/game/plugin/borrowed.ts +62 -0
- package/src/shared/game/plugin/bossRecord.ts +28 -0
- package/src/shared/game/plugin/channelPrograms.ts +307 -0
- package/src/shared/game/plugin/channels.ts +355 -0
- package/src/shared/game/plugin/creatureFrame.ts +46 -0
- package/src/shared/game/plugin/director.ts +435 -0
- package/src/shared/game/plugin/moduleHash.ts +49 -0
- package/src/shared/game/plugin/quests.ts +450 -0
- package/src/shared/game/plugin/runtimeRows.ts +288 -0
- package/src/shared/game/population/census.ts +67 -0
- package/src/shared/game/population/groupNotices.ts +34 -0
- package/src/shared/game/population/pageHomes.ts +125 -0
- package/src/shared/game/population/pageRows.ts +20 -0
- package/src/shared/game/population/perchRoot.ts +17 -0
- package/src/shared/game/population/respawn.ts +89 -0
- package/src/shared/game/population/returnProgram.ts +448 -0
- package/src/shared/game/population/returnProjectionV2.ts +203 -0
- package/src/shared/game/population/wildlifeOwner.ts +20 -0
- package/src/shared/game/quest/boundState.ts +55 -0
- package/src/shared/game/quest/carriedRound.ts +59 -0
- package/src/shared/game/quest/chapterBindings.ts +64 -0
- package/src/shared/game/quest/chapterClock.ts +56 -0
- package/src/shared/game/quest/chapterDecision.ts +31 -0
- package/src/shared/game/quest/chapterFlow.ts +54 -0
- package/src/shared/game/quest/chapterLeads.ts +10 -0
- package/src/shared/game/quest/contractBoard.ts +108 -0
- package/src/shared/game/quest/contracts.ts +145 -0
- package/src/shared/game/quest/declared.ts +152 -0
- package/src/shared/game/quest/effectPresentation.ts +23 -0
- package/src/shared/game/quest/effects.ts +61 -0
- package/src/shared/game/quest/eliteDecisions.ts +123 -0
- package/src/shared/game/quest/eliteStreams.ts +7 -0
- package/src/shared/game/quest/featCounters.ts +41 -0
- package/src/shared/game/quest/flagGates.ts +103 -0
- package/src/shared/game/quest/interactionRows.ts +214 -0
- package/src/shared/game/quest/ledger.ts +23 -0
- package/src/shared/game/quest/legacyRecords.ts +17 -0
- package/src/shared/game/quest/nativeProps.ts +117 -0
- package/src/shared/game/quest/pagePersistence.ts +91 -0
- package/src/shared/game/quest/pageReads.ts +39 -0
- package/src/shared/game/quest/pageResources.ts +19 -0
- package/src/shared/game/quest/pageState.ts +66 -0
- package/src/shared/game/quest/persistence.ts +110 -0
- package/src/shared/game/quest/questObservation.ts +50 -0
- package/src/shared/game/quest/steps.ts +116 -0
- package/src/shared/game/quest/storyLaw.ts +17 -0
- package/src/shared/game/riding/bindingTypes.ts +43 -0
- package/src/shared/game/riding/companions.ts +135 -0
- package/src/shared/game/riding/entered.ts +21 -0
- package/src/shared/game/riding/pagePopulation.ts +28 -0
- package/src/shared/game/riding/pastureCues.ts +24 -0
- package/src/shared/game/riding/physics.ts +691 -0
- package/src/shared/game/riding/presentation.ts +27 -0
- package/src/shared/game/riding/taming.ts +164 -0
- package/src/shared/game/rng.merge.d.ts +10 -0
- package/src/shared/game/saves.ts +90 -0
- package/src/shared/game/shard/api.ts +2 -0
- package/src/shared/game/shard/declaredRows.ts +121 -0
- package/src/shared/game/shard/enteredServices.ts +14 -0
- package/src/shared/game/shard/runtime.ts +90 -0
- package/src/shared/game/shard/slug.ts +9 -0
- package/src/shared/game/shard/terrainBake.ts +12 -0
- package/src/shared/game/shardfile/aimTargetFilter.ts +12 -0
- package/src/shared/game/shardfile/bakedPlacementPoses.ts +25 -0
- package/src/shared/game/shardfile/buildingDoor.ts +52 -0
- package/src/shared/game/shardfile/clientGround.ts +86 -0
- package/src/shared/game/shardfile/clientState.ts +133 -0
- package/src/shared/game/shardfile/collisionBindings.ts +31 -0
- package/src/shared/game/shardfile/contentHash.ts +7 -0
- package/src/shared/game/shardfile/crowdRuntime.ts +254 -0
- package/src/shared/game/shardfile/customSchema.ts +57 -0
- package/src/shared/game/shardfile/dataCreaturePorts.ts +239 -0
- package/src/shared/game/shardfile/entryOwners.ts +153 -0
- package/src/shared/game/shardfile/fileInputs.ts +21 -0
- package/src/shared/game/shardfile/identity.ts +18 -0
- package/src/shared/game/shardfile/items.ts +180 -0
- package/src/shared/game/shardfile/ktx2Targets.ts +62 -0
- package/src/shared/game/shardfile/ladder.ts +137 -0
- package/src/shared/game/shardfile/liftRider.ts +62 -0
- package/src/shared/game/shardfile/logicalState.ts +57 -0
- package/src/shared/game/shardfile/movers.ts +14 -0
- package/src/shared/game/shardfile/namedJsonChecks.ts +12 -0
- package/src/shared/game/shardfile/outputChecksNode.ts +11 -0
- package/src/shared/game/shardfile/outputDescriptor.ts +317 -0
- package/src/shared/game/shardfile/outputIndexChecks.ts +8 -0
- package/src/shared/game/shardfile/packReads.ts +93 -0
- package/src/shared/game/shardfile/playArea.ts +42 -0
- package/src/shared/game/shardfile/portalRide.ts +170 -0
- package/src/shared/game/shardfile/portalTraversal.ts +49 -0
- package/src/shared/game/shardfile/productData.ts +22 -0
- package/src/shared/game/shardfile/props.ts +11 -0
- package/src/shared/game/shardfile/resourceRole.ts +14 -0
- package/src/shared/game/shardfile/runtimeState.ts +69 -0
- package/src/shared/game/shardfile/schemaReferences.ts +33 -0
- package/src/shared/game/shardfile/scriptNotice.ts +38 -0
- package/src/shared/game/shardfile/serverPack.ts +23 -0
- package/src/shared/game/shardfile/shardProduct.ts +206 -0
- package/src/shared/game/shardfile/spawnManifest.ts +126 -0
- package/src/shared/game/shardfile/talks.ts +22 -0
- package/src/shared/game/shardfile/targets.ts +11 -0
- package/src/shared/game/shardfile/tileOrder.ts +64 -0
- package/src/shared/game/shardfile/walkInPortalRide.ts +160 -0
- package/src/shared/game/shardfile/wholeInputs.ts +18 -0
- package/src/shared/game/shardfile/wirePrompts.ts +35 -0
- package/src/shared/game/shardfile/worldActionsV2.ts +113 -0
- package/src/shared/game/shardfile/worldTargets.ts +71 -0
- package/src/shared/game/stealth/stealthLaw.ts +120 -0
- package/src/shared/game/strings.ts +88 -0
- package/src/shared/game/systems/cellField.ts +144 -0
- package/src/shared/game/systems/effects/starterEffects.ts +20 -0
- package/src/shared/game/systems/effects/starterRows.json +98 -0
- package/src/shared/game/systems/looks/grassField.ts +249 -0
- package/src/shared/game/systems/looks/trampleField.ts +263 -0
- package/src/shared/game/weapons/heldBowBase.ts +15 -0
- package/src/shared/game/weapons/heldDecision.ts +20 -0
- package/src/shared/game/weapons/javelinFlight.ts +139 -0
- package/src/shared/game/weapons/launcherSpring.ts +11 -0
- package/src/shared/game/weapons/mountedPass.ts +70 -0
- package/src/shared/game/weapons/polearmContact.ts +73 -0
- package/src/shared/game/weapons/polearmDecision.ts +152 -0
- package/src/shared/game/weapons/starter.generated.ts +2 -0
- package/src/shared/game/weapons/starterBow.json +21 -0
- package/src/shared/game/weapons/starterBowProfile.ts +17 -0
- package/src/shared/game/weapons/starterCombat.ts +19 -0
- package/src/shared/game/weapons/starterGlyphs.ts +9 -0
- package/src/shared/game/weapons/starterMeleeProfile.ts +67 -0
- package/src/shared/game/weapons/starterMoves.ts +101 -0
- package/src/shared/game/weather/feed.ts +57 -0
- package/src/shared/health.ts +10 -0
- package/src/shared/host/author.ts +14 -0
- package/src/shared/host/formatJsonSchema.ts +1114 -0
- package/src/shared/host/headlessJourney.ts +152 -0
- package/src/shared/host/headlessObservation.ts +16 -0
- package/src/shared/host/headlessSections.ts +18 -0
- package/src/shared/host/headlessTape.ts +99 -0
- package/src/shared/host/headlessTapeParts.ts +35 -0
- package/src/shared/host/immutable.ts +14 -0
- package/src/shared/host/releaseRows.ts +23 -0
- package/src/shared/host/shardfile.ts +23 -0
- package/src/shared/host/standalone/harnessPlace.ts +23 -0
- package/src/shared/host/standalone/heldReads.ts +45 -0
- package/src/shared/host/standalone/netInput.ts +112 -0
- package/src/shared/host/standalone/workerLoopback.ts +51 -0
- package/src/shared/host/tickProtocol.ts +246 -0
- package/src/shared/side.ts +2 -0
- package/src/test/engine/FakeGame.ts +123 -0
- package/src/test/engine/creatureStride.ts +29 -0
- package/src/test/engine/declarationConsumer.ts +24 -0
- package/src/test/engine/linkedGl.ts +7 -0
- package/src/test/engine/manager.ts +58 -0
- package/src/test/engine/nativeBytes.ts +5 -0
- package/src/test/engine/netLoopback.ts +64 -0
- package/src/test/engine/realGc.ts +34 -0
- package/src/test/engine/terrain.ts +32 -0
- package/src/test/engine/textureUploadRenderer.ts +34 -0
- package/src/test/engine/weaponParity.ts +119 -0
- package/src/test/engine/world.ts +48 -0
- package/src/test/game/creatureRecipe.ts +11 -0
- package/src/test/helpers/git.ts +94 -0
- package/src/test/tsconfig.app.json +28 -0
- package/src/test/tsconfig.engine.json +27 -0
- package/src/test/tsconfig.game.json +28 -0
- package/src/test/tsconfig.host.json +27 -0
- package/src/tools/build-web.ts +58 -0
- package/src/tsconfig.json +39 -0
- package/tsconfig.app.json +32 -0
- package/tsconfig.engine.json +22 -0
- package/tsconfig.game.json +34 -0
- package/tsconfig.host.json +33 -0
- package/tsconfig.json +54 -0
- package/tsconfig.layers.json +35 -0
- package/types/format-standards.d.ts +19 -0
- package/vite/rapier.ts +35 -0
- package/README.md +0 -8
|
@@ -0,0 +1,1438 @@
|
|
|
1
|
+
// J130: the flip's checklist, the parts a walk can't reach: a real fight on its rows to the reward, a refused press, a boss that resets, a
|
|
2
|
+
// fall and the way back, the sky and the Weather setting, a chest, a buy, a contract, a door. A harness stands the player where it needs
|
|
3
|
+
// them and hardens their blows (`__workerClientHits`), so a long fight ends inside a proof; the hits, the fight and the reward are real.
|
|
4
|
+
import { saveFixture } from './debug-settings.mjs';
|
|
5
|
+
import { FLOOR_GRID_ENTER } from './frame-floor-navigation.mjs';
|
|
6
|
+
|
|
7
|
+
/** What the game asks of the score from here on: `heardOf` reads it. A proof's own record: no step's `ok` needs it. Never wrap `hud.killFeed` here:
|
|
8
|
+
* a lair's runtime pins that method's identity, and on Nalati a wrapped one faults `shard.nalati.elites` every frame, and presses and blows die with it. */
|
|
9
|
+
const listen = page => page.evaluate(() => {
|
|
10
|
+
const { world } = window.__wildshard, lines = window.__said = [];
|
|
11
|
+
const record = (owner, name) => { const real = owner[name].bind(owner); owner[name] = (...args) => { lines.push(`${name} ${args.join(' ')}`); return real(...args); }; };
|
|
12
|
+
for (const name of ['combat', 'sting']) record(world.music, name);
|
|
13
|
+
});
|
|
14
|
+
const heardOf = page => page.evaluate(() => (window.__said ?? []).slice(-14));
|
|
15
|
+
/** Open one shard with the row on, entered and on the wire. */
|
|
16
|
+
async function open(browser, phone, base, slug, query = '') {
|
|
17
|
+
const context = await browser.newContext(phone), page = await context.newPage(), errors = [];
|
|
18
|
+
page.on('pageerror', error => { errors.push(error.message.slice(0, 300)); });
|
|
19
|
+
page.on('console', line => { if (line.type() === 'error') errors.push(line.text().slice(0, 300)); });
|
|
20
|
+
await saveFixture(context, { scope: 'device', key: 'devMode', data: true });
|
|
21
|
+
await page.goto(new URL(`/?chunk=${slug}&mute=1&nolock=1${query}`, base).href, { waitUntil: 'load' });
|
|
22
|
+
await page.waitForFunction(() => window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 });
|
|
23
|
+
await page.waitForFunction(() => typeof window.__workerClient === 'function', undefined, { timeout: 150_000 });
|
|
24
|
+
await page.evaluate(FLOOR_GRID_ENTER);
|
|
25
|
+
await page.waitForFunction(() => window.__workerClient().frames > 30, undefined, { timeout: 60_000 });
|
|
26
|
+
return { context, page, errors };
|
|
27
|
+
}
|
|
28
|
+
const report = page => page.evaluate(() => window.__workerClient());
|
|
29
|
+
const fight = (page, id) => page.evaluate(want => window.__workerClientFights().find(row => row.id === want) ?? null, id);
|
|
30
|
+
const place = (page, x, y, z) => page.evaluate(([px, py, pz]) => { window.__wildshard.world.player.link.place(px, py, pz, 0); }, [x, y, z]);
|
|
31
|
+
/** `--second`: a second player stands in this fight from here on. It joins after the sky is set: a room shares one sky, and takes no player's word for it. */
|
|
32
|
+
const joinSecond = page => (process.argv.includes('--second') ? page.evaluate(() => { const { x, y, z } = window.__wildshard.world.player.position; window.__secondClient = window.__workerClientBot('bot:2', x + 3, y, z + 3); }) : Promise.resolve());
|
|
33
|
+
/** Wait until `read` answers something truthy; its last answer either way. */
|
|
34
|
+
async function until(page, read, seconds, every = 250) {
|
|
35
|
+
const end = Date.now() + seconds * 1000;
|
|
36
|
+
let last = await read();
|
|
37
|
+
while (!last && Date.now() < end) { await page.waitForTimeout(every); last = await read(); }
|
|
38
|
+
return last;
|
|
39
|
+
}
|
|
40
|
+
/** Face a point and swing or shoot at it. */
|
|
41
|
+
const strike = (page, at, chase) => page.evaluate(([x, y, z, run]) => {
|
|
42
|
+
const { player, game } = window.__wildshard.world, dx = x - player.position.x, dz = z - player.position.z, away = Math.hypot(dx, dz);
|
|
43
|
+
player.yaw = Math.atan2(-dx, -dz); player.pitch = Math.atan2(y + 1 - player.position.y - 1.6, Math.max(away, 0.1)); player.touchMove.y = run && away > 2.2 ? 1 : 0; player.touchSprint = run && away > 8;
|
|
44
|
+
game.app.input.press('attack');
|
|
45
|
+
}, [at.x, at.y, at.z, chase]);
|
|
46
|
+
const stand = page => page.evaluate(() => { const { player } = window.__wildshard.world; player.touchMove.y = 0; player.touchSprint = false; });
|
|
47
|
+
/** The boss bar's words as a player reads them. */
|
|
48
|
+
const bossBar = page => page.evaluate(() => { const shown = selector => [...document.querySelectorAll(selector)].filter(node => node.classList.contains('show')).map(node => (node.textContent ?? '').trim().slice(0, 60)); return { bar: shown('[class*="ws-boss"]').slice(0, 4), elite: shown('[class*="ws-elite"]').slice(0, 4) }; });
|
|
49
|
+
const prompt = (page, match) => page.evaluate(source => { const pattern = new RegExp(source, 'iu'), found = window.__wildshard.world.interactables.find(row => (pattern.test(row.label) || pattern.test(row.wireId ?? '')) && row.radius > 0); return found === undefined ? null : { label: found.label, x: found.position.x, y: found.position.y, z: found.position.z, id: found.wireId ?? null }; }, match);
|
|
50
|
+
/** A press of whatever stands nearest, as a player's E. */
|
|
51
|
+
const press = page => page.keyboard.press('KeyE');
|
|
52
|
+
|
|
53
|
+
const SUNSCAR_BASIN = [-14, 28, -150], NALATI_DOOR = [-169, 75], KINGS_CLEARING = [150, -30];
|
|
54
|
+
const groundAt = (page, x, z) => page.evaluate(([gx, gz]) => window.__hf.heightAt(gx, gz), [x, z]);
|
|
55
|
+
/** Walk one way until `done`, or `seconds` run out; whether it was done. */
|
|
56
|
+
async function walkInto(page, yaw, seconds, done) {
|
|
57
|
+
await page.evaluate(heading => { const { player } = window.__wildshard.world; player.yaw = heading; player.pitch = 0; player.touchMove.y = 1; }, yaw);
|
|
58
|
+
const reached = await until(page, done, seconds, 150);
|
|
59
|
+
await stand(page);
|
|
60
|
+
return reached === true;
|
|
61
|
+
}
|
|
62
|
+
/** Stand beside a prompt, as near as a player would. */
|
|
63
|
+
async function standAt(page, match, off = 0.7) {
|
|
64
|
+
const found = await prompt(page, match);
|
|
65
|
+
if (found === null) return null;
|
|
66
|
+
await place(page, found.x + off, found.y - 1.2, found.z + off);
|
|
67
|
+
await page.waitForTimeout(1100);
|
|
68
|
+
return found;
|
|
69
|
+
}
|
|
70
|
+
/** A press from each side of a prompt in turn: a player finds the side it can see from. */
|
|
71
|
+
async function pressRound(page, match, done) {
|
|
72
|
+
const at = await prompt(page, match);
|
|
73
|
+
if (at === null) return false;
|
|
74
|
+
for (const [dx, dz] of [[1, 0], [-1, 0], [0, 1.2], [0, -1.2], [1, 1], [-1, -1]]) {
|
|
75
|
+
await place(page, at.x + dx, at.y - 1.3, at.z + dz);
|
|
76
|
+
await page.waitForTimeout(1000);
|
|
77
|
+
await press(page); await page.waitForTimeout(900);
|
|
78
|
+
if (await done()) return true;
|
|
79
|
+
}
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
/** Press until `done`, reading a talk through as a player does. */
|
|
83
|
+
async function pressUntil(page, done, tries = 14) {
|
|
84
|
+
for (let i = 0; i < tries; i++) { await press(page); await page.waitForTimeout(600); if (await done()) return true; }
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
const hasFlag = (page, flag) => async () => (await report(page)).flags.includes(flag);
|
|
88
|
+
/** Face a point dead on, from the eye. */
|
|
89
|
+
const faceAt = (page, at) => page.evaluate(({ x, y, z }) => {
|
|
90
|
+
const { player } = window.__wildshard.world, dx = x - player.position.x, dz = z - player.position.z;
|
|
91
|
+
player.yaw = Math.atan2(-dx, -dz); player.pitch = Math.atan2(y - player.position.y - 1.68, Math.hypot(dx, dz));
|
|
92
|
+
}, at);
|
|
93
|
+
/** A lash or a shot at a point: stand a few metres off, face it, and strike. `heavy` holds the charge through. */
|
|
94
|
+
async function lash(page, at, heavy = false, off = 2.4, action = 'attack') {
|
|
95
|
+
await place(page, at.x + off, at.y - 0.6, at.z + off);
|
|
96
|
+
await page.waitForTimeout(1200);
|
|
97
|
+
await faceAt(page, at);
|
|
98
|
+
await page.waitForTimeout(200);
|
|
99
|
+
if (heavy) {
|
|
100
|
+
await page.evaluate(() => { window.__wildshard.world.game.app.equipment.adsHeld = true; });
|
|
101
|
+
await page.waitForTimeout(900);
|
|
102
|
+
await page.evaluate(() => { window.__wildshard.world.game.app.equipment.adsHeld = false; });
|
|
103
|
+
await page.waitForTimeout(1800);
|
|
104
|
+
} else { await page.evaluate(name => { window.__wildshard.world.game.app.input.press(name); }, action); await page.waitForTimeout(900); }
|
|
105
|
+
}
|
|
106
|
+
/** Blows until a fight stands in `state`, keeping to its body. `also` is a second action to press with them. */
|
|
107
|
+
async function fightTo(page, id, state, seconds, also = null) {
|
|
108
|
+
const end = Date.now() + seconds * 1000;
|
|
109
|
+
let row = await fight(page, id), turn = 0;
|
|
110
|
+
while (row?.state !== state && Date.now() < end) {
|
|
111
|
+
if (row?.at !== null && row?.at !== undefined) {
|
|
112
|
+
await strike(page, row.at, true);
|
|
113
|
+
if (await page.evaluate(() => window.__wildshard.world.game.app.equipment.current.id === 'bow')) { // hold to draw, let go to loose
|
|
114
|
+
await page.evaluate(() => { window.__wildshard.world.game.app.equipment.altHeld = true; }); await page.waitForTimeout(1100);
|
|
115
|
+
await strike(page, row.at, false); await page.evaluate(() => { window.__wildshard.world.game.app.equipment.altHeld = false; });
|
|
116
|
+
}
|
|
117
|
+
if (also !== null) await page.evaluate(name => { window.__wildshard.world.game.app.input.press(name); }, also);
|
|
118
|
+
if (turn++ % 12 === 0) { const { at } = row, seen = await page.evaluate(() => window.__wildshard.world.player.position.y); await place(page, at.x + 1.5, Math.max(seen, at.y - 1), at.z + 1.5); }
|
|
119
|
+
}
|
|
120
|
+
await page.waitForTimeout(350);
|
|
121
|
+
row = await fight(page, id);
|
|
122
|
+
}
|
|
123
|
+
await stand(page);
|
|
124
|
+
return row;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** Sunscar, whole: Sefa, the logbook, the well, three waymarks, the signal fire, the Matriarch, the end of the quest. */
|
|
128
|
+
export async function sunscarJourney(browser, phone, base, step, prepare = () => Promise.resolve()) {
|
|
129
|
+
const dune = await open(browser, phone, base, 'sunscar-dunes');
|
|
130
|
+
const { page } = dune, flagged = flag => hasFlag(page, flag);
|
|
131
|
+
await prepare(page);
|
|
132
|
+
await step('sunscar: Sefa starts the quest', async () => {
|
|
133
|
+
await standAt(page, 'Sefa');
|
|
134
|
+
return { ok: await pressUntil(page, flagged('sunscar.scout'), 24), quests: (await report(page)).quests };
|
|
135
|
+
});
|
|
136
|
+
await step('sunscar: the logbook press reaches the server', async () => {
|
|
137
|
+
const found = await standAt(page, 'logbook');
|
|
138
|
+
return { ok: await pressUntil(page, flagged('sunscar.logbook'), 4), found, flags: (await report(page)).flags.filter(flag => !flag.startsWith('seen:')) };
|
|
139
|
+
});
|
|
140
|
+
await step('sunscar: the crank takes a double crack, and the jar comes up', async () => {
|
|
141
|
+
const well = await prompt(page, 'well|bucket|oil');
|
|
142
|
+
await lash(page, { x: 85.67, y: 17.67, z: -6 }, true);
|
|
143
|
+
await standAt(page, 'well|bucket|oil');
|
|
144
|
+
return { ok: await pressUntil(page, flagged('sunscar.oil'), 5), well, label: (await prompt(page, 'well|bucket|oil'))?.label ?? null };
|
|
145
|
+
});
|
|
146
|
+
// Each waymark from where a player stands to pour: 2.5 m south of the bowl, on the ground. The server picks the prompt it sees from there.
|
|
147
|
+
for (const index of [0, 1, 2]) await step(`sunscar: waymark ${index} takes oil and a light crack`, async () => {
|
|
148
|
+
const crack = [{ x: 58, y: 26.6, z: -34 }, { x: -44, y: 19.41, z: -22 }, { x: 34, y: 10.37, z: -102 }][index], on = flagged(`sunscar.brazier.${index}`), label = () => page.evaluate(wanted => window.__wildshard.world.interactables.find(row => row.wireId === wanted)?.label ?? null, `pour.${index}`);
|
|
149
|
+
await place(page, crack.x, crack.y - 1.3, crack.z + 2.5);
|
|
150
|
+
await page.waitForTimeout(1600);
|
|
151
|
+
await press(page); await page.waitForTimeout(900);
|
|
152
|
+
const poured = await label();
|
|
153
|
+
for (let crackAt = 0; crackAt < 4 && await on() !== true; crackAt++) { await faceAt(page, crack); await page.waitForTimeout(250); await faceAt(page, crack); await page.evaluate(() => { window.__wildshard.world.game.app.input.press('attack'); }); await until(page, on, 1.5); }
|
|
154
|
+
return { ok: await on() === true, poured, label: await label(), server: [(await report(page)).serverX, (await report(page)).serverZ], refused: (await report(page)).refused, flags: (await report(page)).flags.filter(flag => !flag.startsWith('seen:')) };
|
|
155
|
+
});
|
|
156
|
+
await step('sunscar: a gate a player opened is that player\'s', async () => {
|
|
157
|
+
const seen = await page.evaluate(() => [0, 1, 2].map(index => window.__workerClientGate(`sunscar.brazier.${index}`)));
|
|
158
|
+
return { ok: seen.every(open_ => open_ === true) && await page.evaluate(() => window.__workerClientGate('sunscar.lit')) === false, seen };
|
|
159
|
+
});
|
|
160
|
+
await step('sunscar: the signal fire lights, and the sky has gone to dusk', async () => {
|
|
161
|
+
const fire = await prompt(page, 'signal');
|
|
162
|
+
await place(page, 8.75, fire.y - 1.1, -73.5);
|
|
163
|
+
await page.waitForTimeout(1600);
|
|
164
|
+
const lit = await pressUntil(page, flagged('sunscar.lit'), 5);
|
|
165
|
+
await page.waitForTimeout(6000);
|
|
166
|
+
return { ok: lit, flags: (await report(page)).flags.filter(flag => !flag.startsWith('seen:')), row: (await fight(page, 'sunscar.matriarch'))?.state, dusk: await page.evaluate(() => window.__wildshard.shard.weatherFields?.value?.('dusk') ?? null) };
|
|
167
|
+
});
|
|
168
|
+
await step('sunscar: the Matriarch falls to real blows, and the quest ends', async () => {
|
|
169
|
+
await page.evaluate(() => { window.__workerClientHits(60); });
|
|
170
|
+
await place(page, ...SUNSCAR_BASIN);
|
|
171
|
+
const up = await until(page, async () => { const seen = await fight(page, 'sunscar.matriarch'); return seen?.state === 'fight' ? seen : null; }, 25);
|
|
172
|
+
const shown = await bossBar(page), end = await fightTo(page, 'sunscar.matriarch', 'victory', 50);
|
|
173
|
+
await page.waitForTimeout(3000);
|
|
174
|
+
const r = await report(page);
|
|
175
|
+
return { ok: end?.state === 'victory' && r.quests['sunscar.signal'] === null && r.paid > 0 && r.receipts.some(line => line === 'fact:sunscar.matriarch'), up: up?.state ?? null, state: end?.state, shown, quests: r.quests, paid: r.paid, coins: r.owned.coins, receipts: r.receipts };
|
|
176
|
+
});
|
|
177
|
+
await step('sunscar: no page error', () => ({ ok: dune.errors.length === 0, errors: [...new Set(dune.errors)].slice(0, 6) }));
|
|
178
|
+
await dune.context.close();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/** The nearest living row body of a kind. */
|
|
182
|
+
const bodyOf = (page, kind) => page.evaluate(want => { const { world } = window.__wildshard, live = (world.animals?.animals ?? []).filter(body => body.alive && body.rowDriven && body.kind === want); live.sort((a, b) => a.position.distanceTo(world.player.position) - b.position.distanceTo(world.player.position)); const body = live[0]; return body === undefined ? null : { x: body.position.x, y: body.position.y, z: body.position.z, count: live.length }; }, kind);
|
|
183
|
+
/** What a page bound on a row's body as its fight began, nearest `at`: read off the mesh the page draws. */
|
|
184
|
+
const rowLook = (page, at) => page.evaluate(({ x, z }) => {
|
|
185
|
+
const live = (window.__wildshard.world.animals?.animals ?? []).filter(body => body.rowDriven), away = body => Math.hypot(body.position.x - x, body.position.z - z);
|
|
186
|
+
live.sort((one, other) => away(one) - away(other));
|
|
187
|
+
const body = live[0]; if (body === undefined) return null;
|
|
188
|
+
const materials = new Set(); body.mesh.traverse(mesh => { for (const material of [mesh.material].flat()) if (material !== undefined) materials.add(material); });
|
|
189
|
+
const rows = [...materials], standard = rows.filter(material => material.isMeshStandardMaterial), lambert = rows.filter(material => material.isMeshLambertMaterial);
|
|
190
|
+
return { kind: body.kind, away: Number(away(body).toFixed(1)), pinned: body.drawPinned, standard: standard.length, painted: standard.filter(material => /lights_fragment_end/u.test(material.customProgramCacheKey())).length,
|
|
191
|
+
glow: Math.max(0, ...lambert.filter(material => material.emissive.getHex() !== 0).map(material => material.emissiveIntensity)), tint: lambert[0]?.color.toArray().map(value => Number(value.toFixed(2))) ?? null };
|
|
192
|
+
}, at);
|
|
193
|
+
/** Far Reach, whole: the keeper's notes, the roost, three vanes, the winch, the crown, the Roc. `prepare` observes the page before
|
|
194
|
+
* the first press; `winched` hears the page once the bridge is up, and ends the journey there when it answers true. */
|
|
195
|
+
export async function farJourney(browser, phone, base, step, prepare = () => Promise.resolve(), winched = () => Promise.resolve(false)) {
|
|
196
|
+
const sky = await open(browser, phone, base, 'far-reach');
|
|
197
|
+
const { page } = sky, flagged = flag => hasFlag(page, flag), live = async () => (await report(page)).flags.filter(flag => !flag.startsWith('seen:'));
|
|
198
|
+
await prepare(page);
|
|
199
|
+
await page.evaluate(() => { window.__workerClientHits(40); });
|
|
200
|
+
await step('far reach: the keeper\'s talk starts the quest', async () => {
|
|
201
|
+
await standAt(page, 'keeper');
|
|
202
|
+
return { ok: await pressUntil(page, flagged('far.notes'), 20), flags: await live(), quests: (await report(page)).quests };
|
|
203
|
+
});
|
|
204
|
+
await step('far reach: the roost\'s rays fall to real blows', async () => {
|
|
205
|
+
await place(page, 60, 35.5, -12);
|
|
206
|
+
await page.waitForTimeout(1500);
|
|
207
|
+
const done = await until(page, async () => {
|
|
208
|
+
if (await flagged('far.roost')()) return true;
|
|
209
|
+
const ray = await bodyOf(page, 'driftRay');
|
|
210
|
+
if (ray !== null) { if (Math.hypot(ray.x - 60, ray.z + 12) < 40) await place(page, ray.x + 1.5, Math.max(ray.y - 1.2, 34.5), ray.z + 1.5); await strike(page, ray, false); }
|
|
211
|
+
return false;
|
|
212
|
+
}, 70, 450);
|
|
213
|
+
return { ok: done === true, flags: await live(), left: await bodyOf(page, 'driftRay') };
|
|
214
|
+
});
|
|
215
|
+
for (const [name, x, y, z] of [['grove', -50, 30.3, 0], ['keeper', -54, 35.8, -56], ['ruin', 62, 31.3, -76]]) await step(`far reach: the ${name} vane takes a gust`, async () => {
|
|
216
|
+
await lash(page, { x, y, z }, false, 3, 'far.gust');
|
|
217
|
+
return { ok: await until(page, flagged(`far.vane.${name}`), 4) === true, flags: await live() };
|
|
218
|
+
});
|
|
219
|
+
await step('far reach: the winch raises the bridge', async () => {
|
|
220
|
+
const found = await standAt(page, 'winch');
|
|
221
|
+
const up = await pressUntil(page, flagged('far.bridge'), 8);
|
|
222
|
+
return { ok: up, found, flags: await live(), quests: (await report(page)).quests };
|
|
223
|
+
});
|
|
224
|
+
if (await winched(page)) { await sky.context.close(); return; }
|
|
225
|
+
await step('far reach: the Roc falls to real blows and the sky is won', async () => {
|
|
226
|
+
await place(page, 0, 45.5, -188);
|
|
227
|
+
const up = await until(page, async () => (await fight(page, 'far.roc.encounter'))?.state === 'fight', 20);
|
|
228
|
+
const shown = await bossBar(page), end = await fightTo(page, 'far.roc.encounter', 'victory', 100, 'far.gust');
|
|
229
|
+
await page.waitForTimeout(2500);
|
|
230
|
+
const r = await report(page);
|
|
231
|
+
return { ok: up === true && end?.state === 'victory' && r.flags.includes('far.roc.down'), state: end?.state, shown, quests: r.quests, paid: r.paid, coins: r.owned.coins, flags: await live() };
|
|
232
|
+
});
|
|
233
|
+
await step('far reach: no page error', () => ({ ok: sky.errors.length === 0, errors: [...new Set(sky.errors)].slice(0, 6) }));
|
|
234
|
+
await sky.context.close();
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const coins = async page => (await report(page)).owned.coins ?? 0;
|
|
238
|
+
/** Boars until the purse holds `want`. */
|
|
239
|
+
async function earn(page, kind, want, seconds) {
|
|
240
|
+
const end = Date.now() + seconds * 1000;
|
|
241
|
+
while (await coins(page) < want && Date.now() < end) {
|
|
242
|
+
const body = await bodyOf(page, kind);
|
|
243
|
+
if (body === null) { await page.waitForTimeout(500); continue; }
|
|
244
|
+
await place(page, body.x + 1.2, body.y + 0.5, body.z + 1.2);
|
|
245
|
+
await page.waitForTimeout(350);
|
|
246
|
+
await strike(page, body, true);
|
|
247
|
+
await page.waitForTimeout(450);
|
|
248
|
+
}
|
|
249
|
+
await stand(page);
|
|
250
|
+
return coins(page);
|
|
251
|
+
}
|
|
252
|
+
/** Driftwood, whole: Wendell, his chest, a beacon, a buy, a real door, and as far along the ring as a press can go. */
|
|
253
|
+
async function driftwoodJourney(browser, phone, base, step) {
|
|
254
|
+
const isle = await open(browser, phone, base, 'driftwood-isle');
|
|
255
|
+
const { page } = isle, live = async () => (await report(page)).flags.filter(flag => !flag.startsWith('seen:') && !flag.startsWith('glass') && !flag.startsWith('taken:glass'));
|
|
256
|
+
await page.evaluate(() => { window.__workerClientHits(40); });
|
|
257
|
+
await step('driftwood: Wendell starts the ring', async () => {
|
|
258
|
+
await standAt(page, 'Wendell');
|
|
259
|
+
return { ok: await pressUntil(page, async () => (await report(page)).quests['sealed-ring'] === 'shards', 12), quests: (await report(page)).quests };
|
|
260
|
+
});
|
|
261
|
+
await step('driftwood: a chest pressed on the page opens on the server', async () => {
|
|
262
|
+
for (let i = 0; i < 24; i++) { await press(page); await page.waitForTimeout(250); } // the talk's lines
|
|
263
|
+
const opened = await pressRound(page, 'castaway-chest', async () => (await report(page)).owned['item.doubloon'] === 2);
|
|
264
|
+
return { ok: opened, owned: (await report(page)).owned, flags: await live() };
|
|
265
|
+
});
|
|
266
|
+
await step('driftwood: the beacon takes the flint and gives its shard', async () => {
|
|
267
|
+
const lit = await pressRound(page, '^beacon$', async () => await prompt(page, 'shard-lookout') !== null);
|
|
268
|
+
const taken = await pressRound(page, 'shard-lookout', async () => await prompt(page, 'shard-lookout') === null);
|
|
269
|
+
return { ok: lit && taken, lit, taken, flags: await live(), quests: (await report(page)).quests };
|
|
270
|
+
});
|
|
271
|
+
await step('driftwood: real kills fill the purse and a buy takes it', async () => {
|
|
272
|
+
const before = await earn(page, 'boar', 8, 60);
|
|
273
|
+
await standAt(page, 'Trade with Maren');
|
|
274
|
+
await press(page); await page.waitForTimeout(1000);
|
|
275
|
+
await page.locator('.ws-shop-grid > *').filter({ hasText: /cape/iu }).first().click({ timeout: 4000 });
|
|
276
|
+
await page.waitForTimeout(400);
|
|
277
|
+
await page.locator('.ws-shop-bigbuy').click({ timeout: 4000 });
|
|
278
|
+
const open_ = await page.evaluate(() => document.querySelector('.ws-shop-counter, .ws-shop')?.classList.contains('show') ?? null), at = Date.now(), landed = await until(page, async () => Object.keys((await report(page)).owned).some(line => line.startsWith('own') && line.includes('cape')) ? Date.now() - at : null, 3); // a line at 0 is gone, so read the cape
|
|
279
|
+
await page.locator('.ws-shop-close').click({ timeout: 3000 }).catch(() => page.keyboard.press('Escape'));
|
|
280
|
+
await page.waitForTimeout(1500);
|
|
281
|
+
const r = await report(page), held = Object.keys(r.owned).filter(line => line.startsWith('own'));
|
|
282
|
+
return { ok: held.some(line => line.includes('cape')) && landed !== null, before, panel: open_, whileOpen: landed, after: r.owned.coins, held };
|
|
283
|
+
});
|
|
284
|
+
await step('driftwood: no page error', () => ({ ok: isle.errors.length === 0, errors: [...new Set(isle.errors)].slice(0, 6) }));
|
|
285
|
+
await isle.context.close();
|
|
286
|
+
}
|
|
287
|
+
/** Pine: a contract filled by a real kill and claimed on the board, and the miller's barred door. */
|
|
288
|
+
async function pineJourney(browser, phone, base, step) {
|
|
289
|
+
const pine = await open(browser, phone, base, 'pine-hollow');
|
|
290
|
+
const { page } = pine, board = async () => { const { owned } = await report(page); return Object.entries(owned).filter(([line]) => line.startsWith('board') || line.startsWith('slot') || line.includes('|')); };
|
|
291
|
+
await page.evaluate(() => { window.__workerClientHits(60); });
|
|
292
|
+
await step('pine: the board comes up on lines', async () => {
|
|
293
|
+
await page.waitForTimeout(1500);
|
|
294
|
+
const lines = await board();
|
|
295
|
+
return { ok: lines.length > 0, lines: lines.slice(0, 8) };
|
|
296
|
+
});
|
|
297
|
+
await step('pine: a real kill fills a contract, and it counts on the page', async () => {
|
|
298
|
+
const lines = await board(), slot = lines.map(([line, have]) => ({ line, have, parts: line.split('|') })).find(row => row.parts.length >= 5);
|
|
299
|
+
const target = slot?.parts[4] ?? 'boar', kind = /deer|stag|hind/iu.test(target) ? 'deer' : /elk/iu.test(target) ? 'elk' : 'boar';
|
|
300
|
+
const end = Date.now() + 60_000;
|
|
301
|
+
while (Date.now() < end) {
|
|
302
|
+
const body = await bodyOf(page, kind);
|
|
303
|
+
if (body !== null) { await place(page, body.x + 1.5, body.y + 0.6, body.z + 1.5); await page.waitForTimeout(350); await strike(page, body, false); }
|
|
304
|
+
await page.waitForTimeout(600);
|
|
305
|
+
const now = await board();
|
|
306
|
+
if (JSON.stringify(now) !== JSON.stringify(lines)) return { ok: true, target, now: now.slice(0, 8) };
|
|
307
|
+
}
|
|
308
|
+
return { ok: false, target, slot: slot?.line, now: (await board()).slice(0, 8) };
|
|
309
|
+
});
|
|
310
|
+
await step('pine: a filled contract is claimed on the board, and it pays', async () => {
|
|
311
|
+
const slot = (await board()).map(([line]) => line.split('|')).find(parts => parts.length >= 5 && parts[3] === 'species');
|
|
312
|
+
const target = slot?.[4] ?? 'deer', kind = /elk/iu.test(target) ? 'elk' : /boar/iu.test(target) ? 'boar' : 'deer', ready = () => page.evaluate(() => [...document.querySelectorAll('.ws-ph-seal')].some(node => node.offsetParent !== null));
|
|
313
|
+
const close = () => page.locator('button:visible').filter({ hasText: /^close$/iu }).first().dispatchEvent('click').catch(() => undefined);
|
|
314
|
+
await pressRound(page, 'contract board', () => page.evaluate(() => [...document.querySelectorAll('.ws-ph-note-count')].some(node => node.offsetParent !== null)));
|
|
315
|
+
const need = await page.evaluate(() => Number(/\/ (?<need>\d+)/u.exec(document.querySelector('.ws-ph-note-count')?.textContent ?? '')?.groups?.need ?? 0));
|
|
316
|
+
await close(); await page.waitForTimeout(400);
|
|
317
|
+
const end = Date.now() + 100_000;
|
|
318
|
+
let kills = 0;
|
|
319
|
+
while (Date.now() < end) { // the line counts from 1
|
|
320
|
+
const have = (await board()).find(([line]) => line.startsWith('board|0|'))?.[1] ?? 0;
|
|
321
|
+
if (have > need) break;
|
|
322
|
+
const was = await report(page), body = await bodyOf(page, kind);
|
|
323
|
+
if (body === null) { await page.waitForTimeout(500); continue; }
|
|
324
|
+
await place(page, body.x + 1.5, body.y + 0.6, body.z + 1.5); await page.waitForTimeout(350); await strike(page, body, false); await page.waitForTimeout(900);
|
|
325
|
+
if ((await report(page)).kills > was.kills) kills++;
|
|
326
|
+
}
|
|
327
|
+
const sealed = await pressRound(page, 'contract board', ready);
|
|
328
|
+
if (!sealed) return { ok: false, kills, target, lines: (await board()).slice(0, 8) };
|
|
329
|
+
const before = await report(page);
|
|
330
|
+
await page.locator('.ws-ph-seal:visible').first().dispatchEvent('click');
|
|
331
|
+
const paid = await until(page, async () => { const { owned } = await report(page); return owned['board.claimed'] === before.owned['board.claimed'] ? null : owned; }, 4);
|
|
332
|
+
await page.locator('button:visible').filter({ hasText: /^close$/iu }).first().dispatchEvent('click').catch(() => undefined);
|
|
333
|
+
await page.waitForTimeout(800);
|
|
334
|
+
return { ok: paid !== null, kills, target, claimed: paid?.['board.claimed'] ?? null, coins: [before.owned.coins, paid?.coins] };
|
|
335
|
+
});
|
|
336
|
+
await step('pine: a contract can be read and torn on the page, and the server deals another', async () => {
|
|
337
|
+
const lines = await board();
|
|
338
|
+
await pressRound(page, 'contract board', () => page.evaluate(() => [...document.querySelectorAll('.ws-ph-tear')].some(node => node.offsetParent !== null)));
|
|
339
|
+
const buttons = await page.evaluate(() => [...document.querySelectorAll('button')].filter(node => node.offsetParent !== null).map(node => (node.textContent ?? '').trim()).filter(Boolean).slice(0, 14));
|
|
340
|
+
await page.locator('.ws-ph-tear:visible').first().dispatchEvent('click');
|
|
341
|
+
const moved = await until(page, async () => JSON.stringify(await board()) !== JSON.stringify(lines), 3) === true;
|
|
342
|
+
await page.locator('button:visible').filter({ hasText: /^close$/iu }).first().dispatchEvent('click').catch(() => page.keyboard.press('Escape'));
|
|
343
|
+
await page.waitForTimeout(1000);
|
|
344
|
+
return { ok: moved, whileOpen: moved, buttons: buttons.slice(-6), now: (await board()).slice(0, 8) };
|
|
345
|
+
});
|
|
346
|
+
await step('pine: the mill door is barred, and opens for the player whose gate it is', async () => {
|
|
347
|
+
// The watermill's door, cabin-7: a leaf across x, its prompt on the east side.
|
|
348
|
+
const gate = () => page.evaluate(() => window.__wildshard.world.registry.get('mill-door-bar')?.active?.() ?? null), DOOR = { x: -178.09, z: -145.32 }, id = 'door:cabin-7-door';
|
|
349
|
+
await page.waitForFunction(() => window.__wildshard.world.registry.get('mill-door-bar') !== undefined, undefined, { timeout: 20_000 }).catch(() => undefined);
|
|
350
|
+
const stood = (x, z) => groundAt(page, x, z).then(y => place(page, x, y + 0.4, z));
|
|
351
|
+
const through = async () => { // from the race side, straight at the door, a step past it
|
|
352
|
+
await stood(DOOR.x + 2.6, DOOR.z);
|
|
353
|
+
await page.waitForTimeout(1300);
|
|
354
|
+
await walkInto(page, Math.PI / 2, 3.5, () => page.evaluate(wanted => window.__wildshard.world.player.position.x < wanted, DOOR.x - 1));
|
|
355
|
+
await page.waitForTimeout(500);
|
|
356
|
+
const r = await report(page);
|
|
357
|
+
return { x: r.x, server: r.serverX, corrections: r.corrections };
|
|
358
|
+
};
|
|
359
|
+
const pressDoor = async () => { await stood(DOOR.x + 1.1, DOOR.z); await page.waitForTimeout(1200); await press(page); await page.waitForTimeout(1200); };
|
|
360
|
+
const barred = await gate(), shut = await through();
|
|
361
|
+
await pressDoor();
|
|
362
|
+
const refused = !(await report(page)).flags.includes(id);
|
|
363
|
+
await page.evaluate(() => { window.__workerClientFlag('errand:done'); });
|
|
364
|
+
const heard = await until(page, () => page.evaluate(() => window.__workerClientGate('errand:done')), 4);
|
|
365
|
+
const opened = await gate(), stillShut = await through();
|
|
366
|
+
await pressDoor();
|
|
367
|
+
const opens = (await report(page)).flags.includes(id), went = await through();
|
|
368
|
+
await stood(DOOR.x + 1.1, DOOR.z); await page.waitForTimeout(1500); await press(page); await page.waitForTimeout(2200);
|
|
369
|
+
const closed = !(await report(page)).flags.includes(id), back = await through();
|
|
370
|
+
const stops = row => row.x > DOOR.x - 0.2 && row.server > DOOR.x - 0.2, passes = row => row.x < DOOR.x - 0.5 && row.server < DOOR.x - 0.5;
|
|
371
|
+
return { ok: barred === true && heard === true && opened === false && refused && stops(shut) && stops(stillShut) && opens && passes(went) && closed && stops(back), barred, heard, opened, refused, opens, closed, shut, stillShut, went, back };
|
|
372
|
+
});
|
|
373
|
+
await step('pine: no page error', () => ({ ok: pine.errors.length === 0, errors: [...new Set(pine.errors)].slice(0, 6) }));
|
|
374
|
+
await pine.context.close();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** Draw and loose at a point, as a player holds the FIRE disc. */
|
|
378
|
+
async function loose(page, at) {
|
|
379
|
+
await faceAt(page, at);
|
|
380
|
+
await page.evaluate(() => { window.__wildshard.world.game.app.equipment.altHeld = true; });
|
|
381
|
+
await page.waitForTimeout(1300);
|
|
382
|
+
await faceAt(page, at);
|
|
383
|
+
await page.evaluate(() => { window.__wildshard.world.game.app.equipment.altHeld = false; });
|
|
384
|
+
await page.waitForTimeout(700);
|
|
385
|
+
}
|
|
386
|
+
const bodyMid = at => ({ x: at.x, y: at.y + 1, z: at.z });
|
|
387
|
+
/** Nalati: its elder, a lair's bar and orb, the King's barrow, a refused press of his orb and a taken one. */
|
|
388
|
+
export async function nalatiJourney(browser, phone, base, step, prepare = () => Promise.resolve()) {
|
|
389
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands');
|
|
390
|
+
const { page } = steppe, flagged = flag => hasFlag(page, flag), KING = 'golden-king';
|
|
391
|
+
await prepare(page);
|
|
392
|
+
await page.evaluate(() => { window.__workerClientHits(60); });
|
|
393
|
+
await step('nalati: the elder\'s talk starts the Tulpar chapter, and the server keeps it', async () => {
|
|
394
|
+
const elder = await prompt(page, 'Baqyt');
|
|
395
|
+
await place(page, elder.x + 0.9, elder.y + 0.1, elder.z + 0.9);
|
|
396
|
+
await page.waitForTimeout(1600);
|
|
397
|
+
const moved = await pressUntil(page, flagged('talked:elder'), 28);
|
|
398
|
+
await page.waitForTimeout(1200);
|
|
399
|
+
const chip = await page.evaluate(() => { const { flags, line } = window.__wildshard.shard['nalati.quest']; return { flags: flags.all.filter(flag => !flag.startsWith('seen:')), chapter: line?.active?.def?.id ?? null, step: line?.active?.current?.id ?? null }; });
|
|
400
|
+
return { ok: moved && chip.chapter === 'tulpar' && chip.step === 'tame', chip, flags: (await report(page)).flags.filter(flag => !flag.startsWith('seen:')) };
|
|
401
|
+
});
|
|
402
|
+
await step('nalati: Aqbars falls to real arrows and leaves its orb on the row', async () => {
|
|
403
|
+
await place(page, 138, 62, -58);
|
|
404
|
+
await until(page, async () => (await fight(page, 'aqbars'))?.at !== null, 12);
|
|
405
|
+
const shown = await bossBar(page), end = Date.now() + 40_000, before = await report(page);
|
|
406
|
+
let row = await fight(page, 'aqbars');
|
|
407
|
+
while (row?.state !== 'dead' && Date.now() < end) { if (row?.at !== null && row?.at !== undefined) await loose(page, bodyMid(row.at)); row = await fight(page, 'aqbars'); }
|
|
408
|
+
await page.waitForTimeout(1200);
|
|
409
|
+
const done = await fight(page, 'aqbars'), orb = await prompt(page, 'skin'), r = await report(page);
|
|
410
|
+
return { ok: done?.state === 'dead' && done.reward !== null && orb !== null && r.hits > before.hits, state: done?.state, reward: done?.reward, orb, shown, hits: r.hits, refused: r.refused, falls: r.falls };
|
|
411
|
+
});
|
|
412
|
+
await step('nalati: the felled lair reaches the story', async () => {
|
|
413
|
+
const felled = await until(page, flagged('felled:aqbars'), 6), feather = await until(page, flagged('feather:1'), 4);
|
|
414
|
+
return { ok: felled === true && feather === true, flags: (await report(page)).flags.filter(flag => /^(?:felled|dead|feather)/u.test(flag)) };
|
|
415
|
+
});
|
|
416
|
+
await step('nalati: the orb is taken and the server keeps it', async () => {
|
|
417
|
+
const taken = await pressRound(page, 'skin', async () => (await fight(page, 'aqbars')).reward === null);
|
|
418
|
+
return { ok: taken, reward: (await fight(page, 'aqbars')).reward, owned: (await report(page)).owned };
|
|
419
|
+
});
|
|
420
|
+
await step('nalati: the King\'s barrow takes the player in, and the bar comes up', async () => {
|
|
421
|
+
await listen(page);
|
|
422
|
+
const [x, z] = NALATI_DOOR, feet = await groundAt(page, x, z);
|
|
423
|
+
await place(page, x, feet + 1, z);
|
|
424
|
+
await page.waitForTimeout(1500);
|
|
425
|
+
const inside = await walkInto(page, Math.PI / 2, 4, () => page.evaluate(() => window.__wildshard.world.player.position.y > 130));
|
|
426
|
+
const up = await walkInto(page, 0, 12, async () => (await fight(page, KING))?.state === 'fight');
|
|
427
|
+
await page.waitForTimeout(600);
|
|
428
|
+
return { ok: inside && up && (await bossBar(page)).bar.length > 0, inside, row: await fight(page, KING), shown: await bossBar(page) };
|
|
429
|
+
});
|
|
430
|
+
await step('nalati: the King falls to real arrows, and his gold orb lies on the row', async () => {
|
|
431
|
+
const end = Date.now() + 40_000;
|
|
432
|
+
let row = await fight(page, KING), glow = 0;
|
|
433
|
+
while (row?.state !== 'victory' && Date.now() < end) { if (row?.at !== null && row?.at !== undefined) { await loose(page, bodyMid(row.at)); glow = Math.max(glow, (await rowLook(page, row.at))?.glow ?? 0); } row = await fight(page, KING); }
|
|
434
|
+
const orb = await until(page, async () => { const seen = await fight(page, KING); return seen?.reward !== null ? seen.reward : null; }, 8);
|
|
435
|
+
await page.waitForTimeout(600);
|
|
436
|
+
return { ok: row?.state === 'victory' && orb !== null && glow > 0, state: row?.state, orb, glow, shown: await prompt(page, 'take|claim|bow|gold|reward'), said: await heardOf(page) };
|
|
437
|
+
});
|
|
438
|
+
await step('nalati: the orb refuses a press from across the room, and stays', async () => {
|
|
439
|
+
const { reward } = await fight(page, KING);
|
|
440
|
+
await place(page, reward.x + 6, reward.y - 0.8, reward.z + 8);
|
|
441
|
+
await page.waitForTimeout(1200);
|
|
442
|
+
await page.evaluate(() => { window.__wildshard.world.interactables.find(entry => /take|claim|bow|gold|reward/iu.test(entry.label) && entry.radius > 0)?.onInteract(); });
|
|
443
|
+
await page.waitForTimeout(2600);
|
|
444
|
+
const held = (await report(page)).owned;
|
|
445
|
+
return { ok: (await fight(page, KING)).reward !== null && held['item.goldenBow'] === undefined, reward: (await fight(page, KING)).reward, held };
|
|
446
|
+
});
|
|
447
|
+
await step('nalati: a press in reach takes the King\'s orb for good', async () => {
|
|
448
|
+
const { reward } = await fight(page, KING);
|
|
449
|
+
await place(page, reward.x + 0.8, reward.y - 0.8, reward.z + 0.8);
|
|
450
|
+
await page.waitForTimeout(1200);
|
|
451
|
+
const taken = await pressUntil(page, async () => (await fight(page, KING)).reward === null, 6);
|
|
452
|
+
await page.waitForTimeout(1500);
|
|
453
|
+
const r = await report(page);
|
|
454
|
+
return { ok: taken && r.owned['item.goldenBow'] === 1, owned: r.owned, flags: r.flags.filter(flag => /^(?:dead|boss)/u.test(flag)) };
|
|
455
|
+
});
|
|
456
|
+
await step('nalati: a save holds the story and the bow, through a reload', async () => {
|
|
457
|
+
await page.evaluate(() => Promise.race([window.__workerClientSave(), new Promise(resolve => { setTimeout(resolve, 20_000); })]));
|
|
458
|
+
const saved = await report(page);
|
|
459
|
+
await page.reload({ waitUntil: 'load' });
|
|
460
|
+
await page.waitForFunction(() => typeof window.__workerClient === 'function' && window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 });
|
|
461
|
+
await page.evaluate(FLOOR_GRID_ENTER);
|
|
462
|
+
await page.waitForFunction(() => window.__workerClient().frames > 30, undefined, { timeout: 60_000 });
|
|
463
|
+
await page.waitForTimeout(2500);
|
|
464
|
+
const r = await report(page), chip = await page.evaluate(() => { const { line } = window.__wildshard.shard['nalati.quest']; return { chapter: line?.active?.def?.id ?? null, step: line?.active?.current?.id ?? null }; }), king = await fight(page, KING);
|
|
465
|
+
return { ok: saved.savedOk && r.restored && r.flags.includes('talked:elder') && chip.chapter === 'tulpar' && r.owned['item.goldenBow'] === 1 && king?.reward === null, restored: r.restored, chip, owned: r.owned, king: king?.state };
|
|
466
|
+
});
|
|
467
|
+
await step('nalati: no page error', () => ({ ok: steppe.errors.length === 0, errors: [...new Set(steppe.errors)].slice(0, 6) }));
|
|
468
|
+
await steppe.context.close();
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/** Nalati's chapters on the server, the parts a long play would reach: harness flags stand in for a chapter's earlier steps and for a tame's hour-long break; a ride, a round, a kill and a tie are real. */
|
|
472
|
+
async function chapterJourney(browser, phone, base, step) {
|
|
473
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands');
|
|
474
|
+
const { page } = steppe, flagged = flag => hasFlag(page, flag), raise = flags => page.evaluate(list => { for (const flag of list) window.__workerClientFlag(flag); }, flags);
|
|
475
|
+
const chip = () => page.evaluate(() => { const { line } = window.__wildshard.shard['nalati.quest']; return { chapter: line?.active?.def?.id ?? null, step: line?.active?.current?.id ?? null }; });
|
|
476
|
+
const onChip = (chapter, at, seconds = 6) => until(page, async () => { const seen = await chip(); return seen.chapter === chapter && seen.step === at ? seen : null; }, seconds);
|
|
477
|
+
await page.evaluate(() => { window.__toasts = []; new MutationObserver(list => { for (const row of list) for (const node of row.addedNodes) if (node.classList?.contains('ws-game-toast')) window.__toasts.push(node.textContent); }).observe(document.body, { childList: true, subtree: true }); });
|
|
478
|
+
await page.evaluate(() => { window.__workerClientHits(60); });
|
|
479
|
+
await step('chapters: a tame\'s flag moves Tulpar on, on the server and the page', async () => {
|
|
480
|
+
await raise(['talked:elder']);
|
|
481
|
+
const tame = await onChip('tulpar', 'tame');
|
|
482
|
+
await raise(['tamed:horse']);
|
|
483
|
+
const kokpar = await onChip('tulpar', 'kokpar');
|
|
484
|
+
return { ok: tame !== null && kokpar !== null, tame, kokpar, flags: (await report(page)).flags.filter(flag => !flag.startsWith('seen:')) };
|
|
485
|
+
});
|
|
486
|
+
await step('chapters: a kokpar round runs on the server, a real rider and a real goat', async () => {
|
|
487
|
+
let mounted = false;
|
|
488
|
+
for (let i = 0; i < 60 && !mounted; i++) {
|
|
489
|
+
const body = await bodyOf(page, 'horse');
|
|
490
|
+
if (body === null) { await page.waitForTimeout(500); continue; }
|
|
491
|
+
await place(page, body.x - 2.9, body.y + 0.4, body.z); await page.waitForTimeout(800); // in a horse's reach, past its naming prompt's
|
|
492
|
+
await faceAt(page, body); await page.waitForTimeout(200);
|
|
493
|
+
await press(page); await page.waitForTimeout(900);
|
|
494
|
+
mounted = await page.evaluate(() => window.__wildshard.world.player.ride !== null);
|
|
495
|
+
}
|
|
496
|
+
if (!mounted) return { ok: false, why: 'no ride' };
|
|
497
|
+
const home = { x: -61, z: 36 }, goal = { x: -33.99, z: 29.1 };
|
|
498
|
+
await place(page, home.x + 1, await groundAt(page, home.x, home.z) + 0.5, home.z);
|
|
499
|
+
const got = await until(page, async () => { const { owned } = await report(page); return owned['story.prop'] === 1 ? owned : null; }, 8);
|
|
500
|
+
await page.waitForTimeout(600);
|
|
501
|
+
const goat = () => page.evaluate(() => { const at = window.__wildshard.world.game.scene.getObjectByName('nalati-kokpar-goat')?.position; return at === undefined ? null : { x: at.x, z: at.z }; });
|
|
502
|
+
const carried = await goat();
|
|
503
|
+
await place(page, goal.x, await groundAt(page, goal.x, goal.z) + 0.5, goal.z);
|
|
504
|
+
const won = await until(page, flagged('won:kokpar'), 6);
|
|
505
|
+
await page.waitForTimeout(1200);
|
|
506
|
+
const r = await report(page), rests = await goat();
|
|
507
|
+
return { ok: got !== null && won === true && (r.owned['story.prop'] ?? 0) >= 2, prop: r.owned['story.prop'], said: Object.entries(r.owned).filter(([line]) => line.startsWith('said.')), carried, rests, toasts: await page.evaluate(() => window.__toasts.slice(-4)), chip: await chip() };
|
|
508
|
+
});
|
|
509
|
+
await step('chapters: no page error', () => ({ ok: steppe.errors.length === 0, errors: [...new Set(steppe.errors)].slice(0, 6) }));
|
|
510
|
+
await steppe.context.close();
|
|
511
|
+
await stormJourney(browser, phone, base, step);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/** The Storm Titan: tied at the cairn in the storm, his bar and, behind flags, his looks and his whole fight. */
|
|
515
|
+
async function stormJourney(browser, phone, base, step) {
|
|
516
|
+
const storm = await open(browser, phone, base, 'nalati-grasslands', process.argv.includes('--titan') ? '&bossGod' : '');
|
|
517
|
+
await step('chapters: tied at the cairn in the storm, the Titan\'s bar comes up off its row', async () => {
|
|
518
|
+
const { page: sky } = storm;
|
|
519
|
+
await listen(sky);
|
|
520
|
+
await sky.evaluate(() => { window.__workerClientHits(60); window.__workerClientSky('storm'); });
|
|
521
|
+
let mounted = false;
|
|
522
|
+
for (let i = 0; i < 60 && !mounted; i++) {
|
|
523
|
+
const body = await bodyOf(sky, 'horse');
|
|
524
|
+
if (body === null) { await sky.waitForTimeout(500); continue; }
|
|
525
|
+
await place(sky, body.x - 2.9, body.y + 0.4, body.z); await sky.waitForTimeout(800); // in a horse's reach, past its naming prompt's
|
|
526
|
+
await faceAt(sky, body); await sky.waitForTimeout(200);
|
|
527
|
+
await press(sky); await sky.waitForTimeout(900);
|
|
528
|
+
mounted = await sky.evaluate(() => window.__wildshard.world.player.ride !== null);
|
|
529
|
+
}
|
|
530
|
+
const cairn = await sky.evaluate(() => { const found = window.__wildshard.world.interactables.find(row => /tie/iu.test(row.label ?? '')); return found === undefined ? null : { x: found.position.x, y: found.position.y, z: found.position.z, label: found.label, radius: found.radius }; });
|
|
531
|
+
if (cairn === null) return { ok: false, mounted, why: 'no tie prompt', prompts: await sky.evaluate(() => window.__wildshard.world.interactables.map(row => row.label).slice(0, 12)) };
|
|
532
|
+
await place(sky, cairn.x + 1.2, await groundAt(sky, cairn.x, cairn.z) + 0.5, cairn.z); await sky.waitForTimeout(1500);
|
|
533
|
+
await sky.evaluate(() => { window.__workerClientSky('storm'); }); await sky.waitForTimeout(2500); // a long ride over, the sky's still up
|
|
534
|
+
for (let i = 0; i < 8; i++) { await press(sky); await sky.waitForTimeout(700); if ((await report(sky)).flags.includes('lit:cairn')) break; }
|
|
535
|
+
const row = await until(sky, async () => { const seen = await fight(sky, 'storm-titan'); return seen !== null && seen.state !== 'dormant' ? seen : null; }, 10);
|
|
536
|
+
const yaw = () => sky.evaluate(() => { const { player, camera } = window.__wildshard.world, fightOf = window.__wildshard.shard['nalati.titan'].openFight, { x, z } = fightOf.body.focusPoint, { position: p } = player; return { yaw: player.yaw, pitch: player.pitch, toward: Math.atan2(-(x - p.x), -(z - p.z)), riding: player.ride !== null, camera: camera?.position?.y ?? null }; });
|
|
537
|
+
const faced = [await yaw()];
|
|
538
|
+
await sky.waitForTimeout(800); faced.push(await yaw());
|
|
539
|
+
const shown = await bossBar(sky), r = await report(sky);
|
|
540
|
+
await sky.screenshot({ path: 'tmp/flip17/titan-intro.png' }).catch(() => undefined);
|
|
541
|
+
await sky.waitForTimeout(1200); faced.push(await yaw());
|
|
542
|
+
const off = ({ yaw: at, toward }) => Math.abs(Math.atan2(Math.sin(toward - at), Math.cos(toward - at)));
|
|
543
|
+
return { ok: r.flags.includes('lit:cairn') && row !== null && shown.bar.length > 0 && off(faced[2]) < Math.max(0.3, off(faced[0]) * 0.5), mounted, cairn, row: row?.state, shown, flags: r.flags.filter(flag => /cairn|jel/u.test(flag)), refused: r.refused, faced };
|
|
544
|
+
});
|
|
545
|
+
/** What the page's own fight holds of what it heard: it steps none on the wire, so all of this came off the server's words. */
|
|
546
|
+
const arenaDrawn = async sky => ({ words: Object.fromEntries(Object.entries((await report(sky)).drawn).filter(([name]) => name.startsWith('open-arena.'))),
|
|
547
|
+
...await sky.evaluate(() => { const arena = window.__wildshard.shard['nalati.titan'], body = arena?.openFight.body, { field, whirls } = arena?.openFight.viewLoan ?? {}; return { arena: arena !== undefined, visible: body?.visible ?? null, puffs: body?.puffs.visible ?? null, alpha: body?.alpha.value ?? null, burning: field === undefined ? null : Array.from(field.modeCells).filter(mode => mode === field.rows.states.active).length, whirls: whirls?.drawn.filter(row => row.shown === 1).length ?? null, fights: window.__workerClientFights().map(entry => entry.id) }; }) });
|
|
548
|
+
// Behind a flag: `--titan` below is the slow half. His looks are the server's: the page draws what its fight says (server/boss/arenaWords.ts).
|
|
549
|
+
if (process.argv.includes('--titanlook')) await step('chapters: the Titan stands in his fight, and the page draws his cloud', async () => {
|
|
550
|
+
const { page: sky } = storm, row = await until(sky, async () => { const seen = await fight(sky, 'storm-titan'); return seen?.state === 'fight' || seen?.state === 'beat' ? seen : null; }, 40);
|
|
551
|
+
await sky.waitForTimeout(800);
|
|
552
|
+
const seen = await arenaDrawn(sky), focus = await sky.evaluate(() => { const { x, y, z } = window.__wildshard.shard['nalati.titan'].openFight.body.focusPoint; return { x, y, z }; });
|
|
553
|
+
await faceAt(sky, focus); await sky.waitForTimeout(400); // the shot looks at him: a page can hold all of this with its camera in the grass
|
|
554
|
+
await sky.screenshot({ path: 'tmp/titan/look.png' }).catch(() => undefined);
|
|
555
|
+
return { ok: row !== null && seen.visible === true && seen.puffs === true && seen.alpha > 0 && (seen.words['open-arena.look'] ?? 0) > 0, state: row?.state, focus, ...seen };
|
|
556
|
+
});
|
|
557
|
+
// `--titanreal`: the same fight with nothing lent: no god, no `place`, a rider on a horse who rides with the stick and shoots with the wind in
|
|
558
|
+
// mind. The gale carries a full-draw arrow ~26 m and drops it ~14 m by 110 m out (`TITAN_PLACE`), so a shot dead at the heart misses: this is why
|
|
559
|
+
// the harness's ground shots rarely landed. Each miss walks the next shot in, as a player's eye does; the heart is 7 m wide open.
|
|
560
|
+
if (process.argv.includes('--titanreal')) await step('chapters: a real rider, no god, puts real arrows in the Titan\'s heart from the saddle', async () => {
|
|
561
|
+
const { page: sky } = storm, up = await until(sky, async () => (await fight(sky, 'storm-titan'))?.state === 'fight', 40);
|
|
562
|
+
await joinSecond(sky);
|
|
563
|
+
const read = () => sky.evaluate(() => { const { world, shard } = window.__wildshard, { player } = world, fightOf = shard['nalati.titan'].openFight, { x, y, z } = fightOf.body.focusPoint, { position: p } = player, wind = fightOf.windNow ?? null;
|
|
564
|
+
const { center } = fightOf.data.arena, radius = fightOf.data.place.arenaRadius; return { open: fightOf.open, focus: { x, y, z }, at: { x: p.x, y: p.y, z: p.z }, centre: { x: center.x, z: center.z }, radius, riding: player.ride !== null, hurt: world.game.app.player?.attributes?.health ?? null, wind: wind === null ? null : { x: wind.dirX, z: wind.dirZ, speed: wind.speed } }; });
|
|
565
|
+
const drawn = on => sky.evaluate(held => { window.__wildshard.world.game.app.equipment.altHeld = held; }, on);
|
|
566
|
+
const ride = (forward, turn) => sky.evaluate(([y, by]) => { const { player } = window.__wildshard.world; player.touchMove.y = y; player.yaw += by; }, [forward, turn]);
|
|
567
|
+
await sky.evaluate(() => { window.__workerClientHits(1); });
|
|
568
|
+
const mount = async () => { const body = await bodyOf(sky, 'horse'); if (body === null) return false; await place(sky, body.x - 2.9, body.y + 0.4, body.z); await sky.waitForTimeout(800); await faceAt(sky, body); await sky.waitForTimeout(200); await press(sky); await sky.waitForTimeout(900); return sky.evaluate(() => window.__wildshard.world.player.ride !== null); };
|
|
569
|
+
if (!(await read()).riding) await mount(); // the cairn's walk-up left the saddle: the ride back on is setup, and nothing after it places the rider
|
|
570
|
+
const log = [], end = Date.now() + 200_000, seen = await read();
|
|
571
|
+
let throws = 0, shots = 0, landed = 0, saddle = 0, resets = 0, up_ = 0.15, side = 0.2, row = await fight(sky, 'storm-titan'), deaths = 0, first = null, hp = row?.hp ?? 1;
|
|
572
|
+
const aim = (s, to) => { const dx = to.x - s.at.x, dz = to.z - s.at.z, d = Math.hypot(dx, dz), carry = (d / 110) ** 2, wx = s.wind?.x ?? 1, wz = s.wind?.z ?? 0, length = Math.hypot(wx, wz) || 1; return { x: to.x - wx / length * 26 * carry * side / 0.2, y: to.y + 14 * carry * up_ / 0.15, z: to.z - wz / length * 26 * carry * side / 0.2, d }; };
|
|
573
|
+
await drawn(true);
|
|
574
|
+
while (Date.now() < end && row?.state !== 'victory' && row?.phase === 0) {
|
|
575
|
+
const s = await read();
|
|
576
|
+
if (s.hurt !== null && s.hurt <= 0) { deaths++; await sky.waitForTimeout(800); row = await fight(sky, 'storm-titan'); continue; }
|
|
577
|
+
if (!s.riding && ++throws % 8 === 0) await mount();
|
|
578
|
+
// The heart stands out over the cloud sea: a rider who rode at it would fall and restart him. Keep inside, round the arena, as a player does.
|
|
579
|
+
const out = Math.hypot(s.at.x - s.centre.x, s.at.z - s.centre.z) / s.radius;
|
|
580
|
+
await sky.evaluate(([cx, cz, far]) => { const { player } = window.__wildshard.world, { x, z } = player.position, home = Math.atan2(-(cx - x), -(cz - z)); player.yaw = far ? home : home + 1.2; player.pitch = 0; }, [s.centre.x, s.centre.z, out > 0.55]);
|
|
581
|
+
if (!s.open) { await ride(0.6, 0); await sky.waitForTimeout(300); row = await fight(sky, 'storm-titan'); continue; }
|
|
582
|
+
await ride(s.riding ? 0.5 : 0, 0); await sky.waitForTimeout(1150); // a full draw: a rider keeps moving, off the spear's mark
|
|
583
|
+
const was = (await fight(sky, 'storm-titan'))?.hp ?? hp, now = await read(), point = aim(now, now.focus);
|
|
584
|
+
await faceAt(sky, point); await sky.waitForTimeout(40);
|
|
585
|
+
await drawn(false); shots++; await sky.waitForTimeout(350 + point.d * 12);
|
|
586
|
+
await drawn(true);
|
|
587
|
+
row = await fight(sky, 'storm-titan');
|
|
588
|
+
const hit = (row?.hp ?? was) < was;
|
|
589
|
+
if (hit) { landed++; if (now.riding) saddle++; first ??= { shots, d: Math.round(point.d), hp: row?.hp, riding: now.riding }; } else { side = 0.2 * [1, 0.5, 0, -0.5, -1, 1.5][shots % 6]; up_ = 0.15 * [1, 0.4, 1.6][shots % 3]; }
|
|
590
|
+
if ((row?.hp ?? was) > was) resets++;
|
|
591
|
+
const held = await sky.evaluate(() => ({ page: window.__wildshard.world.game.app.equipment.current.state.bolts ?? null }));
|
|
592
|
+
log.push(`${Math.round(point.d)}m ${hit ? 'HIT' : 'miss'} hp${(row?.hp ?? 0).toFixed(3)} ride${Number(now.riding)} arrows${held.page}/${((await report(sky)).owned['held.arrows'] ?? 1) - 1}`);
|
|
593
|
+
hp = row?.hp ?? hp;
|
|
594
|
+
}
|
|
595
|
+
await drawn(false); await ride(0, 0);
|
|
596
|
+
const end_ = await read();
|
|
597
|
+
return { ok: up === true && landed > 0, up, shots, landed, saddle, deaths, resets, first, state: row?.state, phase: row?.phase, hp: row?.hp, riding: end_.riding, startedRiding: seen.riding, wind: end_.wind, log: log.slice(-12), corrections: (await report(sky)).corrections };
|
|
598
|
+
});
|
|
599
|
+
// Behind a flag: a Titan left standing mustn't turn a run red that came for the bar. `--titan` is the fight itself, for his score. His row has no
|
|
600
|
+
// body, so `fightTo` has nothing to swing at (`row.at` is null): the heart stands 70 m off in a gale, so the proof carries a drawn bow up to it, and
|
|
601
|
+
// every blow, chip and rider is the server's own. Under `?bossGod`: a proof that stood in the grass would die to the spear and restart him.
|
|
602
|
+
if (process.argv.includes('--titan')) {
|
|
603
|
+
const titan = page => page.evaluate(() => { const fightOf = window.__wildshard.shard['nalati.titan'].openFight, { field, scorch } = fightOf.viewLoan, modes = Array.from(field.modeCells), { x, y, z } = fightOf.body.focusPoint;
|
|
604
|
+
return { open: fightOf.open, focus: { x, y, z }, hot: modes.flatMap((mode, cell) => mode === field.rows.states.active ? [{ x: field.x(cell), z: field.z(cell) }] : []), spent: modes.filter(mode => mode === field.rows.states.spent).length, scorch: scorch.count }; });
|
|
605
|
+
const bow = (page, on) => page.evaluate(held => { window.__wildshard.world.game.app.equipment.altHeld = held; }, on);
|
|
606
|
+
let spot = 0;
|
|
607
|
+
const away = async page => { const a = spot++ * 2.4, x = -30 + Math.cos(a) * 14, z = -20 + Math.sin(a) * 14; await place(page, x, await groundAt(page, x, z) + 0.6, z); };
|
|
608
|
+
const heartShot = async page => {
|
|
609
|
+
const { focus } = await titan(page);
|
|
610
|
+
await place(page, focus.x + 1, focus.y - 12, focus.z + 14); await page.waitForTimeout(160);
|
|
611
|
+
await faceAt(page, (await titan(page)).focus); await page.waitForTimeout(60);
|
|
612
|
+
await bow(page, false); await page.waitForTimeout(350);
|
|
613
|
+
await away(page); await page.waitForTimeout(300);
|
|
614
|
+
};
|
|
615
|
+
const riders = page => page.evaluate(() => window.__wildshard.world.animals.animals.filter(body => body.rowDriven && body.alive && body.kind === 'ghost-rider').map(({ position: { x, y, z } }) => ({ x, y, z })));
|
|
616
|
+
await step('chapters: the Titan falls to real blows, and his score plays', async () => {
|
|
617
|
+
const { page: sky } = storm, up = await until(sky, async () => (await fight(sky, 'storm-titan'))?.state === 'fight', 30);
|
|
618
|
+
const log = [], end = Date.now() + 420_000, say = async note => { const row = await fight(sky, 'storm-titan'), seen = await titan(sky); log.push(`${note} ${row?.state} p${row?.phase} hp${row?.hp.toFixed(2)} hot${seen.hot.length} scorch${seen.scorch}`); };
|
|
619
|
+
let row = await fight(sky, 'storm-titan'), shots = 0, wasOpen = false, burned = null;
|
|
620
|
+
await bow(sky, true);
|
|
621
|
+
while (Date.now() < end && row?.state !== 'victory') {
|
|
622
|
+
const seen = await titan(sky);
|
|
623
|
+
if (shots++ % 10 === 0) await sky.evaluate(() => { window.__workerClientHits(1); });
|
|
624
|
+
if (row?.phase === 0) {
|
|
625
|
+
if (seen.open && !wasOpen) { await heartShot(sky); await bow(sky, true); await away(sky); } else if (row.state === 'fight' && Math.random() < 0.1) await away(sky);
|
|
626
|
+
wasOpen = seen.open;
|
|
627
|
+
await sky.waitForTimeout(100);
|
|
628
|
+
} else if (row?.phase === 1 && row.shield) {
|
|
629
|
+
const [first] = await riders(sky);
|
|
630
|
+
await sky.waitForTimeout(1150);
|
|
631
|
+
if (first !== undefined) {
|
|
632
|
+
await place(sky, first.x + 3, first.y + 0.4, first.z + 3); await sky.waitForTimeout(260);
|
|
633
|
+
const [now = first] = await riders(sky); await faceAt(sky, { x: now.x, y: now.y + 1.4, z: now.z }); await sky.waitForTimeout(50);
|
|
634
|
+
}
|
|
635
|
+
await bow(sky, false); await sky.waitForTimeout(450); await bow(sky, true);
|
|
636
|
+
} else if (row?.phase === 2 && burned === null) {
|
|
637
|
+
// The grass fire: flames and scorch on the page, in step with its cells.
|
|
638
|
+
if (seen.hot.length > 0 && seen.spent > 5) { burned = { hot: seen.hot.length, spent: seen.spent, scorch: seen.scorch }; await say('burning'); await sky.screenshot({ path: 'tmp/titan/fire.png' }).catch(() => undefined); }
|
|
639
|
+
else { await away(sky); await sky.waitForTimeout(700); }
|
|
640
|
+
} else if (row?.state === 'fight') { await sky.waitForTimeout(1150); await heartShot(sky); await bow(sky, true); }
|
|
641
|
+
else await sky.waitForTimeout(250);
|
|
642
|
+
const next = await fight(sky, 'storm-titan');
|
|
643
|
+
if (next?.phase !== row?.phase || next?.state !== row?.state) await say('now');
|
|
644
|
+
row = next;
|
|
645
|
+
}
|
|
646
|
+
await bow(sky, false);
|
|
647
|
+
await sky.waitForTimeout(1500);
|
|
648
|
+
const heard = await heardOf(sky), words = await arenaDrawn(sky), reward = (await fight(sky, 'storm-titan'))?.reward ?? null;
|
|
649
|
+
if (reward !== null) { await place(sky, reward.x + 1, reward.y - 1.2, reward.z + 1); await sky.waitForTimeout(1500); await faceAt(sky, reward); for (let i = 0; i < 6 && (await fight(sky, 'storm-titan'))?.reward !== null; i++) { await press(sky); await sky.waitForTimeout(800); } }
|
|
650
|
+
await sky.waitForTimeout(1000);
|
|
651
|
+
const { owned, flags } = await report(sky);
|
|
652
|
+
return { ok: row?.state === 'victory' && heard.includes('sting chunk') && heard.includes('combat 1') && burned !== null && burned.scorch === burned.spent && owned['item.naizagai'] === 1 && owned['item.sky-marked-saddle'] === 1 && (words.words['open-arena.cells'] ?? 0) > 0 && (words.words['open-arena.fire'] ?? 0) > 0,
|
|
653
|
+
up: up === true, state: row?.state, phase: row?.phase, hp: row?.hp, burned, heard, naizagai: owned['item.naizagai'] ?? 0, saddle: owned['item.sky-marked-saddle'] ?? 0, dead: flags.filter(flag => flag.startsWith('dead:')), log: log.slice(-16), words: words.words };
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
await step('chapters: the storm page raises no page error', () => ({ ok: storm.errors.length === 0, errors: [...new Set(storm.errors)].slice(0, 6) }));
|
|
657
|
+
await storm.context.close();
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/** Qara Batyr on a server: a night's patrol thinned by real kills brings him, his lane, his fall and his orb are the server's, and a save keeps him fallen. */
|
|
661
|
+
async function qaraJourney(browser, phone, base, step) {
|
|
662
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands', '&bossGod'), { page } = steppe, id = 'qara-batyr';
|
|
663
|
+
const riders = () => page.evaluate(() => window.__wildshard.world.animals.animals.filter(body => body.rowDriven && body.alive && body.kind === 'ghost-rider').map(({ variant, position: { x, y, z } }) => ({ variant, x, y, z })));
|
|
664
|
+
const bow = on => page.evaluate(held => { window.__wildshard.world.game.app.equipment.altHeld = held; }, on);
|
|
665
|
+
const shoot = async at => {
|
|
666
|
+
await bow(true); await page.waitForTimeout(1150);
|
|
667
|
+
const [from = at] = await riders(); await page.waitForTimeout(100);
|
|
668
|
+
const [now = from] = await riders(), lead = 3.4, x = now.x + (now.x - from.x) * lead, z = now.z + (now.z - from.z) * lead; // a line rides at 11 m/s: shoot where it will be
|
|
669
|
+
await place(page, x + 3, now.y + 0.4, z + 3); await page.waitForTimeout(230);
|
|
670
|
+
await faceAt(page, { x, y: now.y + 2.2, z }); await page.waitForTimeout(40);
|
|
671
|
+
await bow(false); await page.waitForTimeout(400);
|
|
672
|
+
};
|
|
673
|
+
await page.evaluate(() => { const seen = window.__feedSeen = [], root = document.body; new MutationObserver(rows => { for (const row of rows) for (const node of row.addedNodes) { const text = (node.textContent ?? '').trim(); if (/his back is OPEN/u.test(text) && !seen.includes(text)) seen.push(text); } }).observe(root, { childList: true, subtree: root === document.body }); });
|
|
674
|
+
await step('qara: a night\'s patrol, thinned by real kills, brings its captain on a row', async () => {
|
|
675
|
+
await page.evaluate(() => { window.__workerClientHits(40); window.__workerClientTime('night'); });
|
|
676
|
+
await page.waitForTimeout(2500); await joinSecond(page);
|
|
677
|
+
let row = null, shots = 0;
|
|
678
|
+
const end = Date.now() + 320_000;
|
|
679
|
+
while (Date.now() < end) {
|
|
680
|
+
row = await fight(page, id);
|
|
681
|
+
if (row?.at !== null && row?.at !== undefined) break;
|
|
682
|
+
const [first] = await riders();
|
|
683
|
+
if (first === undefined) { await place(page, 0, await groundAt(page, 0, 0) + 1, 0); await page.waitForTimeout(1000); continue; } // a line rides for the camp, and a page holds only the rows near it
|
|
684
|
+
await shoot(first);
|
|
685
|
+
if (++shots % 12 === 0) await page.evaluate(() => { window.__workerClientHits(1); });
|
|
686
|
+
}
|
|
687
|
+
const line = await riders();
|
|
688
|
+
return { ok: row?.at !== null && row?.at !== undefined && row.name !== null, state: row?.state, at: row?.at, name: row?.name, shots, captains: line.filter(body => body.variant === 'captain').length, kills: (await report(page)).kills };
|
|
689
|
+
});
|
|
690
|
+
await step('qara: his charge lane is drawn off the server\'s words, and his bar off his row', async () => {
|
|
691
|
+
const row = await fight(page, id);
|
|
692
|
+
if (row?.at === null || row?.at === undefined) return { ok: false, why: 'no captain' };
|
|
693
|
+
await place(page, row.at.x + 14, row.at.y + 0.4, row.at.z + 14);
|
|
694
|
+
const lane = await until(page, async () => { const drawn = (await report(page)).drawn['elite lane'] ?? 0, seen = await fight(page, id); if (seen?.at !== null && seen?.at !== undefined) { await faceAt(page, { ...seen.at, y: seen.at.y + 1.4 }); } return drawn > 0 ? drawn : null; }, 45, 500);
|
|
695
|
+
await page.screenshot({ path: 'tmp/flip16/qara-lane.png' }).catch(() => undefined);
|
|
696
|
+
return { ok: lane !== null, lane, state: (await fight(page, id))?.state, shown: await bossBar(page) };
|
|
697
|
+
});
|
|
698
|
+
await step('qara: real blows end him, and his orb is taken', async () => {
|
|
699
|
+
await page.evaluate(() => { window.__workerClientHits(1); });
|
|
700
|
+
await until(page, async () => (await report(page)).drawn['elite cue'] > 0 && (await page.evaluate(() => window.__feedSeen?.length ?? 0)) > 0, 25); // a pass he finishes says his back is open
|
|
701
|
+
let end = await fight(page, id);
|
|
702
|
+
const until_ = Date.now() + 60_000;
|
|
703
|
+
while (Date.now() < until_ && end?.state !== 'dead') {
|
|
704
|
+
await bow(true); await page.waitForTimeout(1150);
|
|
705
|
+
const from = (await fight(page, id))?.at ?? null; await page.waitForTimeout(100);
|
|
706
|
+
const now = (await fight(page, id))?.at ?? from;
|
|
707
|
+
if (from !== null && now !== null) {
|
|
708
|
+
const x = now.x + (now.x - from.x) * 3.4, z = now.z + (now.z - from.z) * 3.4;
|
|
709
|
+
await place(page, x + 3, now.y + 0.4, z + 3); await page.waitForTimeout(230);
|
|
710
|
+
await faceAt(page, { x, y: now.y + 2, z }); await page.waitForTimeout(40);
|
|
711
|
+
}
|
|
712
|
+
await bow(false); await page.waitForTimeout(400);
|
|
713
|
+
end = await fight(page, id);
|
|
714
|
+
}
|
|
715
|
+
await page.waitForTimeout(800);
|
|
716
|
+
const row = await fight(page, id), { reward } = row ?? {};
|
|
717
|
+
if (reward !== null && reward !== undefined) { await place(page, reward.x + 0.6, reward.y - 1.2, reward.z + 0.6); await page.waitForTimeout(1200); await faceAt(page, reward); for (let i = 0; i < 6 && (await fight(page, id))?.reward !== null; i++) { await press(page); await page.waitForTimeout(700); } }
|
|
718
|
+
const after = await fight(page, id), r = await report(page);
|
|
719
|
+
return { ok: end?.state === 'dead' && reward !== null && reward !== undefined && after?.reward === null && r.flags.includes('felled:qara-batyr'), cues: r.drawn['elite cue'] ?? 0, state: after?.state, sleep: after?.sleep, reward, flags: r.flags.filter(flag => /felled|feather/u.test(flag)), feed: await page.evaluate(() => window.__feedSeen ?? []) };
|
|
720
|
+
});
|
|
721
|
+
await step('qara: a save keeps him fallen and a page\'s fresh boot reads it back', async () => {
|
|
722
|
+
await page.evaluate(() => Promise.race([window.__workerClientSave(), new Promise(resolve => { setTimeout(resolve, 20_000); })]));
|
|
723
|
+
const before = await fight(page, id);
|
|
724
|
+
await page.reload({ waitUntil: 'load' });
|
|
725
|
+
await page.waitForFunction(() => window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 });
|
|
726
|
+
await page.waitForFunction(() => typeof window.__workerClient === 'function', undefined, { timeout: 150_000 });
|
|
727
|
+
await page.evaluate(FLOOR_GRID_ENTER);
|
|
728
|
+
await page.waitForFunction(() => window.__workerClient().frames > 30, undefined, { timeout: 60_000 });
|
|
729
|
+
await page.waitForTimeout(1500);
|
|
730
|
+
const { restored } = await report(page), row = await fight(page, id);
|
|
731
|
+
return { ok: restored === true && row?.state === 'dead' && row.sleep > 0, restored, state: row?.state, sleep: row?.sleep, before: before?.sleep };
|
|
732
|
+
});
|
|
733
|
+
await step('qara: no page error', () => ({ ok: steppe.errors.length === 0, errors: [...new Set(steppe.errors)].slice(0, 6) }));
|
|
734
|
+
await steppe.context.close();
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/** Qyran, whole: a storm brings him over his rock on a row, he climbs off his height, his beam and chevron and his fall come off the server's words,
|
|
738
|
+
* he lands where a player was and real arrows from the ground end him, and a save keeps him fallen. No god mode: his stoop is dodged as a player does. */
|
|
739
|
+
async function qyranJourney(browser, phone, base, step) {
|
|
740
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands'), { page } = steppe, id = 'qyran', rock = { x: 180, z: 85 };
|
|
741
|
+
const bird = () => page.evaluate(() => { const body = window.__wildshard.world.animals.animals.find(row => row.rowDriven && row.kind === 'eagle'); if (body === undefined) return null; const { x, y, z } = body.position, { mem, alive, hp } = body; return { x, y, z, alive, hp, ground: mem.ground ?? 0, fold: mem.fold ?? 0, flap: mem.flap ?? 0, altY: mem.altY ?? null }; });
|
|
742
|
+
const bow = on => page.evaluate(held => { window.__wildshard.world.game.app.equipment.altHeld = held; }, on);
|
|
743
|
+
const feet = async (x, z) => { await place(page, x, await groundAt(page, x, z) + 0.6, z); };
|
|
744
|
+
const drew = async name => (await report(page)).drawn[name] ?? 0;
|
|
745
|
+
const landed = seconds => until(page, async () => { const seen = await bird(); return seen !== null && seen.alive && seen.ground === 1 ? seen : null; }, seconds, 100);
|
|
746
|
+
await step('qyran: a storm brings him over his rock on a row, with his bar, and he flies', async () => {
|
|
747
|
+
await page.evaluate(() => { window.__workerClientHits(3); window.__workerClientSky('storm'); });
|
|
748
|
+
await page.waitForTimeout(1200);
|
|
749
|
+
const row = await until(page, async () => { await page.evaluate(() => { window.__workerClientSky('storm'); }); await feet(rock.x, rock.z - 70); await page.waitForTimeout(600); const seen = await fight(page, id); return seen?.at !== null && seen?.at !== undefined ? seen : null; }, 90, 400);
|
|
750
|
+
if (row === null) return { ok: false, why: 'no storm brought him', row: await fight(page, id), r: (await report(page)).refused };
|
|
751
|
+
await joinSecond(page);
|
|
752
|
+
const flown = await until(page, async () => { const seen = await bird(); return seen !== null && seen.y - await groundAt(page, seen.x, seen.z) > 12 ? seen : null; }, 20);
|
|
753
|
+
const shown = await until(page, async () => { const words = await bossBar(page); return words.elite.length > 0 ? words : null; }, 12);
|
|
754
|
+
return { ok: flown !== null && shown !== null && row.name !== null, state: (await fight(page, id))?.state, name: row.name, flown, shown };
|
|
755
|
+
});
|
|
756
|
+
await step('qyran: his beam and chevron are drawn off the server\'s words, and his stoop misses a player who moves', async () => {
|
|
757
|
+
await page.evaluate(() => { const { player } = window.__wildshard.world; player.pitch = -0.2; }); // looking away: the chevron is what says where he is
|
|
758
|
+
const beam = await until(page, async () => (await drew('elite wind') > 0), 40, 80);
|
|
759
|
+
const chevron = await page.evaluate(() => document.querySelector('.ws-elite-chevron')?.classList.contains('show') ?? null);
|
|
760
|
+
await page.screenshot({ path: 'tmp/flip17/qyran-beam.png' }).catch(() => undefined);
|
|
761
|
+
const at = await page.evaluate(() => { const { x, z } = window.__wildshard.world.player.position; return { x, z }; });
|
|
762
|
+
await page.waitForTimeout(1250); await feet(at.x + 9, at.z + 9); // the tell tracks you, then the stoop locks where you stood: run as it locks
|
|
763
|
+
const down = await landed(12);
|
|
764
|
+
await page.screenshot({ path: 'tmp/flip17/qyran-grounded.png' }).catch(() => undefined);
|
|
765
|
+
const words = await report(page);
|
|
766
|
+
return { ok: beam === true && down !== null && (words.drawn['elite moment'] ?? 0) > 0, wind: words.drawn['elite wind'], moments: words.drawn['elite moment'], chevron, down };
|
|
767
|
+
});
|
|
768
|
+
await step('qyran: real arrows from the ground end him when he lands, his bar turns, and his orb is taken', async () => {
|
|
769
|
+
const end = Date.now() + 240_000, hps = [];
|
|
770
|
+
let row = await fight(page, id), shots = 0, phase = 0, heard = await drew('elite wind'), dodged = false;
|
|
771
|
+
while (Date.now() < end && row?.state !== 'dead') {
|
|
772
|
+
const seen = await bird();
|
|
773
|
+
if (seen === null) { await page.waitForTimeout(300); row = await fight(page, id); continue; }
|
|
774
|
+
if (seen.ground === 1) { // he has about 2 s on the ground: stand off, face him, loose a drawn bow
|
|
775
|
+
await feet(seen.x + 2.2, seen.z + 2.2); await page.waitForTimeout(260);
|
|
776
|
+
const low = await bird(); if (low !== null) Object.assign(seen, low); // he settles at his height in the first moments
|
|
777
|
+
await faceAt(page, { ...seen, y: seen.y + 0.15 }); await page.waitForTimeout(40); // his body lies level at his height: 0.5 m wide
|
|
778
|
+
await bow(false); await page.waitForTimeout(350); shots++;
|
|
779
|
+
await bow(true); await page.waitForTimeout(1150); await faceAt(page, { ...seen, y: seen.y + 0.15 }); await bow(false); shots++;
|
|
780
|
+
await page.waitForTimeout(300);
|
|
781
|
+
} else {
|
|
782
|
+
const words = await drew('elite wind');
|
|
783
|
+
// His flight is about 13 s and a held bow's arms give out at 8 s, so the finger stays up until his beam is. Held the whole way, the shot on
|
|
784
|
+
// landing was a lift, and the only arrow left as he rose: on WebKit's timing that missed and the step ran out of time at 4 % of his health.
|
|
785
|
+
if (words > heard && !dodged) { // his beam is up: step off his line late, and a stoop that misses grounds him
|
|
786
|
+
dodged = true; await bow(true); await page.waitForTimeout(1250);
|
|
787
|
+
const me = await page.evaluate(() => { const { x, z } = window.__wildshard.world.player.position; return { x, z }; }), turn = Math.random() * Math.PI * 2;
|
|
788
|
+
await feet(me.x + Math.cos(turn) * 8, me.z + Math.sin(turn) * 8);
|
|
789
|
+
} else if (words === heard) dodged = false;
|
|
790
|
+
heard = words;
|
|
791
|
+
await page.waitForTimeout(260);
|
|
792
|
+
}
|
|
793
|
+
row = await fight(page, id); phase = Math.max(phase, row?.phase ?? 0); hps.push(Math.round((row?.hp ?? 0) * 100));
|
|
794
|
+
}
|
|
795
|
+
await bow(false); await page.waitForTimeout(900);
|
|
796
|
+
const at = await fight(page, id), { reward } = at ?? {};
|
|
797
|
+
await page.screenshot({ path: 'tmp/flip17/qyran-fall.png' }).catch(() => undefined);
|
|
798
|
+
let prompts = null;
|
|
799
|
+
if (reward !== null && reward !== undefined) { // he can fall in the river: stand on the ground beside his orb
|
|
800
|
+
for (const off of [0.6, -0.7, 1.1]) {
|
|
801
|
+
await feet(reward.x + off, reward.z + off); await page.waitForTimeout(1200); await faceAt(page, reward);
|
|
802
|
+
prompts = await page.evaluate(() => { const { world } = window.__wildshard, { position: p } = world.player; return { at: [p.x, p.y, p.z], near: world.interactables.filter(item => item.radius > 0 && item.position.distanceTo(p) < 8).map(item => `${item.label} ${item.position.distanceTo(p).toFixed(1)}/${item.radius}`).slice(0, 5) }; });
|
|
803
|
+
for (let i = 0; i < 3 && (await fight(page, id))?.reward !== null; i++) { await press(page); await page.waitForTimeout(500); }
|
|
804
|
+
if ((await fight(page, id))?.reward === null) break;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
const after = await fight(page, id), r = await report(page);
|
|
808
|
+
return { hits: r.hits, left: after?.reward ?? null, prompts, ok: at?.state === 'dead' && phase >= 1 && reward !== null && reward !== undefined && after?.reward === null && r.flags.includes('felled:qyran'), state: after?.state, sleep: after?.sleep, shots, phase, reward, hps: [...new Set(hps)], flags: r.flags.filter(flag => /felled|feather/u.test(flag)), arrows: r.owned['held.arrows'] };
|
|
809
|
+
});
|
|
810
|
+
await step('qyran: a save keeps him fallen and a page\'s fresh boot reads it back', async () => {
|
|
811
|
+
await page.evaluate(() => Promise.race([window.__workerClientSave(), new Promise(resolve => { setTimeout(resolve, 20_000); })]));
|
|
812
|
+
const before = await fight(page, id);
|
|
813
|
+
await page.reload({ waitUntil: 'load' });
|
|
814
|
+
await page.waitForFunction(() => window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 });
|
|
815
|
+
await page.waitForFunction(() => typeof window.__workerClient === 'function', undefined, { timeout: 150_000 });
|
|
816
|
+
await page.evaluate(FLOOR_GRID_ENTER);
|
|
817
|
+
await page.waitForFunction(() => window.__workerClient().frames > 30, undefined, { timeout: 60_000 });
|
|
818
|
+
await page.waitForTimeout(1500);
|
|
819
|
+
const { restored } = await report(page), row = await fight(page, id);
|
|
820
|
+
return { ok: restored === true && row?.state === 'dead' && row.sleep > 0, restored, state: row?.state, sleep: row?.sleep, before: before?.sleep };
|
|
821
|
+
});
|
|
822
|
+
await step('qyran: no page error', () => ({ ok: steppe.errors.length === 0, errors: [...new Set(steppe.errors)].slice(0, 6) }));
|
|
823
|
+
await steppe.context.close();
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** Run the fights; `step` prints one line each. */
|
|
827
|
+
/** The night: a Developer's time reaches the server, a statue walks out on its row, and a topple is a clue on the page. */
|
|
828
|
+
const BOWL = [0, 24];
|
|
829
|
+
async function nightJourney(browser, phone, base, step) {
|
|
830
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands');
|
|
831
|
+
const { page } = steppe;
|
|
832
|
+
await page.evaluate(() => { window.__toasts = []; new MutationObserver(list => { for (const row of list) for (const node of row.addedNodes) if (node.classList?.contains('ws-game-toast')) window.__toasts.push(node.textContent); }).observe(document.body, { childList: true, subtree: true }); window.__workerClientHits(60); });
|
|
833
|
+
for (const flag of ['talked:elder', 'tamed:horse', 'won:kokpar', 'told:tulpar', 'talked:elder:2']) await page.evaluate(wanted => { window.__workerClientFlag(wanted); }, flag);
|
|
834
|
+
const awakeRow = () => page.evaluate(() => window.__workerClientRow('slots.awake.0'));
|
|
835
|
+
const statues = () => page.evaluate(() => { const set = [...window.__wildshard.shard['nalati.dressing'].sites.values()].map(row => row.sites).find(row => typeof row?.isAwake === 'function'); return set.sites.map((site, index) => ({ x: site.x, y: site.y, z: site.z, awake: set.isAwake(index) })); });
|
|
836
|
+
await step('the page\'s sky follows the server\'s', async () => {
|
|
837
|
+
const drawn = () => page.evaluate(() => window.__wildshard.shard['nalati.weather']?.weather?.state ?? null), was = await drawn();
|
|
838
|
+
await page.evaluate(() => { window.__workerClientSky('storm'); });
|
|
839
|
+
const storm = await until(page, async () => await drawn() === 'storm', 8), row = await page.evaluate(() => window.__workerClientRow('weather.phase')), rain = await page.evaluate(() => window.__wildshard.shard['nalati.weather'].weather.rain);
|
|
840
|
+
await page.evaluate(() => { window.__workerClientSky('clear'); });
|
|
841
|
+
const clear = await until(page, async () => await drawn() === 'clear', 8);
|
|
842
|
+
return { ok: storm === true && clear === true, was, storm, clear, row, rain };
|
|
843
|
+
});
|
|
844
|
+
await step('night: the Developer\'s time reaches the server', async () => {
|
|
845
|
+
const before = (await report(page)).day;
|
|
846
|
+
await page.evaluate(() => { window.__workerClientTime('night'); });
|
|
847
|
+
const day = await until(page, async () => { const now = (await report(page)).day; return now !== before ? now : null; }, 10);
|
|
848
|
+
await page.waitForTimeout(1500);
|
|
849
|
+
const settled = (await report(page)).day;
|
|
850
|
+
return { ok: day !== null && settled !== before, before, day, settled };
|
|
851
|
+
});
|
|
852
|
+
await step('night: statues wake, their sites go empty on a row, and the page takes them down', async () => {
|
|
853
|
+
const word = await until(page, async () => { const row = await awakeRow(); return row !== undefined && row !== 0 ? row : null; }, 25);
|
|
854
|
+
await page.waitForTimeout(600);
|
|
855
|
+
const sites = await statues();
|
|
856
|
+
return { ok: word !== null && sites.some(site => site.awake), word, down: sites.filter(site => site.awake).length, of: sites.length };
|
|
857
|
+
});
|
|
858
|
+
await step('night: one rises out of the ground, drawn on its row', async () => {
|
|
859
|
+
const site = (await statues()).find(row => row.awake);
|
|
860
|
+
if (site === undefined) return { ok: false, why: 'no empty site' };
|
|
861
|
+
await place(page, site.x + 7, await groundAt(page, site.x + 7, site.z) + 1, site.z);
|
|
862
|
+
const low = await until(page, () => bodyOf(page, 'balbal'), 12);
|
|
863
|
+
if (low === null) return { ok: false, why: 'no body on the page', rows: await page.evaluate(() => window.__workerClientRows('balbal')) };
|
|
864
|
+
const under = low.y - await groundAt(page, low.x, low.z);
|
|
865
|
+
await faceAt(page, { x: low.x, y: low.y + 1, z: low.z });
|
|
866
|
+
await page.waitForTimeout(2500);
|
|
867
|
+
const up = await bodyOf(page, 'balbal'), over = up === null ? null : up.y - await groundAt(page, up.x, up.z), r = await report(page);
|
|
868
|
+
return { ok: up !== null && over > under, under, over, kind: up?.kind, rows: r.rows, retired: r.retired };
|
|
869
|
+
});
|
|
870
|
+
await step('night: the wake\'s cue fired, and a balbal\'s tell wedge drew', async () => {
|
|
871
|
+
const wedgeUp = () => page.evaluate(() => window.__wildshard.world.game.scene.getObjectsByProperty('name', 'tell-wedge').some(mesh => mesh.visible));
|
|
872
|
+
const hunted = await bodyOf(page, 'balbal');
|
|
873
|
+
if (hunted === null) return { ok: false, why: 'no body to stand by' };
|
|
874
|
+
await place(page, hunted.x + 2, await groundAt(page, hunted.x + 2, hunted.z) + 1, hunted.z);
|
|
875
|
+
const up = await until(page, async () => (await wedgeUp()) === true ? true : null, 25, 100), r = await report(page);
|
|
876
|
+
await page.screenshot({ path: 'tmp/flip8/night-wedge.png' }).catch(() => undefined);
|
|
877
|
+
const wake = r.drawn['cue.balbal.wake'] ?? 0, wedge = r.drawn.wedge ?? 0;
|
|
878
|
+
return { ok: wake > 0 && wedge > 0 && up === true, wake, wedge, up, drawn: r.drawn };
|
|
879
|
+
});
|
|
880
|
+
await page.screenshot({ path: 'tmp/flip8/night-balbal.png' }).catch(() => undefined);
|
|
881
|
+
await step('night: a save out of the ground comes back as it stood', async () => {
|
|
882
|
+
const before = await statues(), word = await awakeRow();
|
|
883
|
+
await page.evaluate(() => Promise.race([window.__workerClientSave(), new Promise(resolve => { setTimeout(resolve, 20_000); })]));
|
|
884
|
+
const saved = await report(page);
|
|
885
|
+
await page.reload({ waitUntil: 'load' });
|
|
886
|
+
await page.waitForFunction(() => typeof window.__workerClient === 'function' && window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 });
|
|
887
|
+
await page.evaluate(FLOOR_GRID_ENTER);
|
|
888
|
+
await page.waitForFunction(() => window.__workerClient().frames > 30, undefined, { timeout: 60_000 });
|
|
889
|
+
await page.evaluate(() => { window.__toasts = []; new MutationObserver(list => { for (const row of list) for (const node of row.addedNodes) if (node.classList?.contains('ws-game-toast')) window.__toasts.push(node.textContent); }).observe(document.body, { childList: true, subtree: true }); window.__workerClientHits(60); });
|
|
890
|
+
const back = await until(page, async () => (await awakeRow()) === word, 12), down = (await statues()).filter(site => site.awake).length, r = await report(page);
|
|
891
|
+
await page.waitForTimeout(1500);
|
|
892
|
+
return { ok: saved.savedOk && r.restored && back === true && down === before.filter(site => site.awake).length, savedOk: saved.savedOk, restored: r.restored, word, row: await awakeRow(), down, balbal: await bodyOf(page, 'balbal') };
|
|
893
|
+
});
|
|
894
|
+
await step('night: real blows topple it, and it reads as a clue on the page', async () => {
|
|
895
|
+
const paid = await report(page), end = Date.now() + 60_000;
|
|
896
|
+
for (;;) {
|
|
897
|
+
const r = await report(page);
|
|
898
|
+
if (r.flags.includes('clue:1') || Date.now() > end) break;
|
|
899
|
+
const body = await bodyOf(page, 'balbal');
|
|
900
|
+
await (body === null ? page.waitForTimeout(400) : loose(page, { x: body.x, y: body.y + 1, z: body.z }));
|
|
901
|
+
}
|
|
902
|
+
await page.waitForTimeout(1500);
|
|
903
|
+
const r = await report(page), toasts = await page.evaluate(() => window.__toasts.slice(-4)), reading = await page.evaluate(() => (document.body.textContent ?? '').includes('A toppled balbal'));
|
|
904
|
+
const shown = reading ? true : toasts.some(line => line.includes('carving'));
|
|
905
|
+
return { ok: r.flags.includes('clue:1') && shown, hits: r.hits - paid.hits, kills: r.kills - paid.kills, flags: r.flags.filter(flag => flag.startsWith('clue')), said: Object.entries(r.owned).filter(([line]) => line.startsWith('said.')), toasts, reading, retired: r.retired };
|
|
906
|
+
});
|
|
907
|
+
await step('night: a blow chips it, and its fall breaks on the page', async () => {
|
|
908
|
+
const { drawn } = await report(page), chips = Object.entries(drawn).filter(([id]) => /^cue\.balbal\.(chip|crack)/u.test(id)), broken = drawn['cue.balbal.broken'] ?? 0;
|
|
909
|
+
return { ok: chips.length > 0 && broken > 0, chips, broken };
|
|
910
|
+
});
|
|
911
|
+
await page.screenshot({ path: 'tmp/flip8/night-clue.png' }).catch(() => undefined);
|
|
912
|
+
await step('night: ghost riders ride on rows, dressed', async () => {
|
|
913
|
+
await place(page, BOWL[0], await groundAt(page, BOWL[0], BOWL[1]) + 1, BOWL[1]);
|
|
914
|
+
const riders = await until(page, async () => (await page.evaluate(() => window.__workerClientRows('ghost-rider')))[0] ?? null, 45, 1000);
|
|
915
|
+
if (riders === null) return { ok: false, why: 'no rider came round the bowl' };
|
|
916
|
+
await place(page, riders.x + 14, riders.y + 2, riders.z);
|
|
917
|
+
const drawn = await until(page, () => page.evaluate(() => { const body = window.__wildshard.world.animals?.animals.find(row => row.kind === 'ghost-rider' && row.rowDriven); return body === undefined ? null : { material: body.mesh.material.name, scale: body.scale }; }), 12);
|
|
918
|
+
return { ok: drawn !== null && drawn.material.startsWith('nalati-ghost'), drawn, retired: (await report(page)).retired };
|
|
919
|
+
});
|
|
920
|
+
await step('night: a rider looses, and its arrow flies on the page', async () => {
|
|
921
|
+
const arrows = () => page.evaluate(() => { const mesh = window.__wildshard.world.game.scene.getObjectByName('patrol-arrows'), matrices = mesh?.instanceMatrix.array ?? []; let shown = 0; for (let at = 0; at < matrices.length; at += 16) if (matrices[at] !== 0 || matrices[at + 1] !== 0 || matrices[at + 2] !== 0) shown++; return shown; });
|
|
922
|
+
const riders = await page.evaluate(() => window.__workerClientRows('ghost-rider'));
|
|
923
|
+
if (riders[0] !== undefined) await place(page, riders[0].x + 24, riders[0].y + 2, riders[0].z);
|
|
924
|
+
const seen = await until(page, async () => { const shown = await arrows(); return shown > 0 ? shown : null; }, 45, 100);
|
|
925
|
+
await page.screenshot({ path: 'tmp/flip8/night-arrow.png' }).catch(() => undefined);
|
|
926
|
+
await page.waitForTimeout(1500); // a shot that flies a second's frames is an arrow, and not one that stopped where it left
|
|
927
|
+
const r = await report(page), frames = r.drawn['arrow frame'] ?? 0;
|
|
928
|
+
return { ok: seen !== null && (r.drawn.shot ?? 0) > 0 && frames > 3, shot: r.drawn.shot, frames, seen, hurt: r.drawn.hurt, hp: r.hp };
|
|
929
|
+
});
|
|
930
|
+
await step('night: a rider\'s gallop leaves its trail on the page', async () => {
|
|
931
|
+
const before = (await report(page)).drawn['cue.ghost.trail'] ?? 0;
|
|
932
|
+
await page.waitForTimeout(1500);
|
|
933
|
+
const trail = (await report(page)).drawn['cue.ghost.trail'] ?? 0;
|
|
934
|
+
return { ok: trail > before, before, trail };
|
|
935
|
+
});
|
|
936
|
+
await step('night: dawn sends the rest home, and their sites stand', async () => {
|
|
937
|
+
await page.evaluate(() => { window.__workerClientTime('midday'); });
|
|
938
|
+
const torn = await until(page, async () => { const count = (await report(page)).drawn['cue.ghost.tear'] ?? 0; return count > 0 ? count : null; }, 8, 100);
|
|
939
|
+
// A body goes home on its own feet, so a body nobody's near waits for them: go round them.
|
|
940
|
+
const end = Date.now() + 60_000;
|
|
941
|
+
while ((await awakeRow()) !== 0 && Date.now() < end) {
|
|
942
|
+
const site = (await statues()).find(row => row.awake);
|
|
943
|
+
if (site !== undefined) await place(page, site.x + 7, await groundAt(page, site.x + 7, site.z) + 1, site.z);
|
|
944
|
+
await page.waitForTimeout(4000);
|
|
945
|
+
}
|
|
946
|
+
const clear = (await awakeRow()) === 0;
|
|
947
|
+
const r = await report(page);
|
|
948
|
+
return { ok: clear && torn !== null, torn, row: await awakeRow(), left: (await page.evaluate(() => window.__workerClientRows('balbal'))).length, retired: r.retired };
|
|
949
|
+
});
|
|
950
|
+
await step('night: no page error', () => ({ ok: steppe.errors.length === 0, errors: [...new Set(steppe.errors)].slice(0, 6) }));
|
|
951
|
+
await steppe.context.close();
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/** Past one player: a door a second client swings, a bar that stays each player's own, a door across a reload, and a chapter's fact filed once. */
|
|
955
|
+
async function secondClientJourney(browser, phone, base, step) {
|
|
956
|
+
const pine = await open(browser, phone, base, 'pine-hollow');
|
|
957
|
+
const { page } = pine, MILL = { x: -178.09, z: -145.32 }, millWire = 'cabin-7-door', millId = `door:${millWire}`;
|
|
958
|
+
const hasDoor = flag => async () => (await report(page)).flags.includes(flag) === true;
|
|
959
|
+
const stood = (x, z) => groundAt(page, x, z).then(y => place(page, x, y + 0.4, z));
|
|
960
|
+
const reopen = async () => { await page.reload({ waitUntil: 'load' }); await page.waitForFunction(() => typeof window.__workerClient === 'function' && window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 }); await page.evaluate(FLOOR_GRID_ENTER); await page.waitForFunction(() => window.__workerClient().frames > 30, undefined, { timeout: 60_000 }); };
|
|
961
|
+
const free = await page.evaluate(wanted => { const row = window.__wildshard.world.interactables.find(entry => entry.wireId?.includes('door') && entry.wireId !== wanted); return row === undefined ? null : { id: row.wireId, x: row.position.x, y: row.position.y, z: row.position.z }; }, millWire);
|
|
962
|
+
await step('second client: its press swings a door, and this page sees it', async () => {
|
|
963
|
+
if (free === null) return { ok: false, why: 'no free door' };
|
|
964
|
+
await page.evaluate(({ x, y, z }) => { window.__secondClient = window.__workerClientBot('bot:2', x + 0.8, y - 1, z + 0.8); }, free);
|
|
965
|
+
await page.waitForTimeout(1500);
|
|
966
|
+
await page.evaluate(id => { window.__secondClient.press(id); }, free.id);
|
|
967
|
+
const opened = await until(page, hasDoor(`door:${free.id}`), 6);
|
|
968
|
+
await page.waitForTimeout(1800);
|
|
969
|
+
await page.evaluate(id => { window.__secondClient.press(id); }, free.id);
|
|
970
|
+
const shut = await until(page, async () => !await hasDoor(`door:${free.id}`)(), 6);
|
|
971
|
+
return { ok: opened === true && shut === true, id: free.id, opened, shut, flags: (await report(page)).flags.filter(flag => flag.startsWith('door')) };
|
|
972
|
+
});
|
|
973
|
+
await step('second client: a bar is each player\'s own', async () => {
|
|
974
|
+
const barred = await page.evaluate(() => window.__wildshard.world.registry.get('mill-door-bar')?.active?.() ?? null);
|
|
975
|
+
await page.evaluate(({ x, z, ground }) => { window.__secondClient.move(x + 1.1, ground + 0.4, z); }, { ...MILL, ground: await groundAt(page, MILL.x + 1.1, MILL.z) });
|
|
976
|
+
await page.waitForTimeout(1500);
|
|
977
|
+
await page.evaluate(id => { window.__secondClient.press(id); }, millWire);
|
|
978
|
+
await page.waitForTimeout(1200);
|
|
979
|
+
const refused = !await hasDoor(millId)();
|
|
980
|
+
await page.evaluate(() => { window.__workerClientFlag('errand:done'); });
|
|
981
|
+
const mine = await until(page, () => page.evaluate(() => window.__workerClientGate('errand:done')), 4);
|
|
982
|
+
await page.evaluate(id => { window.__secondClient.press(id); }, millWire);
|
|
983
|
+
await page.waitForTimeout(1200);
|
|
984
|
+
const stillBarredForIt = !await hasDoor(millId)();
|
|
985
|
+
await stood(MILL.x + 1.1, MILL.z); await page.waitForTimeout(1200); await press(page);
|
|
986
|
+
const opened = await until(page, hasDoor(millId), 5);
|
|
987
|
+
return { ok: barred === true && refused && mine === true && stillBarredForIt && opened === true, barred, refused, mine, stillBarredForIt, opened };
|
|
988
|
+
});
|
|
989
|
+
await step('a door left open stands open across a reload', async () => {
|
|
990
|
+
await page.evaluate(() => { window.__secondClient.end(); });
|
|
991
|
+
await page.waitForTimeout(1500);
|
|
992
|
+
await page.evaluate(() => Promise.race([window.__workerClientSave(), new Promise(resolve => { setTimeout(resolve, 20_000); })]));
|
|
993
|
+
const saved = await report(page);
|
|
994
|
+
await reopen();
|
|
995
|
+
await page.waitForTimeout(2000);
|
|
996
|
+
const flagged = await hasDoor(millId)(), r0 = await report(page);
|
|
997
|
+
await stood(MILL.x + 2.6, MILL.z); await page.waitForTimeout(1300);
|
|
998
|
+
await walkInto(page, Math.PI / 2, 3.5, () => page.evaluate(wanted => window.__wildshard.world.player.position.x < wanted, MILL.x - 1));
|
|
999
|
+
await page.waitForTimeout(500);
|
|
1000
|
+
const r = await report(page), went = r.x < MILL.x - 0.5 && r.serverX < MILL.x - 0.5;
|
|
1001
|
+
return { ok: saved.savedOk && r0.restored && flagged && went, savedOk: saved.savedOk, restored: r0.restored, flagged, went, x: r.x, serverX: r.serverX };
|
|
1002
|
+
});
|
|
1003
|
+
await step('second client: no page error', () => ({ ok: pine.errors.length === 0, errors: [...new Set(pine.errors)].slice(0, 6) }));
|
|
1004
|
+
await pine.context.close();
|
|
1005
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands');
|
|
1006
|
+
const nalati = steppe.page, FACT = 'nalati.quest.tulpar', filed = async () => (await report(nalati)).receipts.filter(line => line === `fact:${FACT}`).length, kept = () => nalati.evaluate(name => Object.keys(localStorage).map(key => (localStorage.getItem(key) ?? '').split(`"name":"${name}"`).length - 1).reduce((sum, count) => sum + count, 0), FACT);
|
|
1007
|
+
await step('a chapter\'s fact is filed once, and a reload adds none', async () => {
|
|
1008
|
+
const before = await kept();
|
|
1009
|
+
for (const flag of ['talked:elder', 'tamed:horse', 'won:kokpar', 'told:tulpar']) { await nalati.evaluate(wanted => { window.__workerClientFlag(wanted); }, flag); await nalati.waitForTimeout(300); }
|
|
1010
|
+
const done = await until(nalati, async () => (await report(nalati)).flags.includes('quest:tulpar'), 8);
|
|
1011
|
+
await nalati.waitForTimeout(2500);
|
|
1012
|
+
const once = await filed(), first = await kept(), all = (await report(nalati)).receipts;
|
|
1013
|
+
await nalati.evaluate(() => Promise.race([window.__workerClientSave(), new Promise(resolve => { setTimeout(resolve, 20_000); })]));
|
|
1014
|
+
await nalati.waitForTimeout(800);
|
|
1015
|
+
await nalati.reload({ waitUntil: 'load' }); await nalati.waitForFunction(() => typeof window.__workerClient === 'function' && window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 }); await nalati.evaluate(FLOOR_GRID_ENTER); await nalati.waitForFunction(() => window.__workerClient().frames > 30, undefined, { timeout: 60_000 });
|
|
1016
|
+
await nalati.waitForTimeout(4000);
|
|
1017
|
+
const again = await filed(), second = await kept();
|
|
1018
|
+
// A fresh page hears the server's book from the top. The page's own ledger keeps the fact once, however often it's told.
|
|
1019
|
+
return { ok: done === true && once === 1 && before === 0 && first <= 1 && second === first, done, once, again, before, first, second, receipts: all, keys: await nalati.evaluate(() => Object.keys(localStorage).slice(0, 30)) };
|
|
1020
|
+
});
|
|
1021
|
+
await step('nalati, a second time: no page error', () => ({ ok: steppe.errors.length === 0, errors: [...new Set(steppe.errors)].slice(0, 6) }));
|
|
1022
|
+
await steppe.context.close();
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
/** The row's small words: a horse's prompt by its name, and the line a tie's press gets. */
|
|
1026
|
+
async function wordsJourney(browser, phone, base, step) {
|
|
1027
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands');
|
|
1028
|
+
const { page } = steppe;
|
|
1029
|
+
await page.evaluate(() => { window.__toasts = []; new MutationObserver(list => { for (const row of list) for (const node of row.addedNodes) if (node.classList?.contains('ws-game-toast')) window.__toasts.push(node.textContent); }).observe(document.body, { childList: true, subtree: true }); });
|
|
1030
|
+
await step('a horse\'s prompt reads by its name', async () => {
|
|
1031
|
+
const horse = await until(page, () => bodyOf(page, 'horse'), 20);
|
|
1032
|
+
if (horse === null) return { ok: false, why: 'no horse near' };
|
|
1033
|
+
await place(page, horse.x + 1.5, horse.y + 0.6, horse.z);
|
|
1034
|
+
const shown = () => page.evaluate(() => { const list = window.__wildshard.shard['harness.shard.nalati-grasslands']?.ride?.mount?.interactables ?? []; return list.length === 0 ? null : list.map(row => row.label); }), labels = await until(page, shown, 12);
|
|
1035
|
+
return { ok: labels !== null && !labels.some(row => row.includes('creature:')), labels: labels?.slice(0, 4) };
|
|
1036
|
+
});
|
|
1037
|
+
await step('a tie\'s press gets its line on the page', async () => {
|
|
1038
|
+
const tie = await page.evaluate(() => { const row = window.__wildshard.world.interactables.find(entry => entry.wireId?.endsWith('.tie')); return row === undefined ? null : { x: row.position.x, z: row.position.z, id: row.wireId, radius: row.radius, label: row.label }; });
|
|
1039
|
+
if (tie === null) return { ok: false, why: 'no tie prompt' };
|
|
1040
|
+
await place(page, tie.x + 1.2, await groundAt(page, tie.x + 1.2, tie.z) + 0.5, tie.z);
|
|
1041
|
+
await page.waitForTimeout(2000);
|
|
1042
|
+
const label = await page.evaluate(() => window.__wildshard.world.interactables.find(entry => entry.wireId?.endsWith('.tie'))?.label ?? null);
|
|
1043
|
+
await page.evaluate(() => { window.__toasts.length = 0; });
|
|
1044
|
+
await press(page);
|
|
1045
|
+
const line = await until(page, () => page.evaluate(() => window.__toasts.find(row => !row.startsWith('Discovered')) ?? null), 6);
|
|
1046
|
+
return { ok: line !== null, tie: tie.id, label, line, toasts: await page.evaluate(() => window.__toasts.slice(-3)) };
|
|
1047
|
+
});
|
|
1048
|
+
await step('words: no page error', () => ({ ok: steppe.errors.length === 0, errors: [...new Set(steppe.errors)].slice(0, 6) }));
|
|
1049
|
+
await steppe.context.close();
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/** Every pooled point light as a frame sees it: the pool's size is what every lit program was built for. */
|
|
1053
|
+
const poolLights = page => page.evaluate(() => {
|
|
1054
|
+
const { game } = window.__wildshard.requireWorld(), pool = (game.rootScene ?? game.scene).getObjectByName('light-pool');
|
|
1055
|
+
return (pool?.children ?? []).filter(light => light.isPointLight).map(light => ({ colour: light.color.toArray().map(value => Number(value.toFixed(2))), intensity: Number(light.intensity.toFixed(2)), at: light.position.toArray().map(value => Number(value.toFixed(1))), reach: light.distance }));
|
|
1056
|
+
});
|
|
1057
|
+
const eyeOf = page => page.evaluate(() => window.__wildshard.requireWorld().game.camera.position.toArray());
|
|
1058
|
+
/** What hangs on the King, as the scene has it: read the same way on the row and on a page. Part names and meshes are `rows.socketRig`'s. */
|
|
1059
|
+
const kingRig = page => page.evaluate(() => {
|
|
1060
|
+
const { game } = window.__wildshard.requireWorld(), root = game.rootScene ?? game.scene;
|
|
1061
|
+
const shown = from => { for (let at = from; at !== null; at = at.parent) if (!at.visible) return false; return true; };
|
|
1062
|
+
const cage = root.getObjectByName('king-ribcage'), lanterns = [], flames = [];
|
|
1063
|
+
root.traverse(at => { if (/^king-lantern\.\d+$/u.test(at.name)) lanterns.push(at); if (at.name === 'antler-king-lantern-fire') flames.push(at); });
|
|
1064
|
+
if (cage === undefined) return null;
|
|
1065
|
+
const [core, ribs] = cage.children, at = cage.getWorldPosition(cage.position.clone());
|
|
1066
|
+
return { shown: shown(cage), ribs: Number(ribs.scale.x.toFixed(3)), core: Number(core.scale.x.toFixed(3)), ribsGain: Number(ribs.material.emissiveIntensity.toFixed(3)), coreGain: Number(core.material.emissiveIntensity.toFixed(3)), glass: Number((lanterns[0]?.children.find(mesh => mesh.material.emissiveIntensity > 0)?.material.emissiveIntensity ?? 0).toFixed(3)), lanterns: lanterns.length, hung: lanterns.filter(shown).length, fire: flames.filter(shown).length, at: at.toArray().map(value => Number(value.toFixed(1))) };
|
|
1067
|
+
});
|
|
1068
|
+
/** The binds a body boss, a shard's light and a herd lair make as a fight begins, on rows. */
|
|
1069
|
+
async function sweepJourney(browser, phone, base, step) {
|
|
1070
|
+
const dune = await open(browser, phone, base, 'sunscar-dunes');
|
|
1071
|
+
await step('sweep: Sunscar\'s rows wear its painter\'s light', async () => {
|
|
1072
|
+
const at = await dune.page.evaluate(() => { const { x, z } = window.__wildshard.world.player.position; return { x, z }; });
|
|
1073
|
+
const look = await until(dune.page, async () => { const seen = await rowLook(dune.page, at); return seen !== null && seen.standard > 0 ? seen : null; }, 20);
|
|
1074
|
+
return { ok: look !== null && look.painted === look.standard, look };
|
|
1075
|
+
});
|
|
1076
|
+
await dune.context.close();
|
|
1077
|
+
const far = await open(browser, phone, base, 'far-reach');
|
|
1078
|
+
await step('sweep: a body boss\'s row stays drawn at any distance', async () => {
|
|
1079
|
+
await place(far.page, 0, 45.5, -188);
|
|
1080
|
+
const row = await until(far.page, async () => { const seen = await fight(far.page, 'far.roc.encounter'); return seen?.state === 'fight' && seen.at !== null ? seen : null; }, 25);
|
|
1081
|
+
await far.page.waitForTimeout(800);
|
|
1082
|
+
const look = row === null ? null : await rowLook(far.page, row.at);
|
|
1083
|
+
return { ok: look?.pinned === true, look, state: row?.state };
|
|
1084
|
+
});
|
|
1085
|
+
await far.context.close();
|
|
1086
|
+
const steppe = await open(browser, phone, base, 'nalati-grasslands', '&bossGod');
|
|
1087
|
+
await step('sweep: Argymaq\'s row wears his colour', async () => {
|
|
1088
|
+
const lair = await steppe.page.evaluate(() => { const { x, z } = window.__wildshard.shard['nalati.elites'].elites.entry('argymaq').script.def.lair; return { x, z }; });
|
|
1089
|
+
const row = await until(steppe.page, async () => { const feet = await groundAt(steppe.page, lair.x + 12, lair.z); await place(steppe.page, lair.x + 12, feet + 0.4, lair.z); return bodyOf(steppe.page, 'argymaq'); }, 30, 1000);
|
|
1090
|
+
await steppe.page.waitForTimeout(500);
|
|
1091
|
+
const look = row === null ? null : await rowLook(steppe.page, row);
|
|
1092
|
+
return { ok: look?.kind === 'argymaq' && look.tint?.[0] === 0.62, look, lair };
|
|
1093
|
+
});
|
|
1094
|
+
/** A lair's tell as the page's elite holds it, and what the page has drawn of what it heard. */
|
|
1095
|
+
const tell = id => steppe.page.evaluate(want => { const { tell: ground } = window.__wildshard.shard['nalati.elites'].elites.entry(want).script; return { shown: ground.mesh.visible, drawn: window.__workerClient().drawn }; }, id);
|
|
1096
|
+
await step('sweep: Argymaq\'s charge lane is drawn off the server\'s words', async () => {
|
|
1097
|
+
const lane = await until(steppe.page, async () => { const row = await fight(steppe.page, 'argymaq'); if (row?.at !== null && row?.at !== undefined) { await place(steppe.page, row.at.x + 14, row.at.y + 0.4, row.at.z); await faceAt(steppe.page, row.at); } return (await report(steppe.page)).drawn['elite lane'] ?? null; }, 45, 800);
|
|
1098
|
+
return { ok: lane !== null, lane, shown: (await tell('argymaq')).shown, state: (await fight(steppe.page, 'argymaq'))?.state };
|
|
1099
|
+
});
|
|
1100
|
+
await step('sweep: Aqbars\'s pounce rings the ground, and its growl and feed are heard', async () => {
|
|
1101
|
+
await steppe.page.evaluate(() => { window.__workerClientTime('night'); });
|
|
1102
|
+
await place(steppe.page, 138, 62, -58);
|
|
1103
|
+
let shown = false;
|
|
1104
|
+
const seen = await until(steppe.page, async () => { const row = await fight(steppe.page, 'aqbars'); if (row?.at !== null && row?.at !== undefined) await place(steppe.page, row.at.x + 9, row.at.y + 0.4, row.at.z); const now = await tell('aqbars'); shown ||= now.shown; return shown && (now.drawn['elite moment'] ?? 0) > 0 ? now : null; }, 60, 400);
|
|
1105
|
+
return { ok: seen !== null, shown, seen, last: await tell('aqbars') };
|
|
1106
|
+
});
|
|
1107
|
+
await steppe.context.close();
|
|
1108
|
+
}
|
|
1109
|
+
/** Pine's King on a plain page: the row's numbers to read beside. The row off, and night and blows by hand. */
|
|
1110
|
+
async function pageRigJourney(browser, phone, base, step, [x, z]) {
|
|
1111
|
+
const context = await browser.newContext(phone), page = await context.newPage(), errors = [];
|
|
1112
|
+
page.on('pageerror', error => { errors.push(error.message.slice(0, 300)); });
|
|
1113
|
+
await saveFixture(context, { scope: 'device', key: 'devMode', data: true });
|
|
1114
|
+
await saveFixture(context, { scope: 'global', key: 'settings', data: { time: 'night' }, merge: true });
|
|
1115
|
+
await page.goto(new URL('/?chunk=pine-hollow&mute=1&nolock=1&bossGod', base).href, { waitUntil: 'load' });
|
|
1116
|
+
await page.waitForFunction(() => window.__wildshard?.world?.player !== undefined, undefined, { timeout: 150_000 });
|
|
1117
|
+
await page.evaluate(FLOOR_GRID_ENTER);
|
|
1118
|
+
await page.waitForTimeout(4000);
|
|
1119
|
+
const hold = () => page.evaluate(([px, pz]) => { const { player } = window.__wildshard.world, feet = window.__hf.heightAt(px, pz) + 0.1; player.position.set(px, feet, pz); player.motor?.resetAt(player.position); }, [x + 4, z]);
|
|
1120
|
+
await step('rigpage: on a page, what he wears and how it moves', async () => {
|
|
1121
|
+
const end = Date.now() + 100_000;
|
|
1122
|
+
let widest = null, dimmest = null, first = null;
|
|
1123
|
+
while (Date.now() < end) {
|
|
1124
|
+
await hold();
|
|
1125
|
+
const rig = await kingRig(page);
|
|
1126
|
+
if (rig?.shown === true) { first ??= rig; if (widest === null || rig.ribs > widest.ribs) widest = rig; if (dimmest === null || rig.ribs < dimmest.ribs) dimmest = rig; if (widest.ribs > dimmest.ribs + 0.2) break; }
|
|
1127
|
+
await page.waitForTimeout(120);
|
|
1128
|
+
}
|
|
1129
|
+
return { ok: first !== null && widest !== null && widest.ribs > dimmest.ribs + 0.1 && errors.length === 0, first, widest, dimmest, errors: errors.slice(0, 4) };
|
|
1130
|
+
});
|
|
1131
|
+
await context.close();
|
|
1132
|
+
}
|
|
1133
|
+
/** Pine's King on a server: his ribs, their glow and the lanterns hung off him all follow the fight. Worth reading beside `--only=rigpage`. */
|
|
1134
|
+
async function rigJourney(browser, phone, base, step, [x, z]) {
|
|
1135
|
+
const pine = await open(browser, phone, base, 'pine-hollow', '&bossGod'), { page } = pine, trail = [];
|
|
1136
|
+
const king = async () => (await page.evaluate(() => window.__workerClientFights())).find(row => row.id === 'pine.king') ?? null;
|
|
1137
|
+
const hold = async () => { const feet = await groundAt(page, x + 4, z); await place(page, x + 4, feet + 0.4, z); };
|
|
1138
|
+
await step('rig: entry hangs nothing on nobody', async () => { const rig = await kingRig(page); return { ok: rig === null, rig }; });
|
|
1139
|
+
await step('rig: at night he comes dressed: ribs, core and every lantern, on him', async () => {
|
|
1140
|
+
await page.evaluate(() => { window.__workerClientHits(4); window.__workerClientTime('night'); });
|
|
1141
|
+
await hold();
|
|
1142
|
+
const rig = await until(page, async () => { await hold(); const seen = await kingRig(page); return seen?.shown === true ? seen : null; }, 60, 1000), row = await king();
|
|
1143
|
+
const away = rig === null || row?.at === null || row?.at === undefined ? null : Math.hypot(rig.at[0] - row.at.x, rig.at[2] - row.at.z);
|
|
1144
|
+
return { ok: rig !== null && rig.lanterns > 0 && rig.hung === rig.lanterns && rig.coreGain > 0 && away !== null && away < 6, rig, state: row?.state, away };
|
|
1145
|
+
});
|
|
1146
|
+
await step('rig: his ribs open and burn as the fight says', async () => {
|
|
1147
|
+
const end = Date.now() + 90_000;
|
|
1148
|
+
let widest = null, dimmest = null, row = await king();
|
|
1149
|
+
while (Date.now() < end) {
|
|
1150
|
+
await hold();
|
|
1151
|
+
const rig = await kingRig(page); row = await king();
|
|
1152
|
+
if (rig !== null) { trail.push([rig.ribs, rig.ribsGain, rig.coreGain]); if (widest === null || rig.ribs > widest.ribs) widest = rig; if (dimmest === null || rig.ribs < dimmest.ribs) dimmest = rig; }
|
|
1153
|
+
if (widest !== null && dimmest !== null && widest.ribs > dimmest.ribs + 0.1 && widest.ribsGain > dimmest.ribsGain) break;
|
|
1154
|
+
await page.waitForTimeout(120);
|
|
1155
|
+
}
|
|
1156
|
+
if (widest !== null) await page.screenshot({ path: 'tmp/rig-king-open.png' });
|
|
1157
|
+
return { ok: widest !== null && dimmest !== null && widest.ribs > dimmest.ribs + 0.1 && widest.ribsGain > dimmest.ribsGain, widest, dimmest, samples: trail.length, state: row?.state };
|
|
1158
|
+
});
|
|
1159
|
+
await step('rig: a blow in phase I sparks, and the second third drops the lanterns to burn on the ground', async () => {
|
|
1160
|
+
await page.evaluate(() => { window.__workerClientHits(8); }); // the blows that end phase I are real; only their size isn't: one at 60 ends him
|
|
1161
|
+
const end = Date.now() + 90_000;
|
|
1162
|
+
let rig = await kingRig(page), row = await king();
|
|
1163
|
+
while ((rig === null || rig.hung > 0 || rig.fire === 0) && Date.now() < end) {
|
|
1164
|
+
if (row?.at !== null && row?.at !== undefined) {
|
|
1165
|
+
await place(page, row.at.x + 5, row.at.y + 0.4, row.at.z + 5); await page.waitForTimeout(700);
|
|
1166
|
+
await faceAt(page, rig === null ? bodyMid(row.at) : { x: rig.at[0], y: rig.at[1] - 0.5, z: rig.at[2] }); await page.waitForTimeout(150);
|
|
1167
|
+
await page.evaluate(() => { window.__wildshard.world.game.app.input.press('attack'); }); await page.waitForTimeout(1000);
|
|
1168
|
+
} else { await hold(); await page.waitForTimeout(400); }
|
|
1169
|
+
rig = await kingRig(page); row = await king();
|
|
1170
|
+
}
|
|
1171
|
+
if (rig !== null) await page.screenshot({ path: 'tmp/rig-king-dropped.png' });
|
|
1172
|
+
const seen = await report(page);
|
|
1173
|
+
return { ok: rig !== null && rig.hung === 0 && rig.fire > 0 && (seen.drawn.struck ?? 0) > 0, rig, struck: seen.drawn.struck, hits: seen.hits, hp: row?.hp, state: row?.state };
|
|
1174
|
+
});
|
|
1175
|
+
await step('rig: no page error', () => ({ ok: pine.errors.length === 0, errors: [...new Set(pine.errors)].slice(0, 6) }));
|
|
1176
|
+
await pine.context.close();
|
|
1177
|
+
}
|
|
1178
|
+
/** Pine's King: the amber on his ribs, the lantern in his dark, and the light let go when the fight ends. Colours are `rows.light`'s. */
|
|
1179
|
+
async function lanternJourney(browser, phone, base, step, [x, z], blows) {
|
|
1180
|
+
const pine = await open(browser, phone, base, 'pine-hollow', '&bossGod'), { page } = pine, warned = [], AMBER = [1, 0.55, 0.18], LANTERN = [1, 0.72, 0.4];
|
|
1181
|
+
page.on('console', line => { if (/LightPool/u.test(line.text())) warned.push(line.text().slice(0, 160)); });
|
|
1182
|
+
const lit = async colour => (await poolLights(page)).find(light => light.intensity > 0 && light.colour.every((value, index) => Math.abs(value - (colour[index] ?? 0)) < 0.01)) ?? null;
|
|
1183
|
+
const king = async () => (await page.evaluate(() => window.__workerClientFights())).find(row => row.id === 'pine.king') ?? null;
|
|
1184
|
+
const hold = async () => { const feet = await groundAt(page, x + 4, z); await place(page, x + 4, feet + 0.4, z); };
|
|
1185
|
+
/** A bolt at his ribs, where the amber stands, from outside his reach. */
|
|
1186
|
+
const shoot = async at => {
|
|
1187
|
+
const ribs = await lit(AMBER), aim = ribs === null ? bodyMid(at) : { x: ribs.at[0], y: ribs.at[1] - 0.5, z: ribs.at[2] };
|
|
1188
|
+
const beyond = Math.hypot(at.x + 5 - x, at.z + 5 - z) > 20; // past the wall the fight resets: from his clearing's side then
|
|
1189
|
+
await place(page, at.x + (beyond ? -5 : 5), at.y + 0.4, at.z + (beyond ? -5 : 5)); await page.waitForTimeout(900);
|
|
1190
|
+
await faceAt(page, aim); await page.waitForTimeout(150);
|
|
1191
|
+
await page.evaluate(() => { window.__wildshard.world.game.app.input.press('attack'); }); await page.waitForTimeout(1200);
|
|
1192
|
+
};
|
|
1193
|
+
const size = (await poolLights(page)).length;
|
|
1194
|
+
await step('lantern: entry lights nothing for a fight that has not begun', async () => {
|
|
1195
|
+
const lights = await poolLights(page);
|
|
1196
|
+
return { ok: size > 0 && await lit(AMBER) === null && await lit(LANTERN) === null, size, lit: lights.filter(light => light.intensity > 0), fights: await page.evaluate(() => window.__workerClientFights().map(row => row.id)) };
|
|
1197
|
+
});
|
|
1198
|
+
await step('lantern: the King comes at night, and the ribs burn amber at him', async () => {
|
|
1199
|
+
await page.evaluate(by => { window.__workerClientHits(by); window.__workerClientTime('night'); }, blows);
|
|
1200
|
+
await hold();
|
|
1201
|
+
const row = await until(page, async () => { await hold(); const seen = await king(); return seen?.at !== null && seen?.at !== undefined && seen.state !== 'dormant' ? seen : null; }, 40, 1000), light = await until(page, () => lit(AMBER), 30, 500), now = await king();
|
|
1202
|
+
const away = light === null || now?.at === null || now?.at === undefined ? null : Math.hypot(light.at[0] - now.at.x, light.at[2] - now.at.z);
|
|
1203
|
+
return { ok: row !== null && light !== null && away !== null && away < 6, state: now?.state, hp: now?.hp, light, away, size: (await poolLights(page)).length, warned };
|
|
1204
|
+
});
|
|
1205
|
+
// His adds shield him from the second third on, so the two ends are two fights: the dark on measured blows, the kill on one.
|
|
1206
|
+
if (blows < 100) await step('lantern: phase III falls dark, and the lantern lights the player', async () => {
|
|
1207
|
+
const end = Date.now() + 170_000;
|
|
1208
|
+
let light = null, row = await king();
|
|
1209
|
+
while (light === null && row?.state !== 'victory' && Date.now() < end) {
|
|
1210
|
+
if (row?.at !== null && row?.at !== undefined && row.hp > 0.31) await shoot(row.at); else { await hold(); await page.waitForTimeout(400); } // his last third: the dark comes on by itself, for a player inside the wall
|
|
1211
|
+
light = await lit(LANTERN); row = await king();
|
|
1212
|
+
}
|
|
1213
|
+
light = await until(page, () => lit(LANTERN), 12, 250);
|
|
1214
|
+
const eye = await eyeOf(page), away = light === null ? null : Math.hypot(light.at[0] - eye[0], light.at[2] - eye[2]);
|
|
1215
|
+
if (light !== null) await page.screenshot({ path: 'tmp/lantern-phase-iii.png' });
|
|
1216
|
+
const seen = await report(page), held = await page.evaluate(() => window.__wildshard.world.game.app.equipment.current?.id ?? null);
|
|
1217
|
+
return { ok: light !== null && light.intensity > 1 && away !== null && away < 2, hits: seen.hits, refused: seen.refused, held, hp: row?.hp, state: row?.state, light, eye: eye.map(value => Number(value.toFixed(1))), away, size: (await poolLights(page)).length, warned };
|
|
1218
|
+
});
|
|
1219
|
+
if (blows >= 100) await step('lantern: the fight ends, and the light is let go', async () => {
|
|
1220
|
+
const end = Date.now() + 100_000;
|
|
1221
|
+
let row = await king();
|
|
1222
|
+
while (row !== null && row.state !== 'victory' && row.hp > 0 && Date.now() < end) {
|
|
1223
|
+
if (row.at !== null) await shoot(row.at);
|
|
1224
|
+
row = await king();
|
|
1225
|
+
}
|
|
1226
|
+
const ended = row?.state === 'victory' || row?.hp === 0;
|
|
1227
|
+
await page.waitForTimeout(600);
|
|
1228
|
+
const lights = await poolLights(page);
|
|
1229
|
+
return { ok: ended && await lit(AMBER) === null && await lit(LANTERN) === null && lights.length === size, ended, row: row?.state, hp: row?.hp, size: lights.length, lit: lights.filter(light => light.intensity > 0), warned };
|
|
1230
|
+
});
|
|
1231
|
+
await step('lantern: no page error', () => ({ ok: pine.errors.length === 0, errors: [...new Set(pine.errors)].slice(0, 6) }));
|
|
1232
|
+
await pine.context.close();
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
export async function fights(browser, phone, base, only, step) {
|
|
1236
|
+
const runs = name => only === '' || only === 'fights' || only === name;
|
|
1237
|
+
if (only === 'titan') await stormJourney(browser, phone, base, step);
|
|
1238
|
+
if (runs('qara')) await qaraJourney(browser, phone, base, step);
|
|
1239
|
+
if (runs('qyran')) await qyranJourney(browser, phone, base, step);
|
|
1240
|
+
if (runs('rig')) await rigJourney(browser, phone, base, step, KINGS_CLEARING);
|
|
1241
|
+
if (runs('sweep')) await sweepJourney(browser, phone, base, step);
|
|
1242
|
+
if (only === 'rigpage') await pageRigJourney(browser, phone, base, step, KINGS_CLEARING);
|
|
1243
|
+
if (runs('lantern')) { await lanternJourney(browser, phone, base, step, KINGS_CLEARING, 4); await lanternJourney(browser, phone, base, step, KINGS_CLEARING, 3000); }
|
|
1244
|
+
|
|
1245
|
+
// A boss: its row draws the bar, leaving resets it, a fall comes back, and real blows end it and pay.
|
|
1246
|
+
if (runs('roc')) {
|
|
1247
|
+
const far = await open(browser, phone, base, 'far-reach');
|
|
1248
|
+
const id = 'far.roc.encounter', crown = [0, 45.5, -188];
|
|
1249
|
+
await step('roc: walking in starts the fight, and the bar comes up off its row', async () => {
|
|
1250
|
+
await place(far.page, ...crown);
|
|
1251
|
+
const row = await until(far.page, async () => { const seen = await fight(far.page, id); return seen?.state === 'fight' ? seen : null; }, 20);
|
|
1252
|
+
await far.page.waitForTimeout(500);
|
|
1253
|
+
const shown = await bossBar(far.page);
|
|
1254
|
+
return { ok: row !== null && shown.bar.length > 0, state: row?.state, shown };
|
|
1255
|
+
});
|
|
1256
|
+
await step('roc: a lone player who leaves is still in it (a reset is for a room: J104)', async () => {
|
|
1257
|
+
await place(far.page, 0, 31, -5);
|
|
1258
|
+
await far.page.waitForTimeout(3000);
|
|
1259
|
+
const row = await fight(far.page, id), shown = await bossBar(far.page);
|
|
1260
|
+
return { ok: row?.state === 'fight' && shown.bar.length > 0, state: row?.state, shown };
|
|
1261
|
+
});
|
|
1262
|
+
await step('roc: real blows end it, it pays, and the bar goes', async () => {
|
|
1263
|
+
await far.page.evaluate(() => { window.__workerClientHits(40); });
|
|
1264
|
+
await place(far.page, ...crown);
|
|
1265
|
+
const paidBefore = await report(far.page);
|
|
1266
|
+
for (let i = 0; i < 80; i++) {
|
|
1267
|
+
const row = await fight(far.page, id);
|
|
1268
|
+
if (row?.state === 'victory') break;
|
|
1269
|
+
if (row?.at !== null && row?.at !== undefined) await strike(far.page, row.at, false);
|
|
1270
|
+
await far.page.waitForTimeout(400);
|
|
1271
|
+
}
|
|
1272
|
+
await stand(far.page);
|
|
1273
|
+
await far.page.waitForTimeout(2500);
|
|
1274
|
+
const row = await fight(far.page, id), done = await report(far.page), shown = await bossBar(far.page);
|
|
1275
|
+
return { ok: row?.state === 'victory' && done.paid > paidBefore.paid, state: row?.state, paid: done.paid, coins: done.owned.coins, shown };
|
|
1276
|
+
});
|
|
1277
|
+
await step('roc: no page error', () => ({ ok: far.errors.length === 0, errors: [...new Set(far.errors)].slice(0, 6) }));
|
|
1278
|
+
await far.context.close();
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
// A fight pays for blows: a player off the crown, however far they fall, ends nothing and earns nothing.
|
|
1282
|
+
if (runs('rocfall')) {
|
|
1283
|
+
const far = await open(browser, phone, base, 'far-reach');
|
|
1284
|
+
const id = 'far.roc.encounter', [cx, cy, cz] = [0, 45.5, -188], CROWN_REACH = 23;
|
|
1285
|
+
await step('roc: a player who falls off the crown ends nothing and earns nothing', async () => {
|
|
1286
|
+
await place(far.page, cx, cy, cz);
|
|
1287
|
+
await until(far.page, async () => (await fight(far.page, id))?.state === 'fight', 20);
|
|
1288
|
+
const before = await report(far.page), trail = [];
|
|
1289
|
+
let lowest = Infinity, fallen = 0;
|
|
1290
|
+
for (let round = 0; round < 6 && (await fight(far.page, id))?.state !== 'victory'; round++) { // over each of its moves in turn
|
|
1291
|
+
await place(far.page, cx, cy, cz);
|
|
1292
|
+
await far.page.waitForTimeout(2500 + round * 900);
|
|
1293
|
+
await place(far.page, cx + CROWN_REACH, cy - 2, cz); // over the edge, under its nose
|
|
1294
|
+
for (let i = 0; i < 16; i++) {
|
|
1295
|
+
await far.page.waitForTimeout(500);
|
|
1296
|
+
const row = await fight(far.page, id), height = await far.page.evaluate(() => window.__wildshard.world.player.position.y);
|
|
1297
|
+
lowest = Math.min(lowest, height);
|
|
1298
|
+
if (i % 5 === 0) trail.push({ y: Math.round(height), hp: row?.hp, state: row?.state, roc: row?.at === null || row?.at === undefined ? null : Math.round(row.at.y) });
|
|
1299
|
+
if (row?.state === 'victory') break;
|
|
1300
|
+
}
|
|
1301
|
+
fallen++;
|
|
1302
|
+
}
|
|
1303
|
+
const row = await fight(far.page, id), done = await report(far.page);
|
|
1304
|
+
return { ok: row?.state !== 'victory' && (row?.hp ?? 0) > 0 && done.paid === before.paid && done.hits === before.hits, state: row?.state, hp: row?.hp, fallen, lowest, paid: done.paid, coins: done.owned.coins, hits: done.hits, falls: done.falls, trail: trail.slice(-12) };
|
|
1305
|
+
});
|
|
1306
|
+
await far.context.close();
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
// Two real clients in one room: a boss resets when everyone has gone, and not before (J104).
|
|
1310
|
+
if (runs('rooms')) {
|
|
1311
|
+
const far = await open(browser, phone, base, 'far-reach');
|
|
1312
|
+
const { page } = far, id = 'far.roc.encounter', [cx, cy, cz] = [0, 45.5, -188], state = async () => (await fight(page, id))?.state ?? null;
|
|
1313
|
+
await step('two clients: a second real client joins and fights in the room', async () => {
|
|
1314
|
+
await place(page, cx, cy, cz);
|
|
1315
|
+
await page.evaluate(([x, y, z]) => { window.__secondClient = window.__workerClientBot('bot:1', x + 3, y, z); }, [cx, cy, cz]);
|
|
1316
|
+
const up = await until(page, async () => await state() === 'fight', 25);
|
|
1317
|
+
return { ok: up === true, state: await state(), closed: (await report(page)).closed };
|
|
1318
|
+
});
|
|
1319
|
+
await step('two clients: one leaves, and the fight goes on for the other', async () => {
|
|
1320
|
+
await place(page, 0, 31, -5);
|
|
1321
|
+
await page.waitForTimeout(4000);
|
|
1322
|
+
return { ok: await state() === 'fight', state: await state() };
|
|
1323
|
+
});
|
|
1324
|
+
await step('two clients: everyone gone resets the boss', async () => {
|
|
1325
|
+
await page.evaluate(() => { window.__secondClient.move(0, 31, -3); });
|
|
1326
|
+
const reset = await until(page, async () => { const seen = await state(); return seen !== 'fight' && seen !== 'beat' ? seen : null; }, 25);
|
|
1327
|
+
await page.waitForTimeout(800);
|
|
1328
|
+
const row = await fight(page, id);
|
|
1329
|
+
return { ok: reset !== null && row?.hp === 1, reset, row: { state: row?.state, hp: row?.hp }, bar: await bossBar(page) };
|
|
1330
|
+
});
|
|
1331
|
+
await step('two clients: it arms again for whoever comes back', async () => {
|
|
1332
|
+
await place(page, cx, cy, cz);
|
|
1333
|
+
const up = await until(page, async () => await state() === 'fight', 25);
|
|
1334
|
+
return { ok: up === true, state: await state() };
|
|
1335
|
+
});
|
|
1336
|
+
await page.evaluate(() => { window.__secondClient.end(); });
|
|
1337
|
+
await step('two clients: no page error', () => ({ ok: far.errors.length === 0, errors: [...new Set(far.errors)].slice(0, 6) }));
|
|
1338
|
+
await far.context.close();
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
// An elite: the bar, the first-kill orb on its row, a refused press, a taken one.
|
|
1342
|
+
if (runs('elite')) {
|
|
1343
|
+
const pine = await open(browser, phone, base, 'pine-hollow');
|
|
1344
|
+
const id = 'ironhide';
|
|
1345
|
+
await step('elite: its row draws the bar at the lair', async () => {
|
|
1346
|
+
await place(pine.page, -44, 12, -66);
|
|
1347
|
+
const row = await until(pine.page, async () => { const seen = await fight(pine.page, id); return seen?.at !== null && ['aware', 'engaged'].includes(seen?.state) ? seen : null; }, 25);
|
|
1348
|
+
await pine.page.waitForTimeout(600);
|
|
1349
|
+
const shown = await bossBar(pine.page);
|
|
1350
|
+
return { ok: row !== null && shown.elite.length > 0, state: row?.state, shown };
|
|
1351
|
+
});
|
|
1352
|
+
await step('elite: it kills the player, who comes back whole where they last stood (J107)', async () => {
|
|
1353
|
+
const before = await report(pine.page);
|
|
1354
|
+
for (let i = 0; i < 160; i++) {
|
|
1355
|
+
const row = await fight(pine.page, id), seen = await report(pine.page);
|
|
1356
|
+
if (seen.falls > before.falls) break;
|
|
1357
|
+
if (row?.at !== null && row?.at !== undefined) await place(pine.page, row.at.x + 1, row.at.y + 0.3, row.at.z + 1);
|
|
1358
|
+
await pine.page.waitForTimeout(500);
|
|
1359
|
+
}
|
|
1360
|
+
await pine.page.waitForTimeout(4000);
|
|
1361
|
+
const back = await report(pine.page);
|
|
1362
|
+
return { ok: back.falls > before.falls && back.hp === 100, falls: back.falls, hp: back.hp, at: [back.serverX, back.serverZ], state: (await fight(pine.page, id))?.state };
|
|
1363
|
+
});
|
|
1364
|
+
await step('elite: real blows drop it and its orb lies on the row', async () => {
|
|
1365
|
+
await pine.page.evaluate(() => { window.__workerClientHits(60); });
|
|
1366
|
+
await place(pine.page, -44, 12, -66);
|
|
1367
|
+
for (let i = 0; i < 160; i++) {
|
|
1368
|
+
const row = await fight(pine.page, id);
|
|
1369
|
+
if (row?.state === 'dead') break;
|
|
1370
|
+
if (row?.at !== null && row?.at !== undefined) { if (i % 8 === 0) await place(pine.page, row.at.x + 2, row.at.y + 0.4, row.at.z + 2); await strike(pine.page, row.at, true); }
|
|
1371
|
+
await pine.page.waitForTimeout(400);
|
|
1372
|
+
}
|
|
1373
|
+
await stand(pine.page);
|
|
1374
|
+
const row = await until(pine.page, async () => { const seen = await fight(pine.page, id); return seen?.reward !== null ? seen : null; }, 6);
|
|
1375
|
+
await pine.page.waitForTimeout(400);
|
|
1376
|
+
const orb = await prompt(pine.page, 'skin');
|
|
1377
|
+
return { ok: row !== null && orb !== null, state: row?.state, reward: row?.reward, orb, falls: (await report(pine.page)).falls };
|
|
1378
|
+
});
|
|
1379
|
+
await step('elite: a press from too far is refused, and the orb comes back', async () => {
|
|
1380
|
+
const row = await fight(pine.page, id), { reward } = row;
|
|
1381
|
+
await place(pine.page, reward.x + 30, reward.y + 8, reward.z + 30);
|
|
1382
|
+
await pine.page.waitForTimeout(1500);
|
|
1383
|
+
await pine.page.evaluate(() => { window.__wildshard.world.interactables.find(entry => /skin/iu.test(entry.label) && entry.radius > 0)?.onInteract(); });
|
|
1384
|
+
await pine.page.waitForTimeout(400);
|
|
1385
|
+
const gone = await prompt(pine.page, 'skin');
|
|
1386
|
+
await pine.page.waitForTimeout(2200);
|
|
1387
|
+
return { ok: gone === null && await prompt(pine.page, 'skin') !== null && (await fight(pine.page, id)).reward !== null, gone };
|
|
1388
|
+
});
|
|
1389
|
+
await step('elite: a press in reach takes it for good', async () => {
|
|
1390
|
+
const row = await fight(pine.page, id), { reward } = row;
|
|
1391
|
+
await place(pine.page, reward.x + 0.6, reward.y - 0.6, reward.z + 0.6);
|
|
1392
|
+
await pine.page.waitForTimeout(1200);
|
|
1393
|
+
const taken = await pressUntil(pine.page, async () => (await fight(pine.page, id)).reward === null, 6); // a press is judged a command behind, as on a phone
|
|
1394
|
+
await pine.page.waitForTimeout(2200);
|
|
1395
|
+
return { ok: taken && await prompt(pine.page, 'skin') === null, taken };
|
|
1396
|
+
});
|
|
1397
|
+
await step('elite: no page error', () => ({ ok: pine.errors.length === 0, errors: [...new Set(pine.errors)].slice(0, 6) }));
|
|
1398
|
+
await pine.context.close();
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
if (runs('sunscar')) await sunscarJourney(browser, phone, base, step);
|
|
1402
|
+
if (runs('farreach')) await farJourney(browser, phone, base, step);
|
|
1403
|
+
if (runs('isle')) await driftwoodJourney(browser, phone, base, step);
|
|
1404
|
+
if (runs('pine')) await pineJourney(browser, phone, base, step);
|
|
1405
|
+
if (runs('nalati')) await nalatiJourney(browser, phone, base, step);
|
|
1406
|
+
if (runs('chapters')) await chapterJourney(browser, phone, base, step);
|
|
1407
|
+
if (runs('night')) await nightJourney(browser, phone, base, step);
|
|
1408
|
+
if (runs('second')) await secondClientJourney(browser, phone, base, step);
|
|
1409
|
+
if (runs('words')) await wordsJourney(browser, phone, base, step);
|
|
1410
|
+
|
|
1411
|
+
// The sky: the rows move on their own, and a Weather setting goes up and comes back.
|
|
1412
|
+
if (runs('sky')) {
|
|
1413
|
+
const pine = await open(browser, phone, base, 'pine-hollow');
|
|
1414
|
+
await step('sky: a shard with a programme has it on rows and draws it', async () => {
|
|
1415
|
+
await pine.page.waitForTimeout(1500);
|
|
1416
|
+
const r = await report(pine.page), drawn = await pine.page.evaluate(() => window.__wildshard.shard['pine.weather']?.weather?.state ?? null);
|
|
1417
|
+
return { ok: r.sky !== null && drawn !== null, row: r.sky, drawn };
|
|
1418
|
+
});
|
|
1419
|
+
await step('sky: a live Weather setting goes up, and the row and the page come back with it', async () => {
|
|
1420
|
+
const page = pine.page, before = await page.evaluate(() => window.__wildshard.shard['pine.weather']?.weather?.rain ?? 0);
|
|
1421
|
+
await page.keyboard.press('Escape'); await page.waitForTimeout(500);
|
|
1422
|
+
await page.evaluate(() => { [...document.querySelectorAll('.ws-gmenu-tab')].find(node => /settings/iu.test(node.textContent ?? ''))?.click(); });
|
|
1423
|
+
await page.waitForTimeout(500);
|
|
1424
|
+
const card = page.locator('.ws-gmenu-card.fold').filter({ has: page.locator('.ws-gmenu-cardtitle', { hasText: /^Developer/u }) }).first();
|
|
1425
|
+
if (await card.evaluate(node => node.classList.contains('folded'))) await card.locator('.ws-gmenu-cardtitle').dispatchEvent('click');
|
|
1426
|
+
await page.waitForTimeout(300);
|
|
1427
|
+
const group = card.locator('.ws-dbg-group:not(.open) > .ws-dbg-head').first();
|
|
1428
|
+
if (await group.count() > 0) await group.dispatchEvent('click');
|
|
1429
|
+
await card.locator('.ws-gmenu-segbtn[data-v="rain"]').first().dispatchEvent('click');
|
|
1430
|
+
await page.waitForTimeout(300);
|
|
1431
|
+
const shown = await card.locator('.ws-gmenu-segbtn.active').allTextContents();
|
|
1432
|
+
await page.keyboard.press('Escape');
|
|
1433
|
+
const rain = await until(page, async () => { const seen = await page.evaluate(() => window.__wildshard.shard['pine.weather']?.weather?.rain ?? 0); return seen > before + 0.01 ? seen : null; }, 25);
|
|
1434
|
+
return { ok: rain !== null, before, rain, shown: shown.slice(0, 6), row: (await report(page)).sky, state: await page.evaluate(() => window.__wildshard.shard['pine.weather']?.weather?.state ?? null) };
|
|
1435
|
+
});
|
|
1436
|
+
await pine.context.close();
|
|
1437
|
+
}
|
|
1438
|
+
}
|