From a730096e86a332a5bfc08230763f960194ba253e Mon Sep 17 00:00:00 2001 From: Sebastian Noe Date: Mon, 1 Sep 2025 01:57:41 +0000 Subject: [PATCH] Provide instructions to set up monocoque (#24) * add consolidated instructions on how to run monocoque * reference config test * reference user setup guide --------- Co-authored-by: Sebastian Noe --- HOW-TO-USE.md | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 42 insertions(+) create mode 100644 HOW-TO-USE.md diff --git a/HOW-TO-USE.md b/HOW-TO-USE.md new file mode 100644 index 0000000..3410b97 --- /dev/null +++ b/HOW-TO-USE.md @@ -0,0 +1,39 @@ +# Monocoque User Setup Guide + +## Required Packages / Software +* build [monocoque](https://github.com/Spacefreak18/monocoque) e.g. in `~/monocoque` - follow instructions from repo +* build [simd](https://github.com/Spacefreak18/simapi/tree/master/simd) e.g. in `~/simapi/simd` - follow instructions from repo +* build [simshmbridge](https://github.com/spacefreak18/simshmbridge) e.g. in `~/simshmbridge` - follow instructions from repo + +## Configure SIMD & Monocoque +* Create a `simd` Config in `~/.config/simd/simd.config` - [use example](https://github.com/Spacefreak18/simapi/blob/master/simd/conf/simd.config) + * no changes required to the example file +* create Monocoque config in `~/.config/monocque/monocoque.config` - [example](https://github.com/Spacefreak18/monocoque/blob/master/conf/monocoque.config) + * Adapt the config to your needs, remove unused entries + * [Documentation for Bass Shaker Config](https://spacefreak18.github.io/simapi/shakers) + * Test your config as described in the [README](README.md#testing) +## Steam & Game Config +### Steam +* Adapt Steam Launch Commands from [simshbridge](https://github.com/spacefreak18/simshmbridge?tab=readme-ov-file#basic-mapping-examples) + * to use with `simd` you need to `SIMD_BRIDGE_EXE` to the launch command like `SIMD_BRIDGE_EXE=~/git/simshmbridge/assets/pcars2bridge.exe %command% & sleep 5 && ~/.steam/steam/steamapps/common/Proton\ 6.3/proton run ~/git/simshmbridge/assets/pcars2bridge.exe` + +### Game specific settings +#### Automobilista 2 (AMS2) +* In Games like `Automobilista 2` activate the `Shared Memory` Setting and make sure to set the Protocal to `Project CARS 2`. ![System Settings in AMS2](https://static.wixstatic.com/media/910f3b_adabfa94a57944cca33e488972534fdd~mv2.png/v1/fill/w_964,h_374,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/game_setup_ams2_1.png) Shared Memory Settings in AMS2 + * Restart the Game after changing these Settings! +#### Assetto Corsa & Assetto Corsa Competizione (ACC) +* Assetto Corsa & ACC do not need any additional settings and should work out of the box + +## Run everything, but in the right order +* first start `simd` like `~/simapi/simd/build/simd --no-daemon -vv` + * this will likely fail, so you'll need to add `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib` or `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64` in front of the command like `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64 ~/simapi/simd/build/simd --no-daemon -vv` +* now start `monocoque` like `~/monocoque/build/monocoque play` +* finally start the Game you want to play from Steam + +## Troubleshooting + +* make sure `simd` is running and after you start a game, the CLI output confirms the game is detected +* make sure the bridge application starts e.g. with `ps aux|grep pcars2bridge.exe` before the game starts +* see if you have the path `/dev/shm/acpmf_physics` (for ACC) and/or `/dev/shm/$pcars2$` for AMS2 +* when `simd` recognizes the game, see if `monocoque` shows `RPM, Gear..` and other Car Metrics once you start a game + * if `simd` recognozies the game, but `monocoque` does not show any data, doublecheck the [Game Settings](#steam--game-config) to see if `Shared Memory` is activated \ No newline at end of file diff --git a/README.md b/README.md index e2eff44..062b25c 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,9 @@ make # Make sure serial connection is the same as on the host pc and it have th ## Getting car tyre diameter for rumbles to work - User needs to start monocoque and drive the new car straight at 70 kmph and then stop steering, acc or brake input +## User Setup Guide +See the dedicated [How To](HOW-TO-USE.md) for detailed instructions to set up and run 'monocoque` + ## Testing ``` ./monocoque test -vv # Make sure that ~/.config/monocque/monocoque.config only contains the devices you have connected.