Compare commits

..
1067 Commits
Author SHA1 Message Date
loucass003 b3d464b5d5 More setting pages and primitives 2026-10-26 13:48:10 +01:00
loucass003 c294de7867 Settings quick search, bare dialogs 2026-10-26 02:57:35 +01:00
loucass003 308a45e81d Settings layout, resets page, save confirmation 2026-10-26 02:30:27 +01:00
loucass003 2fc6be013a Flow engine, onboarding flow stubs 2026-10-26 00:19:11 +01:00
loucass003 262fbd72ef Tracker cards 2026-10-25 22:08:44 +01:00
loucass003 a902ffa15f Datafeed ingest, trackers store, developer prefs 2026-10-25 21:39:27 +01:00
loucass003 106cecd93c Assets, fonts, image, video and slime sprites 2026-10-25 17:58:04 +01:00
loucass003 06e1aa7584 App shell, title bar, connection gate 2026-10-25 17:03:33 +01:00
loucass003 b94cfcb46f Page, section, toolbar, settings group and row 2026-10-25 06:14:32 +01:00
loucass003 26c64c7979 Select, file input, keybind recorder, copy button 2026-10-25 04:34:56 +01:00
loucass003 af00794cd6 Number Field 2026-10-25 03:26:03 +01:00
loucass003 7ef875de9f Primitives + field contract 2026-10-25 03:07:06 +01:00
loucass003 b470613921 Dialogs, popovers, status, toasts 2026-10-25 02:24:46 +02:00
loucass003 69f5282ecc Nav core + back stack + shortcuts 2026-10-25 01:15:43 +02:00
loucass003 52bf583397 Icons 2026-10-24 21:10:15 +02:00
loucass003 fea53102dd Lint 2026-10-24 19:47:11 +02:00
loucass003 98731ff850 Css variables / themes / standard for surfaces 2026-10-24 19:46:43 +02:00
loucass003 fbb02b5c28 error reporting 2026-10-24 19:18:09 +02:00
loucass003 ce39007b95 Format 2026-10-24 18:44:41 +02:00
loucass003 9e6eca9617 l10n bindings 2026-10-24 18:32:40 +02:00
loucass003 041c8ae74f solarxr: ressource, stream and setting 2026-10-24 17:54:57 +02:00
loucass003 c0bbd7fdaa solarxr client 2026-10-24 17:16:25 +02:00
loucass003 5c0d049f65 Platform + storage 2026-10-24 16:50:26 +02:00
loucass003 833986e851 First commit on solidjs 2026-10-24 16:29:00 +02:00
loucass003 d7883b2026 Better loader on buttons 2026-10-24 03:23:09 +02:00
Erimel 714f8cbca4 reduce upper legs dragging spine when single spine tracker 2026-10-23 18:34:51 -04:00
Erimel e02cba43a2 Use extra performance headroom to lower IK threshold 2026-10-23 17:19:36 -04:00
Erimel 7fb25632d0 More easy optimizations in skeleton
from 23% to 15.5%!
2026-10-23 17:05:15 -04:00
Erimel 9aa78e8f87 Optimize skeleton loop and rework pause tracking 2026-10-23 16:41:35 -04:00
Erimel b0b381b6fa lint 2026-10-22 16:22:12 -04:00
Erimel a1cfabc45f Revert FoxVR easter egg 2026-10-22 15:48:23 -04:00
Erimel 29a071291c SlimeVR icon follows theme + citrus and fire themes 2026-10-21 20:38:23 -04:00
Erimel ff18a1ed77 SPOTLESS 2026-10-21 18:11:04 -04:00
Erimel 655fba5703 Stabler spine and better additional trackers support 2026-10-21 17:58:40 -04:00
Erimel 46390b49a4 even darker settings reset icon 2026-10-21 15:16:33 -04:00
Erimel 8e8bd126ed Make disabled setting reset darker and tweak themes 2026-10-20 23:40:18 -04:00
Erimel fa5488436d Make skeleton overrun logging more leniant 2026-10-20 21:11:01 -04:00
Erimel 0fa1177763 WIP weighted spine 2026-10-20 20:32:28 -04:00
Erimel ca85097473 Make trackercard fit 2 lines for name 2026-10-20 19:21:26 -04:00
Erimel 172ff8fc6c Increase height calibration range 2026-10-20 19:21:13 -04:00
Erimel b13b7ac5bf Cast value to Number in NumberSelector 2026-10-20 17:49:35 -04:00
Erimel 95a532dd50 Make HMD specific stuff HMD again 2026-10-20 17:27:59 -04:00
Erimel e51016baf4 Display Pre-release fw version as Pre-release 2026-10-20 17:06:06 -04:00
Erimel 4fbbfc7fb0 v22 and <v21 accel offset patch 2026-10-20 16:28:21 -04:00
Erimel efdc1aa4f5 Expand spine model to support several sources per bone 2026-10-19 22:10:09 -04:00
Erimel 6c25eae4f0 Temp patch for accel / Step Mounting 2026-10-19 17:44:43 -04:00
Erimel 3d17273916 comma 2026-10-19 16:07:13 -04:00
Erimel 65339a3105 Improve English translations 2026-10-19 16:05:04 -04:00
loucass003 2909187d00 Redesign of stay align settings 2026-10-19 20:24:06 +02:00
Sapphire 36115fbb1a Clarify meaning of SteamVR disconnected step 2026-10-17 20:04:18 -05:00
loucass003 414755fcb1 Reduce CPU usage on UDP 2026-10-18 01:07:46 +02:00
loucass003 6a82f5a54b Slower skeleton rate at idle 2026-10-17 17:57:58 +02:00
loucass003 71c627f6fa OTA fixes (not tested) 2026-10-17 07:17:20 +02:00
Erimel 6942810e4b more strokeWidth I forgor my bad 2026-10-17 00:48:26 -04:00
loucass003 bd08648046 Fix tap reset checkbox 2026-10-17 06:47:24 +02:00
Erimel f45889f993 strokeWidth 2026-10-17 00:44:49 -04:00
Sapphire 2d3b88fcf3 Remove no-longer-used rest calibration logic hook 2026-10-16 20:53:40 -05:00
Erimel ad70324679 better fox and trans themes 2026-10-16 19:48:59 -04:00
Erimel bacb171f84 Nothing to see here
Now FoxVR
2026-10-16 19:04:17 -04:00
Erimel 99a4f5420e Fix VMC tests 2026-10-16 18:58:58 -04:00
Erimel a0abe1e33b Improve Light theme and add Fox theme 2026-10-16 16:20:56 -04:00
loucass003 57d21c79ff useConnectedEffect - Fix issues when gui reconnects, now that the router is not unloaded when we loose connection 2026-10-16 18:08:54 +02:00
loucass003 db2e6b10c9 Fix newline detection in logger 2026-10-16 17:25:23 +02:00
loucass003 f005dd3c58 Fix scroll issues in logger + fix translations 2026-10-16 17:22:23 +02:00
loucass003 f0a8f07ea1 Logger 2026-10-16 17:00:27 +02:00
Erimel ef83b28a41 Make tracker preview models face the good way 2026-10-15 18:09:48 -04:00
Erimel 0de3a95d41 small tweak to foot scale 2026-10-15 18:09:36 -04:00
Erimel 13bb66c9e0 Run neck processor even without active head 2026-10-15 17:22:39 -04:00
Erimel e977e5dd0e Fine tune neck tracking estimation 2026-10-15 17:02:37 -04:00
Erimel eb1bc5f201 Fix driver velocity axes 2026-10-15 16:40:37 -04:00
Erimel 8e8d4e433b Fix VMC head using neck 2026-10-15 15:45:56 -04:00
Erimel 06bd37a854 flip order of dongle - wifi for adding trackers 2026-10-15 14:14:40 -04:00
loucass003 75caf21de5 Fix sentry issue when no server 2026-10-15 18:07:33 +02:00
loucass003 0140b0970d Small settings improvements for mobile 2026-10-15 10:18:53 +02:00
loucass003 1838e3f60d update gitignore 2026-10-15 07:15:06 +02:00
loucass003 02ce2ef901 Separate devices.json config tracker data now lives outside of profiles. Use hardwareId instead of mac address for all devices actions 2026-10-15 07:15:06 +02:00
loucass003 4e49f3aea2 Forget tracker + better unknown device handling 2026-10-15 07:15:06 +02:00
Erimel b8a4be7c36 Improved neck tracking estimation 2026-10-14 22:34:28 -04:00
Erimel fc9666cc7f Simplify skating correction to bare bones 2026-10-14 21:03:38 -04:00
Erimel 2c99580804 WIP improve skating correction 2026-10-14 18:33:06 -04:00
Erimel 5e689f4f28 Performance optimizations on skeleton 2026-10-14 16:59:13 -04:00
Erimel 3d1bb1629b Decrease IK threshold 2026-10-14 15:58:56 -04:00
Erimel d264d80419 Improve side spine + hip-less tracking 2026-10-14 15:30:08 -04:00
Erimel 4b02f8d81b Fix and improve toe snap 2026-10-14 14:48:18 -04:00
loucass003 8f760d7953 Move js files back to hook 2026-10-14 18:19:44 +02:00
loucass003 4bfd762622 Tracker telemetry 2026-10-14 18:04:33 +02:00
Erimel 7d72dc2c8a No more hip-upperlegs interpolation; improve chest-only tracking 2026-10-13 18:28:34 -04:00
Erimel efac8fda65 Erimel small GUI improvements and nits 2026-10-13 16:05:08 -04:00
loucass003 59be0e5275 Fix stay aligned steps 2026-10-13 21:58:57 +02:00
loucass003 350dca5e5c Add resets to tap reset table + Fix vrc warnings title 2026-10-13 21:35:49 +02:00
loucass003 c975680b06 Settings profile ui 2026-10-13 21:07:05 +02:00
loucass003 50c5ce4290 Settings profiles in solarxr 2026-10-13 19:17:56 +02:00
loucass003 a771054681 Base code for profiles switching 2026-10-13 19:03:58 +02:00
loucass003 4a4b15dce9 Improve settings look + Improve search look + Improve consent page look 2026-10-13 17:17:31 +02:00
Meia 335b5b145c Update CONTRIBUTING.md (#1948) 2026-10-13 22:07:43 +09:00
loucass003 5294be1588 Quick search in settings 2026-10-13 00:15:54 +02:00
loucass003 e65e5ad2f9 Settings defaults - add a way to reset any setting field individually 2026-10-12 22:40:32 +02:00
loucass003 862ecbdfef Settings pages relooking 2026-10-12 20:58:38 +02:00
loucass003 662d949ebe De groupping of setting pages. re ordering of pages. Move dev mode to advanced 2026-10-12 18:41:45 +02:00
loucass003 02cdabd0e9 Fix layout shift caused by the loaderIcon 2026-10-12 17:57:34 +02:00
loucass003 7d72bffeb7 Fix Typography dom error in tip boxes 2026-10-12 17:47:15 +02:00
loucass003 be2e1be7f8 Fix tooltips focus when opening modals 2026-10-12 17:06:42 +02:00
loucass003 110b44cd9b Handle unknown mounting method on the toolbar 2026-10-12 16:33:56 +02:00
loucass003 c1afe43f1f Fix flightlist status wrapping wrong 2026-10-12 16:10:40 +02:00
loucass003 f441908bf1 Fix race on prerequisites 2026-10-12 15:39:26 +02:00
loucass003 d09d80b07b fix reset settings getting overwritten 2026-10-12 15:25:56 +02:00
loucass003 7f485bc3e7 Improve reset settings 2026-10-12 14:52:30 +02:00
loucass003 8eb427f8c1 Set the right url to connect tracker buttons 2026-10-12 13:54:09 +02:00
loucass003 9b8d11e444 Extra button to change mounting method 2026-10-12 13:54:07 +02:00
Sapphire 7024aa0477 Fix owoTrack 2026-10-11 23:37:19 -05:00
Sapphire 9dcef1542e Make standable checklist step ignorable 2026-10-11 10:56:20 -05:00
Erimel 7d1e142737 Disable sendVelocity by default 2026-10-09 23:33:25 -04:00
Butterscotch! 73dbfa0c99 Step Mounting tune params, scale lowpass, timeout 2026-10-09 20:19:16 -04:00
Erimel d2669f42af Refactor + better smoothing for skating correction 2026-10-09 18:35:01 -04:00
Erimel e3dd8985a9 clampedRemap 2026-10-09 17:30:21 -04:00
Erimel 8fe1bb7d7b Remove useless tapdetection test 2026-10-09 16:49:24 -04:00
Butterscotch! 267b552716 Add Step Mounting error threshold to GUI 2026-10-09 16:47:52 -04:00
Butterscotch! 59d9156c29 Fix TapDetectionTest not compiling 2026-10-09 16:43:22 -04:00
Butterscotch! 6de710816e Step Mounting error threshold & SolarXR status 2026-10-09 16:43:22 -04:00
Erimel 86cb892936 Spine tracking improvements 2026-10-09 16:01:27 -04:00
Erimel b6c6a070d8 tweak skeleton preview colours and shoulders 2026-10-09 14:40:48 -04:00
Erimel b50ef2ed67 Merge branch 'server-rewrite' of https://github.com/abb128/SlimeVR-Server into server-rewrite 2026-10-09 14:08:53 -04:00
Erimel 983bfb7f41 VMC as reliable reference so that it doesn't reset 2026-10-09 14:03:16 -04:00
Erimel a366e4c20c Fix tests 2026-10-09 13:39:48 -04:00
Erimel a66c43feb7 Remove calibration range VRChat warning 2026-10-09 13:11:25 -04:00
Erimel 2243e1583c Fix/improve/rewrite a part of VMC 2026-10-08 22:04:41 -04:00
Erimel 84975c4e02 Disable feet constraints for now 2026-10-08 19:44:16 -04:00
Butterscotch! 10de6776c3 Add skating correction release smoothing 2026-10-08 17:56:51 -04:00
abb128 aca2097ff2 skeleton preview tuning 2026-10-08 22:35:05 +02:00
Butterscotch! 7c71348733 Increase recommended calibration range 2026-10-08 14:50:43 -04:00
Erimel fbd26125b6 Legtweaks Only use angular velocity 2026-10-08 12:38:48 -04:00
Butterscotch! 797b2eda2c Use feet for skating correction now with fallbacks 2026-10-08 12:15:21 -04:00
Butterscotch! 0225e8a55b Use arrays for iterateBodyPartHierarchy (micro-optimization) 2026-10-08 11:42:01 -04:00
Erimel 83172ba2b3 Fix CI 2026-10-07 19:52:32 -04:00
Erimel 189a711d5c Remove VRCSpineMode and shoulder_width_compensation
VRCSpineMode No longer needed with new spine model
And for shoulder width compensation, that's a per-avatar thing, not really related to SlimeVR and should've never been here.
2026-10-07 19:35:41 -04:00
Erimel 184afc4867 idkhowtocallthis small improvements whatever 2026-10-07 18:36:23 -04:00
Erimel 41a56f2f68 -2cm foot shift 2026-10-07 18:31:39 -04:00
Erimel edb70869bc Fine tune default foot shift and foot length 2026-10-07 17:21:23 -04:00
Erimel e43cd0dc9a buildBones mutable for optimization 2026-10-07 17:07:29 -04:00
Erimel d08cfad199 place trackers over usb at the bottom 2026-10-07 14:37:43 -04:00
Erimel 98d7606b66 clamp upsampling skeleton processor 2026-10-07 14:37:32 -04:00
Erimel 131be48e98 Simplify floorclip and fix it again lol 2026-10-07 13:55:30 -04:00
Erimel dc6e986650 Try to fix OSCQuery and fail miserably 2026-10-06 20:40:18 -04:00
Erimel 41440c6337 Minimize VRCOSC status layout shift 2026-10-06 18:25:37 -04:00
Erimel c897980c88 pre-computed HALF_PI 2026-10-06 17:59:42 -04:00
Erimel 34c24ed9df Add VRCOSC toes to bone routing 2026-10-06 17:59:31 -04:00
Sapphire eb04fdd300 Fix bindings provider build 2026-10-06 16:47:53 -05:00
Erimel 2949cfe726 Refactor toes osc and fix yaw 2026-10-06 17:47:26 -04:00
Sapphire 9791a031c8 Fix provisioning test hanging 2026-10-06 16:40:03 -05:00
Erimel f26f892d01 Fix VRCOSC using headPosition 2026-10-06 17:15:51 -04:00
Erimel bacf9b09c7 Fix floorclip 2026-10-06 17:15:37 -04:00
Erimel ac6b6b85a2 Rewrite bone fallback processor 2026-10-06 14:39:46 -04:00
Erimel dc2452a666 Don't show hip assignment before chest 2026-10-05 20:38:56 -04:00
Erimel 12e06d4b3c Floorclip more generic and work with all children 2026-10-05 20:31:43 -04:00
Erimel 2bb23256a5 tracker-yaw-correction.kt side refactor 2026-10-05 19:25:07 -04:00
Erimel 10652049d5 Floorclip make work on feet, not just ankles 2026-10-05 19:24:52 -04:00
Erimel c5f9b82395 Use FastMath Pi and angle conversion 2026-10-05 19:24:33 -04:00
loucass003 46acc4768d Fix datarace on mounting method picker. Improve Radio comp. 2026-10-06 01:03:41 +02:00
loucass003 b140a18752 make hand and feet assignment stay on body view instead of extremity view 2026-10-06 00:08:03 +02:00
loucass003 a319b74a05 Fix offset, again 2026-10-06 00:03:29 +02:00
loucass003 8d08c94465 Round pos offset vector 2026-10-05 23:49:02 +02:00
loucass003 c3427650c4 Ui fix for assignment page 2026-10-05 23:44:41 +02:00
loucass003 a7b5733f5d Fix flightlist step for mounting method 2026-10-05 23:26:01 +02:00
loucass003 ff296ce924 proper leasing of serial ports, automatic port closing when not in use 2026-10-05 21:47:38 +02:00
loucass003 753fdb527e allow a single spine tracker to control the whole spine without warning 2026-10-05 20:44:41 +02:00
loucass003 c30efd2317 Better assignment warning and proposed trackers system 2026-10-05 20:29:05 +02:00
Erimel 7fe01747d0 Start driver trackers with non-null position 2026-10-05 13:59:49 -04:00
loucass003 9a3c5ab1d6 revert translation mistake 2026-10-05 13:52:21 +02:00
loucass003 0c5528aad7 List automatic mounted trackers on the left of the manual mounting page for fast edit. Small ui fixes 2026-10-05 13:47:36 +02:00
Erimel d07b05935c Add todos for fallback processors 2026-10-02 17:57:45 -04:00
Erimel b756a30030 Mocap Mode final improvements for rewrite 2026-10-02 17:45:33 -04:00
Erimel 52fb3f8fc4 No more T-pose (down)
To be superseded by https://github.com/SlimeVR/SlimeVR-Server/issues/1944
math was wrong anyways
2026-10-02 12:36:01 -04:00
Erimel 5e8cbb2a0b Tweak new mounting text 2026-10-02 11:52:02 -04:00
Erimel dc8c74b78e Weaker finger rest pose curl 2026-10-02 11:43:21 -04:00
Erimel 02c322c601 Electron uninstall error in contributing.md 2026-10-02 11:31:34 -04:00
Butterscotch! 2c19f8a6ff Revert "Use rawAcceleration for Step Mounting"
This reverts commit d8e632a979.
2026-10-02 04:28:58 -04:00
Butterscotch! 943e5d4c12 Fix step mounting fromTo 2026-10-02 04:28:48 -04:00
Butterscotch! d8e632a979 Use rawAcceleration for Step Mounting 2026-10-02 03:43:38 -04:00
Butterscotch! db1690377a Fix StepMountingResult output 2026-10-02 03:43:28 -04:00
loucass003 79c1daede3 lint 2026-10-02 09:42:29 +02:00
loucass003 4d0a0194e3 Redo the onboarding steppers for mounting + nicer modal + unify stepper 2026-10-02 09:39:39 +02:00
loucass003 bcf26a94e2 Load more renders. Instructions based off the settings for mounting 2026-10-02 07:52:31 +02:00
Butterscotch! b85ca1922d Don't use pos trackers in step mount 2026-10-02 01:37:56 -04:00
Butterscotch! 22dddb54f0 Spotless 2026-10-02 01:37:20 -04:00
loucass003 0ef2a782a6 MVP for step mounting in gui 2026-10-02 04:05:25 +02:00
loucass003 470e8c37c7 Step mounting to solarxr + rework reset for selected mounting method + guards 2026-10-02 04:05:25 +02:00
Erimel 57aa975be6 Nuke correctConstraints 2026-10-01 20:30:51 -04:00
Erimel 5295b9f9f6 Fix toe snap snapping toes when lying down 2026-10-01 19:58:38 -04:00
Erimel ca423d87e2 Add Quest 3 controller offsets 2026-10-01 18:33:35 -04:00
Erimel 465d9333db no filtering by default 2026-10-01 17:41:15 -04:00
Erimel 33833db61b upper arms are longer than forearms 2026-10-01 17:38:12 -04:00
Erimel 46b48055d0 time syntax 2026-10-01 16:24:50 -04:00
Erimel 3e90e81a6a Skeleton bone input data upsampling 2026-10-01 16:23:23 -04:00
Erimel 305849ad41 Add PICO Controllers offsets 2026-10-01 14:52:40 -04:00
Erimel 8c88e2f9c3 Faster debounce for changing bone offsets 2026-10-01 13:52:43 -04:00
Erimel 770b554807 Add todo for android sentry @loucass003 2026-10-01 13:52:23 -04:00
Erimel 2d137475fc nuke todo 2026-10-01 13:51:10 -04:00
Erimel 47ea90e869 Fix velocity axes 2026-10-01 13:50:44 -04:00
Sapphire 89dec5257c Remove stale todo 2026-10-01 02:19:01 -05:00
loucass003 1f5269cbd0 Fix serial not working on butterflies 2026-10-01 04:35:14 +02:00
Erimel b1c1f1f7c5 Fix CI 2026-09-30 19:41:49 -04:00
Erimel f7fbc098e8 Fix tests 2026-09-30 19:41:27 -04:00
Erimel 2bb33fd533 tracking pause always active bones instead of processors 2026-09-30 18:18:04 -04:00
Erimel ecaabe5e6d Fix tracking pause and improve yaw fallback 2026-09-30 18:03:40 -04:00
Erimel f58c4dc24f Finger rest rotation 2026-09-30 16:36:49 -04:00
Erimel d791928ece Fix boneOffset and add rotation offset for driver 2026-09-30 16:12:38 -04:00
Sapphire 7d89c8deaf Fix sending some unneeded settings responses 2026-09-30 06:05:49 -05:00
Sapphire 87783bba26 Remove jattach patching in flake 2026-09-30 05:55:10 -05:00
loucass003 809f6c904c Speed up flake a bit 2026-09-30 07:04:32 +02:00
Erimel 7d7893e418 Mocap Mode with Dead Reckoning WIP 2026-09-29 22:10:07 -04:00
loucass003 58fce713e4 Bone offset on positional trackers 2026-09-30 00:56:04 +02:00
loucass003 e04e91ca77 Properly skip wizard 2026-09-30 00:17:42 +02:00
loucass003 58a3400a35 Fix redirects issues 2026-09-30 00:06:36 +02:00
Erimel 8ceb0eaeb6 Refactor Localizer 2026-09-29 17:40:43 -04:00
loucass003 a0c90f2355 Sentry to Server / Electron / Android(untested) 2026-09-29 23:35:39 +02:00
Erimel 87c9190354 Clarify hip-upperleg interpolation description 2026-09-29 14:28:30 -04:00
Erimel 692fc49e6a remove terms that shouldn't be translated from translation file 2026-09-29 14:10:01 -04:00
loucass003 5d174359a6 Crowdin in context edits 2026-09-29 14:00:20 +02:00
Sapphire 2f31892bcb Add lower chest to tap reset tracker selection dropdown 2026-09-28 20:25:44 -05:00
Butterscotch! 0181119829 Initial step mounting 2026-09-28 13:48:05 -04:00
SlimeVR-bot 420aa2c461 New Crowdin updates (#1935) 2026-09-28 18:29:15 +02:00
Sapphire 585d234e4f Ensure active tracker is preferred over inactive ones in UI displays 2026-09-26 04:45:56 -05:00
Sapphire 3a82031504 Fix empty tracker name on some pages after setting and clearing custom name 2026-09-26 04:16:29 -05:00
Sapphire eff66da1b1 Make assignment conflict logic a little more sane 2026-09-26 03:58:59 -05:00
Sapphire 4f28de0b63 Name the specific SolarXR connection that triggered a reset 2026-09-26 03:53:27 -05:00
Erimel 7b237f46d3 Sort reliable and unreliable reference trackers the same way 2026-09-26 04:20:35 -04:00
loucass003 e68638e9c3 Better scaled proportions for smaller sizes and better scaling of the 3d preview 2026-09-26 03:52:52 +02:00
Erimel 9d3a0eddc8 Fix and improve mocap mode 2026-09-25 21:49:41 -04:00
loucass003 0b520d0f40 Better preview 2026-09-26 01:20:26 +02:00
loucass003 89592a9689 Lock ota updates to only UDP devices 2026-09-25 21:15:44 +02:00
Erimel 5f3820597e bone acceleration fallback 2026-09-25 13:27:16 -04:00
loucass003 65600a3141 update solarxr 2026-09-25 05:09:19 +02:00
loucass003 faedf3092f Spotless 2026-09-25 05:09:06 +02:00
loucass003 c3391f16c0 Redo serial logic 2026-09-25 05:08:30 +02:00
Erimel 388bcb33a1 Tracker-Bone Offset 2026-09-24 21:56:44 -04:00
Erimel 8e9558fcee trigger crowding CI 2026-09-24 17:31:05 -04:00
Erimel 3efac0bde3 revert UNASSIGNED_HMD translation change 2026-09-23 21:46:05 -04:00
Erimel 431c9a584a fix CI 2026-09-23 21:15:00 -04:00
loucass003 86a62eebc8 Merge branch 'main' of github.com:SlimeVR/SlimeVR-Server into server-rewrite 2026-09-24 03:13:58 +02:00
Erimel 1dc9127fa6 Fix Skeleton preview and other fixup 2026-09-23 20:58:24 -04:00
Erimel 2fc6810043 No more HMD; flexible reliable reference instead. 2026-09-23 20:35:20 -04:00
loucass003 6b253da7cf Fix helper typing 2026-09-24 01:54:02 +02:00
Erimel bc8fe31e51 EXTERMINATE CENTAUR 🗡️🦊 2026-09-23 19:02:33 -04:00
Erimel dfb895345d Improve mocap mode a bit 2026-09-23 17:49:41 -04:00
Erimel b21e50a041 Expected TPS 2026-09-23 17:39:43 -04:00
abb128 a53879be3f Update thumb location 2026-09-23 22:03:54 +02:00
abb128 0c9a1c3654 Replace many gltf with one glb 2026-09-23 22:03:54 +02:00
Erimel 77f94da67a WIP fixing positional tracker mounting/reference 2026-09-22 20:52:14 -04:00
Erimel 18729089b8 Fix shoulders width description 2026-09-22 16:04:36 -04:00
loucass003 44725de59d try more preview shader stuff 2026-09-22 20:54:00 +02:00
loucass003 78616e074b Leg tweaks disabled on some pages 2026-09-22 20:01:34 +02:00
loucass003 8cfbd90a47 Fix telemetry graph showing all trackers instead of only the selected ones 2026-09-22 05:25:05 +02:00
loucass003 ba9379d556 Toes bone routing group + toes icon 2026-09-22 05:22:28 +02:00
loucass003 a5bbb6b643 Improve floor shader 2026-09-22 04:55:42 +02:00
loucass003 2ea2407723 Improve floor shader 2026-09-22 04:50:49 +02:00
loucass003 963bc4ac1b Fix jitter when position/height change 2026-09-22 04:38:00 +02:00
loucass003 8dbe1e5c21 Camera reset button 2026-09-22 04:32:09 +02:00
Butterscotch! b662b03556 Disable arm IK if arm trackers are active 2026-09-21 21:48:34 -04:00
Butterscotch! 6b607ad453 Remove center of mass todo 2026-09-21 21:48:16 -04:00
loucass003 1f769e474b Remove regression on click with trackers on assignment page. Improved tap modal + improved controller controls 2026-09-22 03:33:51 +02:00
loucass003 3952db9c64 Button to assign on HID modal text 2026-09-22 02:52:20 +02:00
loucass003 f8aebdd066 Button to assign on HID 2026-09-22 02:52:20 +02:00
Butterscotch! 30d5d5e462 Skating correction pressure & hand Ik 2026-09-21 20:40:27 -04:00
Erimel 351b64d0c1 Merge branch 'server-rewrite' of https://github.com/SlimeVR/SlimeVR-Server into server-rewrite 2026-09-21 15:06:24 -04:00
Erimel afb00dcbf4 Finger mounting same as arms 2026-09-21 15:06:02 -04:00
Erimel 860ec28e1f Spine default back mounting 2026-09-21 15:01:54 -04:00
SlimeVR-bot d6121278ba New Crowdin updates (#1932) 2026-09-21 21:01:31 +02:00
Erimel 4c7b7196c8 HAND_LENGTH, no more HAND_Z 2026-09-21 14:11:26 -04:00
abb128 fe44ec2ae5 Fix Android inset bug (#1934) 2026-09-21 19:17:02 +02:00
Erimel d4921c5a25 Positional tracker mounting! 2026-09-18 21:16:44 -04:00
loucass003 83a8c7ee6a Update crowdin.yml paths for server-rewrite 2026-09-19 00:07:26 +02:00
loucass003 c7ef8a3615 Remove Crowdin GitHub Action in favor of native UI integration 2026-09-18 23:42:42 +02:00
loucass003 ac6f5fd63a Remove duplicate workflow 2026-09-18 23:29:02 +02:00
loucass003 32be0ac254 Setup Crowdin synchronization for server-rewrite 2026-09-18 23:28:51 +02:00
loucass003 83941fd38e Clean up crowdin.yml to use env variables 2026-09-18 22:02:52 +02:00
loucass003 64a2484827 Add project_id and CROWDIN_API_TOKEN fallback to Crowdin sync 2026-09-18 21:58:52 +02:00
loucass003 d75417de49 Standardize Crowdin action env mapping 2026-09-18 21:55:43 +02:00
loucass003 51aa13b6c8 Pass crowdin_personal_token and project_id to crowdin action 2026-09-18 21:48:50 +02:00
loucass003 7c202618b3 Remove label argument from translation PR creation to prevent token scope errors 2026-09-18 20:48:00 +02:00
loucass003 e3be80fadc Ignore node_modules, dist, and build stats in subdirectories 2026-09-18 20:04:07 +02:00
loucass003 49d631a2a7 Add dry-run Crowdin testing workflow and draft PR protection 2026-09-18 19:32:40 +02:00
loucass003 0efb1ca808 Configure Crowdin for l10n_main and update translation workflows 2026-09-18 19:27:28 +02:00
Futura c1424c2a23 Update Crowdin configuration file
[ci skip]
2026-09-18 18:54:54 +02:00
loucass003 027061af77 Commit id on server and gui 2026-09-18 03:19:13 +02:00
Erimel cc0bc18ed5 Working mocap mode! 2026-09-17 20:45:38 -04:00
loucass003 a9cdcbcfdf Spotless 2026-09-18 02:31:39 +02:00
loucass003 4ff461b49f Add warning if VRCOSC is working but tracking data toggle is not enbled in vrc 2026-09-18 02:31:06 +02:00
loucass003 75317ebfa4 Fix shadow clip of the tracker on the group toolbox 2026-09-18 01:35:02 +02:00
loucass003 927776a495 Fix Empty home list centering 2026-09-18 01:16:34 +02:00
loucass003 1604aaf745 anchorHip GUI 2026-09-18 01:13:20 +02:00
loucass003 cd74086e6f Anchor to hip mode 2026-09-18 01:11:52 +02:00
Erimel 3c07e4bd45 add toes to side.kt 2026-09-17 18:59:32 -04:00
Erimel 081f576643 Make position nullable again 2026-09-17 18:20:54 -04:00
Erimel 18ef835373 Mocap mode more wip 2026-09-17 18:11:09 -04:00
loucass003 e50469d46b Fix reset processors race 2026-09-17 22:46:02 +02:00
Erimel 81a1ab0089 clarify todo 2026-09-17 14:18:12 -04:00
Erimel 3c707268a7 Add digit constraints + tune and clean up 2026-09-17 13:45:02 -04:00
Erimel 737d6f5e2a spotless 2026-09-16 18:47:38 -04:00
Sapphire 22328ecb5f Fix bindings provider code style 2026-09-16 17:22:01 -05:00
Sapphire 706dfd6dce Call Process::waitFor interruptibly for bindings provider 2026-09-16 16:44:33 -05:00
Sapphire 099f54f4ba Yoink bridge code from driver for bindings provider
Gotta clean this up later...
2026-09-16 16:43:25 -05:00
Erimel b624c81f9a fix spine hip flipping 360 and fine tune a bit 2026-09-16 17:40:24 -04:00
Erimel c06fa006a5 patch for head going wrong way 2026-09-16 16:38:25 -04:00
Erimel ac4eb8f5d8 Temporary patch for processors reset race condition 2026-09-16 16:17:54 -04:00
Erimel 5fec3962ee Simplify position input logic 2026-09-16 16:10:06 -04:00
Erimel 3b51900a00 Fix shoulders constraints 2026-09-16 15:43:14 -04:00
Erimel 71abdf1f97 Fix spine interpolation aligning on x-axis 2026-09-16 14:03:13 -04:00
Sapphire bb4f7699c7 Merge remote-tracking branch 'origin/main' into server-rewrite
Fix CI
2026-09-15 21:38:31 -05:00
Erimel 38f53fb154 Pitch-side spine reliability 2026-09-15 21:37:57 -04:00
Erimel 62ed5d0031 Fix centaur using unit test 2026-09-15 17:58:59 -04:00
loucass003 d69357b53b Revert "Solarxr Connection Handshake and bone registry + untested but compile change for binding provider"
This reverts commit 69acb068c7.
2026-09-15 21:07:46 +02:00
loucass003 f8e126efdd Revert "Move registry into a module, preparing for extensions"
This reverts commit a371af75fa.
2026-09-15 20:57:00 +02:00
loucass003 963b6f640c Revert "Remove BodyPart fully from solarxr, implement new connection sequence"
This reverts commit 65cdc83e3c.
2026-09-15 20:56:17 +02:00
loucass003 e58c6e7646 Revert "Fix conneciton looping"
This reverts commit be2c16d827.
2026-09-15 20:56:04 +02:00
Erimel c00ff72b63 Fix manual mounting config loading 2026-09-15 12:42:57 -04:00
Erimel 30629aa66c Mocap mode description 2026-09-15 12:39:15 -04:00
Butterscotch! b92b91778a Add source for body part masses 2026-09-14 21:04:40 -04:00
Erimel 82e48cbad4 WIP fixing centaur and run spotless 2026-09-14 20:31:42 -04:00
loucass003 be2c16d827 Fix conneciton looping 2026-09-15 01:08:21 +02:00
loucass003 65cdc83e3c Remove BodyPart fully from solarxr, implement new connection sequence 2026-09-15 00:12:06 +02:00
Erimel ee38e9f6ba No more TestFactory
So much more optimized and no more inflating numbers
2026-09-14 17:33:58 -04:00
Erimel 2681ae7621 toRotationVectorR and Q 2026-09-14 16:48:50 -04:00
Erimel 747931404f Make spine processor easier to port over for Futura 2026-09-14 15:01:55 -04:00
Erimel 67140a7703 Rename RelaxedSpine to just Spine 2026-09-14 14:40:00 -04:00
Sapphire 8ef05d49cc Parse sensor temperature for legacy HID protocol 2026-09-14 01:57:44 -05:00
Erimel 9995a81caf Not just osc trackers 2026-09-13 14:37:56 -04:00
loucass003 07626b9623 move freeze up 2026-09-13 14:14:43 +02:00
loucass003 a371af75fa Move registry into a module, preparing for extensions 2026-09-13 14:14:12 +02:00
loucass003 69acb068c7 Solarxr Connection Handshake and bone registry + untested but compile change for binding provider 2026-09-13 12:50:39 +02:00
Erimel 15775a1247 Fix centaur 2026-09-12 15:47:00 -04:00
Erimel 6dfad04ebb Add comment about prediction multiplier 2026-09-12 14:10:01 -04:00
Butterscotch! 6ebae1bedf Don't perform toe snap with a 0 length foot 2026-09-12 02:57:57 -04:00
Erimel bc11c874e2 Remove OutboundProbe to fix CI 2026-09-11 20:18:35 -04:00
Erimel 889c54720c Absolute twist for spine 2026-09-11 19:48:07 -04:00
Erimel 8c7ec3a453 revert polarityReference causing centaur 2026-09-11 19:02:36 -04:00
Erimel ebe5c6b010 Rewrite relaxed spine processor 2026-09-11 18:52:38 -04:00
Sapphire c11dc54ed1 Change UDP tracker status to OK from TIMED_OUT on rotation/accel update (#1923) 2026-09-12 00:51:16 +02:00
loucass003 2de0569326 Remove serial detection modal 2026-09-11 20:40:49 +02:00
loucass003 2a28c0766a Fix x scroll on home 2026-09-11 20:24:09 +02:00
loucass003 ec59f373ae Make height text on preview send to height calibration page 2026-09-11 20:14:58 +02:00
loucass003 64d1aa6209 Properly remember flightlist closed state across pages 2026-09-11 20:11:40 +02:00
loucass003 183f986eee Tracker table sorting + column selection. Remove moreInfo and sortByName dev toggles 2026-09-11 20:04:13 +02:00
loucass003 83e99e2708 Home screen, no trackers view 2026-09-11 19:16:18 +02:00
loucass003 1608c3ea91 Better keybinds 2026-09-11 19:03:04 +02:00
loucass003 a9f252f59f Sligtly better spacing in assignment 2026-09-11 16:23:38 +02:00
loucass003 e8196425da more metrics on dispatcher 2026-09-11 15:57:15 +02:00
Sapphire bd2c4da2f2 Fix devices potentially showing in wrong group 2026-09-10 20:56:58 -05:00
Erimel bc1f5a2652 Fix CI 2026-09-10 20:41:18 -04:00
Erimel 6b1ccd3f6f Improve relaxed spine even more!!! ^v^ 2026-09-10 20:38:01 -04:00
Erimel 2acf7804d8 Don't mark occluded tracker bone as inactive 2026-09-10 19:42:16 -04:00
Erimel 1d2b6295c9 Fix toes not following ankle 2026-09-10 19:09:51 -04:00
Erimel 28efcda839 Potential fix for smoothing causing centaur 2026-09-10 19:03:28 -04:00
Erimel 28eb411ecb Rename processors 2026-09-10 19:01:20 -04:00
Erimel 1b40f12791 Split waist, default upper chest, and use lower chest to relax spine 2026-09-10 18:17:32 -04:00
loucass003 59fc10da6e Better preview camera 2026-09-10 22:56:35 +02:00
loucass003 fb6fda82e1 More keyboard / controller motion controls 2026-09-10 22:28:24 +02:00
Erimel 6c9339514e More mocap mode wip 2026-09-10 13:28:52 -04:00
loucass003 2dde4104d0 Prevent preview buttons from being focusable 2026-09-10 19:25:48 +02:00
Erimel 26e7acd49c no finger lean and different toe lengths 2026-09-10 13:12:42 -04:00
Erimel 2fd5c68429 Make yaw and mounting reset properly reset polarity 2026-09-10 12:23:38 -04:00
loucass003 c829bdc06e Controller navigation 2026-09-10 17:41:31 +02:00
loucass003 280d5f8c1c Better scaled proportions responsive 2026-09-10 11:29:53 +02:00
loucass003 b6a34cee91 More accessibility stuff 2026-09-10 11:00:36 +02:00
loucass003 dbed346fe8 Better clickable regions / buttons - Accessability 2026-09-10 10:51:47 +02:00
loucass003 dfe015c868 Inputs / better focus 2026-09-10 09:57:08 +02:00
loucass003 622464f85e Slightly improved looks of core components 2026-09-10 09:43:01 +02:00
loucass003 dfd5ceca42 Make Foot shift able to go negative 2026-09-10 08:23:49 +02:00
Butterscotch! 95c87f66e0 Uncomment floor clip & skating correction 2026-09-09 21:30:28 -04:00
loucass003 cde49f828c spotless you sonofabish 2026-09-10 02:39:20 +02:00
Butterscotch! fb70d4405d Fix constraints & clean up IK/constraints 2026-09-09 20:37:10 -04:00
loucass003 6d4fcee967 Bone headOffset / remove left/right hip 2026-09-10 02:32:42 +02:00
Sapphire 443cfc118a Re-add port to stringified IP address, strip it for datafeed and OTA 2026-09-09 18:52:22 -05:00
Sapphire 1c28d73b74 Remove address from UDP logs
It already shows in the log scope, since it's in the name of the context
2026-09-09 18:05:07 -05:00
Erimel 2c1bce29c2 fix build and tests 2026-09-09 17:34:41 -04:00
loucass003 99de177797 Make network profile show when invalid 2026-09-09 23:19:36 +02:00
loucass003 dda5c7c73c Make network profile step ignorable 2026-09-09 23:19:13 +02:00
loucass003 0f546e26b0 VMC input untested 2026-09-09 23:12:39 +02:00
Sapphire ba4b10469f Trim some unneeded imports from desktop IPC 2026-09-09 14:59:20 -05:00
Sapphire 9874df3939 Fix bindings provider: The Sequel 2026-09-09 14:58:06 -05:00
Erimel b2c70b0a71 Don't reset polarity on yaw and mounting 2026-09-09 14:15:06 -04:00
Erimel f7db29fb2c Send resetType on resetProcessors 2026-09-09 13:54:51 -04:00
Erimel aaf392c21c more mocap mode wip + resettableSkeletonProcessors 2026-09-09 13:36:28 -04:00
Erimel f023fa33e1 Go back to tracking polarity on raw rotation 2026-09-09 13:17:29 -04:00
Erimel 2e7d9b1691 Don't log below 100 times missed hz skeleton 2026-09-09 12:20:02 -04:00
Butterscotch! ffd71293eb Initial AutoBone structure 2026-09-09 00:39:20 -04:00
Sapphire dac736e4b3 Remove unused import from VRCWarningsPage 2026-09-08 19:01:54 -05:00
Sapphire d45351dfb5 Fix some instances of swapped throwable and message order 2026-09-08 19:00:05 -05:00
Sapphire 5bfd50dd14 Increase OTA response timeout, add more logging for OTA flashing 2026-09-08 19:00:04 -05:00
Sapphire 7b85570bf5 Fix IP address display and OTA flashing not working on desktop 2026-09-08 19:00:04 -05:00
Erimel 4d338ec684 Don't run toe snap and foot plant when foot is active 2026-09-08 19:54:37 -04:00
Erimel e71fa3ed3d Try to fix centaur bug more 2026-09-08 19:51:30 -04:00
Erimel 86f04d90ac mountingResetOrientation for tracker on skeleton 2026-09-08 18:46:50 -04:00
Erimel fe08eb103e Make velocity toggle for driver actually work 2026-09-08 18:08:46 -04:00
Erimel 2f120cfff7 finger curl mounting reset 2026-09-08 17:54:38 -04:00
Erimel 94fa3f54a3 Add back a sendVelocity toggle 2026-09-08 17:18:10 -04:00
Erimel 0cd81ac143 Finger imputing 2026-09-08 16:59:48 -04:00
Erimel 357ec14ee9 toe active link for grouping them up better 2026-09-08 14:29:55 -04:00
lucas lelievre 0361c1c578 Merge branch 'server-rewrite' of github.com:SlimeVR/SlimeVR-Server into server-rewrite 2026-09-08 19:48:41 +02:00
lucas lelievre ebc5b7ead1 Tracker position on skeleton WIP 2026-09-08 19:48:29 +02:00
Erimel 97769d466d don't includes toes in body nor feet reset 2026-09-08 13:08:18 -04:00
lucas lelievre 2da229f983 Render modes 2026-09-08 17:41:44 +02:00
lucas lelievre 480e26255c Merge remote-tracking branch 'global/robot-skeleton-preview' into server-rewrite 2026-09-08 17:29:19 +02:00
lucas lelievre 6286c50efd Slightly optimized loader and animations / low priority modes 2026-09-08 17:23:47 +02:00
abb128 1302538168 Update skeleton preview 2026-09-08 13:59:38 +02:00
loucass003 7a3027332f Fix mirror legend 2026-09-07 21:40:50 +02:00
loucass003 bed6f63624 More assignment refactor + Single tracker assign rework 2026-09-07 21:35:31 +02:00
loucass003 f9df514b95 More assignment refactor 2026-09-07 19:55:38 +02:00
loucass003 6cffadf792 Remove debug log 2026-09-07 18:57:07 +02:00
loucass003 1fbbf1b9ea Fix mobile nav in settings 2026-09-07 18:55:11 +02:00
loucass003 ce73034ec6 Move VRC warnings into settings for real this time 2026-09-07 18:47:40 +02:00
loucass003 3e83e2153d More Tracker assignment refactoring 2026-09-07 17:40:47 +02:00
loucass003 8250845177 Android serial flashing 2026-09-07 15:18:00 +02:00
loucass003 5a8192daa0 Attempt at a better skeleton preview 2026-09-07 13:04:32 +02:00
Sapphire f0aae5a2f1 Add 'Latest' flair/tag to sorted first version in DIY firmware tool 2026-09-05 04:40:49 -05:00
Sapphire ef4eeb9500 Update SolarXR 2026-09-04 22:03:44 -05:00
Sapphire 0b80befd1c Avoid allocating objects and immediately throwing them away in createBone 2026-09-04 21:45:54 -05:00
Sapphire b6b52c90f2 Fix feedback sound not playing when setting volume to its original state at the time the page loaded 2026-09-04 21:37:45 -05:00
Sapphire 2a9bf46d84 Only redirect output streams after the first time we log a message
When we log for the first time, the static initialiser for
io.klogging.internal.hostname is called, since it instantiates a
LogEvent class where the 'host' field defaults to the aforementioned
hostname variable when no host is provided in the constructor.
The static initialiser may throw an UnknownHostException (since Java
may perform a DNS lookup in `InetAddress.getLocalHost().getHostName()`),
which is caught and tries to log the exception to stderr inside the
catch block.

Since we redirect the streams before the first time we log, the message
ends up getting passed to our LineLogger where we try to log it with
Klogger. This ends up trying to instantiate a LogEvent again with no
host field specified, and since an exception was thrown in hostname's
static initialiser, it is null, so an exception is thrown by the
constructor. This manifests as a crash with VERY CONFUSING log output:

INFO [                main] :        Configuration : Configuration set using the DSL with append=false

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"

Output with debugger printing all exceptions:

Connected to the target VM, address: 'localhost:35355', transport: 'socket'
---snip---
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:-1)
Breakpoint reached
	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:-1)
	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:52)
	at java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1134)
	at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1712)
	at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1060)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
	at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1137)
Breakpoint reached
	at java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1137)
	at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1712)
	at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1060)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
	at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1727)
Breakpoint reached
	at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1727)
	at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1060)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
	at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1104)
Breakpoint reached
	at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1104)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
	at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1111)
Breakpoint reached
	at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1111)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
	at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress.getLocalHost(InetAddress.java:1803)
Breakpoint reached
	at java.net.InetAddress.getLocalHost(InetAddress.java:1803)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at kotlin.jvm.internal.Intrinsics.throwParameterIsNullNPE(Intrinsics.java:140)
Breakpoint reached
	at kotlin.jvm.internal.Intrinsics.throwParameterIsNullNPE(Intrinsics.java:140)
	at kotlin.jvm.internal.Intrinsics.checkNotNullParameter(Intrinsics.java:131)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:48)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:48)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.NoCoLoggerImpl.eventFrom(NoCoLoggerImpl.kt:41)
	at io.klogging.impl.NoCoLoggerImpl.emitEvent(NoCoLoggerImpl.kt:66)
	at io.klogging.NoCoLogger.emitEvent$default(NoCoLogger.kt:43)
	at io.klogging.NoCoLogger.log(NoCoLogger.kt:79)
	at io.klogging.impl.NoCoLoggerImpl.log(NoCoLoggerImpl.kt:41)
	at dev.slimevr.logging.LineLogger.write(standard-streams.kt:36)
	at java.io.OutputStream.write(OutputStream.java:167)
	at java.io.PrintStream.write(PrintStream.java:539)
	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:315)
	at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:101)
	at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
	at java.io.PrintStream.writeln(PrintStream.java:690)
	at java.io.PrintStream.println(PrintStream.java:1004)
	at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
	at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
	at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at java.io.PrintStream.write(PrintStream.java:542)
Breakpoint reached
	at java.io.PrintStream.write(PrintStream.java:542)
	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:315)
	at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:101)
	at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
	at java.io.PrintStream.writeln(PrintStream.java:690)
	at java.io.PrintStream.println(PrintStream.java:1004)
	at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
	at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
	at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
Breakpoint reached
	at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
	at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
	at java.io.PrintStream.writeln(PrintStream.java:690)
	at java.io.PrintStream.println(PrintStream.java:1004)
	at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
	at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
	at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at java.io.PrintStream.writeln(PrintStream.java:693)
Breakpoint reached
	at java.io.PrintStream.writeln(PrintStream.java:693)
	at java.io.PrintStream.println(PrintStream.java:1004)
	at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
	at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
	at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
	at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.ExceptionInInitializerError' occurred in thread 'main @Main#1' at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
Breakpoint reached
	at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
	at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
	at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
	at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
	at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
	at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
	at io.klogging.Klogger.log(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
	at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
	at io.klogging.Klogger.info(Klogger.kt:-1)
	at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
	at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
	at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
	at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
	at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.ExceptionInInitializerError' occurred in thread 'main' at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:108)
Breakpoint reached
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:108)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
	at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at java.io.PrintStream.write(PrintStream.java:542)
Breakpoint reached
	at java.io.PrintStream.write(PrintStream.java:542)
	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:315)
	at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:101)
	at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
	at java.io.PrintStream.writeln(PrintStream.java:690)
	at java.io.PrintStream.println(PrintStream.java:1027)
	at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:790)
	at java.lang.Throwable.printStackTrace(Throwable.java:697)
	at java.lang.Throwable.printStackTrace(Throwable.java:686)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
	at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
Breakpoint reached
	at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
	at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
	at java.io.PrintStream.writeln(PrintStream.java:690)
	at java.io.PrintStream.println(PrintStream.java:1027)
	at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:790)
	at java.lang.Throwable.printStackTrace(Throwable.java:697)
	at java.lang.Throwable.printStackTrace(Throwable.java:686)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
	at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at java.io.PrintStream.writeln(PrintStream.java:693)
Breakpoint reached
	at java.io.PrintStream.writeln(PrintStream.java:693)
	at java.io.PrintStream.println(PrintStream.java:1027)
	at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:790)
	at java.lang.Throwable.printStackTrace(Throwable.java:697)
	at java.lang.Throwable.printStackTrace(Throwable.java:686)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
	at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at java.lang.Throwable.printStackTrace(Throwable.java:710)
Breakpoint reached
	at java.lang.Throwable.printStackTrace(Throwable.java:710)
	at java.lang.Throwable.printStackTrace(Throwable.java:686)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
	at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Disconnected from the target VM, address: 'localhost:35355', transport: 'socket'
2026-09-04 20:31:25 -05:00
Erimel 7d6d838cd6 Correct spelling mistake in centre ("center") 2026-09-04 20:06:00 -04:00
Erimel dce4717510 Progress on Mocap Mode! ^-^ 2026-09-04 20:03:40 -04:00
Erimel aa266d96ae disable hip yaw roll align when thighs no active 2026-09-04 17:28:40 -04:00
Erimel 1579da304c Filtering steps of 5% and allow 0% 2026-09-04 15:29:48 -04:00
Erimel 4a0a7274b0 Fix angular velocity 2026-09-04 14:46:45 -04:00
loucass003 24ce1ae284 Checklist -> tracker error. only when invalid 2026-09-04 20:29:46 +02:00
loucass003 910fe5cf71 Mobile QOL + Improve autimatic set detection 2026-09-04 20:12:46 +02:00
loucass003 28bbb53fb7 Reworked tooltips to use Popover API 2026-09-04 19:41:29 +02:00
loucass003 04aba4beb9 Fix mirror display on assignment + cleanup / fix rerenders 2026-09-04 17:09:23 +02:00
loucass003 5d57fb4b3a Clean comment 2026-09-04 15:15:55 +02:00
loucass003 a0ed8cc7e0 HID protocol v3 and legacy rewrite 2026-09-04 15:13:06 +02:00
Erimel 2bec11f261 Get rid of send_derived_velocity 2026-09-03 20:19:36 -04:00
Sapphire c08a57c96c Ignore .worktree 2026-09-03 19:09:33 -05:00
Erimel e8d24380b8 Fix velocity processing 2026-09-03 20:08:23 -04:00
Erimel 9fac29dfa3 Vector3.NULL -> Vector3.ZERO 2026-09-03 13:49:23 -04:00
Erimel 10d5f137f4 add debug launch arguments 2026-09-03 13:39:17 -04:00
loucass003 768424d49c Better telemetry readings 2026-09-03 12:28:41 +02:00
loucass003 0b235e6669 Velocity optimisations 2026-09-03 06:42:09 +02:00
loucass003 191f1004f1 Fix rebase fail 2026-09-03 05:19:04 +02:00
loucass003 eadb83db9e Precise timers 2026-09-03 05:10:53 +02:00
Erimel 5584ae4ffa predict/smooth before other inputprocessors
for optimization!!!
2026-09-02 21:54:03 -04:00
Erimel 30f9178fec Skeleton processors extract stuff 2026-09-02 21:32:57 -04:00
Erimel bcfe86e8ac MonotonicValueTimeMark 2026-09-02 21:18:19 -04:00
Erimel 9f0cf6554d ikTargets mutable, some refactoring in skeleton 2026-09-02 21:16:10 -04:00
Erimel 0465abc005 Velocity WIP 2026-09-02 19:13:20 -04:00
loucass003 d833052e78 Only use dedicated thread for the compute loop 2026-09-03 01:04:46 +02:00
loucass003 2595430ed2 Speeeeeeed 2026-09-03 00:00:32 +02:00
Erimel f7c5e2c130 tracker polarityFallbackRotation 2026-09-02 15:47:11 -04:00
Erimel 4211ef3b16 500hz skeleton 2026-09-02 14:43:22 -04:00
loucass003 1911ceb6cb Lint 2026-09-02 16:53:25 +02:00
loucass003 e97c9a16bd Redo HID device handling. No more shit abstraction on top of HidApi 2026-09-02 16:49:57 +02:00
Butterscotch! c09bddf148 Target ankles for skating correction 2026-09-02 06:57:59 -04:00
loucass003 edf6a819e1 Add butterfly 3d model (basic) 2026-09-02 11:27:31 +02:00
Sapphire b50ae9b24f Use ResetTrackerAssignments in GUI 2026-09-02 01:57:38 -05:00
Sapphire a4d62fc668 Fix ResetTrackerAssignments 2026-09-02 01:57:38 -05:00
Sapphire 44773e47f6 Update dongle name when pressing Enter 2026-09-02 01:57:37 -05:00
loucass003 48c9c3e079 Fix render desync in skeleton preview 2026-09-02 08:21:25 +02:00
Sapphire 4344abfffd Don't show update warning on Steam 2026-09-02 01:11:53 -05:00
loucass003 5661668c20 Fix wrongly removed key 2026-09-02 08:06:54 +02:00
loucass003 06d035402f use real assigned trackers count instead of the assigned of a set 2026-09-02 04:59:19 +02:00
Sapphire 7c6646ccf7 pls build 2026-09-01 21:46:48 -05:00
Sapphire 0bc8b58c36 pls build 2026-09-01 21:36:47 -05:00
Sapphire 89bee2a6f4 pls build 2026-09-01 21:24:44 -05:00
Sapphire 2c58ae71b4 Fix bindings provider (maybe)
idk if it builds on windows lol
2026-09-01 21:00:30 -05:00
Sapphire 00ced5e745 Fix tests 2026-09-01 20:48:00 -05:00
Sapphire c242018582 Remove unused variable in tap detection tests
evil fox asked me to
2026-09-01 20:39:46 -05:00
Erimel a62cb42189 Add acceleration and velocity to bones 2026-09-01 20:31:31 -04:00
Erimel f58cb7dfcf Add ankle chain for IK 2026-09-01 17:54:55 -04:00
Erimel f9c08e5ec7 Don't use getValue in skeleton 2026-09-01 17:31:58 -04:00
Erimel f6084e398e Fix automatic routing when no tracker is connected 2026-09-01 17:20:01 -04:00
Erimel 08409660c4 Fix toe snap multiplication order 2026-09-01 16:04:22 -04:00
Erimel f1f2ca6d6d Fix CI and some toe tracking stuff 2026-09-01 14:44:21 -04:00
Erimel 74860c26c1 Oops, buildBones needs the parents. 2026-09-01 13:52:06 -04:00
Erimel 7d84e7cfa0 Actually optimize buildBones 2026-09-01 13:17:55 -04:00
loucass003 fcbd4394f5 Fix translations 2026-09-01 09:02:33 +02:00
loucass003 10f783b347 Unify mounting picker logic with assigment / simplify logic 2026-09-01 08:23:17 +02:00
loucass003 d37a0d0a66 Toes assigment 2026-09-01 07:57:43 +02:00
e5ad3e02eb Toe tracking server rewrite (#1897)
Co-authored-by: Erimel <[email protected]>
Co-authored-by: Erimel <[email protected]>
Co-authored-by: loucass003 <[email protected]>
2026-09-01 06:20:44 +02:00
loucass003 b8a72e43c0 Assigment Hands + Cleanup 2026-09-01 05:38:03 +02:00
Erimel 15e27092d3 Don't compute findFirstCommonParent if has HEAD 2026-08-31 21:54:20 -04:00
Erimel 9426366780 findFirstCommonParent buildBones 2026-08-31 21:48:07 -04:00
Erimel b2614d5118 BodyPartMap mutateCopy 2026-08-31 20:51:54 -04:00
Erimel 6ead7e1bb5 Everything needed for mocap mode 2026-08-31 20:08:53 -04:00
loucass003 9af5608613 More translations cleanup 2026-09-01 01:35:11 +02:00
loucass003 7fea99cbec Clean old transation keys 2026-09-01 01:26:45 +02:00
loucass003 fd277e4ba6 Bring back show all always on screen + better mobile layout 2026-09-01 01:01:23 +02:00
loucass003 f40c79cbdd Fix head scale 2026-09-01 00:38:03 +02:00
Erimel 56ec55211f get rid of skeletonOffset in GUI 2026-08-31 18:31:11 -04:00
Butterscotch! 2c0cdf3079 Use default IK chains & constraints 2026-08-31 17:37:08 -04:00
Butterscotch! c3cfd16a04 Use const 2026-08-31 17:05:19 -04:00
Butterscotch! 496adc4b3c Fix toe snap axis & don't go through floor 2026-08-31 17:03:43 -04:00
Erimel cd7f23e98a Lint fix 2026-08-31 16:54:22 -04:00
Erimel b52f05d38b Fix assignment mirror 2026-08-31 16:37:42 -04:00
Butterscotch! 732a5d59ab Initial constraints on the body from old server 2026-08-31 16:23:30 -04:00
Butterscotch! 982c2429f1 Spotless apply 2026-08-31 16:19:17 -04:00
Erimel 2d3b0ed1d0 Hide battery voltage and rssi filler 2026-08-31 15:51:19 -04:00
Erimel 8c1017b886 mostly fix grid tracker card display 2026-08-31 15:17:13 -04:00
Erimel da42de70b2 Flip ankle icon and fix foot icon offset 2026-08-31 15:09:34 -04:00
loucass003 d4e46298f0 Small improvements to assignment 2026-08-31 18:43:00 +02:00
loucass003 1f3dcbdc80 Update butterfly svg 2026-08-31 17:05:49 +02:00
loucass003 6b64277f12 Fix dropdown 2026-08-31 15:28:46 +02:00
loucass003 24bded44a0 Tracker assign full 2026-08-31 14:36:41 +02:00
loucass003 eb6340a896 Tracker assign desktop 2026-08-31 14:36:41 +02:00
Sapphire b0b3c05d06 Nuke Protobuf and Windows named pipes
Tests are broken, will fix later..
2026-08-31 04:45:13 -05:00
Butterscotch! 9eb0e82d9c Finish toe snap 2026-08-31 01:40:30 -04:00
Butterscotch! 9f1fd9489e Properly implement foot plant & clarify math 2026-08-29 18:57:21 -04:00
loucass003 7342e72b2c 3d preview WIP 2026-08-29 23:46:45 +02:00
Butterscotch! 8b0aae537b Finish moving skating correction 2026-08-29 15:52:01 -04:00
Sapphire 4876cfa417 Fix capitalisation inconsistency between sidebar and page header for serial console 2026-08-28 23:53:37 -05:00
Sapphire 359def6a72 Fix SteamVR running checklist behaviour 2026-08-28 20:44:45 -05:00
Sapphire 0c0ece2f3c Compensate for difference in eye and head height for VRC config warnings 2026-08-28 20:27:47 -05:00
Erimel 705ba65cdc Fix drift 2026-08-28 18:56:58 -04:00
Sapphire d2d1da8f82 Mark all HID trackers as disconnected when their dongle is unplugged 2026-08-28 15:39:56 -05:00
Sapphire f7cae8ee01 fix gui explodey 2026-08-28 15:22:43 -05:00
Sapphire a784a7afe3 Make sure mounting reset buttons are always disabled when full reset is required 2026-08-28 14:46:07 -05:00
Erimel 835015d00e Group solarxr by datafeed, driver and rpc 2026-08-28 12:41:41 -04:00
Erimel 774516b7e0 Update solarxr-protocol 2026-08-28 12:15:06 -04:00
Erimel 70378752d6 Revert "Localizer module creation"
This reverts commit eb73053e25.
2026-08-27 20:03:38 -04:00
Erimel eb73053e25 Localizer module creation 2026-08-27 19:16:40 -04:00
Erimel dd2d6542d3 ComputeFloorLevel 2026-08-27 18:48:44 -04:00
Erimel 99222ef951 Use head height instead of feet to calculate floor level 2026-08-27 18:09:51 -04:00
Erimel c742e7226d Skeleton floor level 2026-08-27 18:05:20 -04:00
Sapphire 38079be787 Play end of full reset sound effect when changing feedback sound volume
Closes #1916.
2026-08-27 16:30:09 -05:00
Erimel 4fb2a0a854 Properly pause tracking, yay! 2026-08-27 17:25:51 -04:00
Sapphire 5fa986f32b Add ResetTrackerAssignments 2026-08-27 16:16:54 -05:00
loucass003 bf32e7f729 Don't record messages for pending replies when type has no consumers
This was causing memory leaks, since we'd add the messages to the pending
reply map and never drain them.
2026-08-27 15:19:43 -05:00
Erimel 6d8366d41f spotless 2026-08-27 15:41:12 -04:00
Erimel 8d42f98e57 Refactor skeleton processors to only take InputSkeleton 2026-08-27 15:40:40 -04:00
Sapphire 7c21bf5437 WIP SteamVR tracking checklist step rework 2026-08-27 12:29:42 -05:00
Sapphire 4baef9aca2 Fix SolarXR driver routing output state not properly updating 2026-08-27 12:29:42 -05:00
loucass003 c6ce1bf6af Small gui fixes + add link to wifi provisioning page 2026-08-27 04:54:07 +02:00
Erimel c6abc5a560 fix ci 2026-08-26 20:53:13 -04:00
Erimel f446693978 fix electron 2026-08-26 20:36:37 -04:00
loucass003 2cf29c4f3a electron 44 2026-08-27 02:26:21 +02:00
loucass003 53d3ee611f electron 42 2026-08-27 02:22:13 +02:00
Erimel b95140796e Stop computing skeleton frametime for nothing 2026-08-26 20:22:00 -04:00
loucass003 7f7e229349 Bump electron 2026-08-27 01:55:02 +02:00
loucass003 160563dee2 Fix centering of divider. better handling of page scrollbars 2026-08-27 01:49:57 +02:00
Erimel fe0f0e7021 Accept TIMED_OUT more 2026-08-26 19:42:28 -04:00
loucass003 48aa085cf3 Fix UI issues 2026-08-27 01:24:34 +02:00
loucass003 bd84e53f28 Server Infos 2026-08-27 00:47:38 +02:00
loucass003 941967b472 Tracker assignment conflict logic 2026-08-27 00:14:54 +02:00
Erimel adcefc0733 Improve timeout delay handling (and not duration) 2026-08-26 18:04:26 -04:00
Sapphire 75e16b280f Fix checklist unassigned HMD step test 2026-08-26 16:31:50 -05:00
Sapphire a0af9da399 Fix GUI lint 2026-08-26 16:23:04 -05:00
Sapphire 8238514638 Spotless 2026-08-26 16:19:40 -05:00
Sapphire cc535fbf25 Fix unassigned HMD step relying on the order driver trackers get added 2026-08-26 16:18:36 -05:00
loucass003 e5ecd500c8 Maybe fix shutdown. Cannot hurt 2026-08-26 23:18:07 +02:00
Erimel 44342c0d41 instantiate tracker with null bodyPart 2026-08-26 17:09:04 -04:00
loucass003 c2bbfc9237 Spotless 2026-08-26 22:54:59 +02:00
loucass003 1feee8dd32 Force a custom setRotation function 2026-08-26 22:38:01 +02:00
loucass003 5cf2cebb3d move reducer outside of behaviours 2026-08-26 22:19:06 +02:00
Erimel e863d5d1fe Patch for >180 degrees rotation 2026-08-26 16:01:52 -04:00
Erimel d609e77f5b clarify test method naming 2026-08-26 13:49:34 -04:00
Erimel afd711ba23 Create PolarityTrackingTest.kt 2026-08-26 13:46:53 -04:00
Erimel dba4c1964e Don't warn on quit for sleeping trackers 2026-08-26 13:16:00 -04:00
Erimel 38fe57cee0 Filter strength instead of Amount 2026-08-26 13:08:20 -04:00
Sapphire 00801b35a1 Leave SolarXR driver trackers in DISCONNECTED state on add 2026-08-26 05:28:00 -05:00
loucass003 ce64b3fbcd Fix cursor alignment 2026-08-26 00:15:06 +02:00
loucass003 1a26abffca I FORGOT THE LOCKFILE .... 2026-08-25 23:55:18 +02:00
loucass003 5a17518b26 lint 2026-08-25 23:53:27 +02:00
loucass003 7501e10237 Metrics overlay 2026-08-25 23:48:59 +02:00
loucass003 6ad68371e0 Min max render 2026-08-25 21:48:47 +02:00
loucass003 d3f81fa257 Telemetry fixes 2026-08-25 21:22:19 +02:00
loucass003 f82f1eeddd Telemetry fixes + Optimise the crap out of it 2026-08-25 21:07:01 +02:00
loucass003 9a0cdb61cb USB Serial console 2026-08-25 16:55:49 +02:00
loucass003 a2e0eabe6e Telemetry 2026-08-25 04:17:05 +02:00
Sapphire 4b6244289e Only launch bindings provider when driver name is SteamVR 2026-08-24 21:00:06 -05:00
Butterscotch! 1d12c8423d Split skating correction into testable chunks 2026-08-24 21:43:56 -04:00
Butterscotch! 7148ec3394 Apply skating correction locks as IK targets 2026-08-24 20:55:53 -04:00
loucass003 e2bdc27c99 Lock provisioning trackers to only UDP trackers 2026-08-24 22:45:28 +02:00
Erimel 9d541a3c09 Try to fix CI 2026-08-24 16:43:52 -04:00
Erimel 7eeafb2a25 Fix build 2026-08-24 16:23:34 -04:00
Erimel 090f836fc9 Fix todo in mapping.kt 2026-08-24 16:15:36 -04:00
Erimel 2c20f3973e Use BodyPartMap moar 2026-08-24 16:10:14 -04:00
loucass003 1aaeb07f4d Forgot some elvis operator 2026-08-24 21:44:57 +02:00
loucass003 0977f8e6e4 Update all fields affected by solarxr changes 2026-08-24 21:42:52 +02:00
Erimel e9157dbff7 evil whitespaces for ci 2026-08-24 14:40:18 -04:00
Erimel cadc775c86 Fix Yaw Reset not using calibrated rotation 2026-08-24 14:35:52 -04:00
Sapphire 9b1e32f125 Listen for driverName changes in observe 2026-08-24 12:32:52 -05:00
Erimel 3fc70fae9a reset_mounting_fingers 2026-08-24 13:21:40 -04:00
Erimel d67223a6bb Align finger mounting with arms 2026-08-24 12:50:30 -04:00
loucass003 cf94fc6a6b BUILD SPEEEEED 2026-08-24 18:44:36 +02:00
Aed 648a957b89 check if recently done full reset in mounting/stay aligned setup (#1895) 2026-08-24 17:50:12 +02:00
loucass003 986cb37be4 Code clean a bit 2026-08-24 15:47:05 +02:00
loucass003 cb5becd52d Mobile UI fixes for provisioning 2026-08-24 15:38:47 +02:00
Sapphire bb5f36160c Start bindings provider when SteamVR driver handshakes via SolarXR 2026-08-24 02:22:16 -05:00
Sapphire 4863e3d313 SolarXR external trackers 2026-08-24 02:22:15 -05:00
Erimel db05f2e9d9 Fix TPS update comment 2026-08-24 02:47:50 -04:00
Erimel 4bf797909b Make TPS only update on rotation 2026-08-24 02:45:47 -04:00
art0007i cc63cb45c6 add timeout setting (#1910) 2026-08-23 22:40:57 +02:00
loucass003 f6c93a87fc Ui fixes for provisioning 2026-08-22 12:54:16 +02:00
loucass003 c8c4c62136 Better handshake and device connection check for UDP 2026-08-22 12:53:56 +02:00
loucass003 9c60cb8097 Wifi provisioning 2026-08-22 06:53:08 +02:00
Erimel 5f0c11deb4 Fix arms and feet with VMC 2026-08-21 21:35:51 -04:00
loucass003 8374422c3c Fix solarxr buffer read 2026-08-22 02:15:45 +02:00
Erimel e6397ed65f specify twist for interpolate_upper_legs_with_lower_legs 2026-08-21 17:37:09 -04:00
Erimel c13841b833 Make interpolateUpperLegsWithLowerLegs only affect roll 2026-08-21 16:34:48 -04:00
Erimel f67b061043 disable driver verboseMetrics 2026-08-21 15:43:32 -04:00
loucass003 c6a4054b46 Fix android build 2026-08-21 20:45:12 +02:00
loucass003 a36b330fda Spotless 2026-08-21 19:11:57 +02:00
loucass003 83eb12d906 Fix binding provider build 2026-08-21 19:08:47 +02:00
loucass003 8e08c3965e Lint fix 2026-08-21 19:03:16 +02:00
loucass003 6d22ee9323 Merge remote-tracking branch 'origin/main' into server-rewrite
# Conflicts:
#	gui/app/public/i18n/en/translation.ftl
#	gui/src/components/settings/pages/GeneralSettings.tsx
#	server/desktop/src/main/java/dev/slimevr/desktop/platform/SteamVRBridge.kt
2026-08-21 18:59:35 +02:00
Sapphire 554976390b Delay startup of bindings provider to work around SteamVR startup issues (#1906) 2026-08-21 01:51:55 +02:00
loucass003 46528a320f Nvm i prefer stateFlow 2026-08-21 01:38:08 +02:00
loucass003 1c2beb7961 Moar memory optimisations 2026-08-21 01:30:06 +02:00
Erimel 2bb35fb99f Use null bodypart instead of NONE 2026-08-20 19:08:53 -04:00
loucass003 151a6e3021 Allocations optimisations 2026-08-21 01:04:09 +02:00
Erimel 8f3cd8e3dd MOUNTING -> POSE_MOUNTING 2026-08-20 18:48:13 -04:00
loucass003 7ede75de8a Reuse read buffers on ipc stuff 2026-08-21 00:00:54 +02:00
Erimel ca04a615ef Let NONE bodypart be loaded from config 2026-08-20 17:49:55 -04:00
Erimel 63f3ffcd7f Don't use IMU head tracker as reference 2026-08-20 17:35:56 -04:00
loucass003 136746d1d0 Bring back Dispatcher.Default 2026-08-20 23:10:56 +02:00
loucass003 3a15c54e85 More event logs before confirming fix 2026-08-20 22:40:12 +02:00
Erimel 7ab83c3f4a Optimize mountingOrientation and fix positional tracker cal 2026-08-20 15:55:28 -04:00
loucass003 367fbc9344 Maybe fix the latency problem 2026-08-20 21:35:43 +02:00
Erimel ca89627832 Fix VR tracker status 2026-08-20 13:56:35 -04:00
loucass003 b6acc5fe26 Verbose metrics for event-dispatcher.kt 2026-08-20 18:07:07 +02:00
Erimel 9ea6354d49 Positional trackers rotation calibration + resetPositionalHeadAttitude 2026-08-19 22:01:21 -04:00
Erimel dd95c35f93 Fix BoneYawFallbackProcessor not affecting children of children 2026-08-19 21:07:56 -04:00
Erimel 3f0c340f55 Tweak proportions and finger lengths 2026-08-18 21:17:44 -04:00
Sapphire 6efec5628b Fix SteamVR battery readings 2026-08-18 16:46:55 -05:00
Erimel bff1fe1db3 Allow skeleton proportions to go to 0 2026-08-18 15:07:14 -04:00
Sapphire ced279a867 Use app key of SlimeVR Steam application for bindings provider (#1908) 2026-08-18 11:52:54 +02:00
Sapphire 8637d1864a Tap reset selection GUI cleanup (#1909) 2026-08-18 11:52:40 +02:00
Butterscotch! c4ee293519 Start implementing IK into the skeleton loop 2026-08-18 00:14:14 -04:00
Erimel 757c53b8ae positional head attitude and remove force arms from hmd 2026-08-17 21:04:11 -04:00
Erimel ca84b84e48 Make SlimeVR more Canadian 2026-08-17 21:02:37 -04:00
Erimel b96a6468a7 arm prediction multiplier 2026-08-17 19:22:30 -04:00
Erimel ba8c09b48c Stay Aligned flightlist check 2026-08-17 19:21:46 -04:00
Erimel 865c6a3b7d Get rid of visitors and make Stay Aligned work 2026-08-17 18:41:46 -04:00
Erimel 56bada0b92 bodypart mounting only when last mounting is manual 2026-08-17 17:59:32 -04:00
Butterscotch! 056fb49202 Clean up constraint code 2026-08-14 22:01:08 -04:00
Butterscotch! 025aa96534 Separate offset constraint math 2026-08-14 21:59:56 -04:00
Butterscotch! fc9f9f4605 Actually make IK work (for realsies) 2026-08-14 21:16:08 -04:00
Butterscotch! 991c968e4a Apply Spotless formatting 2026-08-14 20:48:31 -04:00
Erimel 72c9293f18 Get rid of LockedErrorVisitor 2026-08-14 16:12:02 -04:00
Erimel 676f093e8a Get rid of HideCorrection 2026-08-14 15:40:47 -04:00
FeatherP 922f212883 Support configurable SPI bus pins in Firmware Flasher (#1902) 2026-08-14 04:39:37 +02:00
Erimel 7b8e95cacf WIP trying to fix Stay Aligned 2026-08-13 19:59:12 -04:00
loucass003 cb8a9338cb Make android compile 2026-08-13 23:15:07 +02:00
loucass003 b8610d94bb Spotless 2026-08-13 22:37:55 +02:00
loucass003 5eba00d32b Dongle settings page + tweaks 2026-08-13 21:20:43 +02:00
loucass003 9c15ddc79b Device origin + driver group 2026-08-13 06:59:52 +02:00
loucass003 0ba3b1e164 Dongle status + Dongle in tracker list 2026-08-13 05:56:15 +02:00
Erimel 5dd5d125b1 resetPositionalHeadAttitude WIP 2026-08-12 20:12:36 -04:00
Erimel fecc700da5 Fix Centaur Bug (ptsd moment) 2026-08-12 20:10:33 -04:00
loucass003 2f64daeb64 Dongle in datafeed 2026-08-13 01:36:30 +02:00
Erimel 31956e2a2f idkhowtonamethiscommit Tracker.DEFAULT_STATE 2026-08-12 17:47:49 -04:00
loucass003 bb7a5521e3 Fix build 2026-08-12 20:45:04 +02:00
loucass003 e376c221e1 spotless you sonofabish 2026-08-12 17:27:21 +02:00
loucass003 5d1dc2238e Properly mute test 2026-08-12 17:24:16 +02:00
loucass003 702e1d4cd7 Fix binding provider maybe? 2026-08-12 17:18:33 +02:00
loucass003 c8878db908 Disable IK tests 2026-08-12 17:14:29 +02:00
loucass003 4759300ed9 Tracker Over HID 2026-08-12 16:56:38 +02:00
loucass003 243453ac7e Make sure trackers get set to disconnected when driver disconnect 2026-08-12 15:30:27 +02:00
Erimel 6876956023 don't need double asterix dumbass fox 2026-08-11 18:08:13 -04:00
Erimel e3c7563bfa Ignore **.ftl for language stats 2026-08-11 18:05:15 -04:00
Erimel f41c4fea27 Exclude i18n (Fluent) from language stats 2026-08-11 17:56:09 -04:00
loucass003 c697aabfd7 Driver through solarxr. Not supporting monado skeleton approach. need packets 2026-08-11 22:14:00 +02:00
Sapphire 3a605df946 Don't force-override assigned body part and name for VRCOSC trackers 2026-08-10 22:58:58 -05:00
Sapphire 93816ad7ed Don't unnecessarily send skeleton proportions upon SolarXR connection 2026-08-10 22:58:19 -05:00
Sapphire c72a30aca5 Add socket path used when under pressure-vessel to bindings provider (#1905) 2026-08-11 03:08:44 +02:00
loucass003 f679051d50 Fix build 2026-08-11 02:39:30 +02:00
loucass003 89d20c6bc1 Remove AGENTS.md 2026-08-11 02:37:28 +02:00
loucass003 03eded6c35 Fix build / tests 2026-08-11 02:34:14 +02:00
loucass003 d7f510c7f3 Fix android build 2026-08-11 02:02:05 +02:00
Butterscotch! 0daaa2520d Add constraints to IK 2026-08-10 19:28:02 -04:00
loucass003 3b02bf4273 remove detekt 2026-08-11 01:23:30 +02:00
loucass003 17b535c3a1 Change java version check message 2026-08-11 00:52:12 +02:00
Erimel 14c4562d02 Get rid of NULL Quaternion 2026-08-10 18:13:24 -04:00
Butterscotch! 66a8606c81 Actually fix IK NaN 2026-08-10 18:12:15 -04:00
Butterscotch! 5cf8b24926 Stop IK NaN 2026-08-10 17:48:48 -04:00
loucass003 f7fae1d895 Fix prediction breaking with bone offset changes + improve smoothing a bit 2026-08-10 21:27:27 +02:00
Sapphire cff625c02a Bone routing and VMC/VRCOSC text fixes 2026-08-05 16:44:19 -05:00
Erimel 5c18a4184e SolarXR TrackerInfo cleanup 2026-08-05 17:24:18 -04:00
Butterscotch! d2c2aaf2ee Simplify IK test distance check 2026-08-05 13:20:31 -04:00
Butterscotch! 1a7c15f805 Simplify IK math 2026-08-05 13:11:30 -04:00
Butterscotch! ea348b65bb IK goal condition fix & basic unit test 2026-08-05 12:52:46 -04:00
loucass003 8a51cef017 Fix vmc / warudo reseting when not seeing changes. Move computed skeleton to a mutable shared flow instead of mutable state flow 2026-08-05 18:49:07 +02:00
loucass003 bbcfc99061 Driver status and enable 2026-08-05 18:02:57 +02:00
Erimel aa3ab3942a Update solarxr-protocol 2026-08-05 11:45:22 -04:00
loucass003 0c2b8947dd Overrides on hands in auto 2026-08-05 14:02:43 +02:00
loucass003 d18ad4f8e2 Group finger bones together in manual 2026-08-05 14:02:43 +02:00
Sapphire debdec761a Fix manual proportions part 2 electric boogaloo 2026-08-05 04:59:09 -05:00
Sapphire 25f74ad1b2 Fix manual proportions (sorta)
Something still seems wrong, reset all proportions doesn't work 100%
correctly - like if you set neck length to a high value then reset,
the neck is *extremely* small in the skeleton. The values in the config
seem fine though, and if you restart the server the skeleton then looks
fine. I also don't understand why this fixes proportions doubling when
you try to adjust them, but oh well...
2026-08-04 21:35:29 -05:00
Erimel 354c0084b6 Stay aligned solarxr 2026-08-04 20:38:53 -04:00
Erimel fad307237e Better tracker TPS 2026-08-04 19:02:40 -04:00
Erimel c1b416b41b Split tracker behaviours 2026-08-04 14:18:22 -04:00
Erimel a0de2555d2 Bone routing GUI fixes 2026-08-04 13:47:52 -04:00
loucass003 3aa621ffc1 Cleanned up VMC / VRCOSC code + Status for VMC 2026-08-04 19:27:05 +02:00
loucass003 02378c43b3 Set solarxr 2026-08-04 09:39:22 +02:00
loucass003 52b22e8a45 New bones routing to replace tracker outputs 2026-08-04 09:35:53 +02:00
Erimel f8aa2f8c68 Passable Stay Aligned code 2026-08-03 19:14:08 -04:00
Erimel d69585a2ad More more Stay Aligned wip 2026-08-03 17:44:09 -04:00
loucass003 262158db2f Flightlist -> Make HMD step visible only when invalid 2026-08-03 11:56:56 +02:00
Sapphire 0d413dc161 Remove references to synthetic trackers in GUI 2026-08-01 13:15:51 -05:00
Sapphire 42c081bd79 Handle TrackerStatus Protobuf messages 2026-08-01 12:57:15 -05:00
Sapphire 4b1460aa18 Explicitly set desktopName for Electron
electron-builder keeps complaining about this
2026-08-01 01:33:04 -05:00
Sapphire e2cb06fe2b Use temurin JDK distribution in CI 2026-08-01 01:18:03 -05:00
Sapphire 68429e1fb8 Update stale Java version checks and messages in GUI 2026-08-01 00:35:37 -05:00
Sapphire 6d8c5ea9ae Switch to static AppImage runtime 2026-08-01 00:32:54 -05:00
Sapphire 6a193e235d Revert re-addition of FHS by 9efc2b2b3c
Everything seems to work fine without it, including Windows cross-build
2026-08-01 00:07:27 -05:00
Sapphire f6b72b1ecf Always send output trackers config to SolarXR clients on change 2026-07-31 23:03:54 -05:00
Sapphire 9137482634 Fix TPS display at 0 TPS 2026-07-31 22:50:11 -05:00
Erimel dd70977b6f Fix automatic tracker toggle not cancelling on manual 2026-07-31 23:48:06 -04:00
Erimel 1721943d20 MotionDetector only for rotation, Tap checks for own motion 2026-07-31 19:14:27 -04:00
Erimel 036ffa0b55 More StayAligned wip 2026-07-31 18:03:32 -04:00
Erimel 0b1cb6ae7e Nice TrackerRestDetectionBehaviour :3 2026-07-31 15:45:41 -04:00
Erimel 179277d66e Accept sleeping for tracking checklist 2026-07-31 13:26:47 -04:00
Erimel 4028963105 Fix unit tests 2026-07-30 21:05:56 -04:00
Erimel ecc345bd71 spotlessApply 2026-07-30 20:50:03 -04:00
Erimel 9d3558cd2a StayAligned WIP 2026-07-30 20:37:40 -04:00
Sapphire 4bfb4287b6 fixup! Assign driver-created trackers to hinted body part by default 2026-07-30 19:31:35 -05:00
Sapphire cc64682d35 Assign driver-created trackers to hinted body part by default 2026-07-30 19:29:38 -05:00
Butterscotch! bde1c78bec Add Android SDK to Nix flake 2026-07-30 19:45:08 -04:00
Erimel 9b06eec608 Create side.kt 2026-07-30 18:34:27 -04:00
Erimel 1b7c333b81 Use SetRotation for non-imu trackers and position 2026-07-30 14:45:26 -04:00
Erimel 05e1222316 Don't spam warning logs as much 2026-07-30 13:45:24 -04:00
Erimel 82a5ab2974 Merge branch 'main' into server-rewrite 2026-07-30 13:09:34 -04:00
Erimel 96ff0b088a Remove stale CODEOWNERS entries 2026-07-30 13:09:29 -04:00
Erimel 9ec27d7b62 bodypart-sets.kt in object 2026-07-30 12:50:16 -04:00
Erimel 3391080226 Add Sleeping TrackerStatus 2026-07-30 12:06:30 -04:00
Erimel 21d61a47b0 Clean up translations 2026-07-30 11:50:49 -04:00
Erimel 6d2c701409 Accept TIMED_OUT for tracking (needed for HID) 2026-07-29 18:45:58 -04:00
Erimel ad04ed9244 Reuse TestServer buildTestTracker in YawResetSmoothingTest 2026-07-29 18:20:43 -04:00
Sapphire 992479a4c2 bump solarxr-protocol 2026-07-29 16:35:51 -05:00
Erimel 3aa5616f2c yaw reset smoothing running on skeleton tick 2026-07-29 17:12:49 -04:00
Erimel c7a7eedc2a Fix defaultMountingForBodyPart 2026-07-29 15:05:31 -04:00
Sapphire d16a30ca17 Fix Android 2026-07-29 12:45:21 -05:00
Sapphire c23fa703a1 Fix bindings provider build again 2026-07-29 12:26:42 -05:00
Eiren Rain d7205bb294 Update CONTRIBUTING.md 2026-07-29 14:28:44 +03:00
loucass003 f535007ee0 Prevent full reset from clearing mounting status 2026-07-29 07:58:32 +02:00
loucass003 f9a6e6afee Yaw reset smoothing + tests 2026-07-29 06:21:29 +02:00
loucass003 1290b8f930 Better flightlist checks / fix edge cases 2026-07-29 04:35:22 +02:00
loucass003 5d0e6011dc Fix mounting reset not clearing the step 2026-07-29 04:20:08 +02:00
loucass003 05e8faeb34 Flightlist steps + unit tests 2026-07-29 04:02:25 +02:00
Erimel 6562d41721 Calculate frametimes for skeleton and make smoothing truly independant 2026-07-28 20:54:48 -04:00
Erimel 5d7cd5dfaf use cool TimeSource instead of System.nanoTime 2026-07-28 18:17:17 -04:00
Aed 484a65c1b2 Allow the user to input into auto height proportions box (#1887) 2026-07-28 21:48:47 +02:00
Sapphire ab7c143f19 Merge remote-tracking branch 'origin/main' into server-rewrite 2026-07-28 14:31:21 -05:00
Sapphire 59a76aa898 fixup! Use JDK 25 2026-07-28 13:36:59 -05:00
Sapphire 0105b4813c Use JDK 25 2026-07-27 22:14:27 -05:00
Butterscotch! 20afbdb71b Messy ccdIk loop 2026-07-27 22:33:33 -04:00
Butterscotch! 6f537ab170 Add missing restRotation variable to test comment 2026-07-27 21:44:21 -04:00
Butterscotch! c158ed821c Add referenceRotation to session calibration test 2026-07-27 21:43:06 -04:00
Erimel 8762da715d Fix upper legs bad behaviour BoneYawRollAlignProcessor 2026-07-27 20:11:32 -04:00
Erimel 10c8088c85 Reset reference orientation fixes 2026-07-27 19:46:54 -04:00
Erimel 952bdd7884 Skeleton hz and driver fixes 2026-07-27 19:43:21 -04:00
Erimel 40d214b6b3 Optimise fallbackprocessor, 200hz skeleton w/ smoothing 2026-07-27 17:04:17 -04:00
lucas lelievre 5da53fcfe2 spotless 2026-07-25 22:53:15 +02:00
lucas lelievre e0b06f1598 Speed part 4 2026-07-25 22:52:08 +02:00
lucas lelievre a238211c93 Speed part 3 2026-07-25 21:23:25 +02:00
lucas lelievre 51342dd338 Speed part 2 2026-07-25 17:20:45 +02:00
lucas lelievre e207abbc31 Speeeeeeeeed 2026-07-25 17:17:08 +02:00
lucas lelievre b0232ae783 Optimise HID loop 2026-07-25 08:25:49 +02:00
lucas lelievre 6b54329dd2 Better logs / Logs to file and log rotation 2026-07-25 07:22:20 +02:00
Erimel 4e1e53ee0a Move around reset settings in GUI and add titles 2026-07-24 19:16:02 -04:00
Erimel 540c291ccb Driver fixes including head data 2026-07-24 18:20:43 -04:00
Erimel dd7d7d0bd0 Make manual mounting work + ClearMountingReset 2026-07-24 17:10:37 -04:00
lucas lelievre c9732f7e46 Fix tests 2026-07-24 23:03:55 +02:00
lucas lelievre 4c0b187306 Remove safeLaunch + Fix driver 2026-07-24 22:15:45 +02:00
Erimel c850f18403 Rework rest orientation 2026-07-23 20:46:40 -04:00
lucas lelievre 05fbf64ac3 Better event-dispatcher with liteners that die with scope 2026-07-23 22:04:49 +02:00
Erimel 8e19542c82 ArmsResetMode 2026-07-23 17:14:38 -04:00
Erimel 0aa3b9966e Save mountingResetOrientation 2026-07-22 19:49:04 -04:00
Erimel d96af009d9 Optimize skeleton processors and rid order assumption 2026-07-22 18:58:25 -04:00
Erimel 0736d60c75 Send both rotation and orientation solarxr 2026-07-22 18:28:29 -04:00
Erimel bd126ec099 Rotation polarity tracking 2026-07-22 14:10:10 -04:00
loucass003 86433dfb3d Dont forget to set feature flags for android 2026-07-22 02:12:27 +02:00
loucass003 627600a2e0 Improved keybinds 2026-07-22 02:07:43 +02:00
Erimel 609a8d9dc6 BonePriorityLinkProcessor -> BoneActiveLinkProcessor 2026-07-21 18:11:30 -04:00
Erimel 2f5a9fb089 BoneYawRollAlignProcessor 2026-07-21 17:56:47 -04:00
Erimel 2ab148aad2 Rename a bunch of files to add - separators 2026-07-21 17:07:13 -04:00
Erimel 44d9c68f78 Move processors into their own package 2026-07-21 16:33:52 -04:00
Erimel 56fcfe15bf Finish ImputeSpineProcessor 2026-07-21 16:27:31 -04:00
Erimel 74ee1bb580 Impute spine WIP 2026-07-20 19:25:18 -04:00
Erimel d0c2a27288 Extract ImputeFingersProcessor from BoneLinkProcessor 2026-07-20 17:09:23 -04:00
Erimel 7d213de97c Split FallbackProcessor in 2 2026-07-20 16:44:30 -04:00
loucass003 0e6e2d7de1 Keybinds properly working / rebindin 2026-07-20 20:50:28 +02:00
loucass003 9332ff8e02 Keybinds 2026-07-20 19:52:47 +02:00
Sapphire 953ef93945 Fix order of tap detection tracker settings (#1893) 2026-07-20 18:18:30 +02:00
Butterscotch! 5c4c64e629 Add missing quaternion unitization to CCD IK 2026-07-20 06:20:09 -04:00
Butterscotch! f986f507ae Rename RawBone to BoneInput 2026-07-20 05:56:40 -04:00
Butterscotch! b9776ab898 Start constraint implementation 2026-07-20 05:56:40 -04:00
Butterscotch! 577036eb9c Start CCD IK implementation 2026-07-20 05:56:40 -04:00
Erimel 5da133cffc Fallback skeleton processor 2026-07-17 21:54:50 -04:00
Erimel a6020ae4df Handle driver tracker mapping more generously 2026-07-17 18:43:14 -04:00
Erimel 01362ca2de Keep SetStatus separate for debug 2026-07-17 17:32:54 -04:00
Erimel e4014679e0 Use UPPER_CHEST instead of CHEST for chest output 2026-07-17 16:45:49 -04:00
Erimel 7433048d52 Fix null fallbacks when receiving from SolarXR
false will be null, but also 0 and the first value of an enum
2026-07-17 15:34:58 -04:00
Erimel bf6d8eb50d Fix trackerassignment and add default mountingOrientation 2026-07-17 15:33:53 -04:00
Erimel 349666b8cd SpotlessApply 2026-07-17 14:51:21 -04:00
Erimel a1c4de8152 Fix filtering type switching 2026-07-17 13:41:01 -04:00
Erimel 7d46e903fe Brainstorming skeleton processors 2026-07-16 20:18:34 -04:00
Erimel ff514faf73 Use trackerRole as protocol serial 2026-07-16 18:22:53 -04:00
Erimel 35175565d3 Add TapDetection tests 2026-07-16 16:21:07 -04:00
Erimel 527f5e0d99 Tests fix warnings 2026-07-16 16:01:19 -04:00
Erimel 8c504bbac0 Add OutputTrackerToggle tests 2026-07-15 18:54:04 -04:00
Erimel 12a5208e73 Nicer syntax 2026-07-15 15:56:16 -04:00
loucass003 47bd59b475 Make proper check for canDoHeightCalibration 2026-07-15 12:33:25 +02:00
loucass003 bb94364830 Fix packet out of order error bc of heartbeat sending packet num 0 2026-07-15 12:18:34 +02:00
loucass003 51fda0ad7f Fix wifi provisioning 2026-07-15 11:54:50 +02:00
loucass003 3452e2b000 Fix Datafeed tests 2026-07-15 10:58:12 +02:00
loucass003 dbe0acd9fa Pause Tracking 2026-07-15 10:17:43 +02:00
loucass003 f7c821f316 Better output trackers 2026-07-15 02:00:40 +02:00
Erimel fc7316cb4b Get rid of unused offsets and fix setting height 2026-07-14 19:03:24 -04:00
Erimel 68545e52f7 Fix reset guards 2026-07-14 16:57:04 -04:00
Erimel abec5ea4b9 update solarxr 2026-07-14 16:47:53 -04:00
Erimel 20be49e4b0 Use OutputTrackerToggle for VRCOSC trackers 2026-07-14 16:16:45 -04:00
Erimel 6378eb30cd OutputTrackerToggle 2026-07-14 15:53:31 -04:00
Erimel 8c49a7dcc2 Skeleton Settings communication 2026-07-13 17:08:14 -04:00
loucass003 90706ac9cb Fix eslint 2026-07-13 23:05:12 +02:00
Erimel 6d6492c124 Add missing config and update solarxr 2026-07-13 16:30:26 -04:00
Erimel 4add1655ff Remove extra name argument in VMCSettings 2026-07-13 16:27:05 -04:00
Erimel deb0f1a1b2 Fix h2 in h1 2026-07-13 16:25:29 -04:00
Erimel b379ebc34e Also fix VRCOSC 2026-07-10 19:18:02 -04:00
Erimel 0278968e94 Fix VMC/VRM solarxr communication 2026-07-10 19:04:25 -04:00
loucass003 d99a0a77a3 Just placeholder of the brainstorming for IK 2026-07-09 03:32:40 +02:00
Erimel 588c8d9cc3 Update CONTRIBUTING.md 2026-07-08 19:15:48 -04:00
Butterscotch! e6e15a8ff2 Calculate center of mass & clean up velocity state 2026-07-08 14:32:41 -04:00
Butterscotch! 5f909831a7 Add acceleration calibration unit test 2026-07-07 05:21:25 -04:00
Butterscotch! fdfbc35c53 Fix unit test compiler errors 2026-07-07 03:29:03 -04:00
Sapphire 006d8bb1e2 actually fix Android lol 2026-07-06 20:27:40 -05:00
Sapphire 0ff1bc9264 Fix Android 2026-07-06 04:37:22 -05:00
Sapphire 960647c691 Fix bindings provider build after solarxr rework 2026-07-06 03:58:11 -05:00
Sapphire 1ec08024e7 Log where we're creating IPC sockets on Linux 2026-07-06 03:54:06 -05:00
Sapphire 8b7ce00d92 Log found path of bindings provider 2026-07-06 03:53:54 -05:00
Sapphire f0667dc74c Spotless 2026-07-06 03:53:43 -05:00
Sapphire 4607616270 Port #1825
See: <https://github.com/SlimeVR/SlimeVR-Server/pull/1825>
2026-07-06 03:52:41 -05:00
Erimel 2fc891d9f9 VRCOSC use_manual_network bool 2026-07-03 23:06:09 -04:00
Erimel 3da6efbdc0 Tap detection over threshold shared 2026-07-03 21:33:38 -04:00
Erimel 3afd7375c2 Rewrite TapDetection into its own module 2026-07-03 21:14:06 -04:00
Erimel a894b49921 spotless 2026-07-02 21:58:53 -04:00
Erimel 0c1ef06e3f Move configs out of states 2026-07-02 21:57:46 -04:00
loucass003 b7f87ab1f1 Remove useless comments 2026-07-03 02:26:38 +02:00
loucass003 9efc2b2b3c Rework electron build pipeline 2026-07-03 02:19:06 +02:00
Erimel 853db3fd0f TapDetectionSetupModeRequest missing [] 2026-07-02 19:21:21 -04:00
Erimel 396a049809 Small GUI fixups 2026-07-02 18:39:12 -04:00
Erimel 4ea067731b UserHeight/SkeletonHeight 2026-07-02 18:28:48 -04:00
Erimel 67e5880739 Fix steamvr -> output scrollTo 2026-07-02 17:31:13 -04:00
Erimel d9edf9fb69 lint & format 2026-07-01 23:09:52 -04:00
Erimel ed211a97a6 Improving settings layout 2026-07-01 23:01:56 -04:00
Erimel 9961cb4114 Migrating the GUI for solarxr rewrite 2nd pass 2026-07-01 20:51:49 -04:00
Erimel 33d54b2609 Fall back to config for solarxr null fields 2026-07-01 02:30:00 -04:00
Erimel d256506a1a ArmsResetMode 2026-07-01 02:30:00 -04:00
Erimel 068a7a85a6 Nuke pub sub 2026-07-01 02:30:00 -04:00
Erimel 234dabe23e Make server work for solarxr rewrite 2nd pass 2026-07-01 02:30:00 -04:00
Erimel c87b7ff003 Update solarxr-protocol 2026-07-01 02:29:59 -04:00
Butterscotch! a2c4c0fb4f WIP leg tweaks 2026-06-24 22:49:07 -04:00
Erimel 8358ca14a8 Update packaging instructions 2026-06-23 16:38:55 -04:00
Erimel 67fbf0faca Improving GUI settings layout 2026-06-23 00:28:50 -04:00
Sapphire ce762ba242 Spotless 2026-06-22 19:41:11 -05:00
Sapphire 70eda4f70c Read mag vector from HID and send to the GUI 2026-06-22 19:41:00 -05:00
Erimel cdc0e21913 Update for SolarXR rewrite
Big commit but I figured a single commit would be easier for conflicts
2026-06-22 18:01:12 -04:00
Sapphire 6575a11da7 Merge branch 'main' into server-rewrite 2026-06-22 15:59:48 -05:00
Sapphire 9edc747344 Whitelist HID devices for serial access, send serial device type to GUI 2026-06-22 15:50:25 -05:00
Ilia Ki 5e3395afb0 Fix dongle reconnection bug (#1872) 2026-06-22 18:33:27 +02:00
Sapphire cdde0b762f Get rid of grgit (#1878) 2026-06-22 14:07:05 +02:00
Sapphire 71895dec63 same thing but for vite lol
(cherry picked from commit 6d0c350208)
2026-06-22 06:43:25 -05:00
Sapphire fc6304d7ee Fix magnetometer status not changing when restarting HID tracker (#1863) 2026-06-22 13:13:56 +02:00
Sapphire 563933fa90 Add extra SteamVR driver sanity checks + Standable step to flightlist (#1825) 2026-06-22 13:06:08 +02:00
Sapphire 90956a6a02 Add support for smol receiver and tracker in serial console (#1868) 2026-06-22 13:04:16 +02:00
Sapphire 3a0dc4b922 Fix various GUI warnings, and run eslint+prettier on Electron code (#1834) 2026-06-22 12:57:53 +02:00
海雀 064e22dc1a Fix settings scroll target positioning (#1829) 2026-06-22 12:57:26 +02:00
Sapphire 11669d40b8 Explicitly set abbrev for git describe
(cherry picked from commit c9d00e2a30)
2026-06-21 18:11:39 -05:00
Sapphire 0bbe35b5d1 Upgrade Gradle and AGP 2026-06-21 16:38:55 -05:00
Sapphire 0530cebf92 Get rid of grgit
(cherry picked from commit 31af38e663)
2026-06-21 13:32:03 -05:00
Sapphire d0b361a821 Merge branch 'main' into server-rewrite 2026-06-21 12:18:55 -05:00
Sapphire 7c6151fbe5 bindings-provider: Fix app key changing under certain circumstances (#1864) 2026-06-21 05:29:05 +02:00
Sapphire c8c57b1511 Fix disconnected UDP tracker sensors being marked as OK on reconnect (#1866) 2026-06-21 05:28:39 +02:00
Sapphire 5b45d26c2d Get rid of hostName checks when refreshing VRCOSC settings (#1867) 2026-06-21 05:27:37 +02:00
Stephen Smith 2b82638961 Tolerate dragging during button presses for easier VR controller usage (disable link dragging on buttons) closes #1873 (#1875) 2026-06-21 05:26:28 +02:00
Sapphire 8df1e3dc4c Bump electron-builder to 26.15.0, improve Nix flake (#1876) 2026-06-21 05:26:09 +02:00
Sapphire a45925bc36 Fix GUI on Android/non-Electron (#1877) 2026-06-21 05:25:50 +02:00
Erimel 22999975ad Resets settings + delay from GUI 2026-06-19 19:35:23 -04:00
Erimel 98ccc7c667 Use sensible min and max for smoothing 2026-06-19 17:47:24 -04:00
Sapphire 0723625272 Fix test build 2026-06-19 05:27:21 -05:00
Sapphire 4686e915b7 Remove unused launch import 2026-06-19 05:18:25 -05:00
Sapphire d1b1195213 Run spotless 2026-06-19 05:11:08 -05:00
Sapphire f202f96246 Run lint on GUI 2026-06-19 05:10:00 -05:00
Sapphire aa0d2e86a5 Get rid of some stray files left behind by merge 2026-06-19 05:01:55 -05:00
Sapphire dc2b47a7dc Don't catch CancellationException in ComputedSkeletonBehaviour 2026-06-19 05:00:37 -05:00
Sapphire 47638cc9d5 Fix GUI on Android/non-Electron
Fixes: a1e0cd52d2
(cherry picked from commit 257dfffc53)
2026-06-19 04:40:53 -05:00
Sapphire 0757935d60 Fix Android compilation 2026-06-19 04:14:02 -05:00
Sapphire 066a73c0c2 Fix up GUI after merge(s) 2026-06-19 04:07:35 -05:00
Sapphire dd198d2205 Port #1859
See: https://github.com/SlimeVR/SlimeVR-Server/pull/1859
2026-06-19 03:54:43 -05:00
Sapphire d7bdeaa48a Port #1785
See: https://github.com/SlimeVR/SlimeVR-Server/pull/1785
2026-06-19 02:55:18 -05:00
Sapphire 5681c351c5 Switch to JDK 24 in CI 2026-06-19 02:29:33 -05:00
Sapphire 28bedc12f1 Sync .gitmodules with main
oopsies!
2026-06-19 02:26:51 -05:00
Sapphire a69c10d733 Fix socket getting placed in XDG_CONFIG_HOME on Steam
See: https://github.com/SlimeVR/SlimeVR-Server/pull/1846
2026-06-19 02:24:53 -05:00
Sapphire c0cf2af9be Remove feeder from Steam install code 2026-06-19 02:13:55 -05:00
Sapphire 71391e7f5a Sync .github and bindings-provider with main 2026-06-19 02:08:45 -05:00
Sapphire 33d84f19f1 Fix HID in flake devshell 2026-06-18 21:17:07 -05:00
Sapphire 2996858770 Fix JAVA_HOME to make IntelliJ happy 2026-06-18 21:16:40 -05:00
Sapphire 1e92eafdad Bump electron-builder to 26.15.0, improve Nix flake 2026-06-18 21:15:39 -05:00
Sapphire 150c0640cf Sync flake with main 2026-06-18 21:13:44 -05:00
Erimel 25a066da30 Remove unneeded data from tracker reset actions 2026-06-18 20:13:50 -04:00
Erimel 8c78f1c371 Finish ResetsManager logic 2026-06-18 19:45:06 -04:00
Erimel 2cf6c0b97c Refactor TapDetection flow 2026-06-17 22:28:31 -04:00
Erimel 710088e513 ResetManager wip + refactoring TapReset 2026-06-17 21:48:33 -04:00
Erimel 91011120f0 Refactor TapDetector and tap to assign 2026-06-17 19:55:14 -04:00
loucass003 837316ba8d Sync solarxr again 2026-06-18 01:29:54 +02:00
loucass003 d9338dc863 Sync solarxr 2026-06-18 01:24:57 +02:00
loucass003 1763fe9ceb Sync gui, pnpm and labels from main 2026-06-18 01:00:13 +02:00
loucass003 f6d662ab71 Sync main into server-rewrite 2026-06-18 00:44:28 +02:00
Erimel 791ae07fe2 TrackerAssignment missing parameter and VRCOSC main 2026-06-17 17:59:55 -04:00
Erimel fe3bee2417 Mute ConvertLongToDuration warning 2026-06-17 16:55:33 -04:00
Erimel 431774be16 tap setupMode wip 2026-06-17 16:48:17 -04:00
Erimel 2f5b2eaa94 Move VMCConfig + TapDetection solarxr 2026-06-16 23:12:24 -04:00
Erimel 0755413b87 Finish TapDetection logic with config 2026-06-16 20:12:14 -04:00
Erimel cf46ca9f9f Don't localize ports in GUI OSC 2026-06-15 19:37:38 -04:00
Butterscotch! ba5660be33 Hardcode enable ServerGuards 2026-06-15 19:01:45 -04:00
Butterscotch! 40bb3d1cbe Remove reset else branch 2026-06-15 17:49:14 -04:00
Erimel e85bb26537 portObj -> port 2026-06-15 17:48:58 -04:00
loucass003 10df44ee2b Fix flashing error 2026-06-15 20:22:47 +02:00
Butterscotch! 2559cdf9bc Handle "null" yaw reset 2026-06-13 00:22:18 -04:00
Butterscotch! fe2a7bf442 Fix UDP tracker rotation 2026-06-12 23:29:40 -04:00
Butterscotch! 1d554334cc Update tracker datafeed 2026-06-12 23:19:41 -04:00
Butterscotch! a75a1ad195 Fix bodyParts condition 2026-06-12 23:19:29 -04:00
Butterscotch! a4aa76aa82 Add session calibrations to SolarXR 2026-06-12 22:19:58 -04:00
Butterscotch! c43b44ccc8 Add mounting reset 2026-06-02 03:05:52 -04:00
loucass003 5f3b1fd0a5 Make tests work 2026-05-30 08:12:33 +02:00
loucass003 facce888a0 Slightly better context 2026-05-30 03:29:02 +02:00
loucass003 0c0aac0415 More cleanup / consistency changes 2026-05-30 03:22:41 +02:00
loucass003 1ebd8a4f02 Code cleanup 2026-05-30 02:29:31 +02:00
loucass003 95b64883f6 Fix HID not workey 2026-05-29 21:23:43 +02:00
loucass003 861a9fbf12 Android basics (not tested) 2026-05-29 17:09:49 +02:00
Butterscotch! d6e6926d44 Add "reset" tracker actions 2026-05-28 11:18:11 -04:00
Butterscotch! 16d2e0b46b Apply session calibration to tracker 2026-05-28 10:48:07 -04:00
loucass003 83f48a7eba safeLaunch forgotten 2026-05-28 15:28:15 +02:00
Butterscotch! 24da10715f Make safeLaunch inherit CoroutineScope's handler 2026-05-27 23:41:46 -04:00
Butterscotch! 559c076b26 Fix OSCQuery unit test 2026-05-27 23:40:52 -04:00
loucass003 67ae02a1b0 HID battery runtime 2026-05-26 15:44:30 +02:00
loucass003 e1802987ca Port https://github.com/SlimeVR/SlimeVR-Server/pull/1763 2026-05-26 14:24:39 +02:00
loucass003 3f7580ac1a Port https://github.com/SlimeVR/SlimeVR-Server/pull/1761 2026-05-26 13:43:34 +02:00
loucass003 11783de08b Port https://github.com/SlimeVR/SlimeVR-Server/pull/1760 2026-05-26 13:21:36 +02:00
loucass003 256574dc2c Sync solarxr + apply back https://github.com/SlimeVR/SlimeVR-Server/pull/1792 2026-05-26 13:02:53 +02:00
loucass003 5a4ba1f73b Fix address resolvig / avoid dns lookup 2026-05-25 03:56:56 +02:00
Sapphire feb3eae3d3 oops 2026-05-23 17:21:59 -05:00
Sapphire bdde772c5c Send names of the public network adapters in checklist step 2026-05-22 22:41:41 -05:00
Sapphire c208b7cda2 Spotless 2026-05-22 22:27:07 -05:00
Sapphire c10d536a6c Prevent network profile checker callback from being GC'd 2026-05-22 22:26:54 -05:00
Sapphire cef72ee9ae Fix network profile checker callback param types 2026-05-22 22:09:23 -05:00
Butterscotch! 6dbe872958 Fix session calibration math 2026-05-20 01:32:41 -04:00
Butterscotch! f390347b56 Shorten variable names for SessionCalibrationTest 2026-05-19 21:55:55 -04:00
Butterscotch! 22cb14bb21 SessionCalibration type aliases 2026-05-19 21:39:47 -04:00
Butterscotch! cc387a6c02 Rename "acceleration" to "rawAcceleration" 2026-05-19 20:59:29 -04:00
Butterscotch! 412e182079 Add calibration estimation functions 2026-05-19 03:30:11 -04:00
Butterscotch! 7b80cb926d Add session calibration functions & tests 2026-05-16 16:36:37 -04:00
Butterscotch! 22d1126c66 Add quaternion test utility functions 2026-05-16 16:35:54 -04:00
Butterscotch! 3574130207 Use offsets for bones 2026-05-11 22:54:58 -04:00
loucass003 c5eda4b818 Rework trackers init to have access to appContext 2026-05-12 04:54:05 +02:00
Sapphire cc68e0e750 Fix typo in default manufacturer name for SteamVR devices 2026-05-11 17:42:50 -05:00
Sapphire 36f2398190 Fix tracker state on SteamVR restart, only hold onto ID in AddTracker 2026-05-11 17:42:15 -05:00
Sapphire ddae53ab42 Only store tracker index in driver bridge 2026-05-11 15:53:21 -05:00
loucass003 57c39c78b0 No more silent launch failures 2026-05-11 22:32:17 +02:00
Sapphire c71bb3e9c4 Use position from SteamVR 2026-05-11 14:06:08 -05:00
Sapphire 2f6cb0ab0d Make VRChat config warnings checklist step ignorable 2026-05-11 13:50:22 -05:00
Sapphire 47a706792b Use device name and manufacturer from SteamVR 2026-05-11 13:48:05 -05:00
Sapphire 7645ff6752 Don't set sensorType for devices from SteamVR 2026-05-11 13:33:00 -05:00
Sapphire a86a6fb2f0 Make device battery info null by default 2026-05-11 13:31:51 -05:00
Sapphire 945796dade Use battery info from SteamVR driver 2026-05-11 13:28:59 -05:00
Sapphire f59e5aa869 Catch exceptions when reading from Unix sockets 2026-05-11 13:05:52 -05:00
Sapphire 96998a644f Merge driver and feeder bridge 2026-05-11 13:05:51 -05:00
loucass003 f2b540d0bd Solve regressions with KMP 2026-05-11 13:13:57 +02:00
loucass003 d8041833f1 Add a note about behaviour list for later 2026-05-11 02:48:17 +02:00
loucass003 b3e61a5482 Bring back debug env var 2026-05-11 02:39:02 +02:00
loucass003 f3de32a7cb Moved as much as possible to KMP 2026-05-11 02:21:57 +02:00
loucass003 abc5c7b38c solarxr upgrade 2026-05-11 00:41:28 +02:00
loucass003 0907fe50db Opencode skills sucks. Bye bye 2026-05-10 18:43:56 +02:00
Sapphire 4b7af0bbed Start bindings provider automatically 2026-05-09 14:38:07 -05:00
loucass003 6d625d1d25 VRC OSC gui changes and reorganisation of code 2026-05-09 16:40:36 +02:00
loucass003 9d3afda739 Current vrcosc progress 2026-05-09 16:24:04 +02:00
Butterscotch! d492061c0a Rename & cleanup proportions 2026-05-08 23:07:07 -04:00
loucass003 e657d97480 Hip anchor + mirroring + better vrm loading 2026-05-07 21:41:03 +02:00
loucass003 4446b8d689 VRM model loading + VMC settings in solarxr 2026-05-07 10:15:26 +02:00
loucass003 6c7d6add67 Fix flake 2026-05-06 14:26:45 +02:00
Butterscotch! 3ae788e8af Fix val order 2026-05-06 05:04:43 -04:00
Butterscotch! 7ddb3e74e6 More dynamic body proportions 2026-05-06 04:57:00 -04:00
Butterscotch! 6fe10bf71d Spotless format 2026-05-06 04:43:20 -04:00
loucass003 3749b77c75 Diable VMC by default 2026-05-05 17:40:25 +02:00
loucass003 ae4402b5b5 VMC basics, no solarxr, need VMC space coordinates to be fixed 2026-05-05 17:38:24 +02:00
loucass003 170c688db8 Basic osc parser 2026-05-05 08:04:25 +02:00
loucass003 be34dc981c Better context management for dispose (allow for unit tests to work) + OSC basics + formating 2026-05-05 07:35:27 +02:00
loucass003 6087178ecf Better debug middleware init 2026-05-05 04:29:31 +02:00
loucass003 04a26ec539 Remove io for now. for consistency 2026-05-05 04:16:11 +02:00
loucass003 3095ce4867 Network profile detection basics (untested) 2026-05-05 04:15:22 +02:00
loucass003 b336897bfe RawBone 2026-05-01 07:33:28 +02:00
loucass003 14e77b6af3 Basic bvh 2026-04-29 22:30:37 +02:00
loucass003 cdd47d8b74 Tracker allowlist 2026-04-29 11:06:17 +02:00
loucass003 448f0754ad Remove extra import 2026-04-29 08:26:14 +02:00
loucass003 834111c769 Basic AI Agent stuff as test 2026-04-29 08:13:29 +02:00
loucass003 a21e769d97 Context dispose / proper scope definition and naming 2026-04-29 07:17:52 +02:00
loucass003 791a358893 Move back hid packet parsing to core. it will be needed for android 2026-04-22 03:57:59 +02:00
loucass003 428f2ba774 Fix battery value HID 2026-04-22 03:53:29 +02:00
loucass003 951b96d548 Fix tracker status HID 2026-04-22 03:31:41 +02:00
loucass003 09724f1fa3 Packet loss (untested on hid) 2026-04-22 03:15:53 +02:00
loucass003 3336f6dff1 Consistency 2026-04-21 06:49:08 +02:00
loucass003 943d51dbdc Debug tools + Spotless 2026-04-21 06:46:16 +02:00
loucass003 fa3ebf4eb1 Cleaner actions for common dispatch 2026-04-21 05:07:05 +02:00
loucass003 aa505d041b Working mag. That was awfull 2026-04-21 01:31:24 +02:00
loucass003 b7cd179cc6 Progress on mag crap 2026-04-17 19:06:05 +02:00
loucass003 1185825b3e Atempt at mag code (untested, incomplete) 2026-04-15 11:44:11 +02:00
loucass003 984c98fd5b Cleanup of tests -> update readme in consequence 2026-04-15 09:35:43 +02:00
loucass003 94e34ca3af Fix steps id 2026-04-15 03:43:34 +02:00
loucass003 1775d54bf1 better bootstraping 2026-04-15 03:31:49 +02:00
Sapphire 4113a091c1 Implement receiving and datafeed sending of tracker mag status 2026-04-13 15:10:22 -05:00
Sapphire acde3a0e34 Get rid of all the redundant == trues 2026-04-13 15:10:22 -05:00
Sapphire db231f368d Send signal strength in datafeed 2026-04-13 15:10:22 -05:00
loucass003 18c5d0dad6 Better readme 2026-04-13 21:56:35 +02:00
loucass003 fa46f7d5fb Better readme 2026-04-13 21:54:54 +02:00
loucass003 7d04273b0e Better readme 2026-04-13 20:36:53 +02:00
Sapphire a097c26261 Implement rest calibration checklist warning 2026-04-13 10:44:58 -05:00
loucass003 b17624d87a Fix tracker config not loading back properly + fligtlist checks 2026-04-13 16:35:15 +02:00
loucass003 a43ba532e1 Tracker config + save 2026-04-13 14:49:37 +02:00
loucass003 2d6b250539 Fix test code 2026-04-13 13:13:42 +02:00
loucass003 4bf1e706d3 Started implementing checklist / refactored most ipc logic to have two way communication with core 2026-04-13 12:32:29 +02:00
loucass003 e2fa7c8963 Remove random proportions 2026-04-12 21:58:19 +02:00
loucass003 6db666840b Implement scaled proportions 2026-04-12 21:50:04 +02:00
loucass003 918f28dfc8 Simple height calculation from proportions 2026-04-11 11:35:54 +02:00
loucass003 ac07e65b27 Clenup dead code 2026-04-11 08:35:26 +02:00
loucass003 902ab1fee1 Improved structure for skeleton? 2026-04-11 08:30:45 +02:00
loucass003 ada2ee3c81 Skeleton experiments 2026-04-10 19:39:28 +02:00
loucass003 c5d8968d58 Tracker tap detection - Basic 2026-04-08 13:47:02 +02:00
Butterscotch! 9c7ca73dbc Fix naming 2026-04-08 04:05:11 -04:00
Butterscotch! 6266802a27 Use BodyPart map to make skeleton 2026-04-08 03:56:25 -04:00
Butterscotch! d1b96a5c6b Use body part map for skeleton 2026-04-08 03:04:35 -04:00
Butterscotch! 5aaade2915 Basic skeleton structure 2026-04-08 03:04:34 -04:00
loucass003 bf3168af2b Proper tps calculation 2026-04-08 07:34:24 +02:00
loucass003 4e69262240 Wifi Provisioning - Unit tests 2026-04-08 06:46:34 +02:00
loucass003 ae5a8f4e97 Wifi provisioning V0 2026-04-08 05:56:44 +02:00
loucass003 a171bc2783 More udp tracker data 2026-04-01 01:45:58 +02:00
loucass003 242920316b Packets bundling support 2026-03-30 14:22:44 +02:00
loucass003 2fc64b3e8b Lint 2026-03-30 11:24:49 +02:00
loucass003 02ca403e24 More data for udp trackers 2026-03-30 11:24:21 +02:00
loucass003 17e87178fc Remove some console warnings 2026-03-30 05:39:49 +02:00
loucass003 dd6c1e7567 Lint 2026-03-30 05:23:37 +02:00
loucass003 0ab80528fe More position data for devices 2026-03-30 05:23:31 +02:00
loucass003 e07ef046a6 batch dispatch together 2026-03-30 05:23:14 +02:00
loucass003 71b74914a3 Better logs and ping id sequence for udp devices 2026-03-30 05:22:55 +02:00
loucass003 f65f41ad17 User height calibration (Non tested) 2026-03-29 05:35:48 +02:00
loucass003 df4569fe17 Format 2026-03-27 05:58:46 +01:00
loucass003 38743dc8b8 organise more stuff 2026-03-27 05:55:10 +01:00
loucass003 9d1e7764e6 Re organise project 2026-03-27 05:29:41 +01:00
loucass003 fa1d2012e1 Make vrc config save mute settings to config 2026-03-27 02:53:26 +01:00
loucass003 8168e1366a VRC settings (Non tested on windows) 2026-03-27 02:24:08 +01:00
loucass003 ea92fb4c01 Basic HID support 2026-03-26 22:41:47 +01:00
loucass003 fc476a1683 Proper handling of the reconnect on ota and serial 2026-03-26 19:05:46 +01:00
loucass003 5946ca1b7a Better udp and feeder connection handling 2026-03-26 18:44:51 +01:00
loucass003 6c4fdedcd1 Make ota and serial check for the device status 2026-03-26 17:53:29 +01:00
loucass003 1001b7f887 Cleanup 2026-03-26 17:34:49 +01:00
loucass003 86dbdbddf8 OTA updates + Packet processing optimisations + code cleanup 2026-03-26 14:44:39 +01:00
loucass003 d46fb013ac Unit tests + Fix start datafeed behaviour 2026-03-26 09:19:58 +01:00
loucass003 8ffd00eb47 Serial + Serial Flasher 2026-03-25 15:11:07 +01:00
loucass003 853155600a Small design guidelines update 2026-03-25 01:05:51 +01:00
loucass003 ad9bc911b6 Basic codestyle doc + rename stuff to match it 2026-03-25 00:30:34 +01:00
Sapphire 2235b8178b Join datafeed timers on separate coroutine 2026-03-24 15:40:54 -05:00
loucass003 e37a37bcf9 Small optimisations / fixes to make sure couroutines do well and prevent dataraces 2026-03-24 02:17:22 +01:00
loucass003 af4665e7c9 IPC interface for linux (tested) and windows (untested) - Solarxr / driver 2026-03-24 01:21:47 +01:00
loucass003 a42ed79003 Basic config system 2026-03-23 04:37:43 +01:00
loucass003 334be5f7cc Solaxr datafeed out 2026-03-20 03:35:17 +01:00
loucass003 4c1e4691be Solarxr start 2026-03-19 17:43:15 +01:00
loucass003 4fd4997e60 Logger test 2026-03-19 03:55:09 +01:00
loucass003 6eb63ce9f8 Tracker data 2026-03-19 02:56:32 +01:00
loucass003 01b7b8dbba basic handshake 2026-03-18 16:38:20 +01:00
loucass003 e060bc7cc5 Trying to get the basic shape of the state system out. Testing it with the udp part of the server to confirm the implementation choices 2026-03-17 21:22:56 +01:00
loucass003 d691619b98 Burn everything and start fresh 2026-03-17 11:37:27 +01:00
1691 changed files with 112001 additions and 74404 deletions

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# Copy to .env.local to report to Sentry from local builds.
# Read by the gui (vite), electron and server (gradle) builds. Real environment variables win.
# Rebuild after changing it, the values are baked in at build time.
# Forces a Sentry release. Without it only clean tagged builds report.
# Source maps are never uploaded for a forced release.
SENTRY_RELEASE=v0.0.0-local
# Keeps local events out of production alerts and release health. Defaults to production.
SENTRY_ENVIRONMENT=development
# Leave a DSN empty to disable that part.
SENTRY_GUI_DSN=
SENTRY_ELECTRON_DSN=
SENTRY_SERVER_DSN=
+4 -4
View File
@@ -1,9 +1,9 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
if ! has nix_direnv_version || ! nix_direnv_version 3.1.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.1/direnvrc" "sha256-p+fzQdrms/hDa7g+soShAybJNo4bN4SIAeSfqNKgD5I="
fi
nix_direnv_watch_file package.json
if ! use flake . --impure
watch_file package.json
if ! use flake .
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
+9
View File
@@ -3,3 +3,12 @@
*.png binary
*.webp binary
*.gif binary
*.ftl -linguist-detectable
# GUI assets (gui/app-next/src/assets)
gui/app-next/src/assets/**/*.webp filter=lfs diff=lfs merge=lfs -text
gui/app-next/src/assets/**/*.webm filter=lfs diff=lfs merge=lfs -text
gui/app-next/src/assets/**/*.gltf filter=lfs diff=lfs merge=lfs -text
gui/app-next/src/assets/**/*.glb filter=lfs diff=lfs merge=lfs -text
gui/app-next/src/assets/**/*.ogg filter=lfs diff=lfs merge=lfs -text
-8
View File
@@ -19,14 +19,6 @@
# Some server code~
/server/ @ButterscotchV @loucass003 @Erimelowo
/server/src/main/java/dev/slimevr/autobone/ @ButterscotchV
/server/src/main/java/dev/slimevr/poserecorder/ @ButterscotchV
/server/src/main/java/dev/slimevr/posestreamer/ @ButterscotchV
/server/src/main/java/dev/slimevr/osc/ @Erimelowo
/server/src/main/java/dev/slimevr/tracking/processor/ @Erimelowo
/server/src/main/java/dev/slimevr/filtering/ @Erimelowo
/bindings-provider/ @ImSapphire
# Linux files
+32 -28
View File
@@ -82,27 +82,26 @@ 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 25
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Java Spotless Check
- name: Server Spotless Check
run: ./gradlew spotlessCheck --build-cache
build-server-jar:
name: Build Desktop Server
runs-on: ubuntu-latest
@@ -113,17 +112,19 @@ jobs:
submodules: recursive
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up JDK 17
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Build ShadowJar
run: ./gradlew :server:desktop:shadowJar --build-cache
env:
SENTRY_SERVER_DSN: ${{ vars.SENTRY_SERVER_DSN }}
- name: Test with Gradle
run: ./gradlew :server:desktop:test
run: ./gradlew :server:core:jvmTest
- name: Upload Server Jar
uses: actions/upload-artifact@v7
with:
@@ -152,9 +153,12 @@ jobs:
- name: Build JS
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: pnpm i && cd gui && pnpm run build
SENTRY_GUI_DSN: ${{ vars.SENTRY_GUI_DSN }}
SENTRY_ELECTRON_DSN: ${{ vars.SENTRY_ELECTRON_DSN }}
SENTRY_SERVER_DSN: ${{ vars.SENTRY_SERVER_DSN }}
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 +203,19 @@ 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,11 +262,11 @@ jobs:
submodules: recursive
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up JDK 17
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Download GUI Dist
@@ -272,16 +274,16 @@ 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:
SENTRY_SERVER_DSN: ${{ vars.SENTRY_SERVER_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
ANDROID_STORE_FILE: ${{ secrets.ANDROID_STORE_FILE }}
ANDROID_STORE_PASSWD: ${{ secrets.ANDROID_STORE_PASSWD }}
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
ANDROID_KEY_PASSWD: ${{ secrets.ANDROID_KEY_PASSWD }}
- name: Test with Gradle
run: ./gradlew test
- name: Prepare APK
run: cp server/android/build/outputs/apk/release/*.apk ./SlimeVR-android.apk
- name: Upload APK
@@ -294,6 +296,8 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: ./gradlew :server:android:bundleRelease
env:
SENTRY_SERVER_DSN: ${{ vars.SENTRY_SERVER_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
ANDROID_STORE_FILE: ${{ secrets.ANDROID_GPLAY_STORE_FILE }}
ANDROID_STORE_PASSWD: ${{ secrets.ANDROID_GPLAY_STORE_PASSWD }}
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_GPLAY_KEY_ALIAS }}
+18 -2
View File
@@ -4,8 +4,12 @@
# Syncthing ignore file
.stignore
# Ignore .idea
.idea
# Ignore .idea, except shared project inspection profiles and run configurations
.idea/*
!.idea/inspectionProfiles/
!.idea/inspectionProfiles/*.xml
!.idea/runConfigurations/
!.idea/runConfigurations/*.xml
# Ignore .fleet
.fleet
@@ -34,10 +38,16 @@
# ignore gradle build folder
build/
# created by clangd for index cache
.cache/
# direnv has been claimed for Nix usage
.direnv/
.devenv
# Git worktrees
.worktree/
# Ignore Android local properties
local.properties
@@ -47,3 +57,9 @@ vrconfig.yml.tmp
# Nixos
.bin/
.env.local
# Fuck claude
.claude
+6
View File
@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="ConvertLongToDuration" enabled="false" level="WARNING" enabled_by_default="false" />
</profile>
</component>
+7
View File
@@ -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>
+11
View File
@@ -0,0 +1,11 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="SlimeVR Desktop" type="JetRunConfigurationType" factoryName="Kotlin">
<module name="SlimeVR_Server.server.desktop.main" />
<option name="MAIN_CLASS_NAME" value="dev.slimevr.desktop.Main" />
<option name="VM_PARAMETERS" value="--enable-native-access=ALL-UNNAMED" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/server/desktop" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
+18 -10
View File
@@ -1,5 +1,7 @@
# Contributing to SlimeVR
Please follow general contribution guidelines: [CONTRIBUTING.md](https://github.com/SlimeVR/.github/blob/main/profile/CONTRIBUTING.md).
This document describes essential knowledge required to contribute to the SlimeVR Server.
### Prerequisites
@@ -22,21 +24,26 @@ 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.
- If you get an "Electron uninstall" error, run `node .\gui\electron\node_modules\electron\install.js`.
- 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 +92,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`
@@ -115,8 +122,9 @@ licensed under `GPL-v3`.
We use discord *a lot* to coordinate and discuss development. Come join us at
https://discord.gg/SlimeVR!
## Use of AI
We DO NOT accept contributions that are generated with AI (for example, "vibe-coding").
## Use of AI, LLM, and code generation
**Submission of any content directly from AI is strictly forbidden in all SlimeVR repositories**, including code, documentation, translation, images, sounds, etc. Including, but not limited to: vibe-coding, snippets generated by LLM, AI-generated icons, copilot auto-complete, commit descriptions, PR notes, issues texts and comments. If your auto-complete system suggest next word, function name or variable name - it's okay to use, if it suggest a whole code snipped - it's not allowed.
If you do use AI, and you believe your usage of AI is reasonable, you must clearly disclose
how you used AI in your submission.
An exception is using translation tools to communicate with us if you're unable to properly express yourself in English. Please leave a comment that your post was translated and from which language. Submissions of machine translations to repositories are forbidden.
AI is allowed for things such as research, debugging, and questions, if no output of AI is submitted.
+2
View File
@@ -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.
+8 -6
View File
@@ -68,8 +68,8 @@ AlignConsecutiveTableGenDefinitionColons:
AlignEscapedNewlines: Right
AlignOperands: DontAlign
AlignTrailingComments:
Kind: Never
OverEmptyLines: 0
Kind: Always
OverEmptyLines: 2
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowBreakBeforeNoexceptSpecifier: Never
@@ -140,7 +140,7 @@ EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
EnumTrailingComma: Leave
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
@@ -216,13 +216,13 @@ PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
PointerAlignment: Left
PPIndentWidth: -1
QualifierAlignment: Leave
ReferenceAlignment: Pointer
ReflowComments: Always
RemoveBracesLLVM: false
RemoveEmptyLinesInUnwrappedLines: false
RemoveEmptyLinesInUnwrappedLines: true
RemoveParentheses: Leave
RemoveSemicolon: false
RequiresClausePosition: OwnLine
@@ -293,5 +293,7 @@ WhitespaceSensitiveMacros:
- PP_STRINGIZE
- STRINGIZE
WrapNamespaceBodyWithEmptyLines: Leave
---
Language: Proto
DisableFormat: true
...
+5 -1
View File
@@ -42,13 +42,17 @@ message(STATUS "Found OpenVR library at: ${OPENVR_LIBRARY}")
add_executable("${PROJECT_NAME}"
"${CMAKE_CURRENT_SOURCE_DIR}/src/paths.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/logger.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/solarxr.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/bridge/BridgeClient.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/bridge/BridgeTransport.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/vr_utils.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp"
)
set_target_properties("${PROJECT_NAME}" PROPERTIES CXX_STANDARD 23)
target_include_directories("${PROJECT_NAME}" PRIVATE "${SOLARXR_PROTOCOL_ROOT}/lib/flatbuffers/include" "${SOLARXR_PROTOCOL_ROOT}/lib/flatbuffers/" "${FLATBUFFERS_GENERATED_ROOT}/include" "${CMAKE_CURRENT_SOURCE_DIR}/include" "${OPENVR_ROOT}/headers")
target_link_libraries("${PROJECT_NAME}" PRIVATE "${OPENVR_LIBRARY}")
if(WIN32)
target_link_libraries("${PROJECT_NAME}" PRIVATE ws2_32)
endif()
if(LINUX)
set_target_properties("${PROJECT_NAME}" PROPERTIES OUTPUT_NAME slimevr-bindings-provider)
+12
View File
@@ -0,0 +1,12 @@
$ErrorActionPreference = "Stop"
if ((Get-Command "clang-format" -ErrorAction SilentlyContinue) -eq $null) {
$errorObj = New-Object System.IO.FileNotFoundException("clang-format is not installed, please install clang-format via your package manager (e.g. winget/chocolatey/scoop) and re-run the script")
throw $errorObj
}
$SourceFiles = Get-ChildItem -Path '.\src\' -Recurse -Include "*.cpp","*.hpp"
foreach ($file in $SourceFiles) {
Write-Output "Formatting $(Resolve-Path -Relative $file.FullName)"
clang-format -i "$($file.FullName)"
}
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
if ! command -v clang-format >/dev/null 2>&1; then
echo "clang-format is not installed, please install clang-format via your package manager (e.g. pacman/apt/dnf/winget) and re-run the script" >&2
exit 1
fi
find src/ \( \
-iname '*.cpp' \
-or -iname '*.hpp' \
\) \
-exec echo Formatting {} \; \
-exec clang-format -i {} \;
@@ -0,0 +1,52 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: (c) 2026 Eiren Rain and SlimeVR Contributors
#include "BridgeClient.hpp"
#include "BridgeTransport.hpp"
#include <system_error>
using namespace std::literals::chrono_literals;
namespace fs = std::filesystem;
void BridgeClient::CreateConnection() {
fs::path path = GetSocketPath();
Socket fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd == InvalidSocket) {
int err = GetLastSocketError();
throw std::system_error(err, std::system_category(), "socket() failed");
}
if (last_path_ != path) {
Logger::Get().Info("Trying to connect to socket {}", path.string());
last_path_ = path;
}
struct sockaddr_un addr{
.sun_family = AF_UNIX,
};
const std::u8string path_str = path.u8string();
if (path_str.size() > std::size(addr.sun_path) - 1) {
CloseSocket(fd);
throw std::runtime_error("Socket path too long to fit in sun_path");
}
memcpy(addr.sun_path, path_str.data(), path_str.size() + 1);
int ret = connect(fd, reinterpret_cast<const struct sockaddr*>(&addr), sizeof(addr));
if (ret == SocketError) {
int err = GetLastSocketError();
CloseSocket(fd);
throw std::system_error(err, std::system_category(), "connect() failed");
}
Logger::Get().Info("Connected to {}", path.string());
ret = SetNonBlocking(fd);
if (ret == SocketError) {
int err = GetLastSocketError();
Logger::Get().Warning("Failed to set socket into non-blocking mode: {}", std::error_code(err, std::system_category()).message());
}
fd_ = fd;
}
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: (c) 2026 Eiren Rain and SlimeVR Contributors
#pragma once
#include "BridgeTransport.hpp"
/**
* @brief Client implementation of @ref BridgeTransport for communication with SlimeVR Server using unix sockets.
*
* @copydoc BridgeTransport
*/
class BridgeClient : public BridgeTransport {
public:
using BridgeTransport::BridgeTransport;
private:
void CreateConnection() override;
std::filesystem::path last_path_;
};
@@ -0,0 +1,234 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: (c) 2026 Eiren Rain and SlimeVR Contributors
#include "BridgeTransport.hpp"
#include "Endianness.hpp"
#include <solarxr_protocol/generated/all_generated.h>
#include <system_error>
#ifdef _WIN32
#include <winerror.h>
#endif
using namespace std::chrono_literals;
namespace fs = std::filesystem;
#define UNIX_XDG_DATA_HOME_DEFAULT ".local/share/"
#define SLIMEVR_IDENTIFIER "dev.slimevr.SlimeVR"
#define UNIX_DEFAULT_TMP_DIR "/tmp"
#define SOCKET_NAME "SlimeVRRpc"
void BridgeTransport::Stop() {
if (!thread_.joinable() && !reconnect_thread_.joinable())
return;
Logger::Get().Info("Bridge stopping");
StopAsync();
thread_ = std::jthread();
reconnect_thread_ = std::jthread();
}
void BridgeTransport::StopAsync() {
thread_.request_stop();
reconnect_thread_.request_stop();
cv_.notify_all();
}
fs::path BridgeTransport::GetSocketPath() {
std::vector<fs::path> paths = {};
if (const char* dir_override = std::getenv("SLIMEVR_SOCKET_DIR")) {
paths.push_back(fs::path(dir_override) / SOCKET_NAME);
}
#ifndef _WIN32
if (const char* xdg_runtime = std::getenv("XDG_RUNTIME_DIR")) {
paths.push_back(fs::path(xdg_runtime) / SOCKET_NAME);
}
if (const char* xdg_data = std::getenv("XDG_DATA_HOME")) {
paths.push_back(fs::path(xdg_data) / SLIMEVR_IDENTIFIER / SOCKET_NAME);
}
if (const char* home = std::getenv("HOME")) {
paths.push_back(fs::path(home) / UNIX_XDG_DATA_HOME_DEFAULT / SLIMEVR_IDENTIFIER / SOCKET_NAME);
}
#endif
std::error_code ec;
for (auto path : paths) {
if (fs::exists(path, ec)
#ifdef _WIN32
|| ec.value() == ERROR_CANT_ACCESS_FILE // Windows moment???
#endif
) {
return path;
}
}
#ifdef _WIN32
// This should work as long as the user's machine does not have
// the java.io.tmpdir system property overriden.
WCHAR tmp_dir[MAX_PATH + 1];
GetTempPathW(std::size(tmp_dir), tmp_dir);
return fs::path(tmp_dir) / SOCKET_NAME;
#else
if (const char* tmp_dir = std::getenv("TMPDIR")) {
return fs::path(tmp_dir) / SOCKET_NAME;
} else {
return fs::path(UNIX_DEFAULT_TMP_DIR) / SOCKET_NAME;
}
#endif
}
void BridgeTransport::OnRecv(std::span<uint8_t> event) {
if (!message_callback_)
return;
auto bundle = flatbuffers::GetRoot<solarxr_protocol::MessageBundle>(event.data());
if (auto data_feed_msgs = bundle->data_feed_msgs()) {
for (auto msg : *data_feed_msgs) {
// Logger::Get().Debug("Got message DataFeedMessage::{}", EnumNameDataFeedMessage(msg->message_type()));
message_callback_(msg);
}
}
if (auto rpc_msgs = bundle->rpc_msgs()) {
for (auto msg : *rpc_msgs) {
Logger::Get().Debug("Got message RpcMessage::{}", EnumNameRpcMessage(msg->message_type()));
message_callback_(msg);
}
}
if (auto driver_msgs = bundle->driver_msgs()) {
for (auto msg : *driver_msgs) {
// Logger::Get().Debug("Got message DriverMessage::{}", EnumNameDriverMessage(msg->message_type()));
message_callback_(msg);
}
}
}
void BridgeTransport::Start() {
thread_ = std::jthread([this](std::stop_token stop) { return RunThread(stop); });
}
void BridgeTransport::RunThread(std::stop_token stop) {
std::vector<uint8_t> data;
data.reserve(0x10000);
// Kick off connection.
ResetConnection();
while (!stop.stop_requested()) {
std::shared_lock fd_lock(fd_mutex_);
if (fd_ == InvalidSocket) [[unlikely]] {
cv_.wait(fd_lock, stop, [this] { return fd_ != InvalidSocket; });
if (stop.stop_requested())
break;
}
try {
ptrdiff_t ret = Poll(fd_, 1ms);
if (ret == 0) [[likely]] {
// No data on the socket after timeout
continue;
}
uint32_t msg_len;
ret = ReadFully(fd_, stop, &msg_len, sizeof(msg_len));
if (ret == 0) [[unlikely]] {
throw std::runtime_error("EOF");
}
msg_len = ConvertEndianness<std::endian::little>(msg_len);
// If we get something bigger than this, something's probably up
if (msg_len > 0x40000) [[unlikely]] {
throw std::runtime_error(std::format("Got too large message ({} bytes)", msg_len));
}
const uint32_t unwrapped_len = msg_len - 4;
data.reserve(unwrapped_len);
ret = ReadFully(fd_, stop, data.data(), unwrapped_len);
if (ret == 0) [[unlikely]] {
throw std::runtime_error("EOF");
}
OnRecv({ data.data(), unwrapped_len });
} catch (Cancelled&) {
continue;
} catch (std::exception& e) {
Logger::Get().Error("Error on socket: {}", e.what());
error_callback_(e);
fd_lock.unlock();
ResetConnection();
}
}
CloseConnectionHandles();
}
void BridgeTransport::ResetConnection() {
CloseConnectionHandles();
reconnect_thread_ = std::jthread([this](std::stop_token stop) {
while (!stop.stop_requested()) {
try {
std::unique_lock fd_lock(fd_mutex_);
CreateConnection();
assert(fd_ != InvalidSocket);
cv_.notify_all();
// connect callback may call a function that needs to block on the fd
fd_lock.unlock();
OnConnect();
return;
} catch (std::system_error& e) {
if (last_error_ != e.code()) {
Logger::Get().Error("Error when trying to connect: {}", e.what());
last_error_ = e.code();
}
error_callback_(e);
} catch (std::exception& e) {
Logger::Get().Error("Error when trying to connect: {}", e.what());
error_callback_(e);
}
std::this_thread::sleep_for(100ms);
}
});
}
void BridgeTransport::CloseConnectionHandles() {
std::unique_lock fd_lock(fd_mutex_);
if (fd_ == InvalidSocket)
return;
CloseSocket(fd_);
OnDisconnect();
fd_ = InvalidSocket;
}
void BridgeTransport::SendMessage(const flatbuffers::FlatBufferBuilder& fbb) {
std::shared_lock fd_lock(fd_mutex_);
if (fd_ == InvalidSocket) [[unlikely]]
return;
std::lock_guard write_lock(write_mutex_);
if (fbb.GetSize() + 4 > std::numeric_limits<uint32_t>::max()) [[unlikely]] {
Logger::Get().Warning("Skipping send of message (wrapped size larger than 32-bit unsigned integer limit)");
return;
}
const uint32_t size = static_cast<uint32_t>(fbb.GetSize());
const uint32_t le_wrapped_size = ConvertEndianness<std::endian::little>(size + 4);
try {
WriteFully(fd_, &le_wrapped_size, sizeof(le_wrapped_size));
WriteFully(fd_, fbb.GetBufferPointer(), size);
} catch (std::exception& e) {
Logger::Get().Error("Failed to write message: {}", e.what());
}
}
@@ -0,0 +1,343 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: (c) 2026 Eiren Rain and SlimeVR Contributors
#pragma once
#include <condition_variable>
#include <filesystem>
#include <shared_mutex>
#include <span>
#include <system_error>
#include <thread>
#include <variant>
// Needs to be before anything that includes Windows.h to avoid macro clashes
#include <solarxr_protocol/generated/all_generated.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <Winsock2.h>
#include <afunix.h>
// Microsoft why
#undef ERROR
#undef SendMessage
#else
#include <fcntl.h>
#include <poll.h>
#include <sys/socket.h>
#include <sys/un.h>
#endif
#include "../logger.hpp"
/**
* @brief Passes messages between SlimeVR Server and SteamVR Driver using Unix sockets.
*
* Client or Server connection handling is implemented by extending this class.
*
* This class provides a set of methods to start, stop an IO thread, and send messages over a Unix socket.
*
* When a message is received and parsed from the pipe, the on_message_received function passed in the constructor is called
* from the bridge thread with the message as a parameter.
*
* @param logger A shared pointer to an Logger object to log messages from the transport.
* @param on_message_received A function to be called from event loop thread when a message is received and parsed from the pipe.
* @param on_connect A function to be called when the socket is connected to.
* @param on_disconnect A function to be called when the connection is ended.
*/
class BridgeTransport {
public:
using MessageHeader = std::variant<const solarxr_protocol::data_feed::DataFeedMessageHeader*, const solarxr_protocol::rpc::RpcMessageHeader*, const solarxr_protocol::driver_protocol::DriverMessageHeader*>;
#ifdef _WIN32
using Socket = SOCKET;
constexpr static Socket InvalidSocket = INVALID_SOCKET;
constexpr static int SocketError = SOCKET_ERROR;
#else
using Socket = int;
constexpr static Socket InvalidSocket = -1;
constexpr static int SocketError = -1;
#endif
static inline int GetLastSocketError() {
#ifdef _WIN32
return WSAGetLastError();
#else
return errno;
#endif
}
static inline int CloseSocket(Socket fd) {
#ifdef _WIN32
return closesocket(fd);
#else
return close(fd);
#endif
}
static inline bool IsBlockingError(int err) {
#ifdef _WIN32
return err == WSAEWOULDBLOCK;
#else
return err == EAGAIN || err == EWOULDBLOCK;
#endif
}
static inline int SetNonBlocking(Socket fd) {
#ifdef _WIN32
u_long mode = 1;
return ioctlsocket(fd, FIONBIO, &mode);
#else
return fcntl(fd, F_SETFL, O_NONBLOCK);
#endif
}
/**
* @brief Exception thrown when IO is cancelled by stop token.
*/
class Cancelled : public std::exception {
public:
Cancelled() noexcept { };
~Cancelled() { };
const char* what() const noexcept override {
return "IO operation cancelled";
}
};
/**
* @brief Read @a size bytes from @a fd into @a data, retrying until all data is read or an error occurs.
*
* @throws @ref Cancelled stop was requested on @a stop
* @throws std::system_error error returned on socket
* @returns @ref SocketError on fail, otherwise number of bytes read
*/
static ptrdiff_t ReadFully(Socket fd, std::stop_token stop, void* data, size_t size) {
ptrdiff_t ret;
size_t received = 0;
while (!stop.stop_requested() && received < size) {
ret = recv(fd, reinterpret_cast<char*>(data) + received, size - received, 0);
if (ret == 0) // EOF
return ret;
if (ret == SocketError) [[unlikely]] {
int err = GetLastSocketError();
if (IsBlockingError(err)) [[likely]] {
// we couldn't read because it would block, just try again
continue;
} else {
throw std::system_error(err, std::system_category(), "recv() failed");
}
}
received += ret;
}
if (stop.stop_requested())
throw Cancelled();
return received;
}
/**
* @brief Write @a size bytes from @a data to @a fd, retrying until all data is written or an error occurs.
*
* @throws std::system_error error returned on socket
*
* @returns @ref SocketError on fail, otherwise number of bytes written
*/
static inline ptrdiff_t WriteFully(Socket fd, const void* data, size_t size) {
#ifdef __linux__
constexpr int flags = MSG_NOSIGNAL;
#else
constexpr int flags = 0;
#endif
ptrdiff_t ret;
size_t sent = 0;
while (sent < size) {
ret = send(fd, reinterpret_cast<const char*>(data) + sent, size - sent, flags);
if (ret == SocketError) [[unlikely]] {
int err = GetLastSocketError();
if (IsBlockingError(err)) [[likely]] {
// we couldn't write because it would block, just try again
continue;
} else {
throw std::system_error(err, std::system_category(), "send() failed");
}
}
sent += ret;
}
return sent;
}
/**
* @brief Wait for input to be ready on @a fd, timing out after @a timeout.
*
* @param fd file descriptor to poll
* @param timeout amount of time to wait before giving up
*
* @throws std::system_error error returned when polling
* @throws std::runtime_error error on socket, or hang up was detected
*
* @returns @ref 0 if there is no data, positive value if there is data
*/
template <typename Rep, typename Period>
static int Poll(Socket fd, std::chrono::duration<Rep, Period> timeout) noexcept(false) {
struct pollfd pollfd{
.fd = fd,
.events = POLLIN,
};
int ret;
#ifdef _WIN32
ret = WSAPoll(&pollfd, 1, std::chrono::duration_cast<std::chrono::milliseconds>(timeout).count());
#else
{
auto s = std::chrono::duration_cast<std::chrono::seconds>(timeout);
auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(timeout - s);
struct timespec ts{
.tv_sec = s.count(),
.tv_nsec = ns.count(),
};
ret = ppoll(&pollfd, 1, timeout == timeout.zero() ? nullptr : &ts, nullptr);
}
#endif
#ifdef _WIN32
constexpr int InterruptedErrno = WSAEINTR;
#else
constexpr int InterruptedErrno = EINTR;
#endif
if (ret == SocketError) {
int err = GetLastSocketError();
throw std::system_error(err, std::system_category(), "Poll() failed");
}
if ((pollfd.revents & (POLLERR | POLLHUP)) != 0) {
throw std::runtime_error("Socket connection lost");
}
return pollfd.revents & POLLIN;
}
BridgeTransport(std::function<void(MessageHeader&&)> on_message_received = {},
std::function<void()> on_connect = {},
std::function<void()> on_disconnect = {},
std::function<void(std::exception&)> on_error = {})
: connect_callback_(on_connect)
, message_callback_(on_message_received)
, disconnect_callback_(on_disconnect)
, error_callback_(on_error) {
#ifdef _WIN32
WSADATA _ws_data;
if (int ret = WSAStartup(MAKEWORD(2, 2), &_ws_data); ret != 0) {
Logger::Get().Error("WSAStartup failed with code {}", ret);
return;
}
#endif
}
virtual ~BridgeTransport() {
Stop();
#ifdef _WIN32
WSACleanup();
#endif
}
/**
* @brief Starts the channel by creating a thread.
*
* Connects and automatic reconnects with a timeout are implemented internally.
*/
void Start();
/**
* @brief Stops the channel by stopping the thread and closing the connection handles.
*
* Blocks until the thread is stopped and the connection handles are closed.
*/
void Stop();
/**
* @brief Stops the channel asynchronously and returns immediately.
*/
void StopAsync();
/**
* @brief Sends a message over the channel, you must Finish() the builder before calling this.
*
* @param message The message to send.
*/
void SendMessage(const flatbuffers::FlatBufferBuilder& fbb);
/**
* @brief Checks if the channel is connected.
*
* @return true if the channel is connected, false otherwise.
*/
bool IsConnected() const {
std::shared_lock fd_lock(fd_mutex_);
return fd_ != InvalidSocket;
};
protected:
/**
* @brief Try to create a connection.
*
* Called while an exclusive lock is taken on @ref fd_mutex_.
* Make sure this doesn't block as it will hold up shutdown.
*
* @ref fd_ must be initialised if this returns without throwing.
*
* @throws std::system_error I/O error when creating connection
* @throws std::exception failed to create connection
*/
virtual void CreateConnection() = 0;
/**
* @brief Close the current socket if it's connected.
*
* Locks @ref fd_mutex_, do not call this with the mutex locked.
*/
void ResetConnection();
/**
* @brief Closes the current connection, must be called while an exclusive lock is taken on the mutex.
*/
void CloseConnectionHandles();
void OnConnect() {
if (connect_callback_)
connect_callback_();
}
void OnRecv(std::span<uint8_t> event);
void OnDisconnect() {
if (disconnect_callback_)
disconnect_callback_();
}
static std::filesystem::path GetSocketPath();
/// Guards @ref fd_ and the condition variable @ref cv_.
mutable std::shared_mutex fd_mutex_;
/// Guards write operations.
mutable std::mutex write_mutex_;
/// Signaled on connection, or when we're exiting.
std::condition_variable_any cv_;
Socket fd_ = InvalidSocket;
private:
void RunThread(std::stop_token stop);
std::function<void()> connect_callback_;
std::function<void(MessageHeader&&)> message_callback_;
std::function<void()> disconnect_callback_;
std::function<void(std::exception&)> error_callback_;
std::jthread thread_;
std::jthread reconnect_thread_;
std::optional<std::error_code> last_error_;
};
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: (c) 2026 Eiren Rain and SlimeVR Contributors
#pragma once
#include <bit>
#include <type_traits>
template <std::endian Endianness, typename T>
requires(std::is_integral_v<T>)
inline T ConvertEndianness(T v) {
// I don't really care about mixed endianness..
if constexpr (std::endian::native == Endianness) {
return v;
} else {
return std::byteswap(v);
}
}
+2 -2
View File
@@ -7,7 +7,7 @@
#endif
Logger::Logger()
: log_stream(Paths::getLogPath() / "slimevr-bindings-provider.log",
: log_stream(Paths::GetLogPath() / "slimevr-bindings-provider.log",
std::ios::out | std::ios::app)
#ifdef _WIN32
, should_log_to_std_streams(GetConsoleWindow() != nullptr)
@@ -15,7 +15,7 @@ Logger::Logger()
{
}
Logger &Logger::get() {
Logger& Logger::Get() {
static Logger logger;
return logger;
}
+12 -12
View File
@@ -15,8 +15,8 @@ private:
#endif
template <bool important, typename... Args>
void log(std::string_view suffix, std::format_string<Args...> fmt,
Args &&...args) {
void Log(std::string_view suffix, std::format_string<Args...> fmt,
Args&&... args) {
auto now = std::chrono::system_clock::now();
auto time_t = std::chrono::system_clock::to_time_t(now);
@@ -40,28 +40,28 @@ public:
Logger();
template <typename... Args>
void debug(std::format_string<Args...> fmt, Args &&...args) {
void Debug(std::format_string<Args...> fmt, Args&&... args) {
#ifndef NDEBUG
log<false>("[DEBUG]", fmt, std::forward<Args>(args)...);
Log<false>("[DEBUG]", fmt, std::forward<Args>(args)...);
#endif
}
template <typename... Args>
void info(std::format_string<Args...> fmt, Args &&...args) {
log<false>("[INFO]", fmt, std::forward<Args>(args)...);
void Info(std::format_string<Args...> fmt, Args&&... args) {
Log<false>("[INFO]", fmt, std::forward<Args>(args)...);
}
template <typename... Args>
void warning(std::format_string<Args...> fmt, Args &&...args) {
log<true>("[WARN]", fmt, std::forward<Args>(args)...);
void Warning(std::format_string<Args...> fmt, Args&&... args) {
Log<true>("[WARN]", fmt, std::forward<Args>(args)...);
}
template <typename... Args>
void error(std::format_string<Args...> fmt, Args &&...args) {
log<true>("[ERROR]", fmt, std::forward<Args>(args)...);
void Error(std::format_string<Args...> fmt, Args&&... args) {
Log<true>("[ERROR]", fmt, std::forward<Args>(args)...);
}
void flush() {
void Flush() {
#ifdef _WIN32
if (should_log_to_std_streams) {
#endif
@@ -73,5 +73,5 @@ public:
log_stream.flush();
}
static Logger &get();
static Logger& Get();
};
+121 -111
View File
@@ -1,4 +1,3 @@
#include <cassert>
#include <csignal>
#include <map>
#include <optional>
@@ -9,97 +8,130 @@
#include "flatbuffers/flatbuffers.h"
#include "solarxr_protocol/generated/all_generated.h"
#include "bridge/BridgeClient.hpp"
#include "logger.hpp"
#include "solarxr.hpp"
#include "vr_utils.hpp"
#include "openvr.h"
#ifdef _WIN32
#define WIN32_MEAN_AND_LEAN
#define NOMINMAX
#include <Windows.h>
#else
#include <cstdlib>
#endif
namespace fs = std::filesystem;
using namespace std::chrono_literals;
using namespace solarxr_protocol;
static void shutdown_vr(vr::IVRSystem *_sys) { vr::VR_Shutdown(); }
static void ShutdownVR(vr::IVRSystem* _sys) { vr::VR_Shutdown(); }
static void onYawReset(SolarXRConnection &conn) {
static void OnYawReset(BridgeTransport& conn) {
flatbuffers::FlatBufferBuilder fbb;
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Yaw, 0, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::YAW, 0, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(fbb, 0, 0, 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);
conn.SendMessage(fbb);
}
static void onFullReset(SolarXRConnection &conn) {
static void OnFullReset(BridgeTransport& conn) {
flatbuffers::FlatBufferBuilder fbb;
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Full, 0, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::FULL, 0, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(fbb, 0, 0, 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);
conn.SendMessage(fbb);
}
static void onMountingCalibration(SolarXRConnection &conn) {
static void OnMountingCalibration(BridgeTransport& conn) {
flatbuffers::FlatBufferBuilder fbb;
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Mounting, 0, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::MOUNTING, 0, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(fbb, 0, 0, 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);
conn.SendMessage(fbb);
}
static void onFeetMountingCalibration(SolarXRConnection &conn) {
static void OnFeetMountingCalibration(BridgeTransport& conn) {
flatbuffers::FlatBufferBuilder fbb;
auto bodyParts = fbb.CreateVector(
{ datatypes::BodyPart::LEFT_FOOT, datatypes::BodyPart::RIGHT_FOOT });
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::Mounting, bodyParts, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(
fbb, nullptr, rpc::RpcMessage::ResetRequest, resetReq.Union());
auto resetReq = rpc::CreateResetRequest(fbb, rpc::ResetType::MOUNTING, bodyParts, 0.f);
auto msgHeader = rpc::CreateRpcMessageHeader(fbb, 0, 0, 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);
conn.SendMessage(fbb);
}
static void onToggleTracking(SolarXRConnection &conn) {
static void OnToggleTracking(BridgeTransport& conn) {
static bool shouldPause = false;
flatbuffers::FlatBufferBuilder fbb;
shouldPause = !shouldPause;
auto toggleReq = rpc::CreateSetPauseTrackingRequest(fbb, shouldPause);
auto msgHeader = rpc::CreateRpcMessageHeader(
fbb, nullptr, rpc::RpcMessage::SetPauseTrackingRequest,
toggleReq.Union());
auto msgHeader = rpc::CreateRpcMessageHeader(fbb, 0, 0, rpc::RpcMessage::SetPauseTrackingRequest, 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);
conn.SendMessage(fbb);
}
sig_atomic_t should_exit = 0;
static void signal_handler(int signal) {
Logger::get().info("Received signal {}", signal);
static void OnSignal(int signal) {
Logger::Get().Info("Received signal {}", signal);
should_exit = 1;
}
int main() {
auto &logger = Logger::get();
auto& logger = Logger::Get();
// Steam and SteamVR respectively set these environment variables on applications that
// they spawn, which the SteamVR client library (vrclient) will then use as the
// application key when initiating the connection with vrserver. This may not
// be ideal if we are launched by another Steam or OpenVR application, as we will inherit
// their app key through the environment, which means SteamVR will load the wrong bindings.
// A real-world example of this is if someone uses an application such as OpenVR-Autostarter
// to start the SlimeVR Server. OpenVR-Autostarter installs an application manifest with the
// app key "dreiekk.openvr-autostarter", so when it starts SlimeVR Server, which then starts us,
// the STEAMVR_APPKEY="dreiekk.openvr-autostarter" environment variable will be set.
//
// We want SteamVR to use the appkey of the Steam version of our application if possible.
// Unfortunately, we cannot install an application vrmanifest to force the app key,
// as SteamVR requires a binary path in the manifest to consider it valid. We do not want to install
// a manifest with a binary path because we want the SlimeVR Server to start us when the
// driver initiates a connection, rather than getting auto-started by SteamVR.
//
// This is not documented anywhere publicly, see CVRClient::SendConnectMessage in vrclient instead.
constexpr const char* STEAM_APPID = "3245490";
constexpr const char* STEAMVR_APPKEY = "steam.overlay.3245490";
#ifdef _WIN32
SetEnvironmentVariableA("SteamAppId", STEAM_APPID);
SetEnvironmentVariableA("STEAMVR_APPKEY", STEAMVR_APPKEY);
#else
setenv("SteamAppId", STEAM_APPID, 1);
setenv("STEAMVR_APPKEY", STEAMVR_APPKEY, 1);
#endif
try {
SolarXRConnection conn;
std::unique_ptr<vr::IVRSystem, decltype(&shutdown_vr)> sys{ nullptr,
shutdown_vr };
BridgeClient conn(nullptr, nullptr, [] { should_exit = 1; }, [](std::exception&) { should_exit = 1; });
conn.Start();
std::unique_ptr<vr::IVRSystem, decltype(&ShutdownVR)> sys{ nullptr, ShutdownVR };
// On vrlink, VR_Init returns
// VRInitError_Driver_WirelessHmdNotConnected while the connection
@@ -114,47 +146,45 @@ int main() {
}
if (sys == nullptr or err != vr::VRInitError_None) {
logger.error("Failed to init OpenVR: {} ({})",
logger.Error("Failed to init OpenVR: {} ({})",
vr::VR_GetVRInitErrorAsSymbol(err),
vr::VR_GetVRInitErrorAsEnglishDescription(err));
return 1;
}
logger.info("Initialised OpenVR, HMD model '{}'",
VRUtils::getStringProp(vr::k_unTrackedDeviceIndex_Hmd,
vr::Prop_ModelNumber_String)
.value_or("<unknown>"));
logger.Info("Initialised OpenVR, HMD model '{}'", VRUtils::GetStringProp(vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_ModelNumber_String).value_or("<unknown>"));
vr::IVRApplications *app = vr::VRApplications();
vr::IVRInput *input = vr::VRInput();
vr::IVRApplications* app = vr::VRApplications();
vr::IVRInput* input = vr::VRInput();
auto [appManifestPath, actionManifestPath] = VRUtils::initialiseManifest();
fs::path actionManifestPath;
std::tie(std::ignore, actionManifestPath) = VRUtils::InitialiseManifests();
// We don't want our app key to randomly change if SteamVR decides to honour
// application manifests with no binary path. Instead let it generate an
// app key based on the executable name (system.generated.[lowercase executable name])
#if false
if (auto err = app->AddApplicationManifest(appManifestPath.string().data(), true);
err != vr::VRApplicationError_None) {
logger.error("Failed to add application manifest: {}",
app->GetApplicationsErrorNameFromEnum(err));
return 1;
}
#endif
// SetActionManifestPath may return IPCError if vrserver is busy and takes
// too long to reply, so keep invoking until it succeeds
{
vr::EVRInputError err{};
vr::EVRInputError err;
constexpr int max_tries = 5;
int tries = 0;
while ((err = input->SetActionManifestPath(
actionManifestPath.string().data()))
== vr::VRInputError_IPCError
&& tries++ < max_tries) {
logger.debug("IPC error loading action manifest, retrying ({}/{})",
tries, max_tries);
while ((err = input->SetActionManifestPath(actionManifestPath.string().data())) == vr::VRInputError_IPCError && tries++ < max_tries) {
logger.Debug("IPC error loading action manifest, retrying ({}/{})", tries, max_tries);
std::this_thread::sleep_for(20ms);
}
if (err != vr::VRInputError_None) {
logger.error("Failed to set action manifest path: {}",
std::to_underlying(err));
logger.Error("Failed to set action manifest path: {}", std::to_underlying(err));
return 1;
}
}
@@ -162,74 +192,60 @@ int main() {
vr::VRActionSetHandle_t action_set;
if (auto err = input->GetActionSetHandle("/actions/main", &action_set);
err != vr::VRInputError_None) {
logger.error("Failed to get main action set handle: {}",
std::to_underlying(err));
logger.Error("Failed to get main action set handle: {}", std::to_underlying(err));
return 1;
}
std::map<std::string, std::tuple<vr::VRActionHandle_t, std::function<void(SolarXRConnection &)>>>
std::map<std::string, std::tuple<vr::VRActionHandle_t, std::function<void(BridgeTransport&)>>>
actions{
{ "/actions/main/in/YawReset",
std::make_tuple(vr::k_ulInvalidActionHandle, onYawReset) },
{ "/actions/main/in/FullReset",
std::make_tuple(vr::k_ulInvalidActionHandle, onFullReset) },
{ "/actions/main/in/MountingCalibration",
std::make_tuple(vr::k_ulInvalidActionHandle,
onMountingCalibration) },
{ "/actions/main/in/FeetMountingCalibration",
std::make_tuple(vr::k_ulInvalidActionHandle,
onFeetMountingCalibration) },
{ "/actions/main/in/ToggleTracking",
std::make_tuple(vr::k_ulInvalidActionHandle, onToggleTracking) },
{ "/actions/main/in/YawReset", std::make_tuple(vr::k_ulInvalidActionHandle, OnYawReset) },
{ "/actions/main/in/FullReset", std::make_tuple(vr::k_ulInvalidActionHandle, OnFullReset) },
{ "/actions/main/in/MountingCalibration", std::make_tuple(vr::k_ulInvalidActionHandle, OnMountingCalibration) },
{ "/actions/main/in/FeetMountingCalibration", std::make_tuple(vr::k_ulInvalidActionHandle, OnFeetMountingCalibration) },
{ "/actions/main/in/ToggleTracking", std::make_tuple(vr::k_ulInvalidActionHandle, OnToggleTracking) },
};
for (auto &[name, tuple] : actions) {
auto &[handle, _] = tuple;
for (auto& [name, tuple] : actions) {
auto& [handle, _] = tuple;
if (auto err = input->GetActionHandle(name.c_str(), &handle);
err != vr::VRInputError_None || handle == vr::k_ulInvalidActionHandle) {
logger.warning("Failed to get action handle for action {}: {}", name,
logger.Warning("Failed to get action handle for action {}: {}", name,
std::to_underlying(err));
}
}
constexpr auto interval = 1000ms / 30;
signal(SIGINT, signal_handler);
signal(SIGTERM, signal_handler);
signal(SIGINT, OnSignal);
signal(SIGTERM, OnSignal);
while (!should_exit) {
vr::VREvent_t event{};
while (sys->PollNextEvent(&event, sizeof(event))) {
switch (event.eventType) {
case vr::VREvent_Quit:
logger.info("OpenVR runtime requested quit");
logger.Info("OpenVR runtime requested quit");
should_exit = 1;
break;
case vr::VREvent_Input_BindingLoadFailed: {
auto &loadData = event.data.inputBinding;
logger.debug("Binding load failed (ulAppContainer={} "
"pathMessage={} pathUrl={} pathControllerType={})",
loadData.ulAppContainer, loadData.pathMessage,
loadData.pathUrl, loadData.pathControllerType);
auto& loadData = event.data.inputBinding;
logger.Debug("Binding load failed (ulAppContainer={} pathMessage={} pathUrl={} pathControllerType={})",
loadData.ulAppContainer, loadData.pathMessage, loadData.pathUrl, loadData.pathControllerType);
break;
}
case vr::VREvent_Input_BindingLoadSuccessful: {
auto &loadData = event.data.inputBinding;
logger.debug("Binding load successful (ulAppContainer={} "
"pathMessage={} pathUrl={} pathControllerType={})",
loadData.ulAppContainer, loadData.pathMessage,
loadData.pathUrl, loadData.pathControllerType);
auto& loadData = event.data.inputBinding;
logger.Debug("Binding load successful (ulAppContainer={} pathMessage={} pathUrl={} pathControllerType={})",
loadData.ulAppContainer, loadData.pathMessage, loadData.pathUrl, loadData.pathControllerType);
break;
}
case vr::VREvent_Input_ActionManifestReloaded:
logger.debug("Action manifest reloaded");
logger.Debug("Action manifest reloaded");
break;
case vr::VREvent_Input_ActionManifestLoadFailed: {
auto &manifestData = event.data.actionManifest;
logger.debug(
"Action manifest load failed (pathAppKey={} pathMessage={} "
"pathMessageParam={} pathManifestPath={})",
manifestData.pathAppKey, manifestData.pathMessage,
manifestData.pathMessageParam, manifestData.pathManifestPath);
auto& manifestData = event.data.actionManifest;
logger.Debug(
"Action manifest load failed (pathAppKey={} pathMessage={} pathMessageParam={} pathManifestPath={})",
manifestData.pathAppKey, manifestData.pathMessage, manifestData.pathMessageParam, manifestData.pathManifestPath);
break;
}
default:
@@ -237,11 +253,6 @@ int main() {
}
}
if (!conn.connected()) {
logger.warning("Connection to SlimeVR lost, exiting");
break;
}
vr::VRActiveActionSet_t set{
.ulActionSet = action_set,
.ulRestrictedToDevice = vr::k_ulInvalidInputValueHandle,
@@ -250,39 +261,38 @@ int main() {
};
if (auto err = input->UpdateActionState(&set, sizeof(set), 1);
err != vr::VRInputError_None) {
logger.warning("Error when updating action states: {}",
logger.Warning("Error when updating action states: {}",
std::to_underlying(err));
}
for (auto &[name, tuple] : actions) {
auto &[handle, callback] = tuple;
for (auto& [name, tuple] : actions) {
auto& [handle, callback] = tuple;
vr::InputDigitalActionData_t action_data{};
if (auto err = input->GetDigitalActionData(
handle, &action_data, sizeof(action_data),
vr::k_ulInvalidInputValueHandle);
err != vr::VRInputError_None) {
logger.warning("Failed to get action state for {} ({}): {}", name,
handle, std::to_underlying(err));
logger.Warning("Failed to get action state for {} ({}): {}", name, handle, std::to_underlying(err));
continue;
}
if (action_data.bActive && action_data.bChanged && action_data.bState) {
logger.debug("Action {} triggered", name);
logger.Debug("Action {} triggered", name);
callback(conn);
}
}
logger.flush();
logger.Flush();
std::this_thread::sleep_for(interval);
}
logger.info("Main loop done");
} catch (std::exception &ex) {
logger.error("Exception in main: {}", ex.what());
logger.flush();
logger.Info("Main loop done");
} catch (std::exception& ex) {
logger.Error("Exception in main: {}", ex.what());
logger.Flush();
return 1;
}
logger.flush();
logger.Flush();
return 0;
}
+26 -5
View File
@@ -1,15 +1,22 @@
#include "paths.hpp"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <Windows.h>
#undef GetTempPath
#endif
namespace fs = std::filesystem;
fs::path Paths::getDataPath() {
fs::path Paths::GetDataPath() {
fs::path basePath{};
#if defined(__linux__)
if (const char *dataHomeOverride = getenv("XDG_DATA_HOME")) {
if (const char* dataHomeOverride = getenv("XDG_DATA_HOME")) {
basePath = dataHomeOverride;
} else {
const char *homeDir = getenv("HOME");
const char* homeDir = getenv("HOME");
if (homeDir == nullptr)
throw std::runtime_error("HOME is unset");
@@ -17,7 +24,7 @@ fs::path Paths::getDataPath() {
}
#elif defined(_WIN32)
{
const char *appData = getenv("APPDATA");
const char* appData = getenv("APPDATA");
if (appData == nullptr)
throw std::runtime_error("APPDATA is unset");
@@ -30,4 +37,18 @@ fs::path Paths::getDataPath() {
return basePath / "dev.slimevr.SlimeVR";
}
fs::path Paths::getLogPath() { return Paths::getDataPath() / "logs"; }
fs::path Paths::GetLogPath() { return Paths::GetDataPath() / "logs"; }
fs::path Paths::GetTempPath() noexcept {
#ifdef _WIN32
WCHAR tmp_dir[MAX_PATH + 1];
GetTempPathW(std::size(tmp_dir), tmp_dir);
return tmp_dir;
#else
if (const char* tmp_dir = getenv("TMPDIR")) {
return tmp_dir;
}
return "/tmp";
#endif
}
+4 -2
View File
@@ -4,8 +4,10 @@
namespace Paths {
// Throws when path cannot be found
std::filesystem::path getDataPath() noexcept(false);
std::filesystem::path GetDataPath() noexcept(false);
// Throws when path cannot be found
std::filesystem::path getLogPath() noexcept(false);
std::filesystem::path GetLogPath() noexcept(false);
std::filesystem::path GetTempPath() noexcept;
} // namespace Paths
-163
View File
@@ -1,163 +0,0 @@
#include "solarxr.hpp"
#include "logger.hpp"
#include <stdexcept>
#if defined(__linux__)
#include <sys/socket.h>
#include <sys/un.h>
#elif defined(_WIN32)
#include <Windows.h>
#else
#error "Unsupported platform"
#endif
namespace fs = std::filesystem;
fs::path SolarXRConnection::getSocketPath() {
using namespace std::string_view_literals;
#if defined(__linux__)
#define MAKE_SOCKET_PATH(PATH) \
std::make_pair(PATH##sv, static_cast<const char *>(getenv(PATH)))
constexpr std::string_view socketName = "SlimeVRRpc";
std::array<std::pair<std::string_view, const char *>, 4> socketPaths{
MAKE_SOCKET_PATH("SLIMEVR_SOCKET_DIR"),
MAKE_SOCKET_PATH("XDG_RUNTIME_DIR"),
MAKE_SOCKET_PATH("TMPDIR"),
{ "/tmp", "/tmp" }
};
#undef MAKE_SOCKET_PATH
for (auto [name, path] : socketPaths) {
if (path == nullptr) {
Logger::get().info(
"Skipping socket directory {} because it doesn't exist", name);
continue;
}
fs::path socketPath = fs::path(path) / socketName;
if (fs::exists(socketPath))
return socketPath;
Logger::get().info(
"Skipping socket directory {} because socket does not exist", name);
}
#elif defined(_WIN32)
throw std::logic_error(
"SolarXRConnection::getSocketPath should not be called on Windows");
#else
#error "Unsupported platform"
#endif
throw std::runtime_error("Failed to find socket directory");
}
SolarXRConnection::SolarXRConnection() {
#if defined(__linux__)
sockaddr_un addr{};
addr.sun_family = AF_UNIX;
strcpy(addr.sun_path, getSocketPath().string().data());
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd == -1) {
throw std::runtime_error(
std::format("Failed to create listen socket: {}", strerror(errno)));
}
if (connect(fd, reinterpret_cast<sockaddr *>(&addr), sizeof(addr)) == -1) {
int e = errno;
close(fd);
throw std::runtime_error(std::format("Failed to connect to socket {}: {}",
addr.sun_path, strerror(e)));
}
#elif defined(_WIN32)
const char *pipeName = R"(\\.\pipe\SlimeVRRpc)";
if (!WaitNamedPipe(pipeName, 5000)) {
throw std::runtime_error("Timed out waiting for pipe");
}
pipe = CreateFile(pipeName, GENERIC_READ | GENERIC_WRITE, 0, nullptr,
OPEN_EXISTING, 0, nullptr);
if (pipe == INVALID_HANDLE_VALUE) {
throw std::runtime_error(
std::format("Unable to open pipe (error={})", GetLastError()));
}
#else
#error "Unsupported platform"
#endif
}
SolarXRConnection::~SolarXRConnection() {
#if defined(__linux__)
if (fd != -1)
close(fd);
#elif defined(_WIN32)
if (pipe != INVALID_HANDLE_VALUE)
CloseHandle(pipe);
#else
#error "Unsupported platform"
#endif
}
bool SolarXRConnection::connected() {
#if defined(__linux__)
if (read(fd, nullptr, 0) == -1) {
return !(errno == EBADF || errno == EINVAL);
}
return true;
#elif defined(_WIN32)
if (!WriteFile(pipe, nullptr, 0, nullptr, nullptr)) {
int err = GetLastError();
// The documentation says it should return ERROR_BROKEN_PIPE
// when the write-end has been closed, but it seems to actually
// return ERROR_NO_DATA...
return !(err == ERROR_NO_DATA || err == ERROR_BROKEN_PIPE);
}
return true;
#else
#error "Unsupported platform"
#endif
}
void SolarXRConnection::sendMsg(flatbuffers::FlatBufferBuilder &fbb) {
// The server expects the total size of the buffer to be written at the
// start of the packet, including the first 4 bytes for the size
int size = fbb.GetSize() + 4;
// This may be wrong on mixed-endianness, but oh well...
if constexpr (std::endian::native != std::endian::little)
size = std::byteswap(size);
#if defined(__linux__)
if (write(fd, &size, sizeof(size)) == -1) {
Logger::get().warning("Failed to write message size to socket: {}",
strerror(errno));
return;
}
if (write(fd, fbb.GetBufferPointer(), fbb.GetSize()) == -1) {
Logger::get().warning("Failed to write message to socket: {}",
strerror(errno));
return;
}
#elif defined(_WIN32)
uint8_t tempBuf[2048];
if (fbb.GetSize() > 2048 - 4) {
Logger::get().warning("Message is too big for temporary buffer");
return;
}
*reinterpret_cast<int *>(&tempBuf[0]) = size;
memcpy(&tempBuf[4], fbb.GetBufferPointer(), fbb.GetSize());
if (!WriteFile(pipe, tempBuf, fbb.GetSize() + 4, nullptr, nullptr)) {
Logger::get().warning("Failed to write message to pipe (error={})",
GetLastError());
return;
}
#else
#error "Unsupported platform"
#endif
}
-31
View File
@@ -1,31 +0,0 @@
#pragma once
#include <filesystem>
#if defined(_WIN32)
#define WIN32_MEAN_AND_LEAN
#include <Windows.h>
#endif
#include "flatbuffers/flatbuffer_builder.h"
class SolarXRConnection {
private:
#if defined(__linux__)
int fd{ -1 };
#elif defined(_WIN32)
HANDLE pipe{ INVALID_HANDLE_VALUE };
#else
#error "Unsupported platform"
#endif
static std::filesystem::path getSocketPath();
public:
SolarXRConnection() noexcept(false);
~SolarXRConnection();
bool connected();
void sendMsg(flatbuffers::FlatBufferBuilder &fbb);
};
+7 -7
View File
@@ -11,14 +11,14 @@
namespace fs = std::filesystem;
std::optional<std::string>
VRUtils::getStringProp(vr::TrackedDeviceIndex_t deviceIndex,
VRUtils::GetStringProp(vr::TrackedDeviceIndex_t deviceIndex,
vr::ETrackedDeviceProperty prop) {
vr::IVRSystem *sys = vr::VRSystem();
vr::IVRSystem* sys = vr::VRSystem();
vr::ETrackedPropertyError err{ vr::TrackedProp_Success };
uint32_t required_len = sys->GetStringTrackedDeviceProperty(deviceIndex, prop, nullptr, 0, &err);
if (err != vr::TrackedProp_BufferTooSmall) {
Logger::get().info(
Logger::Get().Info(
"Failed to get size of string property {} for device {}: {}",
std::to_underlying(prop), deviceIndex,
sys->GetPropErrorNameFromEnum(err));
@@ -29,7 +29,7 @@ VRUtils::getStringProp(vr::TrackedDeviceIndex_t deviceIndex,
sys->GetStringTrackedDeviceProperty(deviceIndex, prop, s.data(), required_len,
&err);
if (err != vr::TrackedProp_Success) {
Logger::get().info("Failed to get string property {} for device {}: {}",
Logger::Get().Info("Failed to get string property {} for device {}: {}",
std::to_underlying(prop), deviceIndex,
sys->GetPropErrorNameFromEnum(err));
return std::nullopt;
@@ -38,8 +38,8 @@ VRUtils::getStringProp(vr::TrackedDeviceIndex_t deviceIndex,
return s;
}
std::tuple<fs::path, fs::path> VRUtils::initialiseManifest() {
fs::path manifestDir = Paths::getDataPath() / "bindings-provider";
std::tuple<fs::path, fs::path> VRUtils::InitialiseManifests() {
fs::path manifestDir = Paths::GetDataPath() / "bindings-provider";
std::error_code ec;
fs::create_directories(manifestDir, ec);
if (ec) {
@@ -59,7 +59,7 @@ std::tuple<fs::path, fs::path> VRUtils::initialiseManifest() {
std::make_pair("vive_controller.json"sv, SVR_VRAPP_VIVE_BINDS),
};
for (auto &[name, contents] : requiredFiles) {
for (auto& [name, contents] : requiredFiles) {
fs::path path = manifestDir / name;
if (!fs::exists(path)) {
std::ofstream stream(path);
+2 -2
View File
@@ -8,9 +8,9 @@
#include "openvr.h"
namespace VRUtils {
std::optional<std::string> getStringProp(vr::TrackedDeviceIndex_t deviceIndex,
std::optional<std::string> GetStringProp(vr::TrackedDeviceIndex_t deviceIndex,
vr::ETrackedDeviceProperty prop);
// Returns <app vrmanifest path, action manifest json path>
std::tuple<std::filesystem::path, std::filesystem::path> initialiseManifest();
std::tuple<std::filesystem::path, std::filesystem::path> InitialiseManifests();
} // namespace VRUtils
-3
View File
@@ -1,3 +0,0 @@
plugins {
id("org.ajoberstar.grgit")
}
+36
View File
@@ -0,0 +1,36 @@
# Crowdin Configuration File
# https://developer.crowdin.com/configuration-file/
files:
- source: /gui/app/public/i18n/en/translation.ftl
translation: /gui/app/public/i18n/%locale%/%original_file_name%
update_option: update_as_unapproved
languages_mapping:
locale:
zh-CN: zh-Hans
zh-TW: zh-Hant
nb: nb-NO
sv: sv-SE
fr: fr
de: de
it: it
ja: ja
ko: ko
ar: ar
cs: cs
da: da
el: el
es-419: es-419
et: et
fi: fi
he: he
lt: lt
nl: nl
pl: pl
ru: ru
th: th
tr: tr
uk: uk
vi: vi
# In-context editor pseudo-language
ach-UG: ach-UG
Generated
+9 -9
View File
@@ -5,11 +5,11 @@
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1777988971,
"narHash": "sha256-qIoWPDs+0/8JecyYgE3gpKQxW/4bLW/gp45vow9ioCQ=",
"lastModified": 1790898470,
"narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "0678d8986be1661af6bb555f3489f2fdfc31f6ff",
"rev": "024633cd702b10285db5cb19b40ad48d2399ba60",
"type": "github"
},
"original": {
@@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1777954456,
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
"lastModified": 1790822859,
"narHash": "sha256-69xHQhAeMAD2wDXO7T2pcOZIF9Sga2W+JkmY2a11Ops=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
"rev": "c59305bab2065cfecc4944690d9eedbb56f3a9fa",
"type": "github"
},
"original": {
@@ -36,11 +36,11 @@
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1777168982,
"narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
"lastModified": 1790477367,
"narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
"rev": "f7cd230690d9fc982d06129f9189b101fddcfa3b",
"type": "github"
},
"original": {
+137 -71
View File
@@ -14,86 +14,152 @@
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
systems = [
"aarch64-linux"
"x86_64-linux"
];
perSystem =
{ pkgs, ... }:
{
system,
lib,
pkgs,
...
}:
let
runtimeLibs =
pkgs:
(with pkgs; [
jdk17
runtimeLibs = [
pkgs.alsa-lib
pkgs.libpulseaudio
pkgs.at-spi2-atk
pkgs.at-spi2-core
pkgs.cairo
pkgs.cups
pkgs.dbus
pkgs.expat
pkgs.gdk-pixbuf
pkgs.glib
pkgs.gtk3
pkgs.libdrm
pkgs.libgbm
pkgs.libglvnd
pkgs.libnotify
pkgs.libxkbcommon
pkgs.mesa
pkgs.nspr
pkgs.nss
pkgs.pango
pkgs.systemd
pkgs.vulkan-loader
pkgs.wayland
pkgs.libX11
pkgs.libXcomposite
pkgs.libXdamage
pkgs.libXext
pkgs.libXfixes
pkgs.libXrandr
pkgs.libxcb
pkgs.libxshmfence
pkgs.libusb1
pkgs.udev
pkgs.libxcrypt-legacy
];
alsa-lib
libpulseaudio
at-spi2-atk
at-spi2-core
cairo
cups
dbus
expat
gdk-pixbuf
glib
gtk3
libdrm
libgbm
libglvnd
libnotify
libxkbcommon
mesa
nspr
nss
pango
systemd
vulkan-loader
wayland
libX11
libXcomposite
libXdamage
libXext
libXfixes
libXrandr
libxcb
libxshmfence
libusb1
udev
libxcrypt-legacy
rpm
fpm
# we use static runtime
# https://github.com/electron-userland/electron-builder/blob/a6117b3011a105204af8cc2eca02a56976d1ef29/packages/app-builder-lib/src/toolsets/linux.ts#L122
appImageTools = pkgs.stdenvNoCC.mkDerivation {
name = "electron-builder-appimage-runtime";
src =
let
# Keep in sync with "appimage" toolset version in gui/electron/electron-builder.yml
appimageToolsVersion = "1.0.3";
in
pkgs.fetchzip {
url = "https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage@${appimageToolsVersion}/appimage-tools-runtime-20251108.tar.gz";
hash = "sha256-Iqhvyp6BNpH+tXvVO7MLgYbsJ6va4lXO7El3wtyWBII=";
stripRoot = false;
};
wineWow64Packages.stable
zlib
squashfsTools
fakeroot
libarchive
icu
nodejs_22
pnpm
pkg-config
python3
gcc
gnumake
binutils
git
node-gyp-build
]);
slimeShell = pkgs.buildFHSEnv {
name = "slimevr-env";
targetPkgs = runtimeLibs;
profile = ''
export JAVA_HOME=${pkgs.jdk17}
export PATH="${pkgs.jdk17}/bin:$PATH"
# Tell electron-builder to use system tools instead of downloading them
export USE_SYSTEM_FPM=true
export USE_SYSTEM_MKSQUASHFS=true
installPhase = ''
mkdir $out
cp -r -t $out/ lib/ runtimes/
ln -s -t $out \
"${pkgs.desktop-file-utils}/bin/desktop-file-validate" \
"${pkgs.squashfsTools}/bin/mksquashfs"
'';
runScript = "bash";
};
buildToolsVersion = "36.0.0";
androidComposition = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [
buildToolsVersion
];
platformVersions = [
"36"
];
};
in
{
devShells.default = slimeShell.env;
# For Android SDK
_module.args.pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.android_sdk.accept_license = true;
};
devShells.default = pkgs.mkShell rec {
packages = [
# for running the jar
pkgs.jdk25
# for build
pkgs.electron
pkgs.rpm
pkgs.fpm
pkgs.p7zip
# For Windows GUI cross-build
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
androidComposition.androidsdk
];
buildInputs = runtimeLibs;
shellHook = ''
export LD_LIBRARY_PATH="${
lib.makeLibraryPath [
pkgs.systemd
pkgs.hidapi
]
}:$LD_LIBRARY_PATH"
# VSCode's extension host sets ELECTRON_RUN_AS_NODE=1 on itself, and
# shells it forks inherit it. It makes electron run as plain node, so
# the main process crashes on `import { app } from 'electron'`.
unset ELECTRON_RUN_AS_NODE
'';
JAVA_HOME = "${pkgs.jdk25}/lib/openjdk";
USE_SYSTEM_FPM = "true";
ELECTRON_BUILDER_7ZIP_PATH = "${pkgs.p7zip}/bin/7za";
APPIMAGE_TOOLS_PATH = "${appImageTools}";
# for electron-vite, so `pnpm gui` works
ELECTRON_EXEC_PATH = "${pkgs.electron}/bin/electron";
ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk";
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${ANDROID_HOME}/build-tools/${buildToolsVersion}/aapt2";
};
};
};
}
+13 -9
View File
@@ -1,26 +1,30 @@
# Fixes bug with spotless. See https://github.com/diffplug/spotless/issues/834#issuecomment-819118761
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
org.gradle.jvmargs=-Xmx4g -Xms1g \
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
org.gradle.parallel=true
#org.gradle.caching=true
org.gradle.configureondemand=true
kotlin.code.style=official
# https://github.com/Kotlin/kotlinx-atomicfu#atomicfu-compiler-plugin
kotlinx.atomicfu.enableJvmIrTransformation=true
android.useAndroidX=true
android.nonTransitiveRClass=true
org.gradle.unsafe.configuration-cache=false
#org.gradle.configuration-cache=true
# solarxr-protocol:kotlin-codegen's generateTestSchemas isn't cache-compatible yet (submodule); degrade to a warning there instead of failing the whole build
#org.gradle.configuration-cache.problems=warn
kotlinVersion=2.3.10
spotlessVersion=8.2.1
shadowJarVersion=9.3.1
buildconfigVersion=6.0.7
# We should probably stop using grgit, see:
# https://andrewoberstar.com/posts/2024-04-02-dont-commit-to-grgit/
grgitVersion=5.3.3
# 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
# sentry and sentry-android-core must stay on the same version
sentryVersion=8.+
sentryAndroidGradleVersion=6.23.0
Binary file not shown.
+2 -2
View File
@@ -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
Vendored
+4 -5
View File
@@ -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.
Vendored
+2 -2
View File
@@ -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
+7 -7
View File
@@ -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
+2 -2
View File
@@ -1,5 +1,5 @@
export default {
'**/*.{ts,tsx}': () => 'tsc -p tsconfig.json --noEmit',
'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',
};
+213
View File
@@ -0,0 +1,213 @@
import eslint from '@eslint/js';
import betterTailwind from 'eslint-plugin-better-tailwindcss';
import boundaries from 'eslint-plugin-boundaries';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import solid from 'eslint-plugin-solid/configs/typescript';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import l10n from './eslint/l10n.js';
import layers from './eslint/layers.js';
const UI_DEEP_IMPORT = {
group: ['@/ui/*/*'],
message: 'Import a ui folder through its index, e.g. @/ui/select.',
};
// Each entry is allowed only in the files listed in `allowedIn`
const restricted = {
toFixed: {
allowedIn: ['src/lib/format.ts'],
selector: "CallExpression[callee.property.name='toFixed']",
message: 'Use fmt() from @/lib/format, it is locale aware.',
},
intl: {
allowedIn: ['src/lib/format.ts'],
selector: "NewExpression[callee.object.name='Intl']",
message: 'Use fmt/fmtList/fmtRelative from @/lib/format, they cache per locale.',
},
storage: {
allowedIn: ['src/lib/storage.ts', 'src/lib/storage.test.ts'],
selector: 'Identifier[name=/^(localStorage|sessionStorage)$/]',
message: 'Use definePref/defineCache/defineSession from @/lib/storage.',
},
electronApi: {
allowedIn: ['src/app/platform/**'],
selector: "MemberExpression[property.name='electronAPI']",
message: 'Use platform from @/lib/platform.',
},
keydown: {
allowedIn: ['src/lib/keyboard.ts', 'src/ui/motion/**'],
selector:
"CallExpression[callee.property.name='addEventListener'][arguments.0.value=/^key(down|up)$/]",
message:
'Use useShortcut from @/lib/keyboard, Escape goes to the back stack (useBack).',
},
android: {
allowedIn: ['src/app/platform/**', 'src/env.d.ts'],
selector: "Identifier[name='__ANDROID__']",
message: 'Use platform from @/lib/platform.',
},
};
function allow(from, to) {
return {
from: { element: { type: from } },
allow: { to: { element: { type: to } } },
};
}
function restrictedSyntax(except = []) {
return [
'error',
...Object.entries(restricted)
.filter(([name]) => !except.includes(name))
.map(([, { selector, message }]) => ({ selector, message })),
];
}
function restrictedOverrides() {
const byPattern = new Map();
for (const [name, { allowedIn }] of Object.entries(restricted)) {
for (const pattern of allowedIn) {
byPattern.set(pattern, [...(byPattern.get(pattern) ?? []), name]);
}
}
return [...byPattern].map(([pattern, names]) => ({
files: [pattern],
rules: { 'no-restricted-syntax': restrictedSyntax(names) },
}));
}
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['src/**/*.{ts,tsx}'],
...solid,
languageOptions: {
parser: tseslint.parser,
parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname },
globals: globals.browser,
},
plugins: {
...solid.plugins,
boundaries,
l10n,
},
settings: {
'import/resolver': {
typescript: { alwaysTryTypes: true, project: './tsconfig.json' },
},
'boundaries/include': ['src/**/*'],
'boundaries/elements': [
{ type: 'app', pattern: 'src/app' },
{ type: 'ui', pattern: 'src/ui' },
{ type: 'lib', pattern: 'src/lib' },
{ type: 'solarxr', pattern: 'src/solarxr' },
{ type: 'domain', pattern: 'src/domain/*', capture: ['concept'] },
{ type: 'pages', pattern: 'src/pages/*', capture: ['page'] },
{ type: 'assets', pattern: 'src/assets' },
],
},
rules: {
...solid.rules,
// External packages and imports inside one element (same page, same concept) are not checked
'boundaries/dependencies': [
'error',
{
default: 'disallow',
policies: [
allow('app', ['app', 'ui', 'lib', 'solarxr', 'domain', 'pages', 'assets']),
allow('pages', ['ui', 'lib', 'solarxr', 'domain', 'assets']),
allow('domain', ['ui', 'lib', 'solarxr', 'domain', 'assets']),
allow('solarxr', ['lib', 'solarxr']),
allow('ui', ['ui', 'lib', 'assets']),
allow('assets', ['lib']),
],
},
],
'l10n/message-id': 'error',
'no-throw-literal': 'error',
'no-duplicate-imports': 'error',
'no-restricted-syntax': restrictedSyntax(),
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_', ignoreRestSiblings: true },
],
},
},
...restrictedOverrides(),
{
files: ['src/lib/**/*.{ts,tsx}'],
plugins: { layers },
rules: { 'layers/no-jsx': 'error' },
},
// Peer range stops at ESLint 9 but the rules only read JSX attributes
{ files: ['src/**/*.tsx'], ...jsxA11y.flatConfigs.recommended },
// Long class strings wrap into a multiline template literal, fixed by lint:fix
{
files: ['src/**/*.tsx'],
plugins: { 'better-tailwindcss': betterTailwind },
settings: { 'better-tailwindcss': { entryPoint: 'src/styles.css' } },
rules: {
'better-tailwindcss/enforce-consistent-line-wrapping': [
'error',
// Packed lines, no line per variant group. Wider than prettier so
// only really long strings wrap at JSX indentation depth.
{
printWidth: 100,
group: 'never',
preferSingleLine: true,
strictness: 'loose',
},
],
// The type scale is the text tokens in styles.css, nothing else
'better-tailwindcss/no-restricted-classes': [
'error',
{
restrict: [
{
pattern: '^(?:.*:)?!?text-[\\[(].*$',
message: 'No arbitrary text values, use text-standard, text-section or text-title.',
},
{
pattern: '^(?:.*:)?!?text-(?:xs|sm|base|lg|xl|\\dxl)$',
message: 'Tailwind sizes are removed, use text-standard, text-section or text-title.',
},
],
},
],
},
},
// Solid compiles `ref={x}` into an assignment the rule cannot see
{ files: ['src/**/*.tsx'], rules: { 'no-unassigned-vars': 'off' } },
// Motion hooks belong to ui primitives, pages only use the containers
{
files: ['src/**/*.{ts,tsx}'],
ignores: ['src/ui/**'],
rules: {
'no-restricted-imports': [
'error',
{
paths: [
{
name: '@/ui/motion',
importNames: ['useMotionItem'],
message: 'Only ui primitives register motion items.',
},
],
patterns: [UI_DEEP_IMPORT],
},
],
},
},
// Each ui folder is entered through its index; files inside it import each other relatively
{
files: ['src/ui/**/*.{ts,tsx}'],
rules: { 'no-restricted-imports': ['error', { patterns: [UI_DEEP_IMPORT] }] },
},
// Local rules run in node
{ files: ['eslint/**/*.js'], languageOptions: { globals: globals.node } },
// Tests build their own bundles with made-up ids
{ files: ['src/**/*.test.{ts,tsx}'], rules: { 'l10n/message-id': 'off' } }
);
+202
View File
@@ -0,0 +1,202 @@
// Checks Fluent ids against the en-US translation.ftl: literal ids passed to `t`, `t.attr`,
// the `id` prop of l10n components (with args), and any other string literal typed as MessageId
// (props, options, `satisfies Record<..., MessageId>`). Ids must be full literals, args must match.
import { parse } from '@fluent/syntax';
import { readFileSync, statSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
const FTL_FILE = fileURLToPath(new URL('../../app/public/i18n/en/translation.ftl', import.meta.url));
const COMPONENTS = new Set(['Localized']);
let cache = { mtime: -1, messages: new Map() };
function collect(node, out) {
if (!node || typeof node !== 'object') return;
if (Array.isArray(node)) {
for (const child of node) collect(child, out);
return;
}
if (node.type === 'VariableReference') out.vars.add(node.id.name);
else if (node.type === 'MessageReference') {
out.refs.push({ id: node.id.name, attr: node.attribute?.name ?? null });
}
for (const [key, value] of Object.entries(node)) {
if (key !== 'span' && typeof value === 'object') collect(value, out);
}
}
function patternInfo(pattern) {
const out = { vars: new Set(), refs: [] };
collect(pattern, out);
return out;
}
function loadMessages() {
const mtime = statSync(FTL_FILE).mtimeMs;
if (mtime === cache.mtime) return cache.messages;
const messages = new Map();
for (const entry of parse(readFileSync(FTL_FILE, 'utf8'), { withSpans: false }).body) {
if (entry.type !== 'Message') continue;
messages.set(entry.id.name, {
value: entry.value ? patternInfo(entry.value) : null,
attrs: new Map(entry.attributes.map((a) => [a.id.name, patternInfo(a.value)])),
});
}
cache = { mtime, messages };
return messages;
}
function requiredVars(messages, id, attr, seen = new Set()) {
const key = `${id}.${attr ?? ''}`;
const message = messages.get(id);
const info = attr === null ? message?.value : message?.attrs.get(attr);
if (!info || seen.has(key)) return new Set();
seen.add(key);
const vars = new Set(info.vars);
for (const ref of info.refs) {
for (const v of requiredVars(messages, ref.id, ref.attr, seen)) vars.add(v);
}
return vars;
}
// `handled` collects literals already checked through t()/Localized, so the type-based pass skips them
function literalIds(node, context, handled) {
if (node.type === 'Literal' || node.type === 'TemplateLiteral') handled.add(node);
if (node.type === 'Literal' && typeof node.value === 'string') return [node.value];
if (node.type === 'TemplateLiteral') {
if (node.expressions.length === 0) return [node.quasis[0].value.cooked];
context.report({ node, messageId: 'dynamic' });
return null;
}
if (node.type === 'ConditionalExpression') {
const a = literalIds(node.consequent, context, handled);
const b = literalIds(node.alternate, context, handled);
return a && b ? [...a, ...b] : null;
}
return null;
}
function isMessageIdType(type) {
if (!type) return false;
if (type.aliasSymbol?.escapedName === 'MessageId') return true;
return type.isUnion() && type.types.some(isMessageIdType);
}
function propName(prop) {
if (prop.computed) return null;
if (prop.key.type === 'Identifier') return prop.key.name;
if (prop.key.type === 'Literal') return String(prop.key.value);
return null;
}
const messageId = {
meta: {
type: 'problem',
docs: { description: 'Fluent ids exist in en-US and get the args they need' },
schema: [],
messages: {
dynamic: 'Fluent ids must be full literals so they stay greppable.',
unknown: 'Unknown Fluent id "{{id}}" (not in en-US translation.ftl).',
noValue: 'Fluent message "{{id}}" has no value, only attributes.',
unknownAttr: 'Fluent message "{{id}}" has no attribute "{{attr}}".',
missingArgs: 'Fluent message "{{id}}" needs args: {{vars}}.',
unknownArg: 'Fluent message "{{id}}" does not use arg "{{arg}}".',
},
},
create(context) {
const messages = loadMessages();
const handled = new WeakSet();
const services = context.sourceCode.parserServices;
const checker = services?.program?.getTypeChecker();
function typedAsMessageId(node) {
const tsNode = services.esTreeNodeToTSNodeMap.get(node);
return isMessageIdType(checker.getContextualType(tsNode));
}
function checkTyped(node) {
if (!checker || handled.has(node) || !typedAsMessageId(node)) return;
check(node, { attr: undefined, withArgs: false });
}
function checkArgs(node, id, attr, argsNode) {
const vars = requiredVars(messages, id, attr);
if (!argsNode) {
if (vars.size) context.report({ node, messageId: 'missingArgs', data: { id, vars: [...vars].join(', ') } });
return;
}
if (argsNode.type !== 'ObjectExpression') return;
if (argsNode.properties.some((p) => p.type !== 'Property' || propName(p) === null)) return;
const given = new Set(argsNode.properties.map(propName));
const missing = [...vars].filter((v) => !given.has(v));
if (missing.length) {
context.report({ node: argsNode, messageId: 'missingArgs', data: { id, vars: missing.join(', ') } });
}
for (const prop of argsNode.properties) {
const arg = propName(prop);
if (!vars.has(arg)) context.report({ node: prop, messageId: 'unknownArg', data: { id, arg } });
}
}
function check(idNode, { attr, argsNode, withArgs }) {
const ids = literalIds(idNode, context, handled);
if (!ids) return;
for (const id of ids) {
const message = messages.get(id);
if (!message) {
context.report({ node: idNode, messageId: 'unknown', data: { id } });
continue;
}
if (attr === undefined && !message.value) {
context.report({ node: idNode, messageId: 'noValue', data: { id } });
continue;
}
if (typeof attr === 'string' && !message.attrs.has(attr)) {
context.report({ node: idNode, messageId: 'unknownAttr', data: { id, attr } });
continue;
}
if (withArgs && attr !== null) checkArgs(idNode, id, attr ?? null, argsNode);
}
}
return {
CallExpression(node) {
const { callee } = node;
const [first, second, third] = node.arguments;
if (!first) return;
if (callee.type === 'Identifier' && callee.name === 't') {
check(first, { attr: undefined, argsNode: second, withArgs: true });
} else if (
callee.type === 'MemberExpression' &&
callee.object.type === 'Identifier' &&
callee.object.name === 't' &&
callee.property.type === 'Identifier' &&
callee.property.name === 'attr' &&
second
) {
const attr = second.type === 'Literal' && typeof second.value === 'string' ? second.value : null;
check(first, { attr, argsNode: third, withArgs: true });
}
},
JSXOpeningElement(node) {
if (node.name.type !== 'JSXIdentifier' || !COMPONENTS.has(node.name.name)) return;
const attrs = node.attributes.filter((a) => a.type === 'JSXAttribute');
const idAttr = attrs.find((a) => a.name.name === 'id');
if (!idAttr?.value) return;
const idNode = idAttr.value.type === 'JSXExpressionContainer' ? idAttr.value.expression : idAttr.value;
const argsAttr = attrs.find((a) => a.name.name === 'args');
// Spread props may carry args, skip the args check then
const withArgs = !node.attributes.some((a) => a.type === 'JSXSpreadAttribute');
const argsNode = argsAttr?.value?.type === 'JSXExpressionContainer' ? argsAttr.value.expression : undefined;
check(idNode, { attr: undefined, argsNode, withArgs });
},
// Props, options and `satisfies Record<..., MessageId>` values: anything typed MessageId
Literal(node) {
if (typeof node.value === 'string') checkTyped(node);
},
TemplateLiteral: checkTyped,
};
},
};
export default { rules: { 'message-id': messageId } };
+14
View File
@@ -0,0 +1,14 @@
// lib holds services and reactive state, anything that renders lives in ui
const noJsx = {
meta: {
type: 'problem',
messages: { jsx: 'No JSX in lib, components belong in ui.' },
schema: [],
},
create(context) {
const report = (node) => context.report({ node, messageId: 'jsx' });
return { JSXElement: report, JSXFragment: report };
},
};
export default { rules: { 'no-jsx': noJsx } };
+17
View File
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0" />
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>SlimeVR GUI</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
+69
View File
@@ -0,0 +1,69 @@
{
"name": "@slimevr/gui-app-next",
"version": "0.0.0",
"author": "SlimeVR Team <[email protected]>",
"homepage": "https://slimevr.dev",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.node.json",
"test": "vitest run",
"lint": "pnpm typecheck && eslint src && prettier --check \"src/**/*.{ts,tsx,css,json}\"",
"lint:fix": "eslint --fix src && prettier --write \"src/**/*.{ts,tsx,css,json}\""
},
"dependencies": {
"@fluent/bundle": "0.19.1",
"@fluent/langneg": "0.7.0",
"@fontsource-variable/lexend": "5.3.0",
"@fontsource/jetbrains-mono": "5.3.0",
"@fontsource/noto-sans": "5.3.0",
"@fontsource/opendyslexic": "5.3.0",
"@fontsource/poppins": "5.2.7",
"@fontsource/ubuntu": "5.3.0",
"@sentry/solid": "11.9.0",
"@slimevr/gui-shared": "workspace:*",
"@solidjs/router": "1.0.0",
"browser-fs-access": "0.38.0",
"flatbuffers": "22.10.26",
"semver": "7.7.4",
"solarxr-protocol": "workspace:*",
"solid-js": "1.9.17",
"valibot": "1.5.0"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@sentry/vite-plugin": "11.9.0",
"@fluent/syntax": "0.19.0",
"@iconify-json/heroicons": "1.2.3",
"@iconify-json/ic": "1.2.4",
"@iconify-json/lucide": "1.2.147",
"@iconify-json/material-symbols": "1.2.96",
"@solidjs/testing-library": "0.8.10",
"@tailwindcss/vite": "4.3.3",
"@testing-library/jest-dom": "7.0.1",
"@testing-library/user-event": "14.6.8",
"@types/node": "26.6.5",
"@types/semver": "7.7.1",
"axe-core": "4.14.0",
"eslint": "10.13.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-better-tailwindcss": "4.10.0",
"eslint-plugin-boundaries": "7.3.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-solid": "0.18.1",
"globals": "17.13.0",
"jsdom": "30.1.3",
"prettier": "3.9.10",
"tailwindcss": "4.3.3",
"typescript": "~6.0.3",
"typescript-eslint": "8.72.0",
"unplugin-icons": "24.0.0",
"vite": "8.3.5",
"vite-imagetools": "12.0.1",
"vite-plugin-solid": "2.11.14",
"vitest": "5.0.5"
}
}
+86
View File
@@ -0,0 +1,86 @@
import { useMatch } from '@solidjs/router';
import { type JSX, Show } from 'solid-js';
import HomeIcon from '~icons/material-symbols/home';
import DesignIcon from '~icons/material-symbols/palette-outline-rounded';
import GearIcon from '~icons/material-symbols/settings-rounded';
import RulerIcon from '~icons/material-symbols/straighten-rounded';
import { ConnectionGate } from '@/app/connection-gate';
import { paths } from '@/app/routes';
import { TitleBar } from '@/app/title-bar';
import { handleBack } from '@/lib/back-stack';
import { createMediaQuery, SHELL_QUERY } from '@/lib/media';
import { MotionRegion } from '@/ui/motion';
import { NavLink } from '@/ui/nav-link';
const MOUSE_BACK = 3;
// Same destinations at every width: bottom bar on phones, rail from `shell` up
function Destinations() {
const rail = createMediaQuery(SHELL_QUERY);
return (
<MotionRegion
orientation={rail() ? 'vertical' : 'horizontal'}
class="
order-last flex justify-around gap-sm px-sm pt-sm shell:order-first shell:flex-col
shell:w-27.5 shell:shrink-0 shell:justify-start shell:pt-0 shell:pb-sm
"
>
<NavLink to={paths.home} end label="navbar-home" icon={<HomeIcon />} />
<NavLink
to={paths.body}
label="navbar-body_proportions"
icon={<RulerIcon class="icon -rotate-45" />}
/>
<Show when={import.meta.env.DEV}>
<NavLink
to={paths.design}
label="navbar-design"
icon={<DesignIcon />}
/>
</Show>
<div class="contents shell:mt-auto shell:flex shell:flex-col">
<NavLink
to={paths.settings}
label="navbar-settings"
icon={<GearIcon />}
/>
</div>
</MotionRegion>
);
}
export function AppShell(props: { children: JSX.Element }) {
// Setup runs without destinations, the flow footer owns the bottom
const onboarding = useMatch(() => `${paths.onboarding}/*`);
function onPointerUp(e: PointerEvent) {
if (e.button !== MOUSE_BACK) return;
if (handleBack()) e.preventDefault();
}
return (
<div
class="flex h-dvh flex-col bg-surface text-fg surface-sidebar"
onPointerUp={onPointerUp}
>
<TitleBar />
<ConnectionGate>
<div class="flex min-h-0 flex-1 flex-col shell:flex-row">
<Show when={!onboarding()}>
<Destinations />
</Show>
<main
classList={{ 'shell:ml-sm': !!onboarding() }}
class="
relative min-h-0 flex-1 overflow-y-auto overscroll-contain @container shell:mb-sm
shell:scrollbar-gutter-stable
"
>
{props.children}
</main>
</div>
</ConnectionGate>
</div>
);
}
+41
View File
@@ -0,0 +1,41 @@
import { HashRouter, type RouteSectionProps } from '@solidjs/router';
import { withSentryRouterRouting } from '@sentry/solid/solidrouter';
import { AppShell } from '@/app/app-shell';
import { CrashBoundary } from '@/app/crash-screen';
import { useHistoryBack } from '@/app/history-back';
import { paths, routes } from '@/app/routes';
import { searchDestinations } from '@/app/search-destinations';
import { useShortcut } from '@/lib/keyboard';
import { DOCS_SITE } from '@/lib/links';
import { platform } from '@/lib/platform';
import { QuickSearch } from '@/pages/settings/quick-search/quick-search';
import { DialogHost } from '@/ui/dialog';
import { MotionRoot } from '@/ui/motion';
import { ToastHost } from '@/ui/toast';
const Router = withSentryRouterRouting(HashRouter);
function AppRoot(props: RouteSectionProps) {
useHistoryBack();
useShortcut('F1', () => platform.openUrl(DOCS_SITE), {
scope: 'global',
label: 'titlebar-docs',
});
return (
<MotionRoot>
<AppShell>{props.children}</AppShell>
<QuickSearch base={paths.settings} destinations={searchDestinations} />
<DialogHost />
<ToastHost />
</MotionRoot>
);
}
export function App() {
return (
<CrashBoundary>
<Router root={AppRoot}>{routes}</Router>
</CrashBoundary>
);
}
+30
View File
@@ -0,0 +1,30 @@
import { createPlatform } from '@/app/platform/detect';
import { startReleaseCheck } from '@/domain/app-update/release-check';
import { startDatafeed } from '@/domain/datafeed';
import { initErrorReporting } from '@/domain/error-reporting';
import { initSaveToasts } from '@/domain/settings/save-toasts';
import { initKeyboard } from '@/lib/keyboard';
import { initL10n } from '@/lib/l10n';
import { setPlatform } from '@/lib/platform';
import { loadPrefs } from '@/lib/storage';
import { createSocketClient, serverUrl, setClient } from '@/solarxr/client';
// Everything that runs before render, in order. Returns the stop for the
// background services.
export async function boot(): Promise<() => void> {
setPlatform(await createPlatform());
setClient(createSocketClient({ url: serverUrl() }));
await initErrorReporting();
await loadPrefs();
await initL10n();
const services = [
initKeyboard(),
initSaveToasts(),
startReleaseCheck(),
startDatafeed(),
];
return () => {
for (const stop of services) stop();
};
}
@@ -0,0 +1,72 @@
import { cleanup, render, screen } from '@solidjs/testing-library';
import {
ErrorReportingConsent,
ErrorReportingSettingsResponseT,
} from 'solarxr-protocol';
import { afterEach, beforeAll, describe, expect, it } from 'vitest';
import { ConnectionGate } from '@/app/connection-gate';
import { setPlatform } from '@/lib/platform';
import { fakePlatform } from '@/lib/platform-fake';
import { setClient } from '@/solarxr/client';
import { createFakeClient, type FakeClient } from '@/solarxr/testing';
let fake: FakeClient;
beforeAll(() => {
setPlatform(fakePlatform());
fake = createFakeClient({ connected: false });
setClient(fake);
});
function consent(value: ErrorReportingConsent) {
fake.push(new ErrorReportingSettingsResponseT(value, 'user-1', 'session-1'));
}
function renderGate() {
render(() => (
<ConnectionGate>
<p>app</p>
</ConnectionGate>
));
}
// Resources are module state, so the cases run as one story in order
describe('ConnectionGate', () => {
afterEach(cleanup);
it('shows the timeout error when the first connect takes too long', () => {
renderGate();
expect(screen.getByText('websocket-connecting')).toBeInTheDocument();
fake.setTimedOut(true);
expect(screen.getByText('websocket-timedout')).toBeInTheDocument();
expect(screen.queryByText('app')).toBeNull();
fake.setTimedOut(false);
});
it('waits for consent, asks it, then shows the app and covers it on loss', () => {
renderGate();
fake.connect();
expect(screen.getByText('websocket-connecting')).toBeInTheDocument();
expect(screen.queryByText('app')).toBeNull();
consent(ErrorReportingConsent.UNDECIDED);
expect(
screen.getByText('error_collection_modal-title')
).toBeInTheDocument();
expect(screen.queryByText('app')).toBeNull();
consent(ErrorReportingConsent.ALLOWED);
expect(screen.queryByText('error_collection_modal-title')).toBeNull();
expect(screen.getByText('app').parentElement).not.toHaveClass('hidden');
fake.disconnect();
expect(screen.getByText('websocket-connection_lost')).toBeInTheDocument();
// Kept mounted under the screen
expect(screen.getByText('app').parentElement).toHaveClass('hidden');
fake.connect();
consent(ErrorReportingConsent.ALLOWED);
expect(screen.queryByText('websocket-connection_lost')).toBeNull();
expect(screen.getByText('app').parentElement).not.toHaveClass('hidden');
});
});
+188
View File
@@ -0,0 +1,188 @@
import {
createEffect,
createSignal,
type JSX,
Match,
onMount,
Show,
Switch,
} from 'solid-js';
import { ErrorReportingConsent } from 'solarxr-protocol';
import {
answerConsent,
crashReportAvailable,
errorReportingSettings,
needsConsentAnswer,
sendCrashReport,
} from '@/domain/error-reporting';
import { ErrorReportingDetails } from '@/domain/error-reporting/error-reporting-details';
import { cx } from '@/lib/cx';
import { t } from '@/lib/l10n';
import { platform, type CrashKind } from '@/lib/platform';
import { flushPrefs } from '@/lib/storage';
import { client } from '@/solarxr/client';
import { TextButton } from '@/ui/button';
import { focusEntry, MotionRegion } from '@/ui/motion';
import { StatusState } from '@/ui/status-state';
type GateScreen = 'connection' | 'consent';
function CrashReportBanner(props: { kind: CrashKind }) {
const [sent, setSent] = createSignal(false);
const [sending, setSending] = createSignal(false);
async function send() {
setSending(true);
try {
if (await sendCrashReport(props.kind)) setSent(true);
} finally {
setSending(false);
}
}
return (
<Show when={crashReportAvailable()}>
<div
class="
flex w-full max-w-2xl flex-wrap items-center justify-between gap-md rounded-lg bg-surface
px-lg py-md surface-section
"
>
<p>
{t(sent() ? 'websocket-report-sent' : 'websocket-report-question')}
</p>
<Show when={!sent()}>
<TextButton
label="websocket-report-send"
loading={sending()}
onClick={send}
/>
</Show>
</div>
</Show>
);
}
function ConnectionScreen() {
const timedOut = () => client.status() === 'connecting' && client.timedOut();
const lost = () => client.status() === 'disconnected';
async function close() {
await flushPrefs();
platform.window?.close();
}
return (
<Show
when={timedOut() || lost()}
fallback={
<StatusState kind="loading" size="page" title="websocket-connecting" />
}
>
<div class="flex flex-1 flex-col items-center gap-lg p-lg">
<StatusState
kind="error"
size="page"
title={
timedOut() ? 'websocket-timedout' : 'websocket-connection_lost'
}
description={
timedOut()
? 'websocket-timedout-desc'
: 'websocket-connection_lost-desc'
}
action={
<Show when={platform.window}>
<div class="flex flex-wrap justify-center gap-sm">
<TextButton
variant="primary"
label="websocket-error-close"
onClick={close}
/>
<Show when={platform.folders}>
{(folders) => (
<TextButton
label="websocket-error-logs"
onClick={() => void folders().openLogs()}
/>
)}
</Show>
</div>
</Show>
}
/>
<CrashReportBanner kind={timedOut() ? 'timeout' : 'connection_lost'} />
</div>
</Show>
);
}
function ConsentScreen() {
let el!: HTMLDivElement;
onMount(() => focusEntry(el));
return (
<div
ref={el}
class="flex min-h-0 flex-1 justify-center overflow-y-auto p-lg"
>
<MotionRegion class="flex w-full max-w-2xl flex-col items-center gap-lg">
<StatusState
kind="empty"
title="error_collection_modal-title"
description="error_collection_modal-subtitle"
/>
<ErrorReportingDetails />
<p class="text-center">{t('error_collection_modal-change_later')}</p>
<div class="flex w-full flex-wrap-reverse justify-between gap-md">
<TextButton
variant="ghost"
label="error_collection_modal-cancel"
onClick={() => answerConsent(ErrorReportingConsent.DENIED)}
/>
<TextButton
variant="primary"
label="error_collection_modal-confirm"
onClick={() => answerConsent(ErrorReportingConsent.ALLOWED)}
/>
</div>
</MotionRegion>
</div>
);
}
export function ConnectionGate(props: { children: JSX.Element }) {
const [shown, setShown] = createSignal(false);
function screen(): GateScreen | null {
if (client.status() !== 'connected') return 'connection';
if (!shown() && errorReportingSettings.state() !== 'fresh')
return 'connection';
if (needsConsentAnswer()) return 'consent';
return null;
}
createEffect(() => {
if (!screen()) setShown(true);
});
return (
<>
<Switch>
<Match when={screen() === 'connection'}>
<ConnectionScreen />
</Match>
<Match when={screen() === 'consent'}>
<ConsentScreen />
</Match>
</Switch>
<Show when={shown()}>
<div
class={cx('min-h-0 flex-1 flex-col', screen() ? 'hidden' : 'flex')}
>
{props.children}
</div>
</Show>
</>
);
}
+57
View File
@@ -0,0 +1,57 @@
import { ErrorBoundary, type JSX, Show } from 'solid-js';
import { MinimalTitleBar } from '@/app/title-bar';
import { lastReportId, reportError } from '@/domain/error-reporting';
import { t } from '@/lib/l10n';
import { TextButton } from '@/ui/button';
import { CopyButton } from '@/ui/copy-button';
import { StatusState } from '@/ui/status-state';
function CrashScreen(props: { eventId: string | undefined }) {
return (
<div class="flex h-screen flex-col bg-surface text-fg surface-sidebar">
<MinimalTitleBar />
<div class="flex min-h-0 flex-1 flex-col overflow-y-auto">
<StatusState
kind="error"
size="page"
title="crash_screen-title"
description="crash_screen-description"
action={
<div class="flex flex-col items-center gap-md">
<Show when={props.eventId}>
{(id) => (
<p class="font-mono select-text">
{t('crash_screen-event_id', { id: id() })}
</p>
)}
</Show>
<div class="flex flex-wrap justify-center gap-sm">
<Show when={props.eventId}>
{(id) => <CopyButton text={id()} label="crash_screen-copy" />}
</Show>
<TextButton
variant="primary"
label="crash_screen-reload"
onClick={() => window.location.reload()}
/>
</div>
</div>
}
/>
</div>
</div>
);
}
export function CrashBoundary(props: { children: JSX.Element }) {
return (
<ErrorBoundary
fallback={(error) => {
reportError(error, { tags: { boundary: 'app' } });
return <CrashScreen eventId={lastReportId()} />;
}}
>
{props.children}
</ErrorBoundary>
);
}
+27
View File
@@ -0,0 +1,27 @@
import { useLocation, useNavigate } from '@solidjs/router';
import { onCleanup } from 'solid-js';
import { setBackFallback } from '@/lib/back-stack';
function depth(): number {
const state: unknown = window.history.state;
if (typeof state !== 'object' || state === null || !('_depth' in state)) return 0;
return typeof state._depth === 'number' ? state._depth : 0;
}
// Router history under the overlays. Stops at the entry the app started on,
// so back never leaves the app.
export function useHistoryBack() {
const navigate = useNavigate();
const location = useLocation();
const start = depth();
onCleanup(
setBackFallback({
can: () => {
void location.key;
return depth() > start;
},
back: () => navigate(-1),
})
);
}
+40
View File
@@ -0,0 +1,40 @@
import type { Platform } from '@/lib/platform';
import { localCrossStorage } from '@/lib/storage';
import { saveWithBrowser } from './browser-save';
type AndroidBridge = NonNullable<Window['__ANDROID__']>;
function toBase64(blob: Blob) {
return new Promise<string>((resolve, reject) => {
const reader = new FileReader();
reader.onload = () => {
const url = reader.result as string;
resolve(url.slice(url.indexOf(',') + 1));
};
reader.onerror = () => reject(reader.error);
reader.readAsDataURL(blob);
});
}
export function createAndroidPlatform(android: AndroidBridge): Platform {
const settings = localCrossStorage('');
const cache = localCrossStorage('slimevr-cache/');
return {
kind: 'android',
os: 'android',
storage: (name) => (name === 'settings' ? settings : cache),
openUrl: (url) => void window.open(url, '_blank'),
saveFile: async (opts) => {
if (typeof android.saveFile !== 'function') return saveWithBrowser(opts);
const { blob, fileName } = opts;
android.saveFile(
fileName,
blob.type || 'application/octet-stream',
await toBase64(blob)
);
return 'saved';
},
systemInsets: { setBackground: (color) => android.updateInsetBackground(color) },
};
}
@@ -0,0 +1,16 @@
import { fileSave } from 'browser-fs-access';
import type { SaveOptions, SaveResult } from '@/lib/platform';
export async function saveWithBrowser({
blob,
fileName,
extensions,
}: SaveOptions): Promise<SaveResult> {
try {
await fileSave(blob, { fileName, extensions });
return 'saved';
} catch (e) {
if (e instanceof DOMException && e.name === 'AbortError') return 'canceled';
throw e;
}
}
@@ -0,0 +1,39 @@
import type { IElectronAPI } from '@slimevr/gui-shared';
import { describe, expect, it, vi } from 'vitest';
import { memoryCrossStorage } from '@/lib/platform-fake';
import { createPlatform } from './detect';
describe('createPlatform', () => {
it('resolves the OS before returning on electron', async () => {
const storage = memoryCrossStorage();
vi.stubGlobal('electronAPI', {
osStats: async () => ({ type: 'linux' }),
getStorage: async () => storage,
} as Partial<IElectronAPI>);
const platform = await createPlatform();
expect(platform.kind).toBe('desktop');
expect(platform.os).toBe('linux');
expect(platform.storage('settings')).toBe(storage);
expect(platform.window).toBeDefined();
});
it('picks android when the bridge is there', async () => {
vi.stubGlobal('__ANDROID__', {
isThere: () => true,
updateInsetBackground: () => {},
saveFile: () => {},
});
const platform = await createPlatform();
expect(platform.kind).toBe('android');
expect(platform.systemInsets).toBeDefined();
expect(platform.window).toBeUndefined();
});
it('falls back to web', async () => {
const platform = await createPlatform();
expect(platform.kind).toBe('web');
expect(platform.pickFile).toBeUndefined();
});
});
+11
View File
@@ -0,0 +1,11 @@
import type { Platform } from '@/lib/platform';
import { createAndroidPlatform } from './android';
import { createElectronPlatform } from './electron';
import { createWebPlatform } from './web';
export async function createPlatform(): Promise<Platform> {
if (window.electronAPI) return createElectronPlatform(window.electronAPI);
const android = window.__ANDROID__;
if (android?.isThere()) return createAndroidPlatform(android);
return createWebPlatform();
}
+63
View File
@@ -0,0 +1,63 @@
import type { IElectronAPI } from '@slimevr/gui-shared';
import type { Platform } from '@/lib/platform';
import { saveWithBrowser } from './browser-save';
export async function createElectronPlatform(api: IElectronAPI): Promise<Platform> {
const [os, settings, cache] = await Promise.all([
api.osStats(),
api.getStorage('settings'),
api.getStorage('cache'),
]);
return {
kind: 'desktop',
os: os.type,
storage: (name) => (name === 'settings' ? settings : cache),
openUrl: (url) => void api.openUrl(url),
saveFile: saveWithBrowser,
pickFile: async ({ mode, title, filters, defaultPath }) => {
if (mode === 'save') {
const res = await api.saveDialog({ title, filters, defaultPath });
return res.canceled || !res.filePath ? null : res.filePath;
}
const res = await api.openDialog({
title,
filters,
defaultPath,
properties: [mode === 'directory' ? 'openDirectory' : 'openFile'],
});
return res.canceled ? null : (res.filePaths[0] ?? null);
},
window: {
minimize: () => api.minimize(),
toggleMaximize: () => api.toggleMaximize(),
hide: () => api.hide(),
close: () => api.close(),
showDecorations: (on) => api.showDecorations(on),
},
folders: {
openLogs: () => api.openLogsFolder(),
openConfig: () => api.openConfigFolder(),
installDir: () => api.getInstallDir(),
},
guiLogs: {
onEvents: (cb) => api.onGuiLogEvents(cb),
files: () => api.guiLogFiles(),
read: (name) => api.readGuiLogFile(name),
},
log: (level, ...args) => api.log(level, ...args),
errorReporting: {
setState: (state) => api.setErrorReporting(state),
sendCrash: (kind) => api.sendCrashReport(kind),
},
discordPresence: { set: (presence) => api.setPresence(presence) },
translations: {
set: (translations) => api.setTranslations(translations),
override: () => api.i18nOverride(),
onCrowdinPopupClosed: (cb) => api.onCrowdinPopupClosed(cb),
},
github: { get: (request) => api.ghGet(request) },
steam: { isSteam: () => api.isSteam() },
keybindRecording: (on) => api.setKeybindRecording(on),
};
}
+16
View File
@@ -0,0 +1,16 @@
import type { Platform } from '@/lib/platform';
import { localCrossStorage } from '@/lib/storage';
import { saveWithBrowser } from './browser-save';
export function createWebPlatform(): Platform {
const settings = localCrossStorage('');
const cache = localCrossStorage('slimevr-cache/');
return {
kind: 'web',
os: 'unknown',
storage: (name) => (name === 'settings' ? settings : cache),
openUrl: (url) => void window.open(url, '_blank'),
saveFile: saveWithBrowser,
};
}
+25
View File
@@ -0,0 +1,25 @@
import type { RouteDefinition } from '@solidjs/router';
import { BodyPage } from '@/pages/body/body-page';
import { DesignPage } from '@/pages/design/design-page';
import { HomePage } from '@/pages/home/home-page';
import { onboardingRoute } from '@/pages/onboarding/onboarding-route';
import { settingsRoute } from '@/pages/settings/settings-route';
import { SetupPage } from '@/pages/setup/setup-page';
export const paths = {
home: '/',
body: '/body',
setup: '/setup',
onboarding: '/onboarding',
settings: '/settings',
design: '/design',
} as const;
export const routes: RouteDefinition[] = [
{ path: paths.home, component: HomePage },
{ path: paths.body, component: BodyPage },
{ path: paths.setup, component: SetupPage },
onboardingRoute(paths.onboarding),
settingsRoute({ base: paths.settings, wizard: paths.onboarding }),
...(import.meta.env.DEV ? [{ path: paths.design, component: DesignPage }] : []),
];
@@ -0,0 +1,8 @@
import { paths } from '@/app/routes';
import type { SearchDestination } from '@/pages/settings/quick-search/search-entries';
// Pages outside the settings that quick search lists. Add a row when a page's route lands.
export const searchDestinations: SearchDestination[] = [
{ path: paths.home, title: 'navbar-home' },
{ path: paths.onboarding, title: 'navbar-onboarding' },
];
+198
View File
@@ -0,0 +1,198 @@
import { useMatch } from '@solidjs/router';
import { createSignal, createUniqueId, Show } from 'solid-js';
import { ServerInfosRequestT, ServerInfosResponseT } from 'solarxr-protocol';
import DownloadIcon from '~icons/heroicons/arrow-down-tray-solid';
import SearchIcon from '~icons/heroicons/magnifying-glass-20-solid';
import QuestionIcon from '~icons/heroicons/question-mark-circle';
import CloseIcon from '~icons/material-symbols/close-rounded';
import MaximiseIcon from '~icons/material-symbols/crop-square-outline-rounded';
import MinimiseIcon from '~icons/material-symbols/minimize-rounded';
import GearIcon from '~icons/material-symbols/settings-rounded';
import SlimevrLogoIcon from '~icons/slime/slimevr-logo';
import { paths } from '@/app/routes';
import { serverUpdate } from '@/domain/app-update/release-check';
import {
DOCS_SITE,
LATEST_RELEASE_URL,
RELEASES_URL,
WINDOWS_DOWNLOAD_URL,
} from '@/lib/links';
import { platform, type WindowApi } from '@/lib/platform';
import { flushPrefs } from '@/lib/storage';
import { openQuickSearch } from '@/pages/settings/quick-search/quick-search';
import { defineResource } from '@/solarxr/resource';
import { TextButton } from '@/ui/button';
import { MotionRegion } from '@/ui/motion';
import { PlainLink } from '@/ui/plain-link';
import { Tooltip } from '@/ui/tooltip';
const serverInfos = defineResource({
request: () => new ServerInfosRequestT(),
response: ServerInfosResponseT,
});
const VERSION =
(__VERSION_TAG__ || __COMMIT_HASH__) + (__GIT_CLEAN__ ? '' : '-dirty');
function localIp() {
const ip = serverInfos.value()?.localIp;
return ip ? String(ip) : null;
}
function openUpdate() {
platform.openUrl(
platform.os === 'windows' ? WINDOWS_DOWNLOAD_URL : LATEST_RELEASE_URL
);
}
function WindowControls(props: { api: WindowApi }) {
async function close() {
await flushPrefs();
props.api.close();
}
return (
<>
<TextButton
variant="ghost"
size="small"
iconOnly
label="titlebar-minimize"
icon={<MinimiseIcon class="icon icon-sm" />}
onClick={() => props.api.minimize()}
/>
<TextButton
variant="ghost"
size="small"
iconOnly
label="titlebar-maximize"
icon={<MaximiseIcon class="icon icon-sm" />}
onClick={() => props.api.toggleMaximize()}
/>
<TextButton
variant="ghost"
size="small"
iconOnly
label="titlebar-close"
icon={<CloseIcon class="icon icon-sm" />}
onClick={close}
/>
</>
);
}
// Window controls and logo only, for screens outside the router (crash screen): no links,
// no server data, so it keeps working whatever broke
export function MinimalTitleBar() {
return (
<div class="flex h-titlebar shrink-0 items-center gap-sm px-sm">
<span class="flex h-5.5 w-12.25 translate-x-[2.17px] items-center justify-center text-special">
<SlimevrLogoIcon
aria-hidden="true"
style={{ '--icon-size': '49.66px' }}
/>
</span>
<span class="flex h-full items-center" data-electron-drag-region="true">
SlimeVR
</span>
<div class="h-full flex-1" data-electron-drag-region="true" />
<Show when={platform.window}>
{(api) => <WindowControls api={api()} />}
</Show>
</div>
);
}
export function TitleBar() {
const onSettings = useMatch(() => `${paths.settings}/*`);
const [versionEl, setVersionEl] = createSignal<HTMLAnchorElement>();
const commitTipId = createUniqueId();
return (
<MotionRegion
orientation="horizontal"
class="flex h-titlebar shrink-0 items-center gap-sm px-sm"
>
<div class="hidden shell:contents">
<PlainLink
to={paths.home}
label="navbar-home"
class="h-5.5 w-12.25 justify-center text-special"
>
<span class="flex translate-x-[2.17px]">
<SlimevrLogoIcon
aria-hidden="true"
style={{ '--icon-size': '49.66px' }}
/>
</span>
</PlainLink>
<span class="flex h-full items-center" data-electron-drag-region="true">
SlimeVR
</span>
</div>
<div class={onSettings() ? 'hidden shell:contents' : 'contents'}>
<PlainLink
ref={setVersionEl}
href={RELEASES_URL}
describedBy={commitTipId}
class="
h-5.5 shrink-0 rounded-lg bg-success/20 px-3 font-bold whitespace-nowrap text-success
select-text
"
>
{VERSION}
</PlainLink>
<Tooltip id={commitTipId} anchor={versionEl}>
{__COMMIT_HASH__}
</Tooltip>
</div>
<Show when={onSettings() && localIp()}>
{(ip) => (
<span class="rounded-md bg-special/20 px-sm font-bold text-special select-text">
{ip()}
</span>
)}
</Show>
<Show when={platform.window && serverUpdate()}>
<TextButton
variant="ghost"
size="small"
iconOnly
label="titlebar-update"
icon={<DownloadIcon />}
onClick={openUpdate}
/>
</Show>
<div class="h-full flex-1" data-electron-drag-region="true" />
<TextButton
variant="ghost"
size="small"
iconOnly
label="titlebar-search"
icon={<SearchIcon />}
onClick={openQuickSearch}
/>
<TextButton
to={paths.settings}
variant="ghost"
size="small"
iconOnly
label="titlebar-settings"
icon={<GearIcon />}
/>
<div class="hidden shell:contents">
<TextButton
variant="ghost"
size="small"
iconOnly
label="titlebar-docs"
icon={<QuestionIcon />}
onClick={() => platform.openUrl(DOCS_SITE)}
/>
</div>
<Show when={platform.window}>
{(api) => <WindowControls api={api()} />}
</Show>
</MotionRegion>
);
}
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d02c57155f8011a4363e242f3c195633450477b19ca5784ecf9b28df5401143
size 460668
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78bcd8987b35612739dfc8f556f6da497f689b26e96f5267b9a008ea9f46bd14
size 592038
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d54e1a99c1c228d004d2c94d3e1ed49f0cc14d7a471b71130fe89aa1518acc73
size 438548
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:76d5b68294770112ee3d97cddcf5751008df2cb3a372655e7611d4db231243fc
size 139344
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71fa8383b0fde387e91e88c0f95eb057ad62905df8ac78c89ade1627ad17b0b3
size 21360
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:76c1f559ecc11239e2f126eb76ae4c2e097a26f227a915de7127db4f61eafc40
size 27230
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13b7a9177af9378284c4eca264590deae6654b8b92c00d9ca948628c16dd118f
size 22590
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd98226b28ed3f68b5a6fa03dada951fc4326c56119d59fcad09fef261053446
size 155016
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fe7893c1645174eee669dfa9e7222c55638c8d498eb126a397a6df759c028919
size 28604
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c71f29809334563348f8f29cf41afeb8bedbbd5ba2875bf40621b011ac52d2d3
size 30678
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b00c02450258536066870137876f4fe1882d4e4b6fc4ab9f32ad46220ed5efa
size 52158
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:faabda8027d550b10723457a8274962b3b8d9eb906cbac0c73d20916e6633e95
size 13558
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8bd89b59087cc0f019ca2179fcc57d99811c327cdd6b1fd6e57705f7299aa2ae
size 14402
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:38aebca5266f47270dc60c4682022809e43676ac9b3dd4b5a586ce3157f8a8a0
size 99786
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b40baa0413d30f5df34eb7bd7e8867cb73905a098fd7398de67a2d60b3882070
size 152284
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31e6929b6176244f53e85088812f5cc4e7b94679039688f929b21b8e1bb985e7
size 94060
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e95853b79d711826f454fcc48e5d4ffd608a74e13aff2c7aa8628730362dd0f
size 154508
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6dc4d54b43844a85099941b64a9b92cba0f58ebe33dc61a48e12536f20174b3
size 130492
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cfe4aa1ed1422df92dd34952331cdf4dddcac4f6135b96bc1f5e112276deef5
size 46890
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a9f7a0b082efc151cf0147a6e2194ce686a86751a7d168f5052fef5ef2e9890
size 20458
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7b2bf36937133e653a83f2523e51cb40f372622a347c19fef94a2e45ee2f913
size 67850
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fce09373239c8f1781b9f8deba8b9fe7b70b0b7acdd1ae7de82841c44507bf83
size 70686
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:18789a9b9bdadb09a6e016ca998cceace5d2ac371ce9f21b094d4e26f741b20d
size 58344
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:305526056be521e08af825f81c14461008137656c8d5ae2cde278958071c5d19
size 27460
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c40f36772015ce29eb6916e08b2fb3735b837dba4a6d0de253fc879ffb5119a
size 92960
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78530533994a3515947123a5fb9d495c5c18698fc0a7894e3d6f5ae68bf8683c
size 241652
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37a2e21db039c707632467bea72ceada8fbbe89f6dcf71efa90761f6efd7df4c
size 243576
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63c95f09e4ad1b2ad33c008c18344cdbbacfbc923f0817ce999aed27e2e621f3
size 226052
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb48ab063b7628e0236ec90982301a0f1b34a8f04e74e6e01944834f857ed5e1
size 308426
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd154cda0e1dd0258e6ac7f945b9e965b586ce110c1476e7765d4f486e9c129d
size 224468
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:448bda8904bb72de261f035ef23ad90bad33f3ced17180dc1c8a50391c6c587c
size 229804
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:963bc302f6a88d613c4907d2ece6802198b5e2d7147360ce9f5d9024e014c02d
size 219678
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:771d3c1222073db09ea45a4afe4fd79e18a16592733eb73e8614865d4f442114
size 371974
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57ca3e79eb5dadc9861462f54e0bdf74e96885b8dcc961bb134de2f8c383a21c
size 174124
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c369d04af7f341fe50811b74532962f02048b46a69690d0ebbbc59123e674c99
size 302760
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90abbb29202768f5e12d2bdeaa020b8bd831faf39decf309ae714d6ea0196fa5
size 268014
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ec384b4afdf344eefe66674e675a3e7dbc34f1e9212c2a7d21ec1426bec7238
size 35321
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4691ba3c289538e2578f7e366421031963fae6d593418fb8fb94b8ed0bd53453
size 27421
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8180983bcdd98afc329b23b8fbe549d448b861e625926f19cfef1f1d17e96713
size 183196
Loaded 100 of 1691 files, more files were not shown because too many files have changed in this diff. Show more