GithubHelp home page GithubHelp logo

edforcefeedback's Introduction

EDForceFeedback

Elite Dangerous Force Feedback with a Microsoft Force Feedback 2 Joystick (MSFFB2)

Description

EDForceFeedback.exe is a console program that runs during a Elite Dangerous session. It watches the ED log files and responds to game events by playing a force feedback editor (.ffe) file.

It has been tested with the following devices:

Microsoft XBox One Controller running the XInput modification

Microsoft Sidewinder Force Feedback 2 joystick.

Saitek Cyborg 3D Force Stick

Usage

  1. Connect your joystick/gamepad and run the EDForceFeedback.exe program.
  2. Start Elite Dangerous
  3. In-game events like deploy/retract hardpoints and deploy/retract landing gear will send the configured forces to the joystick.

Configuration

The settings.json file contains the device and the forces that will be played when an event occurs. Multiple different devices can be configured with different effects for each device.

Included in the package are several different examples of different configurations.

Devices
"Devices": [
    {
      "ProductGuid": "02dd045e-0000-0000-0000-504944564944",
      "ProductName": "Controller (Xbox One For Windows)",

      "StatusEvents": [ 
      ...

Each device and the configured effects for the device has it's own section. If the device guid or product name are unknown, you may attempt to use the values the program outputs for the connected devices while it is initializing.

ProductGuid & ProductName

Both values are searched against the list during initialization. If either is found the device is selected.

Autocenter

The Microsoft Force Feedback device sometimes turns off the autocenter value after playing an effect. Setting this value to true, resets the centering spring.

ForceFeedbackGain

This value is the strenth of the effects. The valid range is 0-10000.

StatusEvents

Each event can have a different force played for the on or off state. The on/off state for the "Docked" event is the following events "Status.Docked:True" happens when the ship is docked and "Status.Docked:False" happens when the ship takes off.

{
	"Event": "Status.Docked:True",
	"ForceFile": "Dock.ffe",
	"Duration": 2000
}
Event

The "Event" Field
The EliteAPI StatusEvent name and state to respond to.
The format is: Status.StatusEventName:[True or False]

ForceFile

The "ForceFile" Field
The name of the force file (.ffe) to play when this event is detected. The force files can be found under the .\Forces folder. There is a force file editor included under the .\FFUtils folder. See the Creating And Editing forces section for more information.

Duration

The "Duration" Field
This is how long the force will be played. The value is in milliseconds (1 Second = 1000 milliseconds). The forces will be stopped after this amount of time even if the .ffe file is configured to play longer.

Additional Events

The settings.json json file only has a few of the status events defined. Additional status events are provided by the EliteAPI and can be added to the StatusEvents array in the settings file. During game play, the console window will output the names of the events that were detected. You can use these names to add additional forces.

Creating and Editing Forces

On startup all .ffe files in the .\Forces folder will be loaded. To create new forces use fedit.exe and save the file in the .\Forces folder.

.\FFUtils

These are Microsoft utilities to edit and configure force feedback devices. They may get removed from this location. They can be found in various locations on the internet. They were part of the DirectX DirectInput developer packages.

csFeedback.exe
fedit.exe
FFConst.exe
fedit.exe

This utility allows you to build your own custom forces. For an example, open the Cargo.ffe file. The forces can overlay and played before, after, and simultaneously to create complex movement and effects.

Enjoy! - Bob (CMDR Axe_)

edforcefeedback's People

Contributors

bobhelander avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.