Archive incari-client (client, 26.3, clean)
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
# Browser check scripts
|
||||
|
||||
Step scripts for `./gradlew :app-web:browserCheck`, one step per line (`#` comments). They play the
|
||||
game in headless Chromium over the DevTools protocol and fail on the first `assert:` or `waitfor:`
|
||||
that doesn't hold. Positions are fractions of the 1280×720 window. Screenshots go to
|
||||
`build/browser-checks/`. `BrowserCheck.runStep` lists every step.
|
||||
|
||||
```sh
|
||||
./gradlew :app-web:browserCheck -Pbrowser.steps=@browser-checks/input.steps
|
||||
```
|
||||
|
||||
The page opens as `?name=Player` (straight to the title screen) unless the query names someone;
|
||||
`-Pbrowser.query=name=` opens Edit Profile first.
|
||||
|
||||
## Scripts
|
||||
|
||||
| Script | Checks | Needs |
|
||||
| --- | --- | --- |
|
||||
| `input.steps` | Text fields, copy/paste, input methods, key names on a French layout, F11, resize, dropped files, Pointer Lock | — |
|
||||
| `loader.steps` | Loading screen, manifest, service worker caching, reload from cache | — |
|
||||
| `storage.steps` | An option, a server and an imported pack survive a reload; F2 stores a PNG | — |
|
||||
| `assets.steps` | Japanese from the asset index: the Unicode font and the language file | assets |
|
||||
| `audio.steps` | The sound unlock prompt, menu music after the first click, click sounds | assets |
|
||||
| `audio-positional.steps` | Panning, rear attenuation and distance fade within 1% of the desktop's OpenAL | assets, server |
|
||||
| `server-join.steps` | Join over `ws://`, chat, the Nether and back, a transfer, a kick and rejoin | server |
|
||||
| `version-join.steps` | Join a 1.8.9, 1.12.2 or 1.20.4 server through Via; idle 20 s; kick and rejoin | old server |
|
||||
| `screenshot.steps` | F2 in a world, then the chat link downloads the PNG | server |
|
||||
| `community-pack.steps` | A real community resource pack loads | a pack |
|
||||
| `soak.steps` | 30 minutes over fresh terrain; fails if the render thread ever waits 50 ms | server, GPU |
|
||||
| `voice-talker.steps`, `voice-listener.steps` | Eagler voice chat between two browsers | EaglerXServer |
|
||||
| `relay-join.steps` | Join a world shared through an Eagler relay | relay |
|
||||
| `share-host.steps`, `share-guest.steps` | Host a singleplayer world on a relay; a second page joins it | relay |
|
||||
| `singleplayer.steps` | Create, play, save and reopen a world; World Options; zip download and import; delete | — |
|
||||
| `singleplayer-lan.steps` | Open to LAN with the server on the page fails cleanly | — |
|
||||
| `modules.steps` | Module menu, Toggle Sprint, its settings, the profile saved | — |
|
||||
| `hudeditor.steps` | HUD editor: drag an element, blurred backdrop, saved anchor | — |
|
||||
| `waypoints.steps` | Minimap, a new waypoint, its tag and beam, the list, the world map, saved data | — |
|
||||
| `newmodules.steps` | Each module from ADRs 0052–0054 turned on and seen working | — |
|
||||
| `incari-settings.steps` | Block-break sounds, Incari Settings, the screen recorder (F8) | — |
|
||||
| `look.steps`, `menus-look.steps` | The Frost look in Potato and Normal; menus checked for overlapping text | — |
|
||||
| `old-textures.steps` | Built-in packs listed; Old Textures switches Programmer Art on and off | — |
|
||||
| `sound-retry.steps` | Sounds still play when their first downloads fail | assets |
|
||||
| `legacy-sounds.steps` | Block sounds on a 1.8.9 server through Via | old server |
|
||||
| `html-sounds.steps` | The single HTML file plays sounds from disk (`-Pbrowser.html=<file>`) | an HTML build |
|
||||
|
||||
Not covered: typing in chat and most F3 keys (check by hand). `input.steps` stops on the Resource
|
||||
Packs screen because leaving it reloads resources. Ctrl+W and Ctrl+T aren't sent: Chromium acts on
|
||||
them outside fullscreen.
|
||||
|
||||
## Setting up what checks need
|
||||
|
||||
**Assets:** `./incari assets` once. The dev server serves them from `work/cache/assets`.
|
||||
|
||||
**Server** (`server-join`, `screenshot`, `soak`, `audio-positional`): a vanilla 26.3 server behind
|
||||
`tools/wsbridge`, with RCON, played as `IncariWeb`. The jar is Mojang's: keep it in `run/` (ignored),
|
||||
never commit it or its world.
|
||||
|
||||
```sh
|
||||
mkdir -p run/server && cd run/server && echo eula=true > eula.txt
|
||||
cat > server.properties <<'EOF'
|
||||
server-ip=127.0.0.1
|
||||
server-port=25582
|
||||
online-mode=false
|
||||
accepts-transfers=true
|
||||
white-list=false
|
||||
enable-rcon=true
|
||||
rcon.port=25592
|
||||
rcon.password=<a password>
|
||||
EOF
|
||||
java -jar server.jar nogui # jar from work/cache/versions/26.3/26.3.json, downloads.server
|
||||
|
||||
./gradlew :tools:wsbridge:run --args="--listen 8817 --target 127.0.0.1:25582" # another terminal
|
||||
|
||||
INCARI_RCON_PASSWORD=<the password> ./gradlew :app-web:browserCheck \
|
||||
"-Pbrowser.query=server=ws://127.0.0.1:8817&name=IncariWeb" \
|
||||
-Pbrowser.rcon=127.0.0.1:25592 -Pbrowser.seconds=300 \
|
||||
-Pbrowser.steps=@browser-checks/server-join.steps
|
||||
```
|
||||
|
||||
- `rcon:<command>` runs a command; `rconwait:<command> => <regex>` repeats until the reply matches.
|
||||
- RCON runs as the console, so `~` is the world spawn, not the player. Turn a player with
|
||||
`execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~`.
|
||||
- `soak.steps` also wants `-Pbrowser.gpu=gl -Pbrowser.seconds=2100`.
|
||||
|
||||
**Old servers** (`version-join`): vanilla 1.8.9, 1.12.2 or 1.20.4 (1.8.9 and 1.12.2 need Java 8;
|
||||
use `difficulty=0`), each behind its own bridge. The suggested ports: 1.8.9 on 25601 (RCON 25611,
|
||||
bridge 8801), 1.12.2 on 25602/25612/8802, 1.20.4 on 25603/25613/8803. Add `&via=auto` to
|
||||
`browser.query`: Via is off unless the join asks for it (ADR 0071).
|
||||
|
||||
**EaglerXServer** (`version-join`, voice): BungeeCord with the EaglerXServer plugin (downloaded,
|
||||
never committed) in front of the 1.8.9 server: `online_mode: false`, lobby `127.0.0.1:25601`,
|
||||
`inject_address` equal to Bungee's listener host. Join `ws://127.0.0.1:25577`. For voice, set
|
||||
`voice_service.enable_voice_service: true`, then run both scripts at once (Chromium gets a fake
|
||||
microphone):
|
||||
|
||||
```sh
|
||||
INCARI_RCON_PASSWORD=<pw> ./gradlew :app-web:browserCheck "-Pbrowser.query=server=ws://127.0.0.1:25577&via=auto&name=VoiceA" \
|
||||
-Pbrowser.rcon=127.0.0.1:25611 -Pbrowser.seconds=200 -Pbrowser.steps=@browser-checks/voice-talker.steps &
|
||||
sleep 8
|
||||
INCARI_RCON_PASSWORD=<pw> ./gradlew :app-web:browserCheck "-Pbrowser.query=server=ws://127.0.0.1:25577&via=auto&name=VoiceB" \
|
||||
-Pbrowser.rcon=127.0.0.1:25611 -Pbrowser.seconds=200 -Pbrowser.steps=@browser-checks/voice-listener.steps
|
||||
```
|
||||
|
||||
The desktop checks voice signalling alone: `smokeVoiceA` and `smokeVoiceB` together.
|
||||
|
||||
**Relay** (`relay-join`, `share-*`): EaglerSPRelay on port 6699 (its jar ships in the EaglercraftX
|
||||
workspace's `relay_download.zip`; keep it in `run/`).
|
||||
|
||||
```sh
|
||||
# relay-join: relay-host.html is a stand-in host that prints a join code
|
||||
java -jar run/relay/EaglerSPRelay.jar &
|
||||
chrome --headless=new --enable-logging=stderr --user-data-dir=$(mktemp -d) \
|
||||
"file://$PWD/app-web/browser-checks/relay-host.html?relay=ws://127.0.0.1:6699/" 2> host.log &
|
||||
sleep 5; CODE=$(grep -ao 'incari-relay-code: [a-z0-9]*' host.log | tail -1 | cut -d' ' -f2)
|
||||
sed "s/CODE/$CODE/" app-web/browser-checks/relay-join.steps > build/relay.steps
|
||||
./gradlew :app-web:browserCheck -Pbrowser.seconds=150 -Pbrowser.steps=@build/relay.steps
|
||||
|
||||
# share-host + share-guest: the guest runs BrowserCheck directly (Gradle runs one build at a time;
|
||||
# the class path is printed by the first run with --info)
|
||||
./gradlew :app-web:browserCheck -Pbrowser.seconds=300 \
|
||||
"-Pbrowser.query=name=Host&world=Shared&seed=2&share=ws://127.0.0.1:6699/" \
|
||||
-Pbrowser.steps=@browser-checks/share-host.steps | tee host.log &
|
||||
java -cp <class path> incari.tools.webbuild.BrowserCheck app-web/build/teavm <same --file/--dir args> \
|
||||
--query "name=Guest&shared=ws://127.0.0.1:6699/|<code from host.log>" --seconds 240 \
|
||||
--steps-file app-web/browser-checks/share-guest.steps
|
||||
```
|
||||
|
||||
**Community pack:** download one into the ignored `build/`, never the repo. Tested with Faithful 32x:
|
||||
|
||||
```sh
|
||||
mkdir -p app-web/build/community-packs
|
||||
curl -L -o app-web/build/community-packs/pack.zip \
|
||||
"https://cdn.modrinth.com/data/w0TnApzs/versions/lDYpMiqk/Faithful%2032x%20-%2026.3.zip"
|
||||
```
|
||||
|
||||
**Audio notes:** Chromium runs muted with `--autoplay-policy=document-user-activation-required`, so
|
||||
audio starts locked as for a player; the scripts measure the page's master bus. DevTools
|
||||
evaluations count as a click, so steps before the first click use `holds:` and `until:`. Desktop
|
||||
reference numbers come from `./gradlew :platform-desktop:openAlReference`.
|
||||
|
||||
`window.incariStorage.read(path)` in the page reads a stored file back (handy in the console too).
|
||||
|
||||
## By hand, in a real browser
|
||||
|
||||
Headless Chromium can't do everything. With `./gradlew :app-web:serve` and a world, check in Chrome
|
||||
(and Firefox where noted):
|
||||
|
||||
- [ ] **Pointer Lock:** clicking into a world hides the cursor; turning is smooth, with no acceleration on Windows.
|
||||
- [ ] **Escape:** opens the pause menu; Back to Game locks again (perhaps after one more click).
|
||||
- [ ] **Focus:** Alt+Tab or a tab switch pauses the game; no key stays held on return.
|
||||
- [ ] **Fullscreen:** F11 and the video setting both toggle it. Inside, Escape pauses, and Ctrl+W and Ctrl+1–9 don't reach the browser.
|
||||
- [ ] **Ctrl+W while playing:** asks "Leave site?". Nothing asks on the title screen.
|
||||
- [ ] **F3 and chat:** F3+B/G/H/T work without browser side effects; chat typing, editing, history and Tab completion work.
|
||||
- [ ] **Clipboard:** paste into chat from another program; copy out of a game text field; F3+C copies the location.
|
||||
- [ ] **Key names:** on AZERTY, Key Binds shows Z/Q/S/D; names follow a layout switch (Chrome) or are learned as you type (Firefox).
|
||||
- [ ] **Input methods and dead keys:** Japanese/Chinese composition shows in the field; ´ then e types é.
|
||||
- [ ] **Resize and density:** window resize, browser zoom and a move to another display redraw sharply; clicks land right.
|
||||
- [ ] **Dropped files:** a pack .zip or folder dropped on Resource Packs is offered and survives a reload.
|
||||
- [ ] **Sound by ear:** the unlock note, then music; positional sounds turn with you and fade with distance; each volume slider only moves its category; jukeboxes pause and loop; no gaps between tracks. Also in Firefox.
|
||||
- [ ] **Chromebook tablet mode:** tapping a text field opens the on-screen keyboard (note if it takes a second tap).
|
||||
- [ ] **Storage after closing the browser:** an option, a server and a pack are all still there. Over plain http from another machine the console says `indexeddb` and it still works.
|
||||
- [ ] **A second tab:** warns that the other tab keeps the files.
|
||||
- [ ] **Downloads:** F2, then the chat link saves the PNG (Chrome, Safari, Firefox).
|
||||
- [ ] **Closing right after a change:** the change is kept (the same-frame window is accepted, ADR 0011).
|
||||
@@ -0,0 +1,31 @@
|
||||
# ADR 0037: the Unicode font and the languages from the asset index (the panorama is no longer
|
||||
# fetched: menus show Incari's photo). The language list draws 日本語 with the
|
||||
# Unicode font; picking Japanese fetches its file before the reload, and the title screen is in
|
||||
# Japanese. Positions are for the 1280x577 viewport headless Chromium gives a 1280x720 window.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/assets.steps
|
||||
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
shot:build/browser-checks/assets-title.png
|
||||
# Options, Language..., search for Japan's region name.
|
||||
click:0.42,0.782
|
||||
sleep:1500
|
||||
click:0.376,0.515
|
||||
sleep:1500
|
||||
insert:日本
|
||||
sleep:1000
|
||||
shot:build/browser-checks/assets-language.png
|
||||
click:0.5,0.17
|
||||
sleep:500
|
||||
# Done reloads the resources in Japanese.
|
||||
click:0.62,0.945
|
||||
wait:.*\[Incari\] Assets: fetched 1 files .*
|
||||
sleep:8000
|
||||
# Back to the title screen.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
shot:build/browser-checks/assets-title-ja.png
|
||||
assert:window.incariStorage.read('/incari/game/options.txt').then(t => t !== null && t.includes('lang:ja_jp'))
|
||||
@@ -0,0 +1,82 @@
|
||||
# Positional sound, measured. The page joins a vanilla 26.3 server over ws:// (as
|
||||
# server-join.steps does), floats in the sky facing south, and the server plays a mono note
|
||||
# (block.note_block.harp, heard up to 16 blocks) at known offsets. A meter on the master bus sums
|
||||
# each channel's energy; the ratios must match what the desktop's OpenAL Soft gives for the same
|
||||
# offsets (measured by :platform-desktop:openAlReference, ADR 0013):
|
||||
# 4 blocks to the right left/right = 0.000 (0.0000 / 0.7497)
|
||||
# 30° to the left (2 left, 3.5 ahead) right/left = 0.236 (0.2169 / 0.9192 before distance)
|
||||
# 4 blocks ahead vs 4 behind behind/ahead = 0.679 (0.4041 / 0.5955 per ear)
|
||||
# 12 blocks ahead vs 4 ahead far/near = 0.333 (linear: 1 - d/16)
|
||||
# README.md ("Audio") has the setup: a server with RCON behind tools/wsbridge.
|
||||
|
||||
rcon:whitelist off
|
||||
rcon:difficulty peaceful
|
||||
rcon:time set day
|
||||
rcon:weather clear
|
||||
|
||||
# The first-run accessibility screen: Continue, which also unlocks the sound. Quick play connects.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
waitfor:incariAudio.context.state === 'running'
|
||||
rconwait:list => IncariWeb
|
||||
sleep:3000
|
||||
|
||||
# In the sky, where nothing else makes a sound: spectator (no footsteps), at a known eye position.
|
||||
# Facing south (yaw 0): forward is +z, right is -x. The eye is 1.62 above the feet.
|
||||
rcon:gamemode spectator IncariWeb
|
||||
rcon:tp IncariWeb 0.5 200 0.5 0 0
|
||||
sleep:3000
|
||||
rcon:stopsound IncariWeb
|
||||
|
||||
# Music is stereo and starts on its own schedule: mute every stream, now and later, so only the
|
||||
# note is measured.
|
||||
rcon:stopsound IncariWeb music
|
||||
eval:(() => { const play = HTMLMediaElement.prototype.play; HTMLMediaElement.prototype.play = function () { this.muted = true; return play.call(this); }; incariAudio.streams.forEach(e => { e.muted = true; }); return 'music muted'; })()
|
||||
# The meter: each channel of the master bus, summed over one burst of sound: from the first
|
||||
# audible block after it's armed until the level falls 30 dB below the burst's peak (by then over
|
||||
# 99.9% of the note's energy is in). The note rings for about half a second; the game plays quiet
|
||||
# sounds of its own (ambience) just after, which the burst leaves out.
|
||||
eval:(() => { const a = incariAudio, ctx = a.context; const p = ctx.createScriptProcessor(1024, 2, 2); const m = { l: 0, r: 0, now: 0, state: 'idle', runs: {} }; p.onaudioprocess = e => { const l = e.inputBuffer.getChannelData(0), r = e.inputBuffer.getChannelData(1); let sl = 0, sr = 0; for (let i = 0; i < l.length; i++) { sl += l[i] * l[i]; sr += r[i] * r[i]; } m.now = sl + sr; if (m.state === 'armed' && m.now > 1e-6) m.state = 'burst'; if (m.state === 'burst') { m.peak = Math.max(m.peak, m.now); if (m.now < m.peak * 1e-3) m.state = 'done'; else { m.l += sl; m.r += sr; } } }; const g = ctx.createGain(); g.gain.value = 0; a.master.connect(p); p.connect(g); g.connect(ctx.destination); m.arm = () => { m.l = 0; m.r = 0; m.peak = 0; m.state = 'armed'; }; m.keep = name => { m.runs[name] = { l: Math.sqrt(m.l), r: Math.sqrt(m.r) }; return name + ': left ' + m.runs[name].l.toFixed(4) + ', right ' + m.runs[name].r.toFixed(4); }; globalThis.incariMeter = m; return 'meter on'; })()
|
||||
# Quiet first: whatever was playing dies away.
|
||||
waitfor:incariMeter.now < 1e-7
|
||||
|
||||
# 4 blocks to the right.
|
||||
waitfor:incariMeter.now < 1e-7
|
||||
eval:incariMeter.arm()
|
||||
rcon:playsound minecraft:block.note_block.harp master IncariWeb -3.5 201.625 0.5 1 1
|
||||
waitfor:incariMeter.state === 'done'
|
||||
eval:incariMeter.keep('right')
|
||||
# About 30° to the left of straight ahead: +x is left, so 2 blocks that way and 3.5 ahead. Sound
|
||||
# packets carry positions in eighths of a block, so every offset here is a multiple of one. Write
|
||||
# every coordinate with a decimal point: commands centre a whole number on its block (4 is 4.5).
|
||||
waitfor:incariMeter.now < 1e-7
|
||||
eval:incariMeter.arm()
|
||||
rcon:playsound minecraft:block.note_block.harp master IncariWeb 2.5 201.625 4.0 1 1
|
||||
waitfor:incariMeter.state === 'done'
|
||||
eval:incariMeter.keep('left30')
|
||||
# 4 blocks ahead, 4 behind, 12 ahead.
|
||||
waitfor:incariMeter.now < 1e-7
|
||||
eval:incariMeter.arm()
|
||||
rcon:playsound minecraft:block.note_block.harp master IncariWeb 0.5 201.625 4.5 1 1
|
||||
waitfor:incariMeter.state === 'done'
|
||||
eval:incariMeter.keep('ahead4')
|
||||
waitfor:incariMeter.now < 1e-7
|
||||
eval:incariMeter.arm()
|
||||
rcon:playsound minecraft:block.note_block.harp master IncariWeb 0.5 201.625 -3.5 1 1
|
||||
waitfor:incariMeter.state === 'done'
|
||||
eval:incariMeter.keep('behind4')
|
||||
waitfor:incariMeter.now < 1e-7
|
||||
eval:incariMeter.arm()
|
||||
rcon:playsound minecraft:block.note_block.harp master IncariWeb 0.5 201.625 12.5 1 1
|
||||
waitfor:incariMeter.state === 'done'
|
||||
eval:incariMeter.keep('ahead12')
|
||||
|
||||
# The ratios, against the desktop's.
|
||||
eval:JSON.stringify(Object.fromEntries(Object.entries(incariMeter.runs).map(([k, v]) => [k, [+v.l.toFixed(4), +v.r.toFixed(4)]])))
|
||||
eval:'right: left/right ' + (incariMeter.runs.right.l / incariMeter.runs.right.r).toFixed(4) + '; left30: right/left ' + (incariMeter.runs.left30.r / incariMeter.runs.left30.l).toFixed(4) + '; behind/ahead ' + (incariMeter.runs.behind4.l / incariMeter.runs.ahead4.l).toFixed(4) + '; far/near ' + (incariMeter.runs.ahead12.l / incariMeter.runs.ahead4.l).toFixed(4)
|
||||
assert:incariMeter.runs.right.r > 0.01 && incariMeter.runs.right.l / incariMeter.runs.right.r < 0.005
|
||||
assert:Math.abs(incariMeter.runs.left30.r / incariMeter.runs.left30.l - 0.2360) < 0.01
|
||||
assert:Math.abs(incariMeter.runs.ahead4.l / incariMeter.runs.ahead4.r - 1) < 0.005
|
||||
assert:Math.abs(incariMeter.runs.behind4.l / incariMeter.runs.ahead4.l - 0.6787) < 0.01
|
||||
assert:Math.abs(incariMeter.runs.ahead12.l / incariMeter.runs.ahead4.l - 0.3333) < 0.01
|
||||
shot:build/browser-checks/audio-positional.png
|
||||
@@ -0,0 +1,44 @@
|
||||
# Sound on the title screen. The page starts with its audio context suspended, as a player's
|
||||
# browser does (BrowserCheck runs Chromium with --autoplay-policy=document-user-activation-required, muted on
|
||||
# this machine's speakers), and shows the unlock prompt; the first click resumes it. Then the menu
|
||||
# music streams through a media element, and a button's click plays. Needs the assets
|
||||
# `./incari assets` downloaded (the dev server serves them). README.md ("Audio") has the command.
|
||||
|
||||
# --- Before any gesture: the context waits, and the prompt says so ---
|
||||
# (The check starts once the game loop runs; by then the sound engine has started.)
|
||||
# Until the click below, steps use holds:/until:, which don't count as a click themselves.
|
||||
sleep:3000
|
||||
until:globalThis.incariAudio !== undefined && incariAudio.context.state === 'suspended'
|
||||
holds:document.getElementById('incari-audio-unlock') !== null
|
||||
# The menu music has been asked for by now (100 ticks after the game starts) and waits for the context.
|
||||
until:incariAudio.pending.length === 1 && incariAudio.streamsStarted === 0 && incariAudio.buffersStarted === 0
|
||||
shot:build/browser-checks/audio-prompt.png
|
||||
|
||||
# --- The first-run accessibility screen's Continue: that click unlocks the sound ---
|
||||
click:0.5,0.945
|
||||
waitfor:incariAudio.context.state === 'running' && document.getElementById('incari-audio-unlock') === null
|
||||
# The waiting music starts, and its element streams: it plays long before the whole file could have
|
||||
# been decoded, and its position moves.
|
||||
waitfor:incariAudio.streamsStarted >= 1 && incariAudio.streams.some(e => !e.paused && e.currentTime > 0.5)
|
||||
eval:incariAudio.streams.map(e => e.src.slice(0, 5) + ' ' + e.currentTime.toFixed(2) + 's of ' + e.duration.toFixed(1) + 's').join(', ')
|
||||
sleep:2000
|
||||
assert:incariAudio.streams.some(e => !e.paused && e.currentTime > 2)
|
||||
|
||||
# --- A meter on the master bus: each channel's energy, from every sample the page plays ---
|
||||
eval:(() => { const a = incariAudio, ctx = a.context; const p = ctx.createScriptProcessor(4096, 2, 2); const m = { l: 0, r: 0, n: 0 }; p.onaudioprocess = e => { const l = e.inputBuffer.getChannelData(0), r = e.inputBuffer.getChannelData(1); for (let i = 0; i < l.length; i++) { m.l += l[i] * l[i]; m.r += r[i] * r[i]; } m.n += l.length; }; const g = ctx.createGain(); g.gain.value = 0; a.master.connect(p); p.connect(g); g.connect(ctx.destination); globalThis.incariMeter = m; return 'meter on'; })()
|
||||
sleep:1000
|
||||
# The music reaches the output: stereo, so both channels.
|
||||
assert:incariMeter.n > 40000 && incariMeter.l > 0 && incariMeter.r > 0
|
||||
|
||||
# --- A UI sound: a button's click (a stereo sound, not positioned) ---
|
||||
eval:globalThis.clicksBefore = incariAudio.buffersStarted
|
||||
# Options... (its click), Escape back to the title screen, Options... again.
|
||||
click:0.42,0.78
|
||||
sleep:1500
|
||||
shot:build/browser-checks/audio-options.png
|
||||
key:Escape
|
||||
sleep:1000
|
||||
click:0.42,0.78
|
||||
sleep:500
|
||||
waitfor:incariAudio.buffersStarted >= clicksBefore + 2
|
||||
eval:'buffers started: ' + incariAudio.buffersStarted + ', voices: ' + incariAudio.voices
|
||||
@@ -0,0 +1,41 @@
|
||||
# A real community resource pack loads. It's the one at build/community-packs/pack.zip,
|
||||
# downloaded when the check runs, never committed (the browser-checks README says how; the check
|
||||
# was run with Faithful 32x for 26.3). It's dropped on the Resource Packs screen, copied in,
|
||||
# selected, and the game reloads its resources with it; then the page is reloaded and the game
|
||||
# starts with it from storage. Positions are for the 1280x577 viewport.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.seconds=500 -Pbrowser.steps=@browser-checks/community-pack.steps
|
||||
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
# Options, Resource Packs, then the pack dropped on the screen and "Yes" to copy it.
|
||||
click:0.42,0.782
|
||||
sleep:1500
|
||||
click:0.376,0.598
|
||||
sleep:2000
|
||||
drop:0.5,0.5,build/community-packs/pack.zip
|
||||
sleep:4000
|
||||
click:0.38,0.585
|
||||
sleep:3000
|
||||
waitfor:window.incariStorage.list('/incari/game/resourcepacks').then(p => p.includes('/incari/game/resourcepacks/pack.zip'))
|
||||
move:0.19,0.277
|
||||
sleep:300
|
||||
click:0.19,0.277
|
||||
sleep:1000
|
||||
shot:build/browser-checks/community-pack-selected.png
|
||||
# Done: the game reloads its resources with the pack, which must finish without errors.
|
||||
click:0.623,0.945
|
||||
wait:.*Reloading ResourceManager.*file/pack\.zip.*
|
||||
wait:\[Incari\] Main loop running.*
|
||||
sleep:3000
|
||||
shot:build/browser-checks/community-pack-title.png
|
||||
waitfor:window.incariStorage.pending() === 0
|
||||
# After a reload the game starts with it.
|
||||
reload
|
||||
wait:\[Incari\] Client jar: .* from storage.*
|
||||
wait:.*Reloading ResourceManager.*file/pack\.zip.*
|
||||
wait:\[Incari\] Main loop running.*
|
||||
sleep:4000
|
||||
shot:build/browser-checks/community-pack-after-reload.png
|
||||
@@ -0,0 +1,41 @@
|
||||
# The single HTML file's sounds (ADR 0062: all but music, smaller): opened from the disk, a quick world's block
|
||||
# breaks play their sounds from the file. Build it first (./incari build --html --only fast), then:
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pteavm.fast -Pbrowser.html=$PWD/dist/incari.html -Pbrowser.gpu=gl \
|
||||
# -Pbrowser.seconds=300 "-Pbrowser.query=name=Player&world=Html&seed=1" \
|
||||
# -Pbrowser.steps=@browser-checks/html-sounds.steps
|
||||
|
||||
sleep:6000
|
||||
# The first-run accessibility screen: Continue (also the gesture the audio waits for).
|
||||
click:0.5,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:6000
|
||||
eval:globalThis.before = incariAudio.buffersStarted
|
||||
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/fill ~-4 ~ ~-4 ~4 ~4 ~4 minecraft:air
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/fill ~-4 ~-3 ~-4 ~4 ~-1 ~4 minecraft:stone
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/gamemode creative
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/tp @s ~ ~ ~ 0 90
|
||||
key:Enter
|
||||
sleep:1500
|
||||
click:0.5,0.5
|
||||
sleep:1500
|
||||
click:0.5,0.5
|
||||
sleep:1500
|
||||
click:0.5,0.5
|
||||
sleep:3000
|
||||
eval:'buffers started: ' + (incariAudio.buffersStarted - before)
|
||||
@@ -0,0 +1,42 @@
|
||||
# The HUD editor in the page, in the Potato GUI preset (the default), where its blurred
|
||||
# backdrop is drawn a few times a second and kept in between (BackdropCache). Creates a world, turns
|
||||
# Toggle Sprint on from the module menu, opens Edit HUD beside the search, drags the status line
|
||||
# from the top left to the right edge halfway down, and checks the profile stored in OPFS has it
|
||||
# anchored on the right. No server needed. Positions are for the 1280x577 viewport (GUI scale 2,
|
||||
# 640x288).
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/hudeditor.steps
|
||||
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue. Then Singleplayer, Create New World with the defaults.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
click:0.2,0.43
|
||||
sleep:4000
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:8000
|
||||
|
||||
# --- The module menu: Toggle Sprint on, then Edit HUD ---
|
||||
key:ShiftRight
|
||||
sleep:1500
|
||||
click:0.545,0.215
|
||||
sleep:500
|
||||
click:0.798,0.104
|
||||
sleep:2000
|
||||
move:0.5,0.7
|
||||
sleep:500
|
||||
shot:build/browser-checks/hudeditor-potato.png
|
||||
|
||||
# --- The status line dragged to the right edge, halfway down: it snaps there ---
|
||||
drag:0.019,0.021,0.953,0.5
|
||||
sleep:800
|
||||
shot:build/browser-checks/hudeditor-placed.png
|
||||
|
||||
# --- Back to the module menu and the game; the placement is stored ---
|
||||
key:Escape
|
||||
sleep:800
|
||||
key:Escape
|
||||
sleep:2500
|
||||
until:window.incariStorage.pending() === 0
|
||||
assert:(async () => { let d = await navigator.storage.getDirectory(); for (const p of ["incari", "game", "incari", "modules", "profiles"]) d = await d.getDirectoryHandle(p); const text = await (await (await d.getFileHandle("Default.json")).getFile()).text(); console.log("[check] profile: " + text.replace(/\s+/g, " ")); const status = JSON.parse(text).modules.togglesprint.hud.status; return status.anchor === "right" && status.x === 2; })()
|
||||
@@ -0,0 +1,75 @@
|
||||
# ADR 0062: in a quick world (-Pbrowser.query=name=Player&world=Batch&seed=1): the pause menu's one
|
||||
# Incari Settings button and its screen, the screen recorder downloading a video (F8 twice), and
|
||||
# block-breaking sounds: each break's sound fetched, decoded and started. No server needed.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 \
|
||||
# "-Pbrowser.query=name=Player&world=Batch&seed=1" -Pbrowser.steps=@browser-checks/incari-settings.steps
|
||||
|
||||
downloads:build/browser-checks/downloads
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue (also the gesture the audio waits for).
|
||||
click:0.5,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:6000
|
||||
# Every sound file fetched from now on, with its status and time.
|
||||
eval:(() => { const of = window.fetch; globalThis.fetchLog = []; window.fetch = (u, ...a) => { const t = performance.now(); return of(u, ...a).then(r => { if (String(u).includes('objects')) fetchLog.push(r.status + ' ' + Math.round(performance.now() - t) + 'ms'); return r; }, e => { fetchLog.push('ERR ' + u); throw e; }); }; return 'logging'; })()
|
||||
eval:'buffers started before: ' + incariAudio.buffersStarted
|
||||
|
||||
# --- On a dirt floor, looking straight down: creative breaks a block a click ---
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/fill ~-4 ~ ~-4 ~4 ~4 ~4 minecraft:air
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/fill ~-4 ~-3 ~-4 ~4 ~-1 ~4 minecraft:dirt
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/gamemode creative
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/tp @s ~ ~ ~ 0 90
|
||||
key:Enter
|
||||
sleep:1500
|
||||
click:0.5,0.5
|
||||
sleep:800
|
||||
click:0.5,0.5
|
||||
sleep:800
|
||||
click:0.5,0.5
|
||||
sleep:2000
|
||||
eval:'buffers started after breaking: ' + incariAudio.buffersStarted + ', fetches: ' + JSON.stringify(fetchLog)
|
||||
shot:build/browser-checks/batch-broken.png
|
||||
|
||||
# --- Survival: held, the dirt's hit sounds every 4 ticks and its break ---
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/gamemode survival
|
||||
key:Enter
|
||||
sleep:1000
|
||||
eval:globalThis.beforeHold = incariAudio.buffersStarted
|
||||
hold:0.5,0.5,4000
|
||||
sleep:1500
|
||||
eval:'buffers started while holding: ' + (incariAudio.buffersStarted - beforeHold) + ', fetches: ' + JSON.stringify(fetchLog)
|
||||
shot:build/browser-checks/batch-mined.png
|
||||
|
||||
# --- The pause menu and Incari Settings ---
|
||||
key:Escape
|
||||
sleep:1500
|
||||
shot:build/browser-checks/batch-pause.png
|
||||
|
||||
# --- The recorder: F8 starts, F8 stops, and the video downloads ---
|
||||
key:Escape
|
||||
sleep:1000
|
||||
key:F8
|
||||
waitfor:globalThis.incariRecorder && incariRecorder.state === 'recording'
|
||||
sleep:4000
|
||||
shot:build/browser-checks/batch-recording.png
|
||||
key:F8
|
||||
waitfor:incariRecorder.state === 'idle'
|
||||
eval:'recorder error: ' + incariRecorder.error
|
||||
download:incari-.*\.(webm|mp4)
|
||||
@@ -0,0 +1,170 @@
|
||||
# Keyboard, mouse, text, clipboard, key names, fullscreen, resize and drops, on the title
|
||||
# screen and its menus. Positions are for the 1280x577
|
||||
# viewport headless Chromium gives a 1280x720 window.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.steps=@browser-checks/input.steps
|
||||
|
||||
# A French (AZERTY) layout, as Chrome's Keyboard Map API would report it, for every load from now on.
|
||||
init:(function() { var fr = {KeyQ: 'a', KeyW: 'z', KeyA: 'q', KeyZ: 'w', KeyM: ',', Semicolon: 'm', Digit1: '&', Digit2: 'é', Minus: ')', BracketLeft: '^'}; var kb = navigator.keyboard; if (kb) kb.getLayoutMap = function() { return Promise.resolve(new Map(Object.entries(fr))); }; })();
|
||||
# The reloaded page's start (the first page's heartbeats may still be queued before it).
|
||||
wait:\[Incari\] Client jar.*
|
||||
wait:\[Incari\] Main loop running.*
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
shot:build/browser-checks/title.png
|
||||
|
||||
# --- Nothing on the title screen holds the mouse, so leaving asks nothing ---
|
||||
assert:!document.getElementById('incari-canvas').__incariGuard
|
||||
|
||||
# --- Fullscreen in and out with F11 ---
|
||||
key:F11
|
||||
waitfor:document.fullscreenElement === document.getElementById('incari-canvas')
|
||||
sleep:1000
|
||||
assert:document.getElementById('incari-canvas').width === screen.width
|
||||
shot:build/browser-checks/fullscreen.png
|
||||
key:F11
|
||||
waitfor:!document.fullscreenElement
|
||||
sleep:1000
|
||||
assert:document.getElementById('incari-canvas').width === innerWidth
|
||||
# Leaving from the browser's side (Escape, the browser's own controls) turns the game's option off,
|
||||
# so the next F11 enters again rather than doing nothing.
|
||||
key:F11
|
||||
waitfor:!!document.fullscreenElement
|
||||
eval:document.exitFullscreen()
|
||||
waitfor:!document.fullscreenElement
|
||||
sleep:1000
|
||||
key:F11
|
||||
waitfor:!!document.fullscreenElement
|
||||
eval:document.exitFullscreen()
|
||||
waitfor:!document.fullscreenElement
|
||||
sleep:1000
|
||||
|
||||
# --- Resize and density ---
|
||||
resize:960,540
|
||||
waitfor:document.getElementById('incari-canvas').width === 960 && document.getElementById('incari-canvas').height === 540
|
||||
sleep:1000
|
||||
shot:build/browser-checks/resized.png
|
||||
# A denser display: the backing store follows the device-pixel size the browser reports. (Headless
|
||||
# Chromium's emulated density reports the CSS size here, as its compositor does the scaling; a real
|
||||
# 2x display reports twice it, which the unit tests cover.)
|
||||
resize:640,360,2
|
||||
waitfor:devicePixelRatio === 2 && document.getElementById('incari-canvas').clientWidth === 640
|
||||
waitfor:new Promise(r => { const c = document.getElementById('incari-canvas'); const o = new ResizeObserver(es => { const d = es[0].devicePixelContentBoxSize[0]; o.disconnect(); r(c.width === d.inlineSize && c.height === d.blockSize); }); o.observe(c, {box: 'device-pixel-content-box'}); })
|
||||
sleep:1000
|
||||
shot:build/browser-checks/dense.png
|
||||
resize:1280,577
|
||||
waitfor:document.getElementById('incari-canvas').width === 1280 && document.getElementById('incari-canvas').height === 577
|
||||
sleep:1500
|
||||
# Clicks land where the game drew after all that: Multiplayer, then Proceed on the safety screen.
|
||||
click:0.5,0.534
|
||||
sleep:1500
|
||||
shot:build/browser-checks/multiplayer-warning.png
|
||||
click:0.376,0.688
|
||||
sleep:1500
|
||||
# Add Server.
|
||||
click:0.662,0.854
|
||||
sleep:1500
|
||||
|
||||
# --- Text: typing, selection, copy and paste, an input method ---
|
||||
# The name field has the focus, so the page's text input element has it too.
|
||||
assert:document.activeElement === document.getElementById('incari-canvas-text')
|
||||
key:Control+KeyA
|
||||
type:Hello Incari
|
||||
clipboard:
|
||||
key:Control+KeyA
|
||||
key:Control+KeyC
|
||||
waitfor:navigator.clipboard.readText().then(t => t === 'Hello Incari')
|
||||
clipboard: & pasted
|
||||
key:End
|
||||
key:Control+KeyV
|
||||
# Shift+Left twice selects the last two characters, and Backspace deletes them.
|
||||
down:ShiftLeft
|
||||
key:ArrowLeft
|
||||
key:ArrowLeft
|
||||
up:ShiftLeft
|
||||
key:Backspace
|
||||
# An input method: a composition shows in the field, then commits.
|
||||
compose:にほ
|
||||
sleep:500
|
||||
shot:build/browser-checks/composing.png
|
||||
insert:日本
|
||||
type:!
|
||||
key:Control+KeyA
|
||||
key:Control+KeyX
|
||||
waitfor:navigator.clipboard.readText().then(t => t === 'Hello Incari & past日本!')
|
||||
sleep:500
|
||||
shot:build/browser-checks/cut.png
|
||||
# Tab moves to the address field; the browser mustn't move its own focus.
|
||||
key:Tab
|
||||
type:localhost
|
||||
key:Control+KeyA
|
||||
key:Control+KeyC
|
||||
waitfor:navigator.clipboard.readText().then(t => t === 'localhost')
|
||||
assert:document.activeElement === document.getElementById('incari-canvas-text')
|
||||
# Escape leaves the screen, and text input with it.
|
||||
key:Escape
|
||||
sleep:800
|
||||
key:Escape
|
||||
sleep:800
|
||||
waitfor:document.activeElement !== document.getElementById('incari-canvas-text')
|
||||
|
||||
# --- Key names in the player's layout, and binding a key ---
|
||||
# Options, Controls, Key Binds.
|
||||
click:0.42,0.782
|
||||
sleep:1500
|
||||
click:0.623,0.432
|
||||
sleep:1500
|
||||
click:0.623,0.161
|
||||
sleep:1500
|
||||
# With AZERTY, strafe left is Q and walking forward Z; the rest keep their US names.
|
||||
shot:build/browser-checks/key-binds.png
|
||||
# Bind "Walk Forward" to the key right of Tab: AZERTY's A.
|
||||
click:0.617,0.64
|
||||
sleep:500
|
||||
key:KeyQ
|
||||
sleep:800
|
||||
shot:build/browser-checks/key-bound.png
|
||||
# Back to W, which the Reset button next to it does.
|
||||
click:0.722,0.64
|
||||
sleep:800
|
||||
key:Escape
|
||||
sleep:800
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- F3 and browser shortcuts: the game gets them, the browser does nothing ---
|
||||
# (On the Options screen, where these keys change nothing in the game.)
|
||||
# A mark on the page that a reload or navigation would wipe.
|
||||
eval:window.__incariCheckMark = 1
|
||||
# F3 shows the debug screen here too, memory lines and all; the game keeps running under it, and a
|
||||
# second F3 hides it.
|
||||
key:F3
|
||||
sleep:1500
|
||||
shot:build/browser-checks/debug-screen.png
|
||||
wait:\[Incari\] Main loop running.*
|
||||
key:F3
|
||||
sleep:500
|
||||
# Not Ctrl+W or Ctrl+T: Chromium keeps those outside fullscreen whatever the page does (sent here,
|
||||
# Ctrl+W closes the tab). The leave-page prompt and Keyboard Lock are on the manual checklist.
|
||||
key:F5
|
||||
key:Alt+ArrowLeft
|
||||
sleep:1000
|
||||
assert:window.__incariCheckMark === 1
|
||||
assert:document.activeElement === document.getElementById('incari-canvas')
|
||||
shot:build/browser-checks/after-shortcuts.png
|
||||
|
||||
# --- A dropped file ---
|
||||
# Resource Packs, then a file dropped on it: the game asks whether to copy it in.
|
||||
click:0.376,0.598
|
||||
sleep:2000
|
||||
drop:0.5,0.5,browser-checks/README.md
|
||||
sleep:2000
|
||||
shot:build/browser-checks/dropped.png
|
||||
# "No". Leaving the pack screen reloads resources, which restarts the sound engine, and that
|
||||
# crashes the browser build today (the old sound thread ends with an IllegalMonitorStateException;
|
||||
# audio has checks of its own): the script stops here.
|
||||
click:0.62,0.585
|
||||
sleep:1000
|
||||
shot:build/browser-checks/packs.png
|
||||
@@ -0,0 +1,27 @@
|
||||
# F1 (2026-10-12): block sounds on a 1.8.9 server through Via. The server behind tools/wsbridge on
|
||||
# 8801 with RCON on 25611 (run/servers, INCARI_RCON_PASSWORD=incari-dev):
|
||||
# "-Pbrowser.query=server=ws://127.0.0.1:8801&name=IncariWeb" -Pbrowser.rcon=127.0.0.1:25611
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
sleep:15000
|
||||
eval:(() => { const of = window.fetch; globalThis.fetchLog = []; window.fetch = (u, ...a) => { const t = performance.now(); return of(u, ...a).then(r => { if (String(u).includes('objects')) fetchLog.push(r.status + ' ' + Math.round(performance.now() - t) + 'ms'); return r; }, e => { fetchLog.push('ERR ' + u); throw e; }); }; return 'logging'; })()
|
||||
rcon:execute IncariWeb ~ ~ ~ fill ~-3 ~ ~-3 ~3 ~3 ~3 air
|
||||
rcon:execute IncariWeb ~ ~ ~ fill ~-3 ~-3 ~-3 ~3 ~-1 ~3 dirt
|
||||
rcon:execute IncariWeb ~ ~ ~ tp IncariWeb ~ ~ ~ 0 90
|
||||
rcon:gamemode 1 IncariWeb
|
||||
sleep:2000
|
||||
eval:globalThis.before = incariAudio.buffersStarted
|
||||
click:0.5,0.5
|
||||
sleep:800
|
||||
click:0.5,0.5
|
||||
sleep:800
|
||||
click:0.5,0.5
|
||||
sleep:2000
|
||||
eval:'creative breaks started ' + (incariAudio.buffersStarted - before) + ', fetches ' + JSON.stringify(fetchLog)
|
||||
rcon:gamemode 0 IncariWeb
|
||||
sleep:1500
|
||||
eval:globalThis.before = incariAudio.buffersStarted
|
||||
hold:0.5,0.5,4000
|
||||
sleep:1500
|
||||
eval:'survival mining started ' + (incariAudio.buffersStarted - before) + ', fetches ' + JSON.stringify(fetchLog)
|
||||
shot:build/browser-checks/legacy-mined.png
|
||||
@@ -0,0 +1,26 @@
|
||||
# The loader page. The loading screen reads the build manifest, shows the steps, and goes at
|
||||
# the game's first frame; the service worker takes the page on its first visit and keeps the build,
|
||||
# so a reload loads the module through it. No server needed.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.steps=@browser-checks/loader.steps
|
||||
|
||||
# (The check waits for the game's loop before the first step, so the loader's own lines are past.)
|
||||
until:window.incariBuild !== undefined && /^[0-9a-f]{64}$/.test(window.incariBuild.id) && window.incariBuild.pack !== null
|
||||
# The first frame is drawn: the screen has gone.
|
||||
until:document.getElementById('incari-loader').hidden === true
|
||||
# The service worker controls the page, and the module went through it.
|
||||
until:navigator.serviceWorker.controller !== null
|
||||
holds:performance.getEntriesByType('resource').some(e => e.name.includes('incari.wasm?v=') && e.workerStart > 0)
|
||||
# It's cached under its version (stored while the page compiled it; 157 MB can take a moment).
|
||||
sleep:5000
|
||||
until:caches.open('incari-build-v1').then(c => c.keys()).then(k => k.some(r => r.url.includes('incari.wasm?v=')))
|
||||
until:caches.open('incari-build-v1').then(c => c.keys()).then(k => k.some(r => r.url.includes('incari.pack?v=')))
|
||||
|
||||
# A returning player: the module comes from the service worker's cache.
|
||||
reload
|
||||
wait:\[Incari\] Loader: build [0-9a-f]+ .*
|
||||
wait:\[Incari\] Asset pack: 2 files, from storage.*
|
||||
wait:\[Incari\] Main loop running.*
|
||||
holds:performance.getEntriesByType('resource').some(e => e.name.includes('incari.wasm?v=') && e.workerStart > 0)
|
||||
until:document.getElementById('incari-loader').hidden === true
|
||||
shot:build/browser-checks/loader.png
|
||||
@@ -0,0 +1,52 @@
|
||||
# ADR 0048: the client's look in the page. The title screen in Potato, the options, the module
|
||||
# menu, then Normal switched on from the module menu's sidebar: the title again (snow, blur), then a
|
||||
# new world's pause menu, inventory and HUD. Red Hat Display is drawn by the browser's canvas
|
||||
# (PlatformFonts). No server needed. Positions are for the 1280x577 viewport (GUI scale 2, 640x288).
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/look.steps
|
||||
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
shot:build/browser-checks/look-potato-title.png
|
||||
|
||||
# Options (the left half of the column's last row), and back.
|
||||
click:0.133,0.691
|
||||
sleep:1500
|
||||
shot:build/browser-checks/look-potato-options.png
|
||||
key:Escape
|
||||
sleep:1000
|
||||
|
||||
# Modules, then the sidebar's GUI entry: Normal.
|
||||
click:0.2,0.604
|
||||
sleep:1500
|
||||
shot:build/browser-checks/look-potato-modules.png
|
||||
click:0.2,0.771
|
||||
sleep:1000
|
||||
shot:build/browser-checks/look-normal-modules.png
|
||||
key:Escape
|
||||
sleep:2000
|
||||
shot:build/browser-checks/look-normal-title.png
|
||||
|
||||
# Singleplayer, Create New World with the defaults.
|
||||
click:0.2,0.43
|
||||
sleep:3000
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:8000
|
||||
shot:build/browser-checks/look-normal-hud.png
|
||||
key:Escape
|
||||
sleep:1500
|
||||
shot:build/browser-checks/look-normal-pause.png
|
||||
key:Escape
|
||||
sleep:800
|
||||
key:KeyE
|
||||
sleep:1500
|
||||
shot:build/browser-checks/look-normal-inventory.png
|
||||
key:Escape
|
||||
sleep:800
|
||||
down:Tab
|
||||
sleep:800
|
||||
shot:build/browser-checks/look-normal-tab.png
|
||||
up:Tab
|
||||
@@ -0,0 +1,27 @@
|
||||
# F2 (2026-10-12): the menus as the browser draws their text, to look for text drawn over text.
|
||||
# Title, Multiplayer (the featured server), Options, the module menu, Incari Settings. No server.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
shot:build/browser-checks/menus-title.png
|
||||
click:0.2,0.49
|
||||
sleep:1500
|
||||
# The first visit's warning: Proceed.
|
||||
click:0.375,0.688
|
||||
sleep:3000
|
||||
shot:build/browser-checks/menus-servers.png
|
||||
key:Escape
|
||||
sleep:1500
|
||||
click:0.13,0.74
|
||||
sleep:2000
|
||||
shot:build/browser-checks/menus-options.png
|
||||
key:Escape
|
||||
sleep:1500
|
||||
click:0.2,0.573
|
||||
sleep:2000
|
||||
shot:build/browser-checks/menus-modules.png
|
||||
key:Escape
|
||||
sleep:1500
|
||||
click:0.3,0.657
|
||||
sleep:2000
|
||||
shot:build/browser-checks/menus-incari-settings.png
|
||||
@@ -0,0 +1,45 @@
|
||||
# ADR 0046: the module framework in the page. Creates a world, opens the module menu with
|
||||
# Right Shift, turns Toggle Sprint on with its switch, opens its generated settings, then latches
|
||||
# sprint with a tap of Left Control and walks: the HUD says "[Sprinting (Toggled)]". The profile is
|
||||
# stored in OPFS with the module on. No server needed. Positions are for the 1280x577 viewport.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/modules.steps
|
||||
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue. Then Singleplayer, Create New World with the defaults.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
click:0.2,0.43
|
||||
sleep:4000
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:8000
|
||||
|
||||
# --- The module menu: Right Shift, then Toggle Sprint's switch and its settings ---
|
||||
key:ShiftRight
|
||||
sleep:1500
|
||||
shot:build/browser-checks/modules-menu.png
|
||||
click:0.545,0.215
|
||||
sleep:500
|
||||
shot:build/browser-checks/modules-menu-on.png
|
||||
click:0.553,0.292
|
||||
sleep:1500
|
||||
shot:build/browser-checks/modules-settings.png
|
||||
key:Escape
|
||||
sleep:800
|
||||
key:Escape
|
||||
sleep:1500
|
||||
|
||||
# --- A tap of Left Control latches sprinting; W alone then sprints and the HUD says so ---
|
||||
key:ControlLeft
|
||||
sleep:300
|
||||
down:KeyW
|
||||
sleep:1500
|
||||
shot:build/browser-checks/modules-hud.png
|
||||
up:KeyW
|
||||
sleep:500
|
||||
|
||||
# --- The profile is stored with Toggle Sprint on ---
|
||||
sleep:2000
|
||||
until:window.incariStorage.pending() === 0
|
||||
assert:(async () => { let d = await navigator.storage.getDirectory(); for (const p of ["incari", "game", "incari", "modules", "profiles"]) d = await d.getDirectoryHandle(p); const text = await (await (await d.getFileHandle("Default.json")).getFile()).text(); console.log("[check] profile: " + text.replace(/\s+/g, " ")); return JSON.parse(text).modules.togglesprint.enabled === true; })()
|
||||
@@ -0,0 +1,229 @@
|
||||
# ADRs 0052-0054: the fifteen new modules in the page. Creates a world, turns each on from the
|
||||
# module menu (its search narrows the grid to the one card, whose switch is the first card's), then
|
||||
# shows the HUD, the crosshair and cooldown after a swing, Freelook with Left Alt held, F2 and the
|
||||
# pause menu's Screenshots button, and the gallery. No server needed. Positions are for the
|
||||
# 1280x577 viewport (GUI scale 2, 640x288).
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/newmodules.steps
|
||||
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue. Then Singleplayer, Create New World with the defaults.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
click:0.2,0.43
|
||||
sleep:4000
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:8000
|
||||
|
||||
# --- Keystrokes ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Keystrokes
|
||||
sleep:400
|
||||
shot:build/browser-checks/newmodules-search.png
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- CPS ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:CPS
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- FPS Display ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:FPS Display
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Reach Display ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Reach Display
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Coordinates ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Coordinates
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Shield & Totem ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Shield & Totem
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Cooldown Indicator ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Cooldown Indicator
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- 1.7 Animations ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:1.7 Animations
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Freelook ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Freelook
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Crosshair Editor ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Crosshair Editor
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Low Shield ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Low Shield
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Weather Changer ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Weather Changer
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Theme Editor ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Theme Editor
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Screenshot Manager ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Screenshot Manager
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
# --- Shulker Tooltips ---
|
||||
key:ShiftRight
|
||||
sleep:1200
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Shulker Tooltips
|
||||
sleep:400
|
||||
click:0.545,0.215
|
||||
sleep:300
|
||||
key:Escape
|
||||
sleep:800
|
||||
|
||||
key:ShiftRight
|
||||
sleep:1500
|
||||
shot:build/browser-checks/newmodules-menu.png
|
||||
key:Escape
|
||||
sleep:2000
|
||||
|
||||
# --- The HUD, the crosshair, a swing's cooldown ---
|
||||
down:KeyW
|
||||
sleep:300
|
||||
click:0.5,0.5
|
||||
sleep:150
|
||||
shot:build/browser-checks/newmodules-hud.png
|
||||
up:KeyW
|
||||
sleep:1500
|
||||
|
||||
# --- Freelook: Left Alt held ---
|
||||
down:AltLeft
|
||||
sleep:600
|
||||
shot:build/browser-checks/newmodules-freelook.png
|
||||
up:AltLeft
|
||||
sleep:800
|
||||
|
||||
# --- F2, then the pause menu with its Screenshots button ---
|
||||
key:F2
|
||||
sleep:2500
|
||||
key:Escape
|
||||
sleep:1500
|
||||
shot:build/browser-checks/newmodules-pause.png
|
||||
until:window.incariStorage.pending() === 0
|
||||
assert:(async () => { let d = await navigator.storage.getDirectory(); for (const p of ["incari", "game", "screenshots"]) d = await d.getDirectoryHandle(p); let count = 0; for await (const [name] of d.entries()) { if (name.endsWith(".png")) count++; } console.log("[check] screenshots: " + count); return count > 0; })()
|
||||
@@ -0,0 +1,63 @@
|
||||
# ADR 0055: the built-in packs and Old Textures in the page. Programmer Art and High Contrast are
|
||||
# fetched at start and listed in the Resource Packs screen. Selecting Programmer Art there reloads
|
||||
# the resources with its zip and turns Old Textures on; turning the module off and on in the module
|
||||
# menu takes the pack out and puts it back. Then a new world in the old textures. No server
|
||||
# needed. Positions are for the 1280x577 viewport (GUI scale 2, 640x288).
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/old-textures.steps
|
||||
|
||||
# The packs' fetch is logged before the steps start ("Assets: fetched 2 files (705 KB)"); the
|
||||
# reload with programmer_art below shows its zip was there.
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
# Options (the left half of the column's last row), Resource Packs.
|
||||
click:0.133,0.691
|
||||
sleep:1500
|
||||
click:0.376,0.598
|
||||
sleep:2500
|
||||
shot:build/browser-checks/old-textures-packs.png
|
||||
# Programmer Art's icon (the second available pack) moves it to Selected; Done reloads with it.
|
||||
move:0.195,0.41
|
||||
sleep:300
|
||||
click:0.195,0.41
|
||||
sleep:1000
|
||||
shot:build/browser-checks/old-textures-selected.png
|
||||
click:0.623,0.945
|
||||
wait:.*Reloading ResourceManager.*programmer_art.*
|
||||
sleep:8000
|
||||
assert:window.incariStorage.read('/incari/game/options.txt').then(t => t !== null && t.includes('"programmer_art"'))
|
||||
waitfor:window.incariStorage.read('/incari/game/incari/modules/profiles/Default.json').then(t => t !== null && JSON.parse(t).modules.oldtextures.enabled === true)
|
||||
# Back to the title screen.
|
||||
key:Escape
|
||||
sleep:2000
|
||||
shot:build/browser-checks/old-textures-title.png
|
||||
|
||||
# The module menu: Old Textures off takes the pack out.
|
||||
click:0.2,0.604
|
||||
sleep:1500
|
||||
click:0.40,0.125
|
||||
sleep:600
|
||||
type:Old Textures
|
||||
sleep:400
|
||||
shot:build/browser-checks/old-textures-module.png
|
||||
click:0.545,0.215
|
||||
wait:.*Reloading ResourceManager.*
|
||||
sleep:8000
|
||||
assert:window.incariStorage.read('/incari/game/options.txt').then(t => t !== null && !t.includes('"programmer_art"'))
|
||||
# And on again puts it back.
|
||||
click:0.545,0.215
|
||||
wait:.*Reloading ResourceManager.*programmer_art.*
|
||||
sleep:8000
|
||||
assert:window.incariStorage.read('/incari/game/options.txt').then(t => t !== null && t.includes('"programmer_art"'))
|
||||
key:Escape
|
||||
sleep:1500
|
||||
|
||||
# Singleplayer, Create New World with the defaults, in the old textures.
|
||||
click:0.2,0.43
|
||||
sleep:4000
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:10000
|
||||
shot:build/browser-checks/old-textures-world.png
|
||||
@@ -0,0 +1,133 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
A stand-in for an Eagler player sharing a world through a relay (ADR 0019), for
|
||||
relay-join.steps: opened in headless Chromium beside the game's page, it shares a "world" on the
|
||||
relay given as ?relay=ws://..., prints its join code to the console ("incari-relay-code: ..."),
|
||||
accepts one client over WebRTC, answers its login as a shared world's host does (1.8, with
|
||||
Eagler's login changes), sends the join and a chat message, and keeps the connection alive.
|
||||
Nothing of a game runs here: just enough packets for the client to reach the world and show chat.
|
||||
-->
|
||||
<meta charset="utf-8">
|
||||
<title>Incari relay host (test)</title>
|
||||
<script>
|
||||
'use strict';
|
||||
const params = new URLSearchParams(location.search);
|
||||
const relayUrl = params.get('relay') || 'ws://127.0.0.1:6699/';
|
||||
const log = (...a) => console.log('incari-relay-host:', ...a);
|
||||
|
||||
// --- Relay messages ------------------------------------------------------------------------
|
||||
const ascii8 = (s) => [s.length, ...Array.from(s, (c) => c.charCodeAt(0))];
|
||||
const bytes16 = (s) => [s.length >> 8, s.length & 255, ...Array.from(s, (c) => c.charCodeAt(0))];
|
||||
function readRelay(buf) {
|
||||
const b = new Uint8Array(buf); let i = 1;
|
||||
const a8 = () => { const n = b[i++]; const s = String.fromCharCode(...b.slice(i, i + n)); i += n; return s; };
|
||||
const a16 = () => { const n = (b[i] << 8) | b[i + 1]; i += 2; const s = String.fromCharCode(...b.slice(i, i + n)); i += n; return s; };
|
||||
switch (b[0]) {
|
||||
case 0x00: { const type = b[i++]; const version = b[i++]; return { id: 0, type, version, code: a8() }; }
|
||||
case 0x01: { const n = (b[1] << 8) | b[2]; i = 3; const servers = [];
|
||||
for (let k = 0; k < n; k++) { const t = String.fromCharCode(b[i++]); const url = a16(); const u = a8(); const p = a8();
|
||||
servers.push(t === 'T' ? { urls: url, username: u, credential: p } : { urls: url }); }
|
||||
return { id: 1, servers }; }
|
||||
case 0x02: return { id: 2, client: a8() };
|
||||
case 0x03: return { id: 3, peer: a8(), text: a16() };
|
||||
case 0x04: return { id: 4, peer: a8(), text: a16() };
|
||||
case 0x05: return { id: 5, client: a8() };
|
||||
case 0x06: return { id: 6, client: a8() };
|
||||
case 0xff: return { id: 255, code: b[1], text: (i = 2, a16()) };
|
||||
default: return { id: b[0] };
|
||||
}
|
||||
}
|
||||
|
||||
// --- 1.8 packets, as the host's integrated server writes them --------------------------------
|
||||
function varint(v) { const out = []; do { let t = v & 0x7f; v >>>= 7; if (v) t |= 0x80; out.push(t); } while (v); return out; }
|
||||
function str(s) { const u = new TextEncoder().encode(s); return [...varint(u.length), ...u]; }
|
||||
function i32(v) { return [(v >>> 24) & 255, (v >>> 16) & 255, (v >>> 8) & 255, v & 255]; }
|
||||
function f64(v) { const d = new DataView(new ArrayBuffer(8)); d.setFloat64(0, v); return [...new Uint8Array(d.buffer)]; }
|
||||
function f32(v) { const d = new DataView(new ArrayBuffer(4)); d.setFloat32(0, v); return [...new Uint8Array(d.buffer)]; }
|
||||
// A whole packet on the data channel: the "whole" kind byte, then the packet.
|
||||
function packet(id, body) { return new Uint8Array([0, ...varint(id), ...body]); }
|
||||
function readVarint(b, at) { let v = 0, s = 0, x; do { x = b[at.i++]; v |= (x & 0x7f) << s; s += 7; } while (x & 0x80); return v; }
|
||||
|
||||
let channel = null;
|
||||
function onPacket(b) {
|
||||
const at = { i: 0 };
|
||||
const id = readVarint(b, at);
|
||||
if (!onPacket.loggedIn) {
|
||||
if (id !== 0) { log('expected Login Start, got', id); return; }
|
||||
const n = readVarint(b, at);
|
||||
const name = new TextDecoder().decode(b.slice(at.i, at.i + n)); at.i += n;
|
||||
const skin = readVarint(b, at); at.i += skin;
|
||||
const cape = readVarint(b, at); at.i += cape;
|
||||
const protocols = readVarint(b, at); at.i += protocols;
|
||||
const brandBytes = b.length - at.i;
|
||||
log('login from', name, 'skin', skin, 'bytes, cape', cape, 'bytes, protocols', protocols, 'bytes, brand', brandBytes, 'bytes');
|
||||
onPacket.loggedIn = true;
|
||||
const uuid = '00000000-0000-3000-8000-' + Array.from(name).map((c) => c.charCodeAt(0).toString(16)).join('').padEnd(12, '0').slice(0, 12);
|
||||
// Login Success, ending with the Eagler protocol chosen (4), as the host sends it.
|
||||
channel.send(packet(0x02, [...str(uuid), ...str(name), 0, 4]));
|
||||
// Join Game: entity 1, creative, overworld, peaceful, 8 players, flat, no reduced debug.
|
||||
channel.send(packet(0x01, [...i32(1), 1, 0, 0, 8, ...str('flat'), 0]));
|
||||
channel.send(packet(0x05, [0, 0, 0, 1, 0, 0, 0, 0])); // spawn position 0,64,0: y sits at bit 26
|
||||
channel.send(packet(0x08, [...f64(0.5), ...f64(64), ...f64(0.5), ...f32(0), ...f32(0), 0]));
|
||||
setTimeout(() => {
|
||||
channel.send(packet(0x02, [...str('{"text":"incari-relay-check"}'), 0]));
|
||||
log('sent chat');
|
||||
}, 3000);
|
||||
setInterval(() => channel.send(packet(0x00, varint(Date.now() & 0xffff))), 5000);
|
||||
}
|
||||
}
|
||||
|
||||
// --- Sharing -------------------------------------------------------------------------------
|
||||
let iceServers = [];
|
||||
const peers = new Map();
|
||||
const ws = new WebSocket(relayUrl);
|
||||
ws.binaryType = 'arraybuffer';
|
||||
ws.onopen = () => ws.send(new Uint8Array([0x00, 0x01, 0x01, ...ascii8('Incari check;0')]));
|
||||
ws.onclose = (e) => log('relay closed', e.code);
|
||||
ws.onmessage = (e) => {
|
||||
const m = readRelay(e.data);
|
||||
if (m.id === 0) { log('incari-relay-code:', m.code); console.log('incari-relay-code: ' + m.code); }
|
||||
else if (m.id === 1) { iceServers = []; log('ICE servers', m.servers.length); }
|
||||
else if (m.id === 2) { newClient(m.client); }
|
||||
else if (m.id === 4) { const p = peers.get(m.peer); if (p) p.description(m.text); }
|
||||
else if (m.id === 3) { const p = peers.get(m.peer); if (p) p.candidates(m.text); }
|
||||
else if (m.id === 5) { log('client', m.client, 'succeeded'); }
|
||||
else if (m.id === 255) { log('relay error', m.code, m.text); }
|
||||
};
|
||||
|
||||
function newClient(id) {
|
||||
log('new client', id);
|
||||
const pc = new RTCPeerConnection({ iceServers });
|
||||
const mine = [];
|
||||
let sent = false;
|
||||
const sendCandidates = () => {
|
||||
if (sent) return; sent = true;
|
||||
const json = JSON.stringify(mine);
|
||||
ws.send(new Uint8Array([0x03, ...ascii8(id), ...bytes16(json)]));
|
||||
};
|
||||
pc.onicecandidate = (e) => {
|
||||
if (e.candidate) mine.push({ sdpMLineIndex: String(e.candidate.sdpMLineIndex), candidate: e.candidate.candidate });
|
||||
else if (peers.get(id).gotTheirs) sendCandidates();
|
||||
};
|
||||
pc.ondatachannel = (e) => {
|
||||
channel = e.channel; channel.binaryType = 'arraybuffer';
|
||||
channel.onopen = () => log('data channel open');
|
||||
channel.onmessage = (ev) => { const b = new Uint8Array(ev.data); if (b[0] === 0) onPacket(b.slice(1)); };
|
||||
channel.onclose = () => log('data channel closed');
|
||||
};
|
||||
peers.set(id, {
|
||||
gotTheirs: false,
|
||||
description: async (json) => {
|
||||
await pc.setRemoteDescription(JSON.parse(json));
|
||||
const answer = await pc.createAnswer();
|
||||
await pc.setLocalDescription(answer);
|
||||
ws.send(new Uint8Array([0x04, ...ascii8(id), ...bytes16(JSON.stringify(pc.localDescription))]));
|
||||
},
|
||||
candidates: async (json) => {
|
||||
for (const c of JSON.parse(json)) await pc.addIceCandidate({ candidate: c.candidate, sdpMLineIndex: Number(c.sdpMLineIndex) });
|
||||
peers.get(id).gotTheirs = true;
|
||||
if (pc.iceGatheringState === 'complete') sendCandidates(); else setTimeout(sendCandidates, 2000);
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,29 @@
|
||||
# Joining a world shared through an Eagler relay. Needs the relay (EaglerSPRelay, local) and
|
||||
# relay-host.html open in another headless Chromium, which prints the world's code; the command
|
||||
# that runs this script puts the code in place of CODE (README.md, "Shared worlds").
|
||||
|
||||
# The first-run accessibility screen: Continue.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
sleep:2000
|
||||
# Title screen: Multiplayer; the first visit's warning: Proceed.
|
||||
click:0.5,0.5
|
||||
sleep:1500
|
||||
click:0.375,0.688
|
||||
sleep:1500
|
||||
shot:build/browser-checks/relay-multiplayer.png
|
||||
# The multiplayer screen's "Shared..." button, bottom row, fourth.
|
||||
click:0.621,0.938
|
||||
sleep:1500
|
||||
shot:build/browser-checks/relay-screen.png
|
||||
# The relay field: select what's there, type the local relay.
|
||||
click:0.5,0.277
|
||||
key:Control+KeyA
|
||||
type:ws://127.0.0.1:6699/
|
||||
click:0.5,0.416
|
||||
type:CODE
|
||||
shot:build/browser-checks/relay-filled.png
|
||||
# Join.
|
||||
click:0.42,0.553
|
||||
wait:.*\[CHAT\] incari-relay-check.*
|
||||
shot:build/browser-checks/relay-joined.png
|
||||
@@ -0,0 +1,26 @@
|
||||
# A screenshot taken in a world (F2) downloads as a PNG when the player clicks its name in
|
||||
# the chat message, as it opens in the file manager on a desktop. Needs a world: a vanilla server
|
||||
# behind tools/wsbridge, as server-join.steps (the browser-checks README has the setup), joined
|
||||
# straight away with ?server=. Positions are for the 1280x577 viewport.
|
||||
#
|
||||
# INCARI_RCON_PASSWORD=<password> ./gradlew :app-web:browserCheck \
|
||||
# "-Pbrowser.query=server=ws://127.0.0.1:8817&name=IncariWeb" -Pbrowser.rcon=127.0.0.1:25592 \
|
||||
# -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/screenshot.steps
|
||||
|
||||
downloads:build/browser-checks/downloads
|
||||
rcon:whitelist off
|
||||
rcon:time set day
|
||||
# The first-run accessibility screen: Continue. Quick play connects after it.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
rconwait:list => IncariWeb
|
||||
sleep:6000
|
||||
key:F2
|
||||
wait:.*\[CHAT\] Saved screenshot as .*\.png.*
|
||||
sleep:1000
|
||||
# Open chat, and click the file name in the message ("Saved screenshot as <name>").
|
||||
key:KeyT
|
||||
sleep:1000
|
||||
shot:build/browser-checks/screenshot-chat.png
|
||||
click:0.28,0.848
|
||||
download:.*\.png
|
||||
@@ -0,0 +1,71 @@
|
||||
# The browser build joins a vanilla 26.3 server over ws://, through the dev bridge
|
||||
# (tools/wsbridge on 127.0.0.1:8817), plays, changes dimension there and back, is transferred to
|
||||
# the same server (disconnecting and reconnecting by itself), is kicked, and joins again through
|
||||
# the multiplayer screen. Each check reads the page's console, the clipboard (F3+C copies the
|
||||
# client's own position and dimension), or the server's answer over RCON. The page runs with
|
||||
# ?server=ws://127.0.0.1:8817&name=IncariWeb; README.md ("Server join") has the setup and command.
|
||||
|
||||
# A fresh 26.3 server has its whitelist on; and on a server that has run a while, night falls and
|
||||
# mobs can kill the player mid-check.
|
||||
rcon:whitelist off
|
||||
rcon:difficulty peaceful
|
||||
rcon:time set day
|
||||
|
||||
# The first-run accessibility screen: Continue. Quick play connects after it.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
wait:.*Connecting to 127\.0\.0\.1, 8817.*
|
||||
|
||||
# --- Joined: the server lists the player, and a system message reaches the client's chat ---
|
||||
rconwait:list => IncariWeb
|
||||
# The teleports below land in rock, lava or the air: in creative nothing there can kill the player,
|
||||
# which would otherwise be saved dead and fail the next run's teleports.
|
||||
rcon:gamemode creative IncariWeb
|
||||
sleep:3000
|
||||
rcon:tellraw IncariWeb "incari-check-chat"
|
||||
wait:.*\[CHAT\] incari-check-chat.*
|
||||
shot:build/browser-checks/server-joined.png
|
||||
|
||||
# --- To the Nether and back, as the client itself sees it ---
|
||||
clipboard:-
|
||||
rcon:execute in minecraft:the_nether run tp IncariWeb 0 100 0
|
||||
rconwait:data get entity IncariWeb Dimension => the_nether
|
||||
sleep:4000
|
||||
key:F3+KeyC
|
||||
waitfor:navigator.clipboard.readText().then(text => text.startsWith('/execute in minecraft:the_nether '))
|
||||
shot:build/browser-checks/server-nether.png
|
||||
rcon:execute in minecraft:overworld run tp IncariWeb 0 -60 0
|
||||
rconwait:data get entity IncariWeb Dimension => overworld
|
||||
sleep:4000
|
||||
key:F3+KeyC
|
||||
waitfor:navigator.clipboard.readText().then(text => text.startsWith('/execute in minecraft:overworld '))
|
||||
|
||||
# --- Transfer: the server names a ws:// address; the client disconnects and reconnects itself ---
|
||||
rcon:transfer "ws://127.0.0.1:8817" 25565 IncariWeb
|
||||
wait:.*Client disconnected with reason: Transferred to another server.*
|
||||
wait:.*Connecting to 127\.0\.0\.1, 8817.*
|
||||
rconwait:list => IncariWeb
|
||||
sleep:3000
|
||||
rcon:tellraw IncariWeb "incari-check-transferred"
|
||||
wait:.*\[CHAT\] incari-check-transferred.*
|
||||
|
||||
# --- Disconnect and reconnect: kicked, back to the server list, Direct Connection ---
|
||||
rcon:kick IncariWeb incari-check-kick
|
||||
wait:.*Client disconnected with reason: incari-check-kick.*
|
||||
rconwait:list => There are 0
|
||||
sleep:1000
|
||||
shot:build/browser-checks/server-kicked.png
|
||||
# "Back to Server List", then "Direct Connection" (the list itself is empty: the check's browser
|
||||
# starts with a new profile, so there's no stored servers.dat).
|
||||
click:0.5,0.598
|
||||
sleep:2000
|
||||
click:0.5,0.854
|
||||
sleep:1500
|
||||
type:ws://127.0.0.1:8817
|
||||
key:Enter
|
||||
wait:.*Connecting to 127\.0\.0\.1, 8817.*
|
||||
rconwait:list => IncariWeb
|
||||
sleep:3000
|
||||
rcon:tellraw IncariWeb "incari-check-rejoined"
|
||||
wait:.*\[CHAT\] incari-check-rejoined.*
|
||||
shot:build/browser-checks/server-rejoined.png
|
||||
@@ -0,0 +1,14 @@
|
||||
# ADR 0062: a guest joining an Incari player's shared world (?shared=<relay>|<code>, the code from
|
||||
# share-host.steps' console): joined as it is, no Via; the world arrives and the guest plays in it.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
wait:.*Loaded \d+ advancements.*
|
||||
sleep:20000
|
||||
shot:build/browser-checks/share-guest-joined.png
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:hello from the guest
|
||||
key:Enter
|
||||
wait:.*\[CHAT\] <Guest> hello from the guest.*
|
||||
sleep:2000
|
||||
shot:build/browser-checks/share-guest-chat.png
|
||||
@@ -0,0 +1,10 @@
|
||||
# ADR 0062: the host of a shared world. Run beside share-guest.steps and the local relay
|
||||
# (README.md, "Shared worlds, hosted"): the quick world is shared on the relay as soon as it's open
|
||||
# (?share=), the code goes to the console, and a guest joins.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
wait:.*The world is shared on .* with the code .*
|
||||
shot:build/browser-checks/share-host-shared.png
|
||||
wait:.*\[CHAT\] Guest joined the game.*
|
||||
sleep:90000
|
||||
shot:build/browser-checks/share-host-guest.png
|
||||
@@ -0,0 +1,24 @@
|
||||
# ADR 0038: Open to LAN with singleplayer's server on the page. A page can't listen for
|
||||
# connections, so the game says it couldn't host instead of failing. (With the server in a worker,
|
||||
# the pause menu has no World Options yet: ADR 0039.) Positions are for the 1280x577 viewport.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 "-Pbrowser.query=name=Player&singleplayer=page" \
|
||||
# -Pbrowser.steps=@browser-checks/singleplayer-lan.steps
|
||||
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
click:0.5,0.449
|
||||
sleep:4000
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:8000
|
||||
# World Options, LAN on, Apply: back to the pause menu, and the game says it couldn't host.
|
||||
key:Escape
|
||||
sleep:1500
|
||||
click:0.583,0.561
|
||||
sleep:2000
|
||||
click:0.375,0.723
|
||||
sleep:500
|
||||
click:0.375,0.945
|
||||
wait:.*\[CHAT\] Unable to host local game.*
|
||||
@@ -0,0 +1,90 @@
|
||||
# ADR 0038, ADR 0039: singleplayer, its server in a worker (or on the page with
|
||||
# -Pbrowser.query=name=Player&singleplayer=page). Creates a world with the defaults, plays in it,
|
||||
# turns Allow Commands on in World Options and runs a command, saves and quits; checks that every saved chunk inflates with the browser's own DecompressionStream; plays the world again;
|
||||
# downloads it through Edit World's folder button, drops the download on the world list (a second
|
||||
# copy is imported), and opens Delete. No server needed. Positions are for the 1280x577 viewport.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=400 -Pbrowser.steps=@browser-checks/singleplayer.steps
|
||||
|
||||
downloads:build/browser-checks/downloads
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue. Then Singleplayer; with no worlds yet it opens
|
||||
# Create New World, and Create takes the defaults.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
click:0.5,0.449
|
||||
sleep:4000
|
||||
shot:build/browser-checks/singleplayer-create.png
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:8000
|
||||
shot:build/browser-checks/singleplayer-world.png
|
||||
|
||||
# --- World Options: Allow Commands on, Apply; then a command works ---
|
||||
key:Escape
|
||||
sleep:1500
|
||||
click:0.583,0.561
|
||||
sleep:2000
|
||||
shot:build/browser-checks/singleplayer-world-options.png
|
||||
click:0.376,0.414
|
||||
sleep:500
|
||||
click:0.375,0.945
|
||||
sleep:2000
|
||||
key:Escape
|
||||
sleep:1000
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/time set day
|
||||
key:Enter
|
||||
wait:.*\[CHAT\] Set minecraft:overworld to time marker minecraft:day.*
|
||||
sleep:1000
|
||||
key:Escape
|
||||
sleep:1500
|
||||
|
||||
# --- Save and Quit to Title, then every saved chunk reads back whole ---
|
||||
click:0.5,0.643
|
||||
wait:.*Saving chunks for level 'ServerLevel\[New World\]'/minecraft:the_nether.*
|
||||
sleep:4000
|
||||
until:window.incariStorage.pending() === 0
|
||||
assert:(async () => { const root = await navigator.storage.getDirectory(); let d = root; for (const p of ["incari", "game", "saves", "New World", "dimensions", "minecraft", "overworld"]) d = await d.getDirectoryHandle(p); let ok = 0, bad = 0; for (const sub of ["region", "entities"]) { const s = await d.getDirectoryHandle(sub); for await (const [, h] of s.entries()) { const buf = await (await h.getFile()).arrayBuffer(); const v = new DataView(buf); for (let i = 0; i < 1024; i++) { const off = v.getUint32(i * 4); if (!off) continue; const pos = (off >>> 8) * 4096; const len = v.getUint32(pos); try { await new Response(new Blob([new Uint8Array(buf, pos + 5, len - 1)]).stream().pipeThrough(new DecompressionStream("deflate"))).arrayBuffer(); ok++; } catch (e) { bad++; } } } } console.log("[check] saved chunks: " + ok + " whole, " + bad + " broken"); return ok > 0 && bad === 0; })()
|
||||
|
||||
# --- Play it again from the world list ---
|
||||
click:0.5,0.449
|
||||
sleep:3000
|
||||
shot:build/browser-checks/singleplayer-list.png
|
||||
click:0.5,0.235
|
||||
sleep:500
|
||||
click:0.375,0.854
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:5000
|
||||
key:Escape
|
||||
sleep:1500
|
||||
click:0.5,0.643
|
||||
wait:.*Saving chunks for level 'ServerLevel\[New World\]'/minecraft:the_nether.*
|
||||
sleep:4000
|
||||
|
||||
# --- Edit World, Open World Folder: the page downloads the world as a zip ---
|
||||
click:0.5,0.449
|
||||
sleep:3000
|
||||
click:0.5,0.235
|
||||
sleep:500
|
||||
click:0.313,0.937
|
||||
sleep:2000
|
||||
click:0.5,0.436
|
||||
download:New World\.zip
|
||||
sleep:1000
|
||||
key:Escape
|
||||
sleep:2000
|
||||
|
||||
# --- The zip dropped on the world list comes in as a second world ---
|
||||
drop:0.5,0.5,build/browser-checks/downloads/New World.zip
|
||||
waitfor:window.incariStorage.list('/incari/game/saves/New World (1)').then(l => l.includes('/incari/game/saves/New World (1)/level.dat'))
|
||||
sleep:1000
|
||||
shot:build/browser-checks/singleplayer-imported.png
|
||||
|
||||
# --- Delete asks first ---
|
||||
click:0.5,0.235
|
||||
sleep:500
|
||||
click:0.437,0.937
|
||||
sleep:2000
|
||||
shot:build/browser-checks/singleplayer-delete.png
|
||||
@@ -0,0 +1,900 @@
|
||||
# A 30-minute session on a vanilla server that keeps the client loading terrain, and the
|
||||
# threading audit's gate: no frame in which the render thread spent 50 ms or more waiting (blocking
|
||||
# calls on it; the page's frame monitor, platform-web's Dom.installFrameMonitor, adds up each frame's
|
||||
# waits). Frames over 50 ms from work (meshing, packets), with or without a short wait in them, are
|
||||
# reported, not failed: that's the benchmark's job.
|
||||
# Every minute the player is sent to fresh terrain and turns full circle, and the mouse moves with
|
||||
# each turn so the game never counts the player as idle (it throttles to 30 and then 10 fps); the
|
||||
# page's counts are printed as it goes. Setup as for server-join.steps (README.md, "Server join"); run with
|
||||
#
|
||||
# INCARI_RCON_PASSWORD=<password> ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl \
|
||||
# "-Pbrowser.query=server=ws://127.0.0.1:8817&name=IncariWeb" -Pbrowser.rcon=127.0.0.1:25592 \
|
||||
# -Pbrowser.seconds=2100 -Pbrowser.steps=@browser-checks/soak.steps
|
||||
|
||||
rcon:whitelist off
|
||||
rcon:difficulty peaceful
|
||||
rcon:time set day
|
||||
rcon:gamerule doDaylightCycle false
|
||||
rcon:gamerule doWeatherCycle false
|
||||
|
||||
# The first-run accessibility screen: Continue. Quick play connects after it.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
wait:.*Connecting to 127\.0\.0\.1, 8817.*
|
||||
rconwait:list => IncariWeb
|
||||
sleep:5000
|
||||
# Counted from here: the join itself is loading, not play.
|
||||
eval:(function() { var f = window.__incariFrames; f.frames = 0; f.waiting = 0; f.waitStalls = 0; f.worstWait = 0; f.slow = 0; f.slowWaiting = 0; f.worst = 0; f.worstWaiting = 0; return 'counting'; })()
|
||||
# Minute 1
|
||||
rcon:spreadplayers 2000 2000 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 2
|
||||
rcon:spreadplayers 2700 2000 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 3
|
||||
rcon:spreadplayers 3400 2000 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 4
|
||||
rcon:spreadplayers 4100 2000 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 5
|
||||
rcon:spreadplayers 4800 2000 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 6
|
||||
rcon:spreadplayers 5500 2000 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 7
|
||||
rcon:spreadplayers 2000 2700 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 8
|
||||
rcon:spreadplayers 2700 2700 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 9
|
||||
rcon:spreadplayers 3400 2700 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 10
|
||||
rcon:spreadplayers 4100 2700 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 11
|
||||
rcon:spreadplayers 4800 2700 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 12
|
||||
rcon:spreadplayers 5500 2700 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 13
|
||||
rcon:spreadplayers 2000 3400 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 14
|
||||
rcon:spreadplayers 2700 3400 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 15
|
||||
rcon:spreadplayers 3400 3400 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 16
|
||||
rcon:spreadplayers 4100 3400 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 17
|
||||
rcon:spreadplayers 4800 3400 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 18
|
||||
rcon:spreadplayers 5500 3400 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 19
|
||||
rcon:spreadplayers 2000 4100 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 20
|
||||
rcon:spreadplayers 2700 4100 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 21
|
||||
rcon:spreadplayers 3400 4100 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 22
|
||||
rcon:spreadplayers 4100 4100 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 23
|
||||
rcon:spreadplayers 4800 4100 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 24
|
||||
rcon:spreadplayers 5500 4100 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 25
|
||||
rcon:spreadplayers 2000 4800 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 26
|
||||
rcon:spreadplayers 2700 4800 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 27
|
||||
rcon:spreadplayers 3400 4800 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 28
|
||||
rcon:spreadplayers 4100 4800 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 29
|
||||
rcon:spreadplayers 4800 4800 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
# Minute 30
|
||||
rcon:spreadplayers 5500 4800 0 1 false IncariWeb
|
||||
sleep:20000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.4,0.5
|
||||
sleep:4000
|
||||
rcon:execute as IncariWeb at @s run tp @s ~ ~ ~ ~45 ~
|
||||
move:0.6,0.5
|
||||
sleep:4000
|
||||
sleep:8000
|
||||
eval:JSON.stringify(window.__incariFrames, ['frames', 'waiting', 'waitStalls', 'worstWait', 'slow', 'slowWaiting', 'worst', 'worstWaiting'])
|
||||
shot:build/browser-checks/soak.png
|
||||
# The gate: no frame in which the render thread waited 50 ms or more.
|
||||
assert:window.__incariFrames.waitStalls === 0
|
||||
@@ -0,0 +1,42 @@
|
||||
# F1 of the 2026-10-12 batch: sounds whose download fails at first still play. Every sound's first
|
||||
# two fetches fail as a dropped connection would; the loader's retries get the third. In a quick
|
||||
# world (-Pbrowser.query=name=Player&world=Retry&seed=1); no server needed.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=240 \
|
||||
# "-Pbrowser.query=name=Player&world=Retry&seed=1" -Pbrowser.steps=@browser-checks/sound-retry.steps
|
||||
|
||||
sleep:4000
|
||||
eval:(() => { const of = window.fetch; const tries = new Map(); globalThis.fetchLog = []; window.fetch = (u, ...a) => { const url = String(u); if (!url.includes('objects')) return of(u, ...a); const n = (tries.get(url) || 0) + 1; tries.set(url, n); if (n <= 2) { fetchLog.push('fail ' + n); return Promise.reject(new TypeError('Failed to fetch')); } return of(u, ...a).then(r => { fetchLog.push(r.status + ' on try ' + n); return r; }); }; return 'failing each sound twice'; })()
|
||||
# The first-run accessibility screen: Continue (also the gesture the audio waits for).
|
||||
click:0.5,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:6000
|
||||
eval:globalThis.before = incariAudio.buffersStarted
|
||||
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/fill ~-4 ~ ~-4 ~4 ~4 ~4 minecraft:air
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/fill ~-4 ~-3 ~-4 ~4 ~-1 ~4 minecraft:stone
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/gamemode creative
|
||||
key:Enter
|
||||
sleep:800
|
||||
key:KeyT
|
||||
sleep:800
|
||||
type:/tp @s ~ ~ ~ 0 90
|
||||
key:Enter
|
||||
sleep:1500
|
||||
click:0.5,0.5
|
||||
sleep:1500
|
||||
click:0.5,0.5
|
||||
sleep:1500
|
||||
click:0.5,0.5
|
||||
sleep:3000
|
||||
eval:'buffers started: ' + (incariAudio.buffersStarted - before) + ', fetches: ' + JSON.stringify(fetchLog)
|
||||
@@ -0,0 +1,106 @@
|
||||
# Settings, servers and resource packs survive a reload. Changes an option (FOV), adds a
|
||||
# server and imports a resource pack (made by the check from scratch) through "Open Pack Folder"'s
|
||||
# file picker, reloads the page, and checks that the page loaded all three from storage and the
|
||||
# game uses them. Also: F2's screenshot is stored as a PNG. Positions are for the 1280x577
|
||||
# viewport headless Chromium gives a 1280x720 window.
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.seconds=400 -Pbrowser.steps=@browser-checks/storage.steps
|
||||
|
||||
# A new profile: nothing stored yet, and the jar comes from the network.
|
||||
sleep:4000
|
||||
assert:window.incariStorage.read('/incari/game/servers.dat').then(t => t === null)
|
||||
# The first-run accessibility screen: Continue.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
shot:build/browser-checks/storage-title-before.png
|
||||
|
||||
# --- An option: FOV, on the Options screen, dragged right of Normal ---
|
||||
click:0.42,0.782
|
||||
sleep:1500
|
||||
click:0.48,0.133
|
||||
sleep:500
|
||||
shot:build/browser-checks/storage-fov.png
|
||||
# Done saves options.txt.
|
||||
click:0.5,0.945
|
||||
sleep:1500
|
||||
waitfor:window.incariStorage.read('/incari/game/options.txt').then(t => t !== null && /\nfov:0\.[0-9]*[1-9]/.test(t))
|
||||
|
||||
# --- A resource pack: Options, Resource Packs, Open Pack Folder, pick the pack, Yes to copy it ---
|
||||
pack:build/browser-checks/incari-check-pack.zip
|
||||
click:0.42,0.782
|
||||
sleep:1500
|
||||
click:0.376,0.598
|
||||
sleep:2000
|
||||
choose:0.376,0.945,build/browser-checks/incari-check-pack.zip
|
||||
sleep:2000
|
||||
shot:build/browser-checks/storage-pack-confirm.png
|
||||
click:0.38,0.585
|
||||
sleep:2000
|
||||
shot:build/browser-checks/storage-pack-available.png
|
||||
waitfor:window.incariStorage.read('/incari/game/resourcepacks/incari-check-pack.zip').then(t => t !== null && t.startsWith('PK'))
|
||||
# Select it: its icon's arrow, at the top of the Available list.
|
||||
move:0.19,0.277
|
||||
sleep:300
|
||||
click:0.19,0.277
|
||||
sleep:1000
|
||||
shot:build/browser-checks/storage-pack-selected.png
|
||||
# Done reloads resources with the pack, and saves it in options.txt.
|
||||
click:0.623,0.945
|
||||
wait:.*Reloading ResourceManager.*incari-check-pack.*
|
||||
sleep:4000
|
||||
waitfor:window.incariStorage.read('/incari/game/options.txt').then(t => t !== null && t.includes('file/incari-check-pack.zip'))
|
||||
key:Escape
|
||||
sleep:1500
|
||||
|
||||
# --- A server: Multiplayer, Proceed on the safety screen, Add Server ---
|
||||
click:0.5,0.534
|
||||
sleep:1500
|
||||
click:0.376,0.688
|
||||
sleep:1500
|
||||
click:0.662,0.854
|
||||
sleep:1500
|
||||
click:0.5,0.262
|
||||
key:Control+KeyA
|
||||
type:Incari Check Server
|
||||
click:0.5,0.4
|
||||
type:ws://127.0.0.1:18199
|
||||
sleep:300
|
||||
click:0.5,0.678
|
||||
sleep:2000
|
||||
shot:build/browser-checks/storage-servers-before.png
|
||||
waitfor:window.incariStorage.read('/incari/game/servers.dat').then(t => t !== null && t.includes('Incari Check Server') && t.includes('ws://127.0.0.1:18199'))
|
||||
key:Escape
|
||||
sleep:1500
|
||||
|
||||
# --- A screenshot (F2), stored as a PNG under screenshots/ ---
|
||||
key:F2
|
||||
sleep:2000
|
||||
waitfor:window.incariStorage.list('/incari/game/screenshots').then(p => p.length === 1 && p[0].endsWith('.png'))
|
||||
assert:window.incariStorage.list('/incari/game/screenshots').then(p => window.incariStorage.read(p[0])).then(t => t.startsWith('\ufffdPNG'))
|
||||
|
||||
# --- Everything is stored before the reload ---
|
||||
waitfor:window.incariStorage.pending() === 0
|
||||
reload
|
||||
wait:\[Incari\] Storage: opfs, [1-9][0-9]* files.*
|
||||
wait:\[Incari\] Client jar: .* from storage.*
|
||||
# The game started with the pack (resource reloads name the packs in use).
|
||||
wait:.*Reloading ResourceManager.*incari-check-pack.*
|
||||
wait:\[Incari\] Main loop running.*
|
||||
sleep:4000
|
||||
# No accessibility screen this time: options.txt said it was done. The title screen shows the
|
||||
# pack's name for the Singleplayer button.
|
||||
shot:build/browser-checks/storage-title-after.png
|
||||
assert:window.incariStorage.read('/incari/game/options.txt').then(t => /\nfov:0\.[0-9]*[1-9]/.test(t) && t.includes('file/incari-check-pack.zip'))
|
||||
# Options shows the FOV that was set.
|
||||
click:0.42,0.782
|
||||
sleep:1500
|
||||
shot:build/browser-checks/storage-fov-after.png
|
||||
key:Escape
|
||||
sleep:1500
|
||||
# The server list has the server.
|
||||
click:0.5,0.534
|
||||
sleep:1500
|
||||
click:0.376,0.688
|
||||
sleep:2500
|
||||
shot:build/browser-checks/storage-servers-after.png
|
||||
assert:window.incariStorage.read('/incari/game/servers.dat').then(t => t !== null && t.includes('Incari Check Server'))
|
||||
@@ -0,0 +1,43 @@
|
||||
# The browser build joins a server of another version through Via, over ws://: a vanilla
|
||||
# 1.8.9, 1.12.2 or 1.20.4 server behind the dev bridge (tools/wsbridge, which speaks Eagler), or a
|
||||
# real EaglerXServer in front of one. It pings nothing first: quick play's version check asks the
|
||||
# server's MOTD. Checks read the page's console and the server's answers over RCON (the backend's).
|
||||
# The page needs &via=auto: Via is off unless the join asks for it (ADR 0071). README.md ("Old
|
||||
# servers") has the setup and commands.
|
||||
|
||||
# On a server that has run a while, night falls and mobs can kill the player mid-check. (1.8 and
|
||||
# 1.12 take a number; later versions a name. The other form fails harmlessly.)
|
||||
rcon:difficulty 0
|
||||
rcon:difficulty peaceful
|
||||
rcon:time set 1000
|
||||
|
||||
# The first-run accessibility screen: Continue. Quick play connects after it, through Via.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
wait:.*Joining ws://[^ ]+ as .* through Via.*
|
||||
|
||||
# --- Joined: the server lists the player, and a system message reaches the client's chat ---
|
||||
rconwait:list => IncariWeb
|
||||
sleep:3000
|
||||
rcon:tellraw IncariWeb "incari-check-chat"
|
||||
wait:.*\[CHAT\] incari-check-chat.*
|
||||
shot:build/browser-checks/version-joined.png
|
||||
|
||||
# --- Idle for 20 s: a 1.8 server wants a movement packet every tick, which Via sends ---
|
||||
sleep:20000
|
||||
rconwait:list => IncariWeb
|
||||
rcon:tellraw IncariWeb "incari-check-still-here"
|
||||
wait:.*\[CHAT\] incari-check-still-here.*
|
||||
|
||||
# --- Kicked, then back through a reload of the page (quick play again) ---
|
||||
rcon:kick IncariWeb incari-check-kick
|
||||
wait:.*Client disconnected with reason: incari-check-kick.*
|
||||
sleep:1000
|
||||
reload:
|
||||
# The accessibility screen was answered and saved: quick play connects straight away.
|
||||
wait:.*Joining ws://[^ ]+ as .* through Via.*
|
||||
rconwait:list => IncariWeb
|
||||
sleep:3000
|
||||
rcon:tellraw IncariWeb "incari-check-rejoined"
|
||||
wait:.*\[CHAT\] incari-check-rejoined.*
|
||||
shot:build/browser-checks/version-rejoined.png
|
||||
@@ -0,0 +1,33 @@
|
||||
# Eagler voice chat between two browsers, the listener (this file with voice-talker.steps). Run both at once against EaglerXServer with its
|
||||
# voice service on, as VoiceA (-Pbrowser.query=...&name=VoiceA) and VoiceB; README.md ("Voice
|
||||
# chat") has the commands. Chromium's fake microphone plays a steady tone and grants the
|
||||
# permission, so each page turns global voice on, VoiceA holds push to talk, and VoiceB hears it.
|
||||
|
||||
rcon:difficulty 0
|
||||
rcon:time set 1000
|
||||
|
||||
# The first-run accessibility screen: Continue. Quick play joins the server.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
wait:.*Joining ws://[^ ]+ as .* through Via.*
|
||||
wait:.*The server has voice chat.*
|
||||
sleep:3000
|
||||
|
||||
# Pause menu: "Voice Chat...", then the channel button until it reads Global.
|
||||
key:Escape
|
||||
sleep:1000
|
||||
shot:build/browser-checks/voice-pause-b.png
|
||||
click:0.5,0.539
|
||||
sleep:1000
|
||||
shot:build/browser-checks/voice-screen-b.png
|
||||
click:0.375,0.173
|
||||
sleep:500
|
||||
shot:build/browser-checks/voice-global-b.png
|
||||
key:Escape
|
||||
sleep:500
|
||||
key:Escape
|
||||
sleep:500
|
||||
|
||||
# Connected by now or soon (the log line may come before a wait could see it); then VoiceA talks.
|
||||
wait:.*Voice: VoiceA is talking.*
|
||||
shot:build/browser-checks/voice-hearing-b.png
|
||||
@@ -0,0 +1,39 @@
|
||||
# Eagler voice chat between two browsers, the talker (this file with voice-listener.steps, or
|
||||
# the other way round). Run both at once against EaglerXServer with its
|
||||
# voice service on, as VoiceA (-Pbrowser.query=...&name=VoiceA) and VoiceB; README.md ("Voice
|
||||
# chat") has the commands. Chromium's fake microphone plays a steady tone and grants the
|
||||
# permission, so each page turns global voice on, VoiceA holds push to talk, and VoiceB hears it.
|
||||
|
||||
rcon:difficulty 0
|
||||
rcon:time set 1000
|
||||
|
||||
# The first-run accessibility screen: Continue. Quick play joins the server.
|
||||
sleep:4000
|
||||
click:0.5,0.945
|
||||
wait:.*Joining ws://[^ ]+ as .* through Via.*
|
||||
wait:.*The server has voice chat.*
|
||||
sleep:3000
|
||||
|
||||
# Pause menu: "Voice Chat...", then the channel button until it reads Global.
|
||||
key:Escape
|
||||
sleep:1000
|
||||
shot:build/browser-checks/voice-pause-a.png
|
||||
click:0.5,0.539
|
||||
sleep:1000
|
||||
shot:build/browser-checks/voice-screen-a.png
|
||||
click:0.375,0.173
|
||||
sleep:500
|
||||
shot:build/browser-checks/voice-global-a.png
|
||||
key:Escape
|
||||
sleep:500
|
||||
key:Escape
|
||||
sleep:500
|
||||
|
||||
# The two connect within seconds of the listener turning voice on (the log line may come before a
|
||||
# wait could see it): give it that, then hold push to talk (B) for twenty seconds.
|
||||
sleep:10000
|
||||
down:KeyB
|
||||
sleep:20000
|
||||
shot:build/browser-checks/voice-talking-a.png
|
||||
up:KeyB
|
||||
sleep:20000
|
||||
@@ -0,0 +1,66 @@
|
||||
# ADR 0051: the minimap and waypoints in the page. Creates a world, turns Minimap and Waypoints on
|
||||
# from the module menu, marks where the player stands with N and names it
|
||||
# Base, walks back from it so its label, distance and beam show ahead, opens the list with U and
|
||||
# the world map with M, and checks the world's waypoints and the explored map are stored in OPFS. No server needed. Positions are for the
|
||||
# 1280x577 viewport (GUI scale 2, 640x288).
|
||||
#
|
||||
# ./gradlew :app-web:browserCheck -Pbrowser.gpu=gl -Pbrowser.seconds=300 -Pbrowser.steps=@browser-checks/waypoints.steps
|
||||
|
||||
sleep:4000
|
||||
# The first-run accessibility screen: Continue. Then Singleplayer, Create New World with the defaults.
|
||||
click:0.5,0.945
|
||||
sleep:3000
|
||||
click:0.2,0.43
|
||||
sleep:4000
|
||||
click:0.38,0.945
|
||||
wait:.*logged in with entity id.*
|
||||
sleep:8000
|
||||
|
||||
# --- The module menu: Minimap's and Waypoints' switches (the right column's second and fourth cards) ---
|
||||
key:ShiftRight
|
||||
sleep:1500
|
||||
click:0.833,0.395
|
||||
sleep:300
|
||||
click:0.833,0.756
|
||||
sleep:300
|
||||
shot:build/browser-checks/waypoints-menu.png
|
||||
key:Escape
|
||||
sleep:4000
|
||||
shot:build/browser-checks/waypoints-minimap.png
|
||||
|
||||
# --- N: a new waypoint where the player stands, named Base and added with Enter ---
|
||||
key:KeyN
|
||||
sleep:1500
|
||||
shot:build/browser-checks/waypoints-new.png
|
||||
type:Base
|
||||
key:Enter
|
||||
sleep:800
|
||||
|
||||
# --- Back from it: its label, distance and beam ahead ---
|
||||
down:KeyS
|
||||
sleep:2500
|
||||
up:KeyS
|
||||
sleep:1500
|
||||
shot:build/browser-checks/waypoints-ahead.png
|
||||
|
||||
# --- U: the list ---
|
||||
key:KeyU
|
||||
sleep:1500
|
||||
shot:build/browser-checks/waypoints-list.png
|
||||
key:Escape
|
||||
sleep:2500
|
||||
|
||||
# --- M: the world map, Base on it; M again closes it ---
|
||||
key:KeyM
|
||||
sleep:2000
|
||||
shot:build/browser-checks/waypoints-worldmap.png
|
||||
key:KeyM
|
||||
sleep:1000
|
||||
|
||||
# --- The world's waypoints are stored ---
|
||||
until:window.incariStorage.pending() === 0
|
||||
assert:(async () => { let d = await navigator.storage.getDirectory(); for (const p of ["incari", "game", "incari", "modules", "waypoints"]) d = await d.getDirectoryHandle(p); let found = ""; for await (const [name, handle] of d.entries()) { const text = await (await handle.getFile()).text(); console.log("[check] " + name + ": " + text); found += text; } return found.includes("\"name\":\"Base\""); })()
|
||||
# --- And the explored map, after the map's half-minute save ---
|
||||
sleep:31000
|
||||
until:window.incariStorage.pending() === 0
|
||||
assert:(async () => { let d = await navigator.storage.getDirectory(); for (const p of ["incari", "game", "incari", "map"]) d = await d.getDirectoryHandle(p); let count = 0; const walk = async (dir) => { for await (const [name, handle] of dir.entries()) { if (handle.kind === "directory") await walk(handle); else if (name.endsWith(".map")) count++; } }; await walk(d); console.log("[check] map regions: " + count); return count > 0; })()
|
||||
Reference in New Issue
Block a user