Skip to content

Commit

Permalink
engine resonance (#2)
Browse files Browse the repository at this point in the history
* slight refactor, stabilize wheel initialization, add engine resonance simulation

* Update README.md

* fix typo

* fix wheel deinitialization
  • Loading branch information
eddieavd authored Dec 6, 2024
1 parent c8292de commit 240d850
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 85 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
cmake_minimum_required( VERSION 3.21 )

project( fffb VERSION 0.0.2 )
project( fffb VERSION 0.0.3 )

set( CMAKE_CXX_STANDARD 23 )
set( CMAKE_CXX_STANDARD_REQUIRED True )

set( CMAKE_OSX_ARCHITECTURES "x86_64" )

add_compile_options( -Wall -Wextra -pedantic -Werror -fno-exceptions -O3 -DUTI_RELEASE )
add_compile_options( -Wall -Wextra -pedantic -Werror -fno-exceptions -fno-rtti -O3 -DUTI_RELEASE )

add_library( fffb SHARED plugin.cpp )

Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ to interact with the wheel, i use `flt`, a small library i wrote for interacting

## usage

### prebuilt binaries

binaries are available on the [releases page](https://github.com/eddieavd/fffb/releases)
simply copy `libfffb.dylib` to the plugin directory
(plugin directory should be next to the game's executable, default for ats would be `~/Library/Application\ Support/Steam/steamapps/common/American\ Truck\ Simulator/American\ Truck\ Simulator.app/Contents/MacOS/plugins`)

### building from source

to build `flt` and `fffb`:

```bash
Expand All @@ -49,10 +57,11 @@ cp libfffb.dylib ~/Library/Application\ Support/Steam/steamapps/common/American\
now you can launch ets2/ats.
upon launch, you'll see the advanced sdk features popup, hit OK and the plugin initialization starts.
if the wheel leds start flashing and the wheel turns to the right and back, wheel initialization was successful and you should be good to go!
however, wheel initialization is a bit unstable so if you don't see the leds flash, reload the plugin by running `sdk reinit` in the in-game console
if you don't see the leds flash, reload the plugin by running `sdk reinit` in the in-game console

## disclaimer

should work on any apple silicon mac, not tested on x86_64
should work on any apple silicon mac
since scs requires the binaries to be x86_64, it might work out of the box for x86_64 macs (untested as of now)
works only with Logitech G923 PS
the ffb protocol is similar on other logitech wheels so it should be easy to extend support, but i don't have any other wheels and don't feel like writing code i can't test
2 changes: 1 addition & 1 deletion include/flt/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <mach/mach_error.h>

#define FLT_VERSION "0.0.2"
#define FLT_VERSION "0.0.3"


namespace flt
Expand Down
Loading

0 comments on commit 240d850

Please sign in to comment.