0 of 0

File information

Last updated

Original upload

Created by

Buttery

Uploaded by

Butterybunzzz

Virus scan

Safe to use

Tags for this mod

85 comments

  1. CmdrSpartakus
    CmdrSpartakus
    • member
    • 0 kudos
    I think this no longer works with the newest version. You can use this one instead:
    https://www.nexusmods.com/battletech/mods/657/?tab=description&jump_to_comment=107650093
  2. GreatSephiroth
    GreatSephiroth
    • member
    • 10 kudos
    does this mod work retroactively? Like installing it and loading it mid play, or do you have to start a fresh file for it to work properly?

    Honestly they fucked up so badly forcing the mission difficulty of random missions to go up with every campaign mission you finished. Like who came up with the idea and who green lighted it? It's a terrible idea.
  3. jwvanderbeck
    jwvanderbeck
    • supporter
    • 94 kudos
    This does not work "out of the box" with the latest version. Every planet basically gets 1/2 skull difficulty.

    However it is possible to get it working. JamesDyk below got the ball rolling, but didn't quite have it right. I have taken his Powershell script and made some small modifications to get it working for the latest version.

    The old way, and the way this mod works, is to just set a "Difficulty" value in the json. The new way is two things. 1) "Difficulty" has changed to "DefaultDifficulty" and 2) There is now a list of varying difficulties depending on which game mode you are playing, IE The Campaign or Career. In the vanilla game, the Campaign difficulty is set to -1 which means "Dynamic", in otherwords based on your story progress.

    To update this mod to work, you simply need to make these changes, setting the first entry in the new list to the difficulty you want. As I said, I have modified the Powershell script JamesDyk suggested with these updates. Running the script will update the json files to the new format, and set the difficulties as the original mod author intended. Note however that the Career mode difficulty will also be set to these same values, which in most cases is probably not what you want. As you are most likely using this mod for Campaign anyway this is no big deal, but I suggest removing the mod when you want to play the Career mode.

    1) Open a text or code editor and paste the code below
    2) Save it as "update.ps1" in "BATTLETECH\Mods\PlanetDifficultyVariety\StreamingAssets\data\starsystem"
    3) Right click the file and Run with Powershell
    4) You will most likely need to travel to a new planet for it to update, and it may only update on new planets you have never visited

    ---------------------------=[ COPY CODE BELOW THIS LINE ]=--------------------------------
    $configFiles = Get-ChildItem . *.json -rec
    foreach ($file in $configFiles)
    {
    $content = Get-Content $file.PSPath
    $dif = $content -replace "\D+","" | Out-String
    $dif = $dif -replace "\s+",""
    $difInt = [int]$dif

    (Get-Content $file.PSPath) |
    Foreach-Object { $_ -replace "Difficulty", "DefaultDifficulty" } |
    Set-Content $file.PSPath

    (Get-Content $file.PSPath) |
    Foreach-Object { $_ -replace "}",",""DifficultyList"": [`n $difInt,`n $difInt`n ]`n}" } |
    Set-Content $file.PSPath
    }
    Read-Host -Prompt "Editing done. Press Enter to exit"
    1. fortunepaw
      fortunepaw
      • premium
      • 0 kudos
      Hi, is there any update to the powerscript for 1.9.1? I ran it but now every planet only get 1/2 skull contracts.
    2. jwvanderbeck
      jwvanderbeck
      • supporter
      • 94 kudos
      @fortunepaw
      Sorry I'm not even playing BT at the moment, so this worked for the latest version at the time I did it. Beyond that I have no idea. Unless they changed the file format yet again though I would have expected it to still work.
    3. noleafcloverx
      noleafcloverx
      • member
      • 0 kudos
      This fix....kinda works. On the Star Map all contracts still show as 1/2 skull but when you get in they are fairly varied. Wouldn't it be easier just to update the mod then go through all this extra work around?
    4. jwvanderbeck
      jwvanderbeck
      • supporter
      • 94 kudos
      Probably, but it's not my mod :)
  4. JamesDyk
    JamesDyk
    • supporter
    • 3 kudos
    So... I did some digging.

    Apparently they changed how difficulty for planets is set in the files.
    The original way was simple adjusting the following setting:

    "Difficulty": 0,

    but the new files contain these settings:

    "DefaultDifficulty": 0,
    "DifficultyList": [
    0,
    6
    ],
    "DifficultyModes": [
    "KAMEA_CAMPAIGN",
    "CAREER"
    ],

    I don't exactly know what "DifficultyModes" does, but for the rest you can go to \Mods\PlanetDifficultyVariety\StreamingAssets\data\starsystem and adjust every single file accordingly.
    I tried it, and (for example) replacing

    "Difficulty": 2,

    with

    "DefaultDifficulty": 2,
    "DifficultyList": [
    1,
    3
    ],

    Which seems to set the Difficulty at 2.
    (I'm not exactly sure what DifficultyList, I just assumed having it somewhere around the Default is reasonable)
    This sets the planet to somewhere around level 2 difficulty, but the adjusting doesn't show on the starmap, and it's honestly beyond me how to fix that.

    For anyone too lazy to edit those files by hand (like me), I wrote a small powershell script (just create a file in \Mods\PlanetDifficultyVariety\StreamingAssets\data\starsystem, rename it to whatever you want with the ending ".ps1", fill it with my code and then right-click -> run as powershell):
    1. JamesDyk
      JamesDyk
      • supporter
      • 3 kudos
      $configFiles = Get-ChildItem . *.json -rec
      foreach ($file in $configFiles)
      {
      $content = Get-Content $file.PSPath
      $dif = $content -replace "\D+","" | Out-String
      $dif = $dif -replace "\s+",""
      $difInt = [int]$dif
      $difIntLow = ($difInt - 1)
      $difIntHigh = ($difInt + 1)

      (Get-Content $file.PSPath) |
      Foreach-Object { $_ -replace "Difficulty", "DefaultDifficulty" } |
      Set-Content $file.PSPath

      (Get-Content $file.PSPath) |
      Foreach-Object { $_ -replace "}"," ""DifficultyList"": [`n $difIntLow,`n $difIntHigh`n ],`n}" } |
      Set-Content $file.PSPath
      }
      Read-Host -Prompt "Editing done. Press Enter to exit"
    2. Jaricho7
      Jaricho7
      • premium
      • 0 kudos
      You don't suppose that the new entry parameters might be showing variable entries for the planet in question depending on what game mode is being played?
      Like...
      "DefaultDifficulty": 0, "planet difficulty when encountered under game modes that are not Campaign or Career"
      "DifficultyList": [
      0,"1st difficulty variable to apply or - "
      6 "2nd variable"
      ],
      "DifficultyModes": [
      "KAMEA_CAMPAIGN","game mode to apply 1st variable"
      "CAREER" "game mode " " 2nd variable"
      ],
  5. Rationalinsanity
    Rationalinsanity
    • member
    • 0 kudos
    I don't suppose that there is any chance that this will be updated for the latest versions?
  6. Phantus13
    Phantus13
    • member
    • 0 kudos
    Does this work with 1.7?
  7. ouso
    ouso
    • member
    • 0 kudos
    Has anyone run into the problem where the modified system skulls don't show up? I'm mid-campaign and every system still shows as .5-1 skull. I'm using the ModTek version, and the modTek log shows that the starsystemdefs are getting properly merged, but the actual system difficulties don't change from the default.

  8. BinakAlgo
    BinakAlgo
    • member
    • 9 kudos
    Anyone knows if this mod is already included in other mod packs?
  9. tvpablo
    tvpablo
    • member
    • 0 kudos
    Any updates for "Flashpoint" expected?
  10. Torm5151
    Torm5151
    • member
    • 0 kudos
    Does the mod work with a currently up to date game? Thanks.