Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2d9c96b70 | ||
|
|
74ee1bb580 | ||
|
|
d0c2a27288 | ||
|
|
7d213de97c | ||
|
|
0e6e2d7de1 | ||
|
|
9332ff8e02 | ||
|
|
5c4c64e629 | ||
|
|
f986f507ae | ||
|
|
b9776ab898 | ||
|
|
577036eb9c | ||
|
|
5da133cffc | ||
|
|
a6020ae4df | ||
|
|
01362ca2de | ||
|
|
e4014679e0 | ||
|
|
7433048d52 | ||
|
|
bf6d8eb50d | ||
|
|
349666b8cd | ||
|
|
a1c4de8152 | ||
|
|
7d46e903fe | ||
|
|
ff514faf73 | ||
|
|
35175565d3 | ||
|
|
527f5e0d99 | ||
|
|
8c504bbac0 | ||
|
|
12a5208e73 | ||
|
|
47bd59b475 | ||
|
|
bb94364830 | ||
|
|
51fda0ad7f | ||
|
|
3452e2b000 | ||
|
|
dbe0acd9fa | ||
|
|
f7c821f316 | ||
|
|
fc7316cb4b | ||
|
|
68545e52f7 | ||
|
|
abec5ea4b9 | ||
|
|
20be49e4b0 | ||
|
|
6378eb30cd | ||
|
|
8c49a7dcc2 | ||
|
|
90706ac9cb | ||
|
|
6d6492c124 | ||
|
|
4add1655ff | ||
|
|
deb0f1a1b2 | ||
|
|
b379ebc34e | ||
|
|
0278968e94 | ||
|
|
d99a0a77a3 | ||
|
|
588c8d9cc3 | ||
|
|
e6e15a8ff2 | ||
|
|
5f909831a7 | ||
|
|
fdfbc35c53 | ||
|
|
006d8bb1e2 | ||
|
|
0ff1bc9264 | ||
|
|
960647c691 | ||
|
|
1ec08024e7 | ||
|
|
8b7ce00d92 | ||
|
|
f0667dc74c | ||
|
|
4607616270 | ||
|
|
2fc891d9f9 | ||
|
|
3da6efbdc0 | ||
|
|
3afd7375c2 | ||
|
|
a894b49921 | ||
|
|
0c1ef06e3f | ||
|
|
b7f87ab1f1 | ||
|
|
9efc2b2b3c | ||
|
|
853db3fd0f | ||
|
|
396a049809 | ||
|
|
4ea067731b | ||
|
|
67e5880739 | ||
|
|
d9edf9fb69 | ||
|
|
ed211a97a6 | ||
|
|
9961cb4114 | ||
|
|
33d54b2609 | ||
|
|
d256506a1a | ||
|
|
068a7a85a6 | ||
|
|
234dabe23e | ||
|
|
c87b7ff003 | ||
|
|
a2c4c0fb4f | ||
|
|
8358ca14a8 | ||
|
|
67fbf0faca | ||
|
|
ce762ba242 | ||
|
|
70eda4f70c | ||
|
|
cdc0e21913 | ||
|
|
6575a11da7 | ||
|
|
9edc747344 | ||
|
|
71895dec63 | ||
|
|
11669d40b8 | ||
|
|
0bbe35b5d1 | ||
|
|
0530cebf92 | ||
|
|
d0b361a821 | ||
|
|
22999975ad | ||
|
|
98ccc7c667 | ||
|
|
0723625272 | ||
|
|
4686e915b7 | ||
|
|
d1b1195213 | ||
|
|
f202f96246 | ||
|
|
aa0d2e86a5 | ||
|
|
dc2b47a7dc | ||
|
|
47638cc9d5 | ||
|
|
0757935d60 | ||
|
|
066a73c0c2 | ||
|
|
dd198d2205 | ||
|
|
d7bdeaa48a | ||
|
|
5681c351c5 | ||
|
|
28bedc12f1 | ||
|
|
a69c10d733 | ||
|
|
c0cf2af9be | ||
|
|
71391e7f5a | ||
|
|
33d84f19f1 | ||
|
|
2996858770 | ||
|
|
1e92eafdad | ||
|
|
150c0640cf | ||
|
|
25a066da30 | ||
|
|
8c78f1c371 | ||
|
|
2cf6c0b97c | ||
|
|
710088e513 | ||
|
|
91011120f0 | ||
|
|
837316ba8d | ||
|
|
d9338dc863 | ||
|
|
1763fe9ceb | ||
|
|
f6d662ab71 | ||
|
|
791ae07fe2 | ||
|
|
fe3bee2417 | ||
|
|
431774be16 | ||
|
|
2f5b2eaa94 | ||
|
|
0755413b87 | ||
|
|
cf46ca9f9f | ||
|
|
ba5660be33 | ||
|
|
40bb3d1cbe | ||
|
|
e85bb26537 | ||
|
|
10df44ee2b | ||
|
|
2559cdf9bc | ||
|
|
fe2a7bf442 | ||
|
|
1d554334cc | ||
|
|
a75a1ad195 | ||
|
|
a4aa76aa82 | ||
|
|
c43b44ccc8 | ||
|
|
5f3b1fd0a5 | ||
|
|
facce888a0 | ||
|
|
0c0aac0415 | ||
|
|
1ebd8a4f02 | ||
|
|
95b64883f6 | ||
|
|
861a9fbf12 | ||
|
|
d6e6926d44 | ||
|
|
16d2e0b46b | ||
|
|
83f48a7eba | ||
|
|
24da10715f | ||
|
|
559c076b26 | ||
|
|
67ae02a1b0 | ||
|
|
e1802987ca | ||
|
|
3f7580ac1a | ||
|
|
11783de08b | ||
|
|
256574dc2c | ||
|
|
5a4ba1f73b | ||
|
|
feb3eae3d3 | ||
|
|
bdde772c5c | ||
|
|
c208b7cda2 | ||
|
|
c10d536a6c | ||
|
|
cef72ee9ae | ||
|
|
6dbe872958 | ||
|
|
f390347b56 | ||
|
|
22cb14bb21 | ||
|
|
cc387a6c02 | ||
|
|
412e182079 | ||
|
|
7b80cb926d | ||
|
|
22d1126c66 | ||
|
|
3574130207 | ||
|
|
c5eda4b818 | ||
|
|
cc68e0e750 | ||
|
|
36f2398190 | ||
|
|
ddae53ab42 | ||
|
|
57c39c78b0 | ||
|
|
c71bb3e9c4 | ||
|
|
2f6cb0ab0d | ||
|
|
47a706792b | ||
|
|
7645ff6752 | ||
|
|
a86a6fb2f0 | ||
|
|
945796dade | ||
|
|
f59e5aa869 | ||
|
|
96998a644f | ||
|
|
f2b540d0bd | ||
|
|
d8041833f1 | ||
|
|
b3e61a5482 | ||
|
|
f3de32a7cb | ||
|
|
abc5c7b38c | ||
|
|
0907fe50db | ||
|
|
4b7af0bbed | ||
|
|
6d625d1d25 | ||
|
|
9d3afda739 | ||
|
|
d492061c0a | ||
|
|
e657d97480 | ||
|
|
4446b8d689 | ||
|
|
6c7d6add67 | ||
|
|
3ae788e8af | ||
|
|
7ddb3e74e6 | ||
|
|
6fe10bf71d | ||
|
|
3749b77c75 | ||
|
|
ae4402b5b5 | ||
|
|
170c688db8 | ||
|
|
be34dc981c | ||
|
|
6087178ecf | ||
|
|
04a26ec539 | ||
|
|
3095ce4867 | ||
|
|
b336897bfe | ||
|
|
14e77b6af3 | ||
|
|
cdd47d8b74 | ||
|
|
448f0754ad | ||
|
|
834111c769 | ||
|
|
a21e769d97 | ||
|
|
791a358893 | ||
|
|
428f2ba774 | ||
|
|
951b96d548 | ||
|
|
09724f1fa3 | ||
|
|
3336f6dff1 | ||
|
|
943d51dbdc | ||
|
|
fa3ebf4eb1 | ||
|
|
aa505d041b | ||
|
|
b7cd179cc6 | ||
|
|
1185825b3e | ||
|
|
984c98fd5b | ||
|
|
94e34ca3af | ||
|
|
1775d54bf1 | ||
|
|
4113a091c1 | ||
|
|
acde3a0e34 | ||
|
|
db231f368d | ||
|
|
18c5d0dad6 | ||
|
|
fa46f7d5fb | ||
|
|
7d04273b0e | ||
|
|
a097c26261 | ||
|
|
b17624d87a | ||
|
|
a43ba532e1 | ||
|
|
2d6b250539 | ||
|
|
4bf1e706d3 | ||
|
|
e2fa7c8963 | ||
|
|
6db666840b | ||
|
|
918f28dfc8 | ||
|
|
ac07e65b27 | ||
|
|
902ab1fee1 | ||
|
|
ada2ee3c81 | ||
|
|
c5d8968d58 | ||
|
|
9c7ca73dbc | ||
|
|
6266802a27 | ||
|
|
d1b96a5c6b | ||
|
|
5aaade2915 | ||
|
|
bf3168af2b | ||
|
|
4e69262240 | ||
|
|
ae5a8f4e97 | ||
|
|
a171bc2783 | ||
|
|
242920316b | ||
|
|
2fc64b3e8b | ||
|
|
02ca403e24 | ||
|
|
17e87178fc | ||
|
|
dd6c1e7567 | ||
|
|
0ab80528fe | ||
|
|
e07ef046a6 | ||
|
|
71b74914a3 | ||
|
|
f65f41ad17 | ||
|
|
df4569fe17 | ||
|
|
38743dc8b8 | ||
|
|
9d1e7764e6 | ||
|
|
fa1d2012e1 | ||
|
|
8168e1366a | ||
|
|
ea92fb4c01 | ||
|
|
fc476a1683 | ||
|
|
5946ca1b7a | ||
|
|
6c4fdedcd1 | ||
|
|
1001b7f887 | ||
|
|
86dbdbddf8 | ||
|
|
d46fb013ac | ||
|
|
8ffd00eb47 | ||
|
|
853155600a | ||
|
|
ad9bc911b6 | ||
|
|
2235b8178b | ||
|
|
e37a37bcf9 | ||
|
|
af4665e7c9 | ||
|
|
a42ed79003 | ||
|
|
334be5f7cc | ||
|
|
4c1e4691be | ||
|
|
4fd4997e60 | ||
|
|
6eb63ce9f8 | ||
|
|
01b7b8dbba | ||
|
|
e060bc7cc5 | ||
|
|
d691619b98 |
No files matched your search
@@ -82,25 +82,27 @@ jobs:
|
||||
node-version-file: '.node-version'
|
||||
cache: 'pnpm'
|
||||
- name: GUI Lint
|
||||
run: pnpm i && cd gui && pnpm run lint
|
||||
run: pnpm i && pnpm run lint
|
||||
|
||||
java-checks:
|
||||
name: Java Checks
|
||||
server-checks:
|
||||
name: Server Checks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 24
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '24'
|
||||
distribution: 'adopt'
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
- name: Java Spotless Check
|
||||
- name: Server Spotless Check
|
||||
run: ./gradlew spotlessCheck --build-cache
|
||||
- name: Server Detekt Lint
|
||||
run: ./gradlew :server:detekt --build-cache
|
||||
|
||||
|
||||
build-server-jar:
|
||||
@@ -113,10 +115,10 @@ jobs:
|
||||
submodules: recursive
|
||||
- name: Get tags
|
||||
run: git fetch --tags origin --recurse-submodules=no --force
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 24
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '24'
|
||||
distribution: 'adopt'
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
@@ -152,9 +154,9 @@ jobs:
|
||||
- name: Build JS
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
run: pnpm i && cd gui && pnpm run build
|
||||
run: pnpm i && pnpm run build
|
||||
- name: Tar GUI Dist
|
||||
run: tar -czf slimevr-gui-dist.tar.gz -C gui/out .
|
||||
run: tar -czf slimevr-gui-dist.tar.gz -C gui/electron/out .
|
||||
- name: Upload GUI Dist
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
@@ -199,21 +201,21 @@ jobs:
|
||||
name: gui-dist
|
||||
- name: Extract GUI for Electron
|
||||
shell: bash
|
||||
run: mkdir -p gui/out && tar -xzf slimevr-gui-dist.tar.gz -C gui/out
|
||||
run: mkdir -p gui/electron/out && tar -xzf slimevr-gui-dist.tar.gz -C gui/electron/out
|
||||
- name: Run Electron Builder
|
||||
shell: bash
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
run: |
|
||||
mkdir -p gui/dist/artifacts/linux/ \
|
||||
gui/dist/artifacts/win \
|
||||
gui/dist/artifacts/mac
|
||||
mkdir -p gui/electron/dist/artifacts/linux/ \
|
||||
gui/electron/dist/artifacts/win \
|
||||
gui/electron/dist/artifacts/mac
|
||||
VERSION=$(git --no-pager tag --sort -taggerdate --points-at HEAD | head -1)
|
||||
[ -z "$VERSION" ] && VERSION="0.0.0"
|
||||
VERSION="${VERSION#v}"
|
||||
echo "Building version: $VERSION"
|
||||
pnpm i
|
||||
cd gui
|
||||
cd gui/electron
|
||||
pnpm exec electron-builder --${{ matrix.platform }} \
|
||||
${{ matrix.platform == 'macos' && '--universal' || '' }} \
|
||||
--config.extraMetadata.version="$VERSION" \
|
||||
@@ -221,7 +223,7 @@ jobs:
|
||||
- name: Collect and Rename Artifacts
|
||||
shell: bash
|
||||
run: |
|
||||
SRC_DIR="${{ github.workspace }}/gui/dist/artifacts"
|
||||
SRC_DIR="${{ github.workspace }}/gui/electron/dist/artifacts"
|
||||
DEST_DIR="${{ github.workspace }}/release-out"
|
||||
mkdir -p "$DEST_DIR"
|
||||
|
||||
@@ -260,10 +262,10 @@ jobs:
|
||||
submodules: recursive
|
||||
- name: Get tags
|
||||
run: git fetch --tags origin --recurse-submodules=no --force
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 24
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '24'
|
||||
distribution: 'adopt'
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
@@ -272,7 +274,7 @@ jobs:
|
||||
with:
|
||||
name: gui-dist
|
||||
- name: Extract GUI for Android
|
||||
run: mkdir -p gui/out && tar -xzf slimevr-gui-dist.tar.gz -C gui/out
|
||||
run: mkdir -p gui/electron/out && tar -xzf slimevr-gui-dist.tar.gz -C gui/electron/out
|
||||
- name: Build APK
|
||||
run: ./gradlew :server:android:build --build-cache
|
||||
env:
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
# Syncthing ignore file
|
||||
.stignore
|
||||
|
||||
# Ignore .idea
|
||||
.idea
|
||||
# Ignore .idea, except shared project inspection profiles
|
||||
.idea/*
|
||||
!.idea/inspectionProfiles/
|
||||
!.idea/inspectionProfiles/*.xml
|
||||
|
||||
# Ignore .fleet
|
||||
.fleet
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="27ef4df3-2b89-390d-a9cd-ef29bd86503d" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="8d635bb8-7d4f-3af3-8d31-6f9164877ab2" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="ConvertLongToDuration" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="SSBasedInspection" enabled="true" level="ERROR" enabled_by_default="true">
|
||||
<searchConfiguration name="Use safeLaunch instead of raw launch" uuid="8d635bb8-7d4f-3af3-8d31-6f9164877ab2" description="Use dev.slimevr.util.safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." suppressId="RAW_LAUNCH_USAGE" problemDescriptor="Use safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." text="$scope$.launch { $statements$; }" recursive="true" caseInsensitive="false" type="Kotlin" pattern_context="default">
|
||||
<constraint name="__context__" within="" contains="" />
|
||||
<constraint name="scope" within="" contains="" />
|
||||
<constraint name="statements" minCount="0" maxCount="2147483647" within="" contains="" />
|
||||
</searchConfiguration>
|
||||
<searchConfiguration name="Use safeLaunch instead of raw launch" uuid="0e4a6db4-4c7b-3fd4-99ce-2717fa0fd2fb" description="Use dev.slimevr.util.safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." suppressId="RAW_LAUNCH_USAGE" problemDescriptor="Use safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." text="launch { $statements$; }" recursive="true" caseInsensitive="false" type="Kotlin" pattern_context="default">
|
||||
<constraint name="__context__" within="" contains="" />
|
||||
<constraint name="statements" minCount="0" maxCount="2147483647" within="" contains="" />
|
||||
</searchConfiguration>
|
||||
<searchConfiguration name="Use safeLaunch instead of raw launch" uuid="27ef4df3-2b89-390d-a9cd-ef29bd86503d" description="Use dev.slimevr.util.safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." suppressId="RAW_LAUNCH_USAGE" problemDescriptor="Use safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." text="$scope$.launch($args$) { $statements$; }" recursive="true" caseInsensitive="false" type="Kotlin" pattern_context="default">
|
||||
<constraint name="__context__" within="" contains="" />
|
||||
<constraint name="scope" within="" contains="" />
|
||||
<constraint name="args" maxCount="2147483647" within="" contains="" />
|
||||
<constraint name="statements" minCount="0" maxCount="2147483647" within="" contains="" />
|
||||
</searchConfiguration>
|
||||
<searchConfiguration name="Use safeLaunch instead of raw launch" uuid="ca477c43-2f5b-3907-8b06-02c34dc26930" description="Use dev.slimevr.util.safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." suppressId="RAW_LAUNCH_USAGE" problemDescriptor="Use safeLaunch instead of raw launch to ensure coroutine exceptions are handled properly." text="launch($args$) { $statements$; }" recursive="true" caseInsensitive="false" type="Kotlin" pattern_context="default">
|
||||
<constraint name="__context__" within="" contains="" />
|
||||
<constraint name="args" maxCount="2147483647" within="" contains="" />
|
||||
<constraint name="statements" minCount="0" maxCount="2147483647" within="" contains="" />
|
||||
</searchConfiguration>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
||||
@@ -0,0 +1,7 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="PROJECT_PROFILE" value="Project Default" />
|
||||
<option name="USE_PROJECT_PROFILE" value="true" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
@@ -0,0 +1,64 @@
|
||||
# OpenCode Agent Instructions
|
||||
|
||||
## Environment & Tooling
|
||||
- **Server (Kotlin/Java)**: Use `gradle` (`./gradlew`).
|
||||
- Run: `./gradlew run`
|
||||
- Build: `./gradlew shadowJar`
|
||||
- Format: `./gradlew spotlessApply`
|
||||
- **GUI (Electron/TS)**: Use `pnpm`.
|
||||
- Install: `pnpm i`
|
||||
- Dev: `pnpm gui`
|
||||
- Build: `pnpm package:build`
|
||||
- Format: `pnpm run lint:fix`
|
||||
- **SolarXR Protocol (Submodule)**: Use `bash` and `pnpm`.
|
||||
- Edit: Only `schema/` files.
|
||||
- Generate: `./generate-flatbuffer.sh` (Linux/macOS).
|
||||
- Sync: Run `pnpm i` in root after generation.
|
||||
|
||||
## Architecture: The Reducer/Behaviour Pattern
|
||||
The server uses a reactive reducer pattern for thread safety and observability.
|
||||
|
||||
- **Core Primitives**:
|
||||
- `Context<S, A>`: Holds `StateFlow<S>`, `CoroutineScope`, and `Behaviour`s.
|
||||
- `Behaviour<S, A, C>`:
|
||||
- `reduce(state, action)`: **Pure function**. No side effects.
|
||||
- `observe(receiver)`: **Side effects**. Launch coroutines using `receiver.context.scope`.
|
||||
- **Lifecycle**: `Module.create()` (inert construction) $\rightarrow$ `module.startObserving()` (side-effect activation).
|
||||
- **DI**: Uses `Phase1ContextProvider` $\rightarrow$ `AppContextProvider` hierarchy.
|
||||
- **Communication**: Modules communicate via `dispatch(action)` or by observing another module's `StateFlow`.
|
||||
|
||||
## Design & Coding Preferences
|
||||
- **Function over Class**: Prefer plain functions or `object` over classes for single-purpose logic.
|
||||
- **Function over Extension**: Use plain functions instead of extension functions unless the receiver is the primary subject.
|
||||
- **Action Selection**:
|
||||
- Use `Update` (with a lambda) for internal state changes that require no external reaction.
|
||||
- Use **Named Actions** when multiple behaviours must react to a specific event.
|
||||
- **State Management**: Only include data in `StateFlow` if it is required for observation by other modules.
|
||||
- **Communication**: Decouple modules by using `dispatch` or observing `StateFlow` rather than direct method calls.
|
||||
|
||||
## Agent Workflow
|
||||
- **Phase 1: Discovery**: Use the `Glob` $\rightarrow$ `Grep` $\rightarrow$ `Read` pattern. Never guess file paths or contents.
|
||||
- **Phase 2: Planning**: For complex tasks, use `todowrite` to create a checklist. Present the plan to the user before implementation.
|
||||
- **Phase 3: Implementation**: Use `edit` for existing files; `write` for new files.
|
||||
- **Phase 4: Verification**: Always run the relevant linting or testing tools before marking a task as complete.
|
||||
|
||||
## Common Pitfalls
|
||||
- **Coroutine Leaks**: Never launch coroutines in `observe` using a global scope; **always** use `receiver.context.scope`.
|
||||
- **Direct State Mutation**: Never attempt to mutate state properties directly. Always use `dispatch(action)`.
|
||||
- **Incomplete Cleanup**: Ensure any module owning a `Context` implements a `dispose()` method.
|
||||
|
||||
## Conventions
|
||||
- **Files**: `module.kt` (Class/State/Actions) and `behaviours.kt` (Implementations).
|
||||
- **Actions**: Use `sealed interface`.
|
||||
- **State**: Data classes must use `val` only.
|
||||
- **Cleanup**: We use a direct `dispose()` method on modules instead of a `Disposable` interface.
|
||||
- **Detailed Conventions**: See `server/README.md` for full coding style and architecture details.
|
||||
|
||||
## Testing
|
||||
- **Reducers**: Test by creating a `Context` with specific `Behaviour`s.
|
||||
- **Modules**: Use `TestAppContext` and `buildTest...` helpers from `TestServer.kt`.
|
||||
|
||||
## Verification Protocol
|
||||
- **Linting**: Run `./gradlew spotlessApply` (Server) or `pnpm run lint:fix` (GUI).
|
||||
- **Testing**: Identify and run the relevant test suite (e.g., `./gradlew test` or specific module tests).
|
||||
- **Final Audit**: Perform a final `git diff` check to ensure no unintended changes were made.
|
||||
@@ -22,21 +22,25 @@ Now you can open the codebase in [IDEA](https://www.jetbrains.com/idea/download/
|
||||
|
||||
### Java (server)
|
||||
|
||||
Before contributing to the server, read [server/README.md](server/README.md) for an overview of its architecture and design guidelines.
|
||||
|
||||
The Java code is built with `gradle`, a CLI tool that manages java projects and their
|
||||
dependencies.
|
||||
- You can run the server by running `./gradlew run` in your IDE's terminal.
|
||||
- You can run the server by running `./gradlew :server:desktop:run` in your IDE's terminal.
|
||||
- To compile the code, run `./gradlew shadowJar`. The result will
|
||||
be at `server/build/libs/slimevr.jar` (you can ignore `server.jar`).
|
||||
be at `server/desktop/build/libs/slimevr.jar` (you can ignore `server.jar`).
|
||||
|
||||
(Note: Your IDE may be able to do all of the above for you.)
|
||||
|
||||
### Electron (gui)
|
||||
|
||||
- Activate corepack (included with Node.JS) via `corepack enable` (might require administrator permissions)
|
||||
- Activate corepack (included with Node.js) via `corepack enable`
|
||||
(might require launching Git Bash as administrator on Windows)
|
||||
- Make sure you're at the root of the repository.
|
||||
- Run `pnpm i` in your IDE's terminal to download and install dependencies.
|
||||
- To launch the GUI in dev mode, run `pnpm gui`.
|
||||
- Finally, to compile for production, run `pnpm package:build`. The result
|
||||
will be at `dist/artifacts/` content will change depending of the platform.
|
||||
- Finally, to compile for production, run `pnpm package:build` under `gui/electron`.
|
||||
The result will be in `gui/dist/artifacts/`. Content will change depending on the platform.
|
||||
|
||||
## Code style
|
||||
|
||||
@@ -85,7 +89,7 @@ Eclipse will only do a subset of the checks in `spotless`, so you may still want
|
||||
### Electron (gui)
|
||||
|
||||
We use ESLint and Prettier to format GUI code.
|
||||
- First, go into the GUI's directory with your terminal by running `cd gui`.
|
||||
- Make sure you're at the root of the repository.
|
||||
- To check code formatting, run `pnpm run lint`.
|
||||
- To fix code formatting, run `pnpm run lint:fix` and `pnpm run format`
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ Latest setup instructions are [in our docs](https://docs.slimevr.dev/server/inde
|
||||
## Building & Contributing
|
||||
For information on building and contributing to the codebase, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||
|
||||
For an overview of the server architecture and design guidelines, see [server/README.md](server/README.md).
|
||||
|
||||
## Translating
|
||||
|
||||
Translation is done via Pontoon at [i18n.slimevr.dev](https://i18n.slimevr.dev/). Please join our [Discord translation forum](https://discord.com/channels/817184208525983775/1050413434249949235) to coordinate.
|
||||
|
||||
@@ -30,36 +30,36 @@ static void shutdown_vr(vr::IVRSystem *_sys) { vr::VR_Shutdown(); }
|
||||
static void onYawReset(SolarXRConnection &conn) {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Yaw, 0, 0.f);
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::YAW, 0, 0.f);
|
||||
auto msgHeader = rpc::CreateRpcMessageHeader(
|
||||
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
|
||||
|
||||
auto rpcMsgs = fbb.CreateVector({ msgHeader });
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs, 0);
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs);
|
||||
fbb.Finish(bundle);
|
||||
conn.sendMsg(fbb);
|
||||
}
|
||||
static void onFullReset(SolarXRConnection &conn) {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Full, 0, 0.f);
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::FULL, 0, 0.f);
|
||||
auto msgHeader = rpc::CreateRpcMessageHeader(
|
||||
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
|
||||
|
||||
auto rpcMsgs = fbb.CreateVector({ msgHeader });
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs, 0);
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs);
|
||||
fbb.Finish(bundle);
|
||||
conn.sendMsg(fbb);
|
||||
}
|
||||
static void onMountingCalibration(SolarXRConnection &conn) {
|
||||
flatbuffers::FlatBufferBuilder fbb;
|
||||
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Mounting, 0, 0.f);
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::MOUNTING, 0, 0.f);
|
||||
auto msgHeader = rpc::CreateRpcMessageHeader(
|
||||
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
|
||||
|
||||
auto rpcMsgs = fbb.CreateVector({ msgHeader });
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs, 0);
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs);
|
||||
fbb.Finish(bundle);
|
||||
conn.sendMsg(fbb);
|
||||
}
|
||||
@@ -68,12 +68,12 @@ static void onFeetMountingCalibration(SolarXRConnection &conn) {
|
||||
|
||||
auto bodyParts = fbb.CreateVector(
|
||||
{ datatypes::BodyPart::LEFT_FOOT, datatypes::BodyPart::RIGHT_FOOT });
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Mounting, bodyParts, 0.f);
|
||||
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::MOUNTING, bodyParts, 0.f);
|
||||
auto msgHeader = rpc::CreateRpcMessageHeader(
|
||||
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
|
||||
|
||||
auto rpcMsgs = fbb.CreateVector({ msgHeader });
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs, 0);
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs);
|
||||
fbb.Finish(bundle);
|
||||
conn.sendMsg(fbb);
|
||||
}
|
||||
@@ -88,7 +88,7 @@ static void onToggleTracking(SolarXRConnection &conn) {
|
||||
toggleReq.Union());
|
||||
|
||||
auto rpcMsgs = fbb.CreateVector({ msgHeader });
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs, 0);
|
||||
auto bundle = CreateMessageBundle(fbb, 0, rpcMsgs);
|
||||
fbb.Finish(bundle);
|
||||
conn.sendMsg(fbb);
|
||||
}
|
||||
|
||||
@@ -34,6 +34,22 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-jdk24": {
|
||||
"locked": {
|
||||
"lastModified": 1756787288,
|
||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1777168982,
|
||||
@@ -52,7 +68,8 @@
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-jdk24": "nixpkgs-jdk24"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
# Pinned to a revision that still ships temurin jdk-24
|
||||
nixpkgs-jdk24.url = "github:NixOS/nixpkgs/d0fc30899600b9b3466ddb260fd83deb486c32f1";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
@@ -10,6 +12,7 @@
|
||||
inputs@{
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-jdk24,
|
||||
flake-parts,
|
||||
...
|
||||
}:
|
||||
@@ -20,8 +23,15 @@
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
system,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
java = (import nixpkgs-jdk24 { inherit system; }).jdk24;
|
||||
|
||||
runtimeLibs = [
|
||||
pkgs.alsa-lib
|
||||
pkgs.libpulseaudio
|
||||
@@ -109,55 +119,101 @@
|
||||
ln -s ${runtime}/lib $out/lib
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [
|
||||
# for running the jar
|
||||
pkgs.jdk17
|
||||
# for build
|
||||
pkgs.electron
|
||||
pkgs.rpm
|
||||
pkgs.fpm
|
||||
pkgs.p7zip
|
||||
pkgs.wineWow64Packages.stable
|
||||
pkgs.zlib
|
||||
pkgs.squashfsTools
|
||||
pkgs.desktop-file-utils
|
||||
pkgs.fakeroot
|
||||
pkgs.libarchive
|
||||
pkgs.icu
|
||||
pkgs.nodejs_22
|
||||
pkgs.pnpm
|
||||
pkgs.pkg-config
|
||||
pkgs.python3
|
||||
pkgs.gcc
|
||||
pkgs.gnumake
|
||||
pkgs.binutils
|
||||
pkgs.git
|
||||
pkgs.node-gyp-build
|
||||
];
|
||||
buildInputs = runtimeLibs;
|
||||
|
||||
JAVA_HOME = "${pkgs.jdk17}/lib/openjdk";
|
||||
# Toolchain shared by the dev shell and the packaging FHS env.
|
||||
commonPackages = [
|
||||
# for running the jar
|
||||
java
|
||||
|
||||
# for build
|
||||
pkgs.electron
|
||||
pkgs.rpm
|
||||
pkgs.fpm
|
||||
pkgs.p7zip
|
||||
pkgs.wineWow64Packages.stable
|
||||
pkgs.zlib
|
||||
pkgs.squashfsTools
|
||||
pkgs.desktop-file-utils
|
||||
pkgs.fakeroot
|
||||
pkgs.libarchive
|
||||
pkgs.icu
|
||||
pkgs.nodejs_22
|
||||
pkgs.pnpm
|
||||
pkgs.pkg-config
|
||||
pkgs.python3
|
||||
pkgs.gcc
|
||||
pkgs.gnumake
|
||||
pkgs.binutils
|
||||
pkgs.git
|
||||
pkgs.node-gyp-build
|
||||
];
|
||||
|
||||
buildEnv = {
|
||||
JAVA_HOME = "${java}/lib/openjdk";
|
||||
USE_SYSTEM_FPM = "true";
|
||||
ELECTRON_BUILDER_7ZIP_PATH = "${pkgs.p7zip}/bin/7za";
|
||||
APPIMAGE_TOOLS_PATH = "${appImageTools}";
|
||||
#ELECTRON_SKIP_BINARY_DOWNLOAD = true;
|
||||
#ELECTRON_DIST = "${pkgs.electron.dist}";
|
||||
#ELECTRON_VERSION = "${pkgs.electron.version}";
|
||||
|
||||
# for electron-vite, so `pnpm gui` works
|
||||
ELECTRON_EXEC_PATH = "${pkgs.electron}/bin/electron";
|
||||
};
|
||||
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="${
|
||||
lib.makeLibraryPath [
|
||||
pkgs.systemd
|
||||
pkgs.hidapi
|
||||
]
|
||||
}:$LD_LIBRARY_PATH"
|
||||
'';
|
||||
# electron-builder produces generic dynamically-linked binaries that
|
||||
# NixOS can't run (no /lib64 loader). Building and running the packaged
|
||||
# app inside an FHS sandbox provides that standard loader, so the final
|
||||
# electron build works. `nix run .#package` runs `pnpm package:build`.
|
||||
packageBuildScript = pkgs.writeShellScript "slimevr-package-build" ''
|
||||
set -eu
|
||||
cd "$(${pkgs.git}/bin/git rev-parse --show-toplevel)"
|
||||
${lib.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList (name: value: "export ${name}=${lib.escapeShellArg value}") buildEnv
|
||||
)}
|
||||
export LD_LIBRARY_PATH="${lib.makeLibraryPath (runtimeLibs ++ [ pkgs.hidapi ])}:''${LD_LIBRARY_PATH:-}"
|
||||
pnpm install
|
||||
pnpm --filter @slimevr/gui-electron run package:build
|
||||
'';
|
||||
|
||||
packageBuildFhs = pkgs.buildFHSEnv {
|
||||
name = "slimevr-package-build";
|
||||
targetPkgs = _: commonPackages ++ runtimeLibs;
|
||||
runScript = "${packageBuildScript}";
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell (
|
||||
buildEnv
|
||||
// {
|
||||
packages = commonPackages;
|
||||
buildInputs = runtimeLibs;
|
||||
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="${
|
||||
lib.makeLibraryPath [
|
||||
pkgs.systemd
|
||||
pkgs.hidapi
|
||||
]
|
||||
}:$LD_LIBRARY_PATH"
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
# Build the desktop package inside an FHS sandbox:
|
||||
# nix run .#package
|
||||
apps.package = {
|
||||
type = "app";
|
||||
program = "${packageBuildFhs}/bin/slimevr-package-build";
|
||||
};
|
||||
|
||||
# Interactive FHS shell for manual packaging / running the built app:
|
||||
# nix run .#package-shell
|
||||
apps.package-shell = {
|
||||
type = "app";
|
||||
program = "${
|
||||
pkgs.buildFHSEnv {
|
||||
name = "slimevr-fhs";
|
||||
targetPkgs = _: commonPackages ++ runtimeLibs;
|
||||
runScript = "bash";
|
||||
}
|
||||
}/bin/slimevr-fhs";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -17,7 +17,4 @@ kotlinVersion=2.3.10
|
||||
spotlessVersion=8.2.1
|
||||
shadowJarVersion=9.3.1
|
||||
buildconfigVersion=6.0.7
|
||||
|
||||
# Fix gradle leaving multiple java processes running that accumulate and use multiple GBs of RAM
|
||||
# This mostly seems to affect it when running from console, and then sending a SIGINT (Ctrl + C)
|
||||
org.gradle.daemon.idletimeout=10000
|
||||
wireVersion=5.3.1
|
||||
@@ -1,7 +1,7 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
|
||||
distributionSha256Sum=f1771298a70f6db5a29daf62378c4e18a17fc33c9ba6b14362e0cdf40610380d
|
||||
distributionSha256Sum=bbaeb2fef8710818cf0e261201dab964c572f92b942812df0c3620d62a529a01
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.0-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -86,8 +86,7 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
@@ -115,7 +114,7 @@ case "$( uname )" in #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
CLASSPATH="\\\"\\\""
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
@@ -206,7 +205,7 @@ fi
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
@@ -214,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
|
||||
@@ -70,11 +70,11 @@ goto fail
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
set CLASSPATH=
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# JS/TS dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
node_modules/
|
||||
.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
coverage/
|
||||
|
||||
# Build artifacts
|
||||
/build
|
||||
/target
|
||||
build/
|
||||
target/
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
@@ -26,8 +26,8 @@ yarn-error.log*
|
||||
*.log
|
||||
|
||||
# vite
|
||||
/dist
|
||||
/stats.html
|
||||
dist/
|
||||
stats.html
|
||||
vite.config.ts.timestamp*
|
||||
electron.vite.config.*.mjs
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export default {
|
||||
'**/*.{ts,tsx}': () => 'tsc -p tsconfig.json --noEmit',
|
||||
'{electron,src}/**/*.{js,jsx,ts,tsx}': 'eslint --max-warnings=0 --no-warn-ignored --cache --fix',
|
||||
'app/**/*.{js,jsx,ts,tsx}':
|
||||
'pnpm --filter @slimevr/gui-app exec eslint --no-warn-ignored --cache --fix',
|
||||
'**/*.{js,jsx,ts,tsx,css,scss,md,json}': 'prettier --write',
|
||||
};
|
||||
@@ -2,7 +2,8 @@ import { FlatCompat } from '@eslint/eslintrc';
|
||||
import eslint from '@eslint/js';
|
||||
import globals from 'globals';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import stylistic from '@stylistic/eslint-plugin';
|
||||
import react from 'eslint-plugin-react';
|
||||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
||||
|
||||
const compat = new FlatCompat();
|
||||
|
||||
@@ -10,7 +11,6 @@ export const gui = [
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
...compat.extends('plugin:@dword-design/import-alias/recommended'),
|
||||
...compat.plugins('eslint-plugin-react-hooks'),
|
||||
// Add import-alias rule inside compat because plugin doesn't like flat configs
|
||||
...compat.config({
|
||||
rules: {
|
||||
@@ -39,20 +39,28 @@ export const gui = [
|
||||
...globals.jest,
|
||||
},
|
||||
},
|
||||
files: ['{electron,src}/**/*.{js,jsx,ts,tsx,json}'],
|
||||
files: ['{electron,src}/**/*.{js,jsx,ts,tsx}'],
|
||||
plugins: {
|
||||
'@typescript-eslint': tseslint.plugin,
|
||||
'@stylistic': stylistic,
|
||||
react,
|
||||
},
|
||||
rules: {
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'spaced-comment': 'error',
|
||||
quotes: ['error', 'single'],
|
||||
'no-duplicate-imports': 'error',
|
||||
'no-inline-styles': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'react/no-unescaped-entities': 'off',
|
||||
// effect on every render (a common infinite-loop / perf footgun).
|
||||
'no-restricted-syntax': [
|
||||
'error',
|
||||
{
|
||||
selector:
|
||||
'CallExpression[callee.name=/^use(Effect|LayoutEffect|InsertionEffect)$/][arguments.length<2]',
|
||||
message:
|
||||
'Pass a dependency array to this hook (use [] to run it once). Omitting it re-runs on every render.',
|
||||
},
|
||||
],
|
||||
'spaced-comment': 'error',
|
||||
'no-duplicate-imports': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
camelcase: 'error',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
@@ -62,7 +70,6 @@ export const gui = [
|
||||
ignoreRestSiblings: true,
|
||||
},
|
||||
],
|
||||
'@stylistic/jsx-self-closing-comp': 'error',
|
||||
},
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
@@ -73,6 +80,7 @@ export const gui = [
|
||||
},
|
||||
},
|
||||
},
|
||||
eslintPluginPrettierRecommended,
|
||||
// Global ignore
|
||||
{
|
||||
ignores: ['**/firmware-tool-api/'],
|
||||
@@ -1,90 +1,39 @@
|
||||
{
|
||||
"name": "slimevr",
|
||||
"name": "@slimevr/gui-app",
|
||||
"version": "0.0.0",
|
||||
"author": "SlimeVR Team <[email protected]>",
|
||||
"homepage": "https://slimevr.dev",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@ryuziii/discord-rpc": "1.0.1-rc.1",
|
||||
"@xhayper/discord-rpc": "^1.3.0",
|
||||
"commander": "^14.0.3",
|
||||
"discord-rich-presence": "^0.0.8",
|
||||
"glob": "^13.0.3",
|
||||
"open": "^11.0.0",
|
||||
"pino": "^10.3.1",
|
||||
"pino-pretty": "^13.1.3",
|
||||
"pino-roll": "^4.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "vite --force",
|
||||
"gui": "electron-vite dev --config electron.vite.config.ts --watch",
|
||||
"build": "electron-vite build --config electron.vite.config.ts",
|
||||
"package": "electron-builder",
|
||||
"package:build": "pnpm build && pnpm package",
|
||||
"preview": "electron-vite preview --config electron.vite.config.ts",
|
||||
"skipbundler": "vite build",
|
||||
"lint": "tsc --noEmit && eslint --max-warnings=0 \"{electron,src}/**/*.{js,jsx,ts,tsx,json}\" && prettier --check \"{electron,src}/**/*.{js,jsx,ts,tsx,css,scss,md,json}\"",
|
||||
"lint:fix": "tsc --noEmit && eslint --fix --max-warnings=0 \"{electron,src}/**/*.{js,jsx,ts,tsx,json}\" && pnpm run format",
|
||||
"format": "prettier --write \"{electron,src}/**/*.{js,jsx,ts,tsx,css,scss,md,json}\"",
|
||||
"javaversion-build": "cd electron/resources/java-version/ && javac JavaVersion.java && jar cvfe JavaVersion.jar JavaVersion JavaVersion.class",
|
||||
"gen:javaversion": "cd electron/resources/java-version/ && javac JavaVersion.java && jar cvfe JavaVersion.jar JavaVersion JavaVersion.class",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "tsc --noEmit && eslint \"src/**/*.{js,jsx,ts,tsx}\" && prettier --check \"src/**/*.{css,scss,md,json}\"",
|
||||
"lint:fix": "tsc --noEmit && eslint --fix \"src/**/*.{js,jsx,ts,tsx}\" && prettier --write \"src/**/*.{css,scss,md,json}\"",
|
||||
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,css,scss,md,json}\"",
|
||||
"gen:firmware-tool": "openapi-codegen gen firmwareTool"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@dword-design/eslint-plugin-import-alias": "^4.0.9",
|
||||
"@electron/asar": "^4.0.1",
|
||||
"dependencies": {
|
||||
"@fluent/bundle": "^0.18.0",
|
||||
"@fluent/react": "^0.15.2",
|
||||
"@fontsource/poppins": "^5.1.0",
|
||||
"@formatjs/intl-localematcher": "^0.2.32",
|
||||
"@hookform/resolvers": "^3.6.0",
|
||||
"@openapi-codegen/cli": "^3.1.0",
|
||||
"@openapi-codegen/typescript": "^8.0.2",
|
||||
"@react-hookz/deep-equal": "^3.0.3",
|
||||
"@sentry/react": "10.29.0",
|
||||
"@sentry/vite-plugin": "^2.22.7",
|
||||
"@stylistic/eslint-plugin": "^5.5.0",
|
||||
"@tailwindcss/forms": "^0.5.9",
|
||||
"@tailwindcss/typography": "^0.5.15",
|
||||
"@slimevr/gui-shared": "workspace:*",
|
||||
"@tanstack/react-query": "^5.48.0",
|
||||
"@tweenjs/tween.js": "^25.0.0",
|
||||
"@twemoji/svg": "^15.0.0",
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@types/node": "^24.3.1",
|
||||
"@types/react": "^18.3.11",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@types/react-helmet": "^6.1.11",
|
||||
"@types/react-modal": "3.16.3",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/three": "^0.163.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
||||
"@typescript-eslint/parser": "^8.48.1",
|
||||
"@vitejs/plugin-react": "^4.3.2",
|
||||
"ajv": "^8.17.1",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"browser-fs-access": "^0.35.0",
|
||||
"classnames": "^2.5.1",
|
||||
"convert": "^5.12.0",
|
||||
"dmg-license": "^1.0.11",
|
||||
"dotenv": "^16.4.5",
|
||||
"electron": "^40.3.0",
|
||||
"electron-builder": "^26.15.0",
|
||||
"electron-vite": "^5.0.0",
|
||||
"@eslint/eslintrc": "^3.3.5",
|
||||
"@eslint/js": "^9.39.4",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-import-resolver-typescript": "^3.10.1",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"flatbuffers": "22.10.26",
|
||||
"globals": "^15.10.0",
|
||||
"intl-pluralrules": "^2.0.1",
|
||||
"ip-num": "^1.5.1",
|
||||
"jotai": "^2.12.2",
|
||||
"prettier": "^3.3.3",
|
||||
"prompts": "^2.4.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-error-boundary": "^4.0.13",
|
||||
@@ -95,21 +44,52 @@
|
||||
"react-responsive": "^10.0.0",
|
||||
"react-router-dom": "^6.26.2",
|
||||
"remark-gfm": "^4.0.0",
|
||||
"rollup-plugin-visualizer": "^5.12.0",
|
||||
"sass": "^1.79.4",
|
||||
"semver": "^7.6.3",
|
||||
"solarxr-protocol": "file:../solarxr-protocol",
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"solarxr-protocol": "workspace:*",
|
||||
"tailwind-gradient-mask-image": "^1.2.0",
|
||||
"tailwindcss": "^3.4.13",
|
||||
"three": "^0.163.0",
|
||||
"ts-pattern": "^5.4.0",
|
||||
"typescript": "^5.6.3",
|
||||
"typescript-eslint": "^8.46.2",
|
||||
"use-double-tap": "^1.3.6",
|
||||
"uuid": "^13.0.0",
|
||||
"vite": "^5.4.8",
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"main": "./out/main/index.js"
|
||||
"devDependencies": {
|
||||
"@dword-design/eslint-plugin-import-alias": "^4.0.9",
|
||||
"@eslint/eslintrc": "^3.3.5",
|
||||
"@eslint/js": "^9.39.4",
|
||||
"@openapi-codegen/cli": "^3.1.0",
|
||||
"@openapi-codegen/typescript": "^8.0.2",
|
||||
"@sentry/vite-plugin": "^2.22.7",
|
||||
"@tailwindcss/forms": "^0.5.9",
|
||||
"@tailwindcss/typography": "^0.5.15",
|
||||
"@types/node": "^24.3.1",
|
||||
"@types/react": "^18.3.11",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@types/react-helmet": "^6.1.11",
|
||||
"@types/react-modal": "3.16.3",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/three": "^0.163.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
||||
"@typescript-eslint/parser": "^8.48.1",
|
||||
"@vitejs/plugin-react": "^4.3.2",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"dotenv": "^16.4.5",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-import-resolver-typescript": "^3.10.1",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-prettier": "^5.5.6",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"globals": "^15.10.0",
|
||||
"postcss": "^8.4.47",
|
||||
"prettier": "^3.3.3",
|
||||
"prompts": "^2.4.2",
|
||||
"rollup-plugin-visualizer": "^5.12.0",
|
||||
"sass": "^1.79.4",
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"tailwindcss": "^3.4.13",
|
||||
"typescript": "^5.6.3",
|
||||
"typescript-eslint": "^8.46.2",
|
||||
"vite": "^5.4.8"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -137,10 +137,6 @@ skeleton_bone-UPPER_CHEST-desc =
|
||||
This is the distance from the base of your neck to the middle of your chest.
|
||||
To adjust it, adjust your Torso Length properly and modify it in various positions
|
||||
(sitting down, bending over, lying down, etc.) until your virtual spine matches with your real one.
|
||||
skeleton_bone-CHEST_OFFSET = Chest Offset
|
||||
skeleton_bone-CHEST_OFFSET-desc =
|
||||
This can be adjusted to move your virtual chest tracker up or down in order to aid
|
||||
with calibration in certain games or applications that may expect it to be higher or lower.
|
||||
skeleton_bone-CHEST = Chest Length
|
||||
skeleton_bone-CHEST-desc =
|
||||
This is the distance from the middle of your chest to the middle of your spine.
|
||||
@@ -156,10 +152,6 @@ skeleton_bone-HIP-desc =
|
||||
This is the distance from your belly button to your hips.
|
||||
To adjust it, set your Torso Length properly and modify it in various positions
|
||||
(sitting down, bending over, lying down, etc.) until your virtual spine matches your real one.
|
||||
skeleton_bone-HIP_OFFSET = Hip Offset
|
||||
skeleton_bone-HIP_OFFSET-desc =
|
||||
This can be adjusted to move your virtual hip tracker up or down in order to aid
|
||||
with calibration in certain games or applications that may expect it to be on your waist.
|
||||
skeleton_bone-HIPS_WIDTH = Hips Width
|
||||
skeleton_bone-HIPS_WIDTH-desc =
|
||||
This is the distance between the start of your legs.
|
||||
@@ -190,11 +182,6 @@ skeleton_bone-FOOT_SHIFT-desc =
|
||||
It accounts for your lower legs going backwards when standing up straight.
|
||||
To adjust it, set Foot Length to 0, perform a full reset and modify it until your virtual
|
||||
feet line up with the middle of your ankles.
|
||||
skeleton_bone-SKELETON_OFFSET = Skeleton Offset
|
||||
skeleton_bone-SKELETON_OFFSET-desc =
|
||||
This can be adjusted to offset all your trackers forward or backward.
|
||||
It can be used to help with calibration in certain games or applications
|
||||
that may expect your trackers to be more forward.
|
||||
skeleton_bone-SHOULDERS_DISTANCE = Shoulders Distance
|
||||
skeleton_bone-SHOULDERS_DISTANCE-desc =
|
||||
This is the vertical distance from the base of your neck to your shoulders.
|
||||
@@ -233,10 +220,6 @@ skeleton_bone-HAND_Z-desc =
|
||||
To adjust it for motion capture, set it to 0.
|
||||
To adjust it for elbow tracking from your controllers, set Arm Length to 0 and
|
||||
modify it until your elbow trackers line up horizontally with your wrists.
|
||||
skeleton_bone-ELBOW_OFFSET = Elbow Offset
|
||||
skeleton_bone-ELBOW_OFFSET-desc =
|
||||
This can be adjusted to move your virtual elbow trackers up or down in order to aid
|
||||
with VRChat accidentally binding an elbow tracker to the chest.
|
||||
|
||||
## Tracker reset buttons
|
||||
reset-reset_all = Reset all proportions
|
||||
@@ -292,9 +275,6 @@ widget-overlay = Overlay
|
||||
widget-overlay-is_visible_label = Show Overlay in SteamVR
|
||||
widget-overlay-is_mirrored_label = Display Overlay as Mirror
|
||||
|
||||
## Widget: Drift compensation
|
||||
widget-drift_compensation-clear = Clear drift compensation
|
||||
|
||||
## Widget: Clear Mounting calibration
|
||||
widget-clear_mounting = Clear mounting calibration
|
||||
|
||||
@@ -389,9 +369,6 @@ tracker-settings-assignment_section-edit = Edit assignment
|
||||
tracker-settings-mounting_section = Mounting orientation
|
||||
tracker-settings-mounting_section-description = Where is the tracker mounted?
|
||||
tracker-settings-mounting_section-edit = Edit mounting
|
||||
tracker-settings-drift_compensation_section = Allow drift compensation
|
||||
tracker-settings-drift_compensation_section-description = Should this tracker compensate for its drift when drift compensation is enabled?
|
||||
tracker-settings-drift_compensation_section-edit = Allow drift compensation
|
||||
tracker-settings-use_mag = Allow magnetometer on this tracker
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
@@ -481,13 +458,12 @@ mounting_selection_menu-close = Close
|
||||
## Sidebar settings
|
||||
settings-sidebar-title = Settings
|
||||
settings-sidebar-general = General
|
||||
settings-sidebar-steamvr = SteamVR
|
||||
settings-sidebar-tracker_mechanics = Tracker mechanics
|
||||
settings-sidebar-output = Output
|
||||
settings-sidebar-resets = Resets
|
||||
settings-sidebar-stay_aligned = Stay Aligned
|
||||
settings-sidebar-fk_settings = Tracking settings
|
||||
settings-sidebar-gesture_control = Gesture control
|
||||
settings-sidebar-tracking = Tracking
|
||||
settings-sidebar-trackers = Trackers
|
||||
settings-sidebar-interface = Interface
|
||||
settings-sidebar-osc_router = OSC router
|
||||
settings-sidebar-osc_trackers = VRChat OSC Trackers
|
||||
settings-sidebar-osc_vmc = VMC
|
||||
settings-sidebar-utils = Utilities
|
||||
@@ -501,15 +477,16 @@ settings-sidebar-firmware-tool = DIY Firmware Tool
|
||||
settings-sidebar-vrc_warnings = VRChat Config Warnings
|
||||
settings-sidebar-advanced = Advanced
|
||||
|
||||
## SteamVR settings
|
||||
settings-general-steamvr = SteamVR
|
||||
settings-general-steamvr-subtitle = SteamVR trackers
|
||||
## Output settings
|
||||
# Some keys have steamvr in them as we switched to output but want to keep existing translations
|
||||
settings-general-output = Output Settings
|
||||
settings-general-output_trackers = Output trackers
|
||||
# Not all translation keys support multiline, only the ones that specify it will actually
|
||||
# split it in lines (that also means you can split in lines however you want in those).
|
||||
# The first spaces (not tabs) for indentation will be ignored, just to make the file look nice when writing.
|
||||
# This one is one of this cases that cares about multilines
|
||||
settings-general-steamvr-description =
|
||||
Enable or disable specific SteamVR trackers.
|
||||
settings-general-output_trackers-description =
|
||||
Enable or disable specific trackers to output.
|
||||
Useful for games or apps that only support certain trackers.
|
||||
settings-general-steamvr-trackers-waist = Waist
|
||||
settings-general-steamvr-trackers-chest = Chest
|
||||
@@ -522,7 +499,7 @@ settings-general-steamvr-trackers-right_elbow = Right elbow
|
||||
settings-general-steamvr-trackers-left_hand = Left hand
|
||||
settings-general-steamvr-trackers-right_hand = Right hand
|
||||
settings-general-steamvr-trackers-tracker_toggling = Automatic tracker assignment
|
||||
settings-general-steamvr-trackers-tracker_toggling-description = Automatically handles toggling SteamVR trackers on or off depending on your current tracker assignments.
|
||||
settings-general-output-trackers-tracker_toggling-description = Automatically handles toggling output trackers on or off depending on your current tracker assignments.
|
||||
settings-general-steamvr-trackers-tracker_toggling-label = Automatic tracker assignment
|
||||
settings-general-steamvr-trackers-hands-warning = <b>Warning:</b> Enabling the SteamVR hand trackers will disable inputs from real controllers.
|
||||
This should only be enabled if you are using SlimeVR for hand tracking.
|
||||
@@ -532,7 +509,7 @@ settings-general-steamvr-trackers-hands-warning-cancel = Cancel
|
||||
settings-general-steamvr-trackers-hands-warning-done = Yes
|
||||
|
||||
## Tracker mechanics
|
||||
settings-general-tracker_mechanics = Tracker mechanics
|
||||
settings-general-trackers_settings = Trackers Settings
|
||||
settings-general-tracker_mechanics-filtering = Filtering
|
||||
# This also cares about multilines
|
||||
settings-general-tracker_mechanics-filtering-description =
|
||||
@@ -547,25 +524,6 @@ settings-general-tracker_mechanics-filtering-type-prediction = Prediction
|
||||
settings-general-tracker_mechanics-filtering-type-prediction-description = Reduces latency and makes movements more snappy, but may increase jitter.
|
||||
settings-general-tracker_mechanics-filtering-amount = Amount
|
||||
settings-general-tracker_mechanics-yaw-reset-smooth-time = Yaw reset smooth time (0s disables smoothing)
|
||||
settings-general-tracker_mechanics-drift_compensation = Drift compensation
|
||||
# This cares about multilines
|
||||
settings-general-tracker_mechanics-drift_compensation-description =
|
||||
Compensates for IMU yaw drift by applying an inverse rotation.
|
||||
Change the amount of compensation and the number of resets taken into account.
|
||||
This should only be used if you need to reset very often!
|
||||
settings-general-tracker_mechanics-drift_compensation-enabled-label = Drift compensation
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction = Drift compensation prediction
|
||||
# This cares about multilines
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-description =
|
||||
Predicts yaw drift compensation beyond previously measured range.
|
||||
Enable this if your trackers are continuously spinning on the yaw axis.
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-label = Drift compensation prediction
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Warning:</b> Only use drift compensation if you need to reset
|
||||
very often (every ~5-10 minutes).
|
||||
|
||||
Some IMUs prone to frequent resets include:
|
||||
Joy-Cons, owoTrack, and MPUs (without recent firmware).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Cancel
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-done = I understand
|
||||
settings-general-tracker_mechanics-drift_compensation-amount-label = Compensation amount
|
||||
@@ -585,13 +543,12 @@ settings-general-tracker_mechanics-trackers_over_usb-description =
|
||||
Enables receiving HID tracker data over USB. Make sure connected trackers have <b>connection over HID</b> enabled!
|
||||
settings-general-tracker_mechanics-trackers_over_usb-enabled-label = Allow HID trackers to connect directly over USB
|
||||
|
||||
settings-stay_aligned = Stay Aligned
|
||||
settings-stay_aligned = Stay Aligned Settings
|
||||
settings-stay_aligned-description = Stay Aligned reduces drift by gradually adjusting your trackers to match your relaxed poses.
|
||||
settings-stay_aligned-setup-label = Setup Stay Aligned
|
||||
settings-stay_aligned-setup-description = You must complete "Setup Stay Aligned" to enable Stay Aligned.
|
||||
settings-stay_aligned-warnings-drift_compensation = ⚠ Please turn off Drift Compensation! Drift Compensation will conflict with Stay Aligned.
|
||||
settings-stay_aligned-enabled-label = Adjust trackers
|
||||
settings-stay_aligned-hide_yaw_correction-label = Hide adjustment (to compare with no Stay Aligned)
|
||||
settings-stay_aligned-hide_yaw_correction-label = Hide adjustment (to compare without Stay Aligned)
|
||||
settings-stay_aligned-general-label = General
|
||||
settings-stay_aligned-relaxed_poses-label = Relaxed Poses
|
||||
settings-stay_aligned-relaxed_poses-description = Stay Aligned uses your relaxed poses to keep the trackers aligned. Use "Setup Stay Aligned" to update these poses.
|
||||
@@ -605,8 +562,29 @@ settings-stay_aligned-debug-label = Debugging
|
||||
settings-stay_aligned-debug-description = Please include your settings when reporting problems about Stay Aligned.
|
||||
settings-stay_aligned-debug-copy-label = Copy settings to clipboard
|
||||
|
||||
## Keybinds Page
|
||||
settings-keybinds = Keybind settings
|
||||
settings-keybinds-description = Change keybinds for various shortcuts
|
||||
keybind_config-keybind_name = Keybind
|
||||
keybind_config-keybind_value = Combination
|
||||
keybind_config-keybind_delay = Delay before trigger (s)
|
||||
settings-keybinds_full-reset = Full Reset
|
||||
settings-keybinds_yaw-reset = Yaw Reset
|
||||
settings-keybinds_mounting-reset = Mounting Reset
|
||||
settings-keybinds_feet-mounting-reset = Feet Mounting Reset
|
||||
settings-keybinds_pause-tracking = Pause Tracking
|
||||
settings-keybinds_reset-all-button = Reset all
|
||||
settings-keybinds-system-managed-description = Your desktop manages global shortcuts itself, so they have to be changed from your system settings.
|
||||
settings-keybinds-open-system-settings-button = Open system settings
|
||||
settings-keybinds-unsupported-description = Global keybinds are not supported on this platform.
|
||||
settings-sidebar-keybinds = Keybinds
|
||||
settings-keybinds-recorder-modal-title = Assign keybind for
|
||||
settings-keybinds-recorder-modal-reset-button = Reset
|
||||
settings-keybinds-recorder-modal-unbind-button = Unbind
|
||||
settings-keybinds-recorder-modal-done-button = Done
|
||||
|
||||
## FK/Tracking settings
|
||||
settings-general-fk_settings = Tracking settings
|
||||
settings-general-fk_settings = Tracking Settings
|
||||
|
||||
# Floor clip:
|
||||
# why the name - came from the idea of noclip in video games, but is the opposite where clipping to the floor is a desired feature
|
||||
@@ -641,7 +619,7 @@ settings-general-fk_settings-velocity_settings-send_derived_velocity = Send deri
|
||||
settings-general-fk_settings-arm_fk = Arm tracking
|
||||
settings-general-fk_settings-arm_fk-description = Force arms to be tracked from the headset (HMD) even if positional hand data is available.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Force arms from HMD
|
||||
settings-general-fk_settings-reset_settings = Reset settings
|
||||
settings-general-fk_settings-resets_settings = Resets Settings
|
||||
settings-general-fk_settings-reset_settings-reset_hmd_pitch-description = Reset the HMD's pitch (vertical rotation) upon doing a full reset. Useful if wearing an HMD on the forehead for VTubing or mocap. Do not enable for VR.
|
||||
settings-general-fk_settings-reset_settings-reset_hmd_pitch = Reset HMD pitch
|
||||
settings-general-fk_settings-arm_fk-reset_mode-description = Change which arm pose is expected for mounting calibration.
|
||||
@@ -653,26 +631,17 @@ settings-general-fk_settings-arm_fk-tpose_down = T-pose (down)
|
||||
settings-general-fk_settings-arm_fk-tpose_down-description = Expects your arms to be 90 degrees up to the sides during Full Reset, and down at your sides during Mounting Calibration.
|
||||
settings-general-fk_settings-arm_fk-forward = Forward
|
||||
settings-general-fk_settings-arm_fk-forward-description = Expects your arms to be raised forward at 90 degrees. Useful for VTubing.
|
||||
settings-general-fk_settings-skeleton_settings-toggles = Skeleton toggles
|
||||
settings-general-fk_settings-skeleton_settings-description = Toggle skeleton settings on or off. It is recommended to leave these on.
|
||||
settings-general-fk_settings-skeleton_settings-extended_spine_model = Extended spine model
|
||||
settings-general-fk_settings-skeleton_settings-extended_pelvis_model = Extended pelvis model
|
||||
settings-general-fk_settings-skeleton_settings-extended_knees_model = Extended knee model
|
||||
settings-general-fk_settings-skeleton_settings-ratios = Skeleton ratios
|
||||
settings-general-fk_settings-skeleton_settings-ratios-description = Change the values of skeleton settings. You may need to adjust your proportions after changing these.
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_hip = Impute waist from chest to hip
|
||||
settings-general-fk_settings-skeleton_settings-impute_waist_from_chest_legs = Impute waist from chest to legs
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_chest_legs = Impute hip from chest to legs
|
||||
settings-general-fk_settings-skeleton_settings-impute_hip_from_waist_legs = Impute hip from waist to legs
|
||||
settings-general-fk_settings-skeleton_settings-interp_hip_legs = Average the hip's yaw and roll with the legs'
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_tracker_ankle = Average the knee trackers' yaw and roll with the ankles'
|
||||
settings-general-fk_settings-skeleton_settings-interp_knee_ankle = Average the knees' yaw and roll with the ankles'
|
||||
|
||||
settings-general-fk_settings-skeleton_settings-impute_spine_from_upper_to_lower = Impute missing spine trackers from upper to lower
|
||||
settings-general-fk_settings-skeleton_settings-impute_spine_curvature = Spine curvature when missing adjacent spine trackers
|
||||
settings-general-fk_settings-skeleton_settings-interpolate_hip_with_knees = Interpolate the hip with the knees
|
||||
settings-general-fk_settings-skeleton_settings-interpolate_computed_knees_with_ankles = Interpolate the computed knees with the ankles
|
||||
settings-general-fk_settings-skeleton_settings-interpolate_knees_with_ankles = Interpolate the knees with the ankles
|
||||
settings-general-fk_settings-self_localization-title = Mocap mode
|
||||
settings-general-fk_settings-self_localization-description = Mocap Mode allows the skeleton to roughly track its own position without a headset or other trackers. Note that this requires feet and head trackers to work and is still experimental.
|
||||
|
||||
## Gesture control settings (tracker tapping)
|
||||
settings-general-gesture_control = Gesture control
|
||||
settings-general-gesture_control-subtitle = Tap based resets
|
||||
settings-general-gesture_control-description = Allows for resets to be triggered by tapping a tracker. Taps must occur within the time limit of 0.3 seconds times the number of taps to be recognized.
|
||||
# This is a unit: 3 taps, 2 taps, 1 tap
|
||||
@@ -695,7 +664,7 @@ settings-general-gesture_control-fullResetEnabled = Enable tap to full reset
|
||||
settings-general-gesture_control-fullResetDelay = Full reset delay
|
||||
settings-general-gesture_control-fullResetTaps = Taps for full reset
|
||||
settings-general-gesture_control-fullResetTracker = Full Reset Tracker
|
||||
settings-general-gesture_control-mountingResetEnabled = Enable tap to perform mounting calibration
|
||||
settings-general-gesture_control-mountingResetEnabled = Enable tap to mounting reset
|
||||
settings-general-gesture_control-mountingResetDelay = Mounting calibration delay
|
||||
settings-general-gesture_control-mountingResetTaps = Taps for mounting calibration
|
||||
settings-general-gesture_control-mountingResetTracker = Mounting Reset Tracker
|
||||
@@ -805,30 +774,6 @@ settings-serial-send_command-warning =
|
||||
settings-serial-send_command-warning-ok = I know what I'm doing
|
||||
settings-serial-send_command-warning-cancel = Cancel
|
||||
|
||||
## OSC router settings
|
||||
settings-osc-router = OSC router
|
||||
# This cares about multilines
|
||||
settings-osc-router-description =
|
||||
Forward OSC messages from another program.
|
||||
Useful for using another OSC program with VRChat, for example.
|
||||
settings-osc-router-enable = Enable
|
||||
settings-osc-router-enable-description = Toggle the forwarding of messages.
|
||||
settings-osc-router-enable-label = Enable
|
||||
settings-osc-router-network = Network ports
|
||||
# This cares about multilines
|
||||
settings-osc-router-network-description =
|
||||
Set the ports for listening and sending data.
|
||||
These can be the same as other ports used in the SlimeVR server.
|
||||
settings-osc-router-network-port_in =
|
||||
.label = Port In
|
||||
.placeholder = Port in (default: 9002)
|
||||
settings-osc-router-network-port_out =
|
||||
.label = Port Out
|
||||
.placeholder = Port out (default: 9000)
|
||||
settings-osc-router-network-address = Network address
|
||||
settings-osc-router-network-address-description = Set the address to send out data at.
|
||||
settings-osc-router-network-address-placeholder = IPV4 address
|
||||
|
||||
## OSC VRChat settings
|
||||
settings-osc-vrchat = VRChat OSC Trackers
|
||||
# This cares about multilines
|
||||
@@ -857,13 +802,40 @@ settings-osc-vrchat-network-port_out =
|
||||
settings-osc-vrchat-network-address = Network address
|
||||
settings-osc-vrchat-network-address-description-v1 = Choose which address to send out data to. Can be left untouched for VRChat.
|
||||
settings-osc-vrchat-network-address-placeholder = VRChat ip address
|
||||
settings-osc-vrchat-network-trackers = Trackers
|
||||
settings-osc-vrchat-network-trackers-description = Toggle the sending of specific trackers via OSC.
|
||||
settings-osc-vrchat-network-trackers-chest = Chest
|
||||
settings-osc-vrchat-network-trackers-hip = Hip
|
||||
settings-osc-vrchat-network-trackers-knees = Knees
|
||||
settings-osc-vrchat-network-trackers-feet = Feet
|
||||
settings-osc-vrchat-network-trackers-elbows = Elbows
|
||||
|
||||
## VRChat OSC status
|
||||
settings-osc-vrchat-status-title = Status
|
||||
settings-osc-vrchat-status-disabled = Disabled
|
||||
settings-osc-vrchat-status-input = Input
|
||||
settings-osc-vrchat-status-output = Output
|
||||
settings-osc-vrchat-status-oscquery = OSCQuery
|
||||
settings-osc-vrchat-status-input-idle = Not listening
|
||||
settings-osc-vrchat-status-input-listening = Listening on port {$port}
|
||||
settings-osc-vrchat-status-input-last-data = Last data from VRChat: {$elapsed}
|
||||
settings-osc-vrchat-status-input-no-data = No data received from VRChat yet
|
||||
settings-osc-vrchat-status-output-idle = No target
|
||||
settings-osc-vrchat-status-output-sending = Sending to {$address}:{$port} ({$source})
|
||||
settings-osc-vrchat-status-output-target = Target {$address}:{$port} ({$source})
|
||||
settings-osc-vrchat-status-output-last-frame = Last frame sent: {$elapsed}
|
||||
settings-osc-vrchat-status-output-no-frame = No frame sent yet
|
||||
settings-osc-vrchat-status-source-manual = manual
|
||||
settings-osc-vrchat-status-source-auto = auto-detected
|
||||
settings-osc-vrchat-status-oscquery-disabled = OSCQuery off (manual network mode)
|
||||
settings-osc-vrchat-status-oscquery-advertising = Advertising on port {$port}
|
||||
settings-osc-vrchat-status-oscquery-searching = No VRChat clients found yet
|
||||
settings-osc-vrchat-status-oscquery-discovered-title = Discovered VRChat clients:
|
||||
settings-osc-vrchat-status-oscquery-switch = Switch
|
||||
settings-osc-vrchat-status-network-mode = Network mode
|
||||
settings-osc-vrchat-status-network-mode-description = Automatic mode discovers VRChat through OSCQuery. Manual mode uses the configured address and ports.
|
||||
settings-osc-vrchat-status-network-mode-toggle = Manual network settings
|
||||
settings-osc-vrchat-status-network-manual-description = Configure the local input port and the VRChat OSC target manually.
|
||||
settings-osc-vrchat-status-badge-idle = Idle
|
||||
settings-osc-vrchat-status-badge-listening = Listening
|
||||
settings-osc-vrchat-status-badge-ready = Ready
|
||||
settings-osc-vrchat-status-badge-found = Found
|
||||
settings-osc-vrchat-status-badge-searching = Searching
|
||||
settings-osc-vrchat-status-badge-disabled = Disabled
|
||||
settings-osc-vrchat-status-badge-error = Error
|
||||
|
||||
## VMC OSC settings
|
||||
settings-osc-vmc = Virtual Motion Capture
|
||||
@@ -897,7 +869,7 @@ settings-osc-vmc-mirror_tracking-description = Mirror the tracking horizontally.
|
||||
settings-osc-vmc-mirror_tracking-label = Mirror tracking
|
||||
|
||||
## Common OSC settings
|
||||
settings-osc-common-network-ports_match_error = The OSC Router in and out ports can't be the same!
|
||||
settings-osc-common-network-ports_match_error-v2 = The in and out ports can't be the same!
|
||||
settings-osc-common-network-port_banned_error = The port { $port } can't be used!
|
||||
|
||||
## Advanced settings
|
||||
|
Before Width: | Height: | Size: 450 KiB After Width: | Height: | Size: 450 KiB |
|
Before Width: | Height: | Size: 578 KiB After Width: | Height: | Size: 578 KiB |
|
Before Width: | Height: | Size: 428 KiB After Width: | Height: | Size: 428 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 151 KiB After Width: | Height: | Size: 151 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 480 KiB After Width: | Height: | Size: 480 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
|
Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 238 KiB |
|
Before Width: | Height: | Size: 221 KiB After Width: | Height: | Size: 221 KiB |
|
Before Width: | Height: | Size: 301 KiB After Width: | Height: | Size: 301 KiB |
|
Before Width: | Height: | Size: 219 KiB After Width: | Height: | Size: 219 KiB |
|
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 215 KiB After Width: | Height: | Size: 215 KiB |
|
Before Width: | Height: | Size: 363 KiB After Width: | Height: | Size: 363 KiB |
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 296 KiB |
|
Before Width: | Height: | Size: 262 KiB After Width: | Height: | Size: 262 KiB |
|
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 598 B |