Reezonate / EasyOffset

Beat Saber mod for easy controller adjustments
77 stars 13 forks source link

Error When Saving Config - Floating Point Values Are Wrong #27

Open dollfacer opened 3 months ago

dollfacer commented 3 months ago

When saving the config there appears to be a bug with floating point values. This appears to cause a problem in the gui where it won't let you adjust the values. Here is my config as an example:

{
  "Version": "2.0",
  "UnixTimestamp": 1723749789,
  "ControllerType": "Quest 2",
  "LeftSaberPivotPosition": {
    "x": -3.7,
    "y": -0.5000005,
    "z": -14.999999
  },
  "LeftSaberRotationEuler": {
    "x": -3.503479,
    "y": 22.1084557,
    "z": -1.10534668
  },
  "LeftSaberZOffset": 15.5,
  "LeftSaberHasReference": true,
  "LeftSaberReference": {
    "x": 0.1441531,
    "y": -0.129799515,
    "z": 0.6141752,
    "w": -0.764980435
  },
  "RightSaberPivotPosition": {
    "x": 4.4,
    "y": -0.7000003,
    "z": -14.999999
  },
  "RightSaberRotationEuler": {
    "x": -1.94763184,
    "y": -27.3239746,
    "z": 0.7074961
  },
  "RightSaberZOffset": 15.5,
  "RightSaberHasReference": true,
  "RightSaberReference": {
    "x": -0.15724,
    "y": -0.1769721,
    "z": 0.5899013,
    "w": 0.7719989
  }
}
dollfacer commented 3 months ago

Here is a video demonstrating the problem in game.

https://youtu.be/1j8lPrE6WBk