bobhelander / EDForceFeedback

Elite Dangerous Force Feedback
MIT License
33 stars 11 forks source link

Auto-centering stops working after overheat damage #2

Closed Tabby closed 4 years ago

Tabby commented 4 years ago

This program is brilliant, but I've found an issue with the auto-centering in that if your ship overheats and takes damage from it, the auto-center stops working until the EDFF program is restarted. Relevant log output below

Event {
  "timestamp": "2019-12-20T11:53:01Z",
  "event": "ReceiveText",
  "From": "",
  "Message": "$COMMS_entered:#name=Sifi CJ-K c8-16;",
  "Message_Localised": "Entered Channel: Sifi CJ-K c8-16",
  "Channel": "npc"
}
Event {
  "timestamp": "2019-12-20T11:53:01Z",
  "event": "FSDJump",
  "StarSystem": "Sifi CJ-K c8-16",
  "SystemAddress": 4478879175498,
  "StarPos": [
    -1792.375,
    38.6875,
    575.4375
  ],
  "SystemAllegiance": "",
  "SystemEconomy": "$economy_None;",
  "SystemEconomy_Localised": "None",
  "SystemSecondEconomy": "$economy_None;",
  "SystemSecondEconomy_Localised": "None",
  "SystemGovernment": "$government_None;",
  "SystemGovernment_Localised": "None",
  "SystemSecurity": "$GAlAXY_MAP_INFO_state_anarchy;",
  "SystemSecurity_Localised": "Anarchy",
  "Population": 0,
  "Body": "Sifi CJ-K c8-16 A",
  "BodyID": 2,
  "BodyType": "Star",
  "JumpDist": 17.539,
  "FuelUsed": 1.896885,
  "FuelLevel": 3.025368
}
Event {
  "timestamp": "2019-12-20T11:53:02Z",
  "event": "Music",
  "MusicTrack": "Supercruise"
}
StatusEvent Status.Scooping:True
StatusEvent Status.FsdCharging:False
StatusEvent Status.InDanger:True
Warning ─  There was an error while trying to connect to Discord Rich Presence pipe -1. Make sure Discord is running.
StatusEvent Status.FsdCooldown:True
Event {
  "timestamp": "2019-12-20T11:53:07Z",
  "event": "Scan",
  "ScanType": "AutoScan",
  "BodyName": "Sifi CJ-K c8-16 A",
  "BodyID": 2,
  "Parents": [
    {
      "Null": 1
    },
    {
      "Null": 0
    }
  ],
  "StarSystem": "Sifi CJ-K c8-16",
  "SystemAddress": 4478879175498,
  "DistanceFromArrivalLS": 0.0,
  "StarType": "K",
  "Subclass": 1,
  "StellarMass": 0.890625,
  "Radius": 661985728.0,
  "AbsoluteMagnitude": 5.584717,
  "Age_MY": 6762,
  "SurfaceTemperature": 4978.0,
  "Luminosity": "Va",
  "SemiMajorAxis": 565160704.0,
  "Eccentricity": 0.00433,
  "OrbitalInclination": -12.286366,
  "Periapsis": 329.231354,
  "OrbitalPeriod": 29885.923828,
  "RotationPeriod": 341307.0625,
  "AxialTilt": 0.0,
  "WasDiscovered": true,
  "WasMapped": false
}
Event {
  "timestamp": "2019-12-20T11:53:07Z",
  "event": "Scan",
  "ScanType": "AutoScan",
  "BodyName": "Sifi CJ-K c8-16 B",
  "BodyID": 3,
  "Parents": [
    {
      "Null": 1
    },
    {
      "Null": 0
    }
  ],
  "StarSystem": "Sifi CJ-K c8-16",
  "SystemAddress": 4478879175498,
  "DistanceFromArrivalLS": 5.373246,
  "StarType": "M",
  "Subclass": 0,
  "StellarMass": 0.484375,
  "Radius": 402934944.0,
  "AbsoluteMagnitude": 7.971848,
  "Age_MY": 6762,
  "SurfaceTemperature": 3683.0,
  "Luminosity": "Va",
  "SemiMajorAxis": 1039166464.0,
  "Eccentricity": 0.00433,
  "OrbitalInclination": -12.286366,
  "Periapsis": 149.231354,
  "OrbitalPeriod": 29885.923828,
  "RotationPeriod": 190741.078125,
  "AxialTilt": 0.0,
  "WasDiscovered": true,
  "WasMapped": false
}
StatusEvent Status.FsdCooldown:False
Event {
  "timestamp": "2019-12-20T11:53:13Z",
  "event": "HeatWarning"
}
StatusEvent Status.Overheating:True
Effect VibrateSide.ffe complete
bobhelander commented 4 years ago

I have yet to find a property or state that allows me to know when the auto centering springs are off. I have added a device reset after a force plays to make sure the centering is working when the force is done playing. This will cause overlapping forces to stop playing when the first force completes. I will continue to search for a better solution. Bob