JDFixer icon indicating copy to clipboard operation
JDFixer copied to clipboard

Support for multiple "Automated Preferences"

Open HalloTheEngineer opened this issue 7 months ago • 1 comments

Support for multiple "Automated Preferences"

Hi, as I wanted to get into BS mod development and needed an option to add multiple preferred values for JD and RT, I put this little modification together. Basically, I added nested list support to the config and corresponding changes to the in-game BSML handling. Old config values stored in preferredValues or rt_preferredValues are automatically migrated to the new config entries (preferredValues_jd and preferredValues_rt)

Hope this is useful to someone :)

Config example

{
  "preferredValues_jd": [
      [
        {
          "njs": 25.5,
          "jumpDistance": 21.5
        },
       {
          "njs": 22.5,
          "jumpDistance": 19.5
        }
      ],
      [
        {
          "njs": 18,
          "jumpDistance": 16.2
        },
        {
          "njs": 17,
          "jumpDistance": 15.8
        }
      ]
    ],
  "preferredValues_rt": [
    [
      {
        "njs": 16.0,
        "reactionTime": 800.0
      }
    ],
    [
      {
        "njs": 16.0,
        "reactionTime": 820.0
      }
    ],
    [
      {
        "njs": 16.0,
        "reactionTime": 100.0
      }
    ]
  ],
  "preferredValues": null, //migrated to entry above
  "rt_preferredValues": null //migrated to entry above
}

Screenshots:

image image [other reaction time configs] image

HalloTheEngineer avatar May 11 '25 19:05 HalloTheEngineer

Custom Campaigns is not working again in 1.40.4, hence I moved the mod to a sub-folder. <HintPath>$(BeatSaberDir)\Plugins\_unused\Custom Campaigns.dll</HintPath>

HalloTheEngineer avatar May 11 '25 19:05 HalloTheEngineer