ravensight-playtest 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +202 -17
- package/addons/desktop/RavensightDesktop.swift +367 -0
- package/addons/mobile/UITests/MobileInputTests.swift +67 -1
- package/addons/ravensight_driver/driver.gd +557 -4
- package/docs/ADAPTERS.md +39 -7
- package/docs/DESKTOP.md +161 -0
- package/docs/MOBILE.md +30 -3
- package/docs/UNITY.md +189 -0
- package/docs/UNREAL.md +166 -0
- package/docs/godot-driver.md +109 -1
- package/package.json +15 -5
- package/src/cli.js +44 -11
- package/src/commands/build.js +40 -0
- package/src/commands/feature.js +1 -1
- package/src/commands/hosted.js +78 -9
- package/src/commands/run.js +65 -13
- package/src/commands/validate.js +1 -1
- package/src/hosted/archivePreflight.js +31 -4
- package/src/hosted/buildStatus.js +26 -0
- package/src/hosted/buildUpload.js +24 -9
- package/src/hosted/nativeBuild.js +87 -0
- package/src/hosted/recordedRun.js +15 -3
- package/src/run/anygame/genre.js +110 -25
- package/src/run/anygame/genre2d.js +139 -0
- package/src/run/anygame/index.js +9 -5
- package/src/run/anygame/scene3d.js +562 -0
- package/src/run/anygame/shared-hashes.json +4 -2
- package/src/run/anygame/shared.js +3 -3
- package/src/run/args.js +24 -4
- package/src/run/drivers/desktop/app.js +104 -0
- package/src/run/drivers/desktop/common.js +394 -0
- package/src/run/drivers/desktop/driver.js +455 -0
- package/src/run/drivers/desktop/helper.js +98 -0
- package/src/run/drivers/desktop/keys.js +124 -0
- package/src/run/drivers/desktop/output.js +107 -0
- package/src/run/drivers/desktop/preflight.js +134 -0
- package/src/run/drivers/desktop/runHome.js +158 -0
- package/src/run/drivers/desktop3d.js +106 -0
- package/src/run/drivers/desktopSequence.js +72 -0
- package/src/run/drivers/godot-3d.js +298 -0
- package/src/run/drivers/godot.js +473 -31
- package/src/run/drivers/index.js +6 -0
- package/src/run/drivers/mobile/adb.js +25 -1
- package/src/run/drivers/mobile/frame.js +3 -2
- package/src/run/drivers/mobile/gestures.js +76 -0
- package/src/run/drivers/mobile/lock.js +51 -11
- package/src/run/drivers/mobile/multitouch.js +150 -0
- package/src/run/drivers/mobile/native.js +231 -31
- package/src/run/drivers/mobile/preflight.js +14 -1
- package/src/run/drivers/mobile/target.js +22 -1
- package/src/run/drivers/stdio.js +154 -13
- package/src/run/drivers/unity/app.js +72 -0
- package/src/run/drivers/unity/engine.js +58 -0
- package/src/run/drivers/unity/link.js +108 -0
- package/src/run/drivers/unity/logs.js +76 -0
- package/src/run/drivers/unreal/app.js +40 -0
- package/src/run/drivers/unreal/driver.js +776 -0
- package/src/run/drivers/unreal/frames.js +243 -0
- package/src/run/drivers/unreal/logs.js +276 -0
- package/src/run/drivers/unreal/preflight.js +61 -0
- package/src/run/drivers/web.js +211 -13
- package/src/run/drivers/webdriver.js +81 -12
- package/src/run/endScreen.js +88 -0
- package/src/run/engineErrors.js +16 -0
- package/src/run/featureLoop.js +1 -1
- package/src/run/fingers.js +99 -0
- package/src/run/focusForKeys.js +54 -0
- package/src/run/godotTesterProbes.js +21 -2
- package/src/run/honesty.js +11 -1
- package/src/run/inputs.js +3 -3
- package/src/run/intent.js +12 -0
- package/src/run/launchArgs.js +58 -0
- package/src/run/pauseHook.js +617 -0
- package/src/run/personaLoop.js +164 -10
- package/src/run/pixels.js +22 -10
- package/src/run/planGuard.js +103 -0
- package/src/run/replay.js +7 -1
- package/src/run/reportChecks.js +24 -4
- package/src/run/resume.js +10 -2
- package/src/run/sessions.js +175 -0
- package/src/run/slowMotion.js +151 -0
- package/src/run/startFrom.js +448 -0
- package/src/run/testerProbes.js +36 -5
- package/src/run/tools.js +191 -10
- package/src/run/view3dState.js +125 -0
- package/src/run/web3d.js +375 -0
- package/src/run/world3d.js +164 -0
- package/templates/godot-3d/README.md +3 -2
package/README.md
CHANGED
|
@@ -11,15 +11,23 @@
|
|
|
11
11
|
--device ID`). A Unity, Godot or native mobile build works the same way. See
|
|
12
12
|
[Native mobile on this machine](#native-mobile-on-this-machine) and
|
|
13
13
|
[docs/MOBILE.md](docs/MOBILE.md).
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
- **Unreal games on a Mac**, as the packaged Mac app in a window
|
|
15
|
+
(`run --driver unreal_driver --native-build MyGame.app`). See
|
|
16
|
+
[docs/UNREAL.md](docs/UNREAL.md).
|
|
17
|
+
- **Unity games on a Mac**, 2D or 3D, as the macOS player in a window
|
|
18
|
+
(`run --driver unity_driver --native-build MyGame.app`). See
|
|
19
|
+
[docs/UNITY.md](docs/UNITY.md).
|
|
20
|
+
|
|
21
|
+
The cloud accepts web builds. Android builds in the cloud
|
|
22
|
+
(`hosted run --native-build game.apk`) are not available yet for most studios;
|
|
23
|
+
see [Android builds in the cloud](#android-builds-in-the-cloud). Physical phones and tablets, App Store or
|
|
24
|
+
device builds (`.ipa`), and Windows and Linux desktop builds cannot be
|
|
25
|
+
playtested. Unity and Unreal Mac players play locally with `--native-build`
|
|
26
|
+
(see docs/UNITY.md and docs/UNREAL.md). The W3C native adapters (`desktop_driver`, and
|
|
27
|
+
`unity_driver`, `unreal_driver`, `android_driver` or `ios_driver` given
|
|
28
|
+
`--driver-config`) are experimental: each needs a separate automation server
|
|
29
|
+
that you run yourself and that Ravensight does not provide, and none of them
|
|
30
|
+
has been tested against a real automation server.
|
|
23
31
|
|
|
24
32
|
Cloud playtests run your uploaded build on our machines instead of yours, with
|
|
25
33
|
one playtester per persona: Geri and Freki play your game together, Geri
|
|
@@ -49,6 +57,7 @@ funding requirement stops before the question, and nothing is charged.
|
|
|
49
57
|
| Flag | Effect |
|
|
50
58
|
|---|---|
|
|
51
59
|
| `--build <id>` | Use this build instead of the newest ready one. |
|
|
60
|
+
| `--native-build <path>` | Upload this Android APK and playtest it on an Android device in the cloud. Not yet available for most studios; see below. |
|
|
52
61
|
| `--personas <list>` | More personas to add, comma separated. `fresh-eyes`, a first time player, is always included; each persona adds its own price. `ravensight-playtest personas` lists them. |
|
|
53
62
|
| `--tier <name>` | `jam`, `small`, `medium` or `large`. The default is the tier your build's size needs; a smaller one is refused before any charge. |
|
|
54
63
|
| `--minutes <n>` | Minutes of play per persona, from the tier's own length up to 120. Geri's thinking budget and the action limit grow with it, and so does the price. |
|
|
@@ -87,6 +96,32 @@ play), that persona stops early. It keeps the machine time and model spend it
|
|
|
87
96
|
used plus the quote's under-scope fee, the rest of its price is refunded, and
|
|
88
97
|
the report names the tier to choose.
|
|
89
98
|
|
|
99
|
+
### Android builds in the cloud
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
ravensight-playtest hosted run --native-build game.apk --tier jam
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`--native-build` uploads the APK as it is and playtests it on an Android
|
|
106
|
+
device in the cloud, one per persona. The build must be a signed APK with a
|
|
107
|
+
launcher activity. An Android App Bundle (`.aab`) cannot be installed: upload
|
|
108
|
+
the `.apk` built from it. The device runs with its network off, so the game
|
|
109
|
+
has to play offline.
|
|
110
|
+
|
|
111
|
+
Before anything is sent, the CLI checks that the file is an `.apk`, that it is
|
|
112
|
+
a ZIP and that it has an `AndroidManifest.xml` at its root. It then uploads the
|
|
113
|
+
APK under the same $0.49 validation hold as a web build, waits for the
|
|
114
|
+
server's check (signature, launcher activity, manifest and permissions; a
|
|
115
|
+
refused build shows the reason) and quotes the playtest as for any cloud
|
|
116
|
+
playtest. The same APK uploaded before is used again, with no second upload
|
|
117
|
+
or hold. `--build` names a build already uploaded, so it does not go with
|
|
118
|
+
`--native-build`. `--start`, `--save` and `--save-target` are refused for an
|
|
119
|
+
Android build; `--focus` and `--avoid` goals are taken.
|
|
120
|
+
|
|
121
|
+
This is not available yet for most studios. When it is not available for
|
|
122
|
+
yours, `hosted run --native-build` says so before anything is uploaded or
|
|
123
|
+
charged, and exits 3.
|
|
124
|
+
|
|
90
125
|
### Build size, tier and video
|
|
91
126
|
|
|
92
127
|
A build's tier follows what it unpacks to: Jam up to 50 MB, Small up to 250
|
|
@@ -189,6 +224,7 @@ The hosted build command source adds a local check before a paid upload:
|
|
|
189
224
|
ravensight-playtest build preflight ./game.zip --format web
|
|
190
225
|
ravensight-playtest build upload ./game.zip --game GAME --dry-run
|
|
191
226
|
ravensight-playtest build status --game GAME
|
|
227
|
+
ravensight-playtest build delete BUILD_ID --game GAME
|
|
192
228
|
```
|
|
193
229
|
|
|
194
230
|
`--entrypoint` names the file the game starts from. Without it, an `index.html`
|
|
@@ -205,7 +241,11 @@ asks for the separate $0.49 validation hold before requesting it. Without a
|
|
|
205
241
|
terminal to ask in, pass `--yes`: a piped answer is never taken as consent.
|
|
206
242
|
`build status` shows each build's state and, for a build the server's check
|
|
207
243
|
refused, the reason in one sentence and whether its validation hold is still
|
|
208
|
-
to be returned after cleanup.
|
|
244
|
+
to be returned after cleanup. `build delete BUILD_ID` removes a build you no
|
|
245
|
+
longer need, after asking (pass `--yes` without a terminal; `--json` needs
|
|
246
|
+
`--yes`). The build can no longer be quoted or played, and its validation hold
|
|
247
|
+
comes back once cleanup finishes; `build status` shows where it stands. A
|
|
248
|
+
declined prompt exits 10 and deletes nothing. The server’s isolated validator remains
|
|
209
249
|
authoritative. A passing local check does not establish engine, GPU or license
|
|
210
250
|
compatibility.
|
|
211
251
|
|
|
@@ -728,7 +768,7 @@ splitting the job in two is what gets everything played.
|
|
|
728
768
|
|---|---|
|
|
729
769
|
| `--game <gameId>` | The game, when this repo is not linked. |
|
|
730
770
|
| `--personas <list>` | Comma separated persona slugs. Defaults to one, `fresh-eyes`; `ravensight-playtest personas` lists them. |
|
|
731
|
-
| `--driver <name>` | `playwright_web`, `godot_driver`, `cli_stdio`, `android_driver` or `
|
|
771
|
+
| `--driver <name>` | `playwright_web`, `godot_driver`, `cli_stdio`, `android_driver`, `ios_driver`, `unreal_driver` or `unity_driver`. `android_driver` and `ios_driver` play a local emulator or simulator build given with `--native-build` and `--device` ([docs/MOBILE.md](docs/MOBILE.md)); `unreal_driver` plays a packaged Unreal Mac app ([docs/UNREAL.md](docs/UNREAL.md)) and `unity_driver` a Unity Mac player ([docs/UNITY.md](docs/UNITY.md)) given with `--native-build`. `desktop_driver`, and the Unity, Unreal and mobile drivers given `--driver-config`, are experimental: they need an automation server you run yourself and are untested against a real one. |
|
|
732
772
|
| `--native-build <path>` | An Android APK for an emulator, or an iOS Simulator APP (not an `.ipa`). |
|
|
733
773
|
| `--device <id>` | The exact emulator serial or AVD name, or simulator UDID or name. A name that matches more than one device is refused. |
|
|
734
774
|
| `--package <id>`, `--bundle-id <id>` | The Android package or iOS bundle identifier you expect. Checked against the build; it cannot point the run at another installed app. |
|
|
@@ -736,7 +776,9 @@ splitting the job in two is what gets everything played.
|
|
|
736
776
|
| `--build-url <url>` | The web build to play. |
|
|
737
777
|
| `--godot-project <dir>` | The Godot project directory. A relative path is read from the repository root. |
|
|
738
778
|
| `--godot-path <path>` | Where Godot is, if it is not on the PATH. `RAVENSIGHT_GODOT` does the same. |
|
|
739
|
-
| `--realtime` | Let the game run in real time between actions. By default a Godot game, and a game drawn in a canvas in the browser, is paused while the persona decides and runs only while an action executes. |
|
|
779
|
+
| `--realtime` | Let the game run in real time between actions. By default a Godot game, and a game drawn in a canvas in the browser, is paused while the persona decides and runs only while an action executes. An action game whose Ravensight SDK has the pause hook then runs at a quarter of its speed while the persona decides (slow motion), once the persona has said what kind of game it is. |
|
|
780
|
+
| `--time-scale <n>` | Run a game whose Ravensight SDK has the pause hook at this share of its speed while the persona decides, from 0.1 to 0.9 (0.25 is a quarter), instead of pausing it. Inputs, waits and the video stay at full speed. A game whose hook cannot slow it is paused between decisions as before, and the report says so. |
|
|
781
|
+
| `--no-slow-motion` | Keep a `--realtime` action game at full speed while the persona decides. |
|
|
740
782
|
| `--driver-config <file>` | The JSON-RPC bridge config for `cli_stdio`, or an experimental native driver's config. |
|
|
741
783
|
| `--skip-preflight` | Register without the free checks first: the build health check (any driver) and the automation probe (native drivers). The job is registered and charged even if the build or the automation server turns out to be down. |
|
|
742
784
|
| `--cli <command>` | The command that starts a text build. |
|
|
@@ -747,6 +789,11 @@ splitting the job in two is what gets everything played.
|
|
|
747
789
|
| `--focus <goal>` | A goal every persona puts first, such as "beat the first boss". Up to five times. |
|
|
748
790
|
| `--avoid <thing>` | Something every persona stays out of, such as "the settings menu". Up to five times. |
|
|
749
791
|
| `--start <query>` | Open a web build with this query or hash, such as `?level=3` or `#boss`. |
|
|
792
|
+
| `--save <file>` | `godot_driver`, `android_driver`, `ios_driver`, and `desktop_driver`, `unity_driver` and `unreal_driver` with `--native-build`. A save file the game starts from, placed before it starts. Up to eight, 256 MiB in all; read before the price. See [Starting a native game from a save or a level](#starting-a-native-game-from-a-save-or-a-level). |
|
|
793
|
+
| `--save-target <where>` | Where the game reads `--save`: `godot:user://<path>`, `unity:persistent://<path>`, `unreal:saved://<path>`, `desktop:appdata://<path>` or `desktop:home://<path>`. A path ending in `/` is a folder, and each file keeps its name. |
|
|
794
|
+
| `--start-spec <text>` | A level, a turn or a named save for the game to start at, such as `{"level":"12"}`, up to 1,000 characters. The game reads it; see the section below. |
|
|
795
|
+
| `--launch-arg <arg>` | `godot_driver`, and `desktop_driver`, `unity_driver` and `unreal_driver` with `--native-build`. An argument for the game itself, such as `-level=3`; repeat it for more, up to 32. Handed to the game on every launch as an argument list, never through a shell. See [Launch arguments](#launch-arguments). |
|
|
796
|
+
| `--sessions <n>` | `godot_driver`, `android_driver`, `ios_driver`, `desktop_driver`, `unity_driver` and `unreal_driver`. Play each persona's run as 2 or 3 launches of the game: it is closed the way a player closes it and started again on its own saved data, inside the same actions, clock and price. Each session has at least 10 actions. See [Several sessions in one run](#several-sessions-in-one-run). |
|
|
750
797
|
| `--concurrency <n>` | Personas at once. Default the number `init` wrote, which is what `check` recommends for this machine. |
|
|
751
798
|
| `--no-record-video` | Do not keep a video. A `playwright_web` or `godot_driver` run records one on this machine by default (`session.webm`, or `session.mp4` where ffmpeg is installed); it is never uploaded without `--upload-video`. |
|
|
752
799
|
| `--record-video` | Record with the upload limits (15 minutes, 200 MB). Does not upload the video. |
|
|
@@ -1470,6 +1517,143 @@ container, so stitching needs ffmpeg and ffmpeg stays optional.
|
|
|
1470
1517
|
|
|
1471
1518
|
`docs/godot-driver.md` has the protocol, the method set and the error codes.
|
|
1472
1519
|
|
|
1520
|
+
### 3D Godot games
|
|
1521
|
+
|
|
1522
|
+
Since 0.19.0 (driver addon 1.9.0) a persona can play the usual kinds of 3D game
|
|
1523
|
+
on this machine, in lockstep and with `--realtime`:
|
|
1524
|
+
|
|
1525
|
+
- **Mouse look, with the mouse captured or not.** The `hover` tool takes `dx`
|
|
1526
|
+
and `dy` and moves the mouse by that much, which turns a first or third person
|
|
1527
|
+
camera, steers a plane or orbits a view. `with_keys` walks while it turns.
|
|
1528
|
+
- **Aiming at something that moves.** `hover` with `aim_at` naming a 3D node
|
|
1529
|
+
turns the view onto it in small mouse moves, reading from the game after each
|
|
1530
|
+
how far the view turned, and follows it if it moves. Then a click fires.
|
|
1531
|
+
- **Orbit and RTS cameras.** A drag with the right or middle button, the mouse
|
|
1532
|
+
wheel (`scroll`) to zoom, held keys to pan and turn.
|
|
1533
|
+
- **Platforming, driving and flight.** Held keys and chords, and timed key
|
|
1534
|
+
sequences for a jump at the right moment.
|
|
1535
|
+
- **Moving and turning objects.** The screen lists what is on it and where it
|
|
1536
|
+
is drawn, so a drag starts on the object.
|
|
1537
|
+
- **Interaction prompts, HUD and menus.** The screen says what the middle of the
|
|
1538
|
+
screen points at and how far, a prompt drawn in the world is read like a HUD
|
|
1539
|
+
label, and a 3D thing (a sign, a unit) is clicked by its name.
|
|
1540
|
+
- **A gamepad only game.** The `gamepad` tool presses buttons and pushes both
|
|
1541
|
+
sticks by any amount. It is offered when the game reads a gamepad.
|
|
1542
|
+
|
|
1543
|
+
Every look at a 3D scene includes what the game's own state says: where the
|
|
1544
|
+
camera is and faces, what is in the middle of the screen, the player's place,
|
|
1545
|
+
speed and whether it is on the floor, and the bodies on screen. From the same
|
|
1546
|
+
numbers, with no model call, the runner files four kinds of finding: something
|
|
1547
|
+
fell out of the world, the player is stuck on the level's geometry, the camera
|
|
1548
|
+
went inside a wall or turned upside down, and moves that got nowhere. A Godot 3D
|
|
1549
|
+
run replays like a 2D one, mouse look and the gamepad included.
|
|
1550
|
+
|
|
1551
|
+
What it cannot do yet: a game that reads the mouse position itself (edge
|
|
1552
|
+
scrolling at the side of the screen) sees the desktop's pointer, which the runner
|
|
1553
|
+
never moves, so pan such a game with keys or a drag; a game that waits for a
|
|
1554
|
+
gamepad to appear in its list of connected pads before it reads one does not see
|
|
1555
|
+
the runner's. `docs/godot-driver.md` has the details.
|
|
1556
|
+
|
|
1557
|
+
### Starting a native game from a save or a level
|
|
1558
|
+
|
|
1559
|
+
`--save`, `--save-target` and `--start-spec` start every persona of a local
|
|
1560
|
+
Godot, desktop (any game, Unity or Unreal on a Mac, with `--native-build`),
|
|
1561
|
+
Android emulator or iOS Simulator run somewhere other than the beginning: turn 150, level 12, a full inventory. Nothing is uploaded; the
|
|
1562
|
+
files stay on this machine. They are read and hashed before the price, and a
|
|
1563
|
+
file that changed by the time the game starts is refused.
|
|
1564
|
+
|
|
1565
|
+
```sh
|
|
1566
|
+
ravensight-playtest run --driver godot_driver --godot-project . \
|
|
1567
|
+
--save ./saves/turn150.sav --save-target godot:user://saves/slot1.sav --start-spec '{"turn":150}'
|
|
1568
|
+
```
|
|
1569
|
+
|
|
1570
|
+
| Root | Godot on this machine | Android emulator | iOS Simulator |
|
|
1571
|
+
|---|---|---|---|
|
|
1572
|
+
| `godot:user://` | A user folder of the run's own, never yours, removed when the run ends. | The app's internal files folder, through `run-as` (a debuggable build). | The app's Documents. |
|
|
1573
|
+
| `unity:persistent://` | Not a local path. | `Application.persistentDataPath`, the app's external files folder. | `Application.persistentDataPath`, the app's Documents. |
|
|
1574
|
+
|
|
1575
|
+
A desktop game on a Mac gets a folder of the run's own, never yours, removed
|
|
1576
|
+
when the run ends:
|
|
1577
|
+
|
|
1578
|
+
| Root | `desktop_driver` | `unity_driver` | `unreal_driver` |
|
|
1579
|
+
|---|---|---|---|
|
|
1580
|
+
| `desktop:appdata://` | `Library/Application Support` in a home of the run's own (the game is started with `HOME` and `CFFIXED_USER_HOME` set to it). | The same. | Not offered. |
|
|
1581
|
+
| `desktop:home://` | That home itself. | The same. | Not offered. |
|
|
1582
|
+
| `unity:persistent://` | Not offered. | `Application.persistentDataPath`, which Unity answers as `Library/Application Support/<bundle id>` in that home. | Not offered. |
|
|
1583
|
+
| `unreal:saved://` | Not offered. | Not offered. | `Saved` in a user folder of the run's own (`-userdir`), inside the game's container when it is in the App Sandbox. |
|
|
1584
|
+
|
|
1585
|
+
An app in the App Sandbox is refused `desktop_driver` and `unity_driver` saves,
|
|
1586
|
+
because it keeps its data in its container whatever its home is. See
|
|
1587
|
+
[docs/DESKTOP.md](docs/DESKTOP.md), [docs/UNITY.md](docs/UNITY.md) and
|
|
1588
|
+
[docs/UNREAL.md](docs/UNREAL.md).
|
|
1589
|
+
|
|
1590
|
+
On an emulator or simulator a file already at that path is kept and put back
|
|
1591
|
+
when the run ends, and a placed save that was not there before is removed.
|
|
1592
|
+
The save is placed during the free preflight too, so a build that does not let
|
|
1593
|
+
it be placed is refused before any charge.
|
|
1594
|
+
|
|
1595
|
+
The start spec reaches the game:
|
|
1596
|
+
|
|
1597
|
+
- **Godot on this machine:** in the environment as `RAVENSIGHT_PLAYTEST_START`, and through a method of your own. Give any autoload, or any node in the group `ravensight_playtest_start`, `func _ravensight_playtest_start(spec: Dictionary)`. The driver calls it once after boot with `{"spec": "...", "saves": [...]}`; load what it names and answer with what you loaded, a String or `{"loaded": "...", "where": "..."}`. The report says what the game answered. In lockstep the call is part of the recorded start, so a replay starts the same way.
|
|
1598
|
+
- **Android:** the intent extra `ravensight_playtest_start` (in Unity, read the activity's intent with `AndroidJavaObject` and call `getStringExtra("ravensight_playtest_start")`).
|
|
1599
|
+
- **iOS Simulator:** the app's environment, `RAVENSIGHT_PLAYTEST_START`.
|
|
1600
|
+
- **A desktop, Unity or Unreal game on a Mac:** the game's environment, `RAVENSIGHT_PLAYTEST_START`.
|
|
1601
|
+
|
|
1602
|
+
A game that reads none of them still gets the files. The persona is told the run
|
|
1603
|
+
does not start at the beginning, and report.md says where it started under
|
|
1604
|
+
**Where this run started**.
|
|
1605
|
+
|
|
1606
|
+
### Several sessions in one run
|
|
1607
|
+
|
|
1608
|
+
`--sessions 2` or `--sessions 3` plays each persona's run as that many launches
|
|
1609
|
+
of the game, the way a player stops for the day and comes back. A session ends
|
|
1610
|
+
at an even share of the run's actions, or of its minutes on a tier, whichever is
|
|
1611
|
+
used first; the persona is told a turn or two ahead and asked to save the way a
|
|
1612
|
+
player would. Then the game is closed (Godot gets a close request, so a game
|
|
1613
|
+
that saves on quit saves; a desktop game on a Mac gets Command-Q, then a stop
|
|
1614
|
+
signal if it is still running 10 seconds later; a mobile game is sent to the
|
|
1615
|
+
background first, where it gets its pause event) and started again cold on the
|
|
1616
|
+
same data. The persona
|
|
1617
|
+
remembers everything, its notes included; the game keeps only what it saved, and
|
|
1618
|
+
the persona is asked to check what came back.
|
|
1619
|
+
|
|
1620
|
+
Sessions share the run's own action budget, model budget and clock: nothing is
|
|
1621
|
+
bought for a session, and the price is the same as one session. A game that
|
|
1622
|
+
does not start again is a blocker finding and ends the run. A Godot run's replay
|
|
1623
|
+
starts the game once, so only first-session findings are replayed. A start spec
|
|
1624
|
+
goes with the first launch only.
|
|
1625
|
+
|
|
1626
|
+
### Launch arguments
|
|
1627
|
+
|
|
1628
|
+
`--launch-arg <arg>` hands an argument to the game itself on every launch:
|
|
1629
|
+
each session, a replay, and a desktop game's free preflight. Repeat it for more, up to 32
|
|
1630
|
+
(together with `native.args` in the project settings). The arguments go to
|
|
1631
|
+
the game as a list, never through a shell, and the model can never add or
|
|
1632
|
+
change one. An argument naming the runner's own switches (`--ravensight...`,
|
|
1633
|
+
`-RavensightPlaytest...`, and `-userdir` on Unreal) is refused.
|
|
1634
|
+
|
|
1635
|
+
```sh
|
|
1636
|
+
ravensight-playtest run --driver unreal_driver --native-build Builds/Mac/MyGame.app --launch-arg -scene=fps
|
|
1637
|
+
```
|
|
1638
|
+
|
|
1639
|
+
| Driver | Where the arguments go |
|
|
1640
|
+
|---|---|
|
|
1641
|
+
| `godot_driver` | After Godot's `--`, so the game reads them with `OS.get_cmdline_user_args()`. |
|
|
1642
|
+
| `desktop_driver` | After `native.args`; for a LÖVE game, after the game folder. |
|
|
1643
|
+
| `unity_driver` | After the runner's window switches. |
|
|
1644
|
+
| `unreal_driver` | After the runner's window and pipe switches. |
|
|
1645
|
+
|
|
1646
|
+
### A plan of several inputs
|
|
1647
|
+
|
|
1648
|
+
A persona may send several inputs in one turn, such as "hold right, jump, hold
|
|
1649
|
+
right": they are played back to back with one model call, and on Godot the game
|
|
1650
|
+
runs only while they play. Each input is checked against the screen after it,
|
|
1651
|
+
with no model call: when an input that said what it expected changed nothing,
|
|
1652
|
+
did not reach the game, or the game moved to another scene or counted a death,
|
|
1653
|
+
the inputs after it are not sent and cost nothing, and the persona plans again
|
|
1654
|
+
from the screen as it is. The step log's `plan_guard` line counts the plans,
|
|
1655
|
+
the steps played and why any stopped.
|
|
1656
|
+
|
|
1473
1657
|
## What a report has to contain
|
|
1474
1658
|
|
|
1475
1659
|
`report.json` is validated against the pack schema before it is sent, and
|
|
@@ -1753,7 +1937,7 @@ feedback and timing-sensitive gameplay.
|
|
|
1753
1937
|
|
|
1754
1938
|
## Build adapters
|
|
1755
1939
|
|
|
1756
|
-
Web builds (`playwright_web`, locally or in the cloud), Godot projects (`godot_driver`, locally)
|
|
1940
|
+
Web builds (`playwright_web`, locally or in the cloud), Godot projects (`godot_driver`, locally), Android emulator and iOS Simulator builds (`android_driver` and `ios_driver` with `--native-build`, locally, see [docs/MOBILE.md](docs/MOBILE.md)) packaged Unreal Mac apps (`unreal_driver` with `--native-build`, locally on a Mac, see [docs/UNREAL.md](docs/UNREAL.md)) and Unity Mac players (`unity_driver` with `--native-build`, locally on a Mac, see [docs/UNITY.md](docs/UNITY.md)) are what can be playtested. The desktop driver, and the Unity, Unreal and mobile drivers given `--driver-config`, are experimental: each needs a separate automation server that you run yourself and that Ravensight does not provide, and none has been tested against a real automation server. The custom JSON-RPC bridge (`cli_stdio`) is for text games and your own integrations. See [adapter setup and validation boundaries](docs/ADAPTERS.md); the [native runner starter](docs/NATIVE_RUNNER.md) is kept as an untested reference.
|
|
1757
1941
|
|
|
1758
1942
|
## Validate changes (Labs beta)
|
|
1759
1943
|
|
|
@@ -1956,7 +2140,7 @@ ravensight-playtest validate <branch> --base main --alpha-3d
|
|
|
1956
2140
|
|
|
1957
2141
|
**`--alpha-3d`** is how you ask. Without it, `feature` and `validate` refuse a project whose main scene has a 3D root, for free. With it on a 2D project they refuse too, and a specification written for one kind of project does not build on the other.
|
|
1958
2142
|
|
|
1959
|
-
**What works differently.** A persona reads positions as `@(x,y,z)` in world units, and can click a node by its path, where the active camera draws it. It plays with keys
|
|
2143
|
+
**What works differently.** A persona reads positions as `@(x,y,z)` in world units, and can click a node by its path, where the active camera draws it. It plays with keys, input actions, mouse look, aiming and a gamepad, as [3D Godot games](#3d-godot-games) says. Headless, as in 2D, no mouse input reaches the game, so mouse look needs a window. Your own models are listed by `assets` by type and size, are never read by the model, and the checks confirm that Godot imports the ones a change names. See [docs/REPLAY.md](docs/REPLAY.md) for what replays on 3D.
|
|
1960
2144
|
|
|
1961
2145
|
## Simulation Runner
|
|
1962
2146
|
|
|
@@ -1987,9 +2171,10 @@ ravensight-playtest run --driver android_driver --native-build ./game.apk --devi
|
|
|
1987
2171
|
ravensight-playtest run --driver ios_driver --native-build ./Game.app --device <UDID> --landscape
|
|
1988
2172
|
```
|
|
1989
2173
|
|
|
1990
|
-
The game runs in real time while the playtester thinks. Pinch
|
|
1991
|
-
devices
|
|
1992
|
-
|
|
2174
|
+
The game runs in real time while the playtester thinks. Pinch and physical
|
|
2175
|
+
devices are not available. Cloud runs of an Android APK
|
|
2176
|
+
(`hosted run --native-build game.apk`) are not available yet for most studios;
|
|
2177
|
+
see [Android builds in the cloud](#android-builds-in-the-cloud). The video stays on this machine unless you pass
|
|
1993
2178
|
`--upload-video`. Prices, budgets and refunds are those of any local persona
|
|
1994
2179
|
run. Setup, every flag and the limits are in [docs/MOBILE.md](docs/MOBILE.md).
|
|
1995
2180
|
|