Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Author Topic: Error after changing battle Size in settings.json  (Read 433 times)

Vanquisher3343

  • Ensign
  • *
  • Posts: 4
    • View Profile
Error after changing battle Size in settings.json
« on: February 17, 2025, 11:58:42 AM »

This is the code that is saying is wrong:
"maxBattleSize":900, in supplies-to-recover. max value for settings slider
All I did was highlight the 400 and change it to 900. It says "Expected a ':' after a key at 17244 [character 2 line 850]

Does anyone know how to fix this? Or if I can't, any other way to increase the max battle size without messing with the code?
« Last Edit: February 17, 2025, 12:18:09 PM by Vanquisher3343 »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26090
    • View Profile
Re: Error after changing battle Size in settings.json
« Reply #1 on: February 17, 2025, 12:54:16 PM »

I think you removed a # and the line should be like this:
"maxBattleSize":900, #in supplies-to-recover. max value for settings slider

I'd recommend backing up your settings.json before making changes in the future! That'd let you check and see exactly what change you've made and make this sort of thing easier to figure out.
Logged

Vanquisher3343

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Error after changing battle Size in settings.json
« Reply #2 on: February 17, 2025, 01:00:38 PM »

Thank you, now it is saying line 866 is an issue, I didn't change that at all though.

# the smaller of these two values is used
   "maxDisengageSize":900 # maximum number of supplies-to-recover cost before a fleet can't participate in a disengage-style battle
   "maxDisengageFraction":0.4, # maximum number of supplies-to-recover before a fleet can't disengage, as fraction of current battlesize.
   "showDisengageStatusInFleetScreen":true,

I am very confused.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26090
    • View Profile
Re: Error after changing battle Size in settings.json
« Reply #3 on: February 17, 2025, 01:07:43 PM »

You need a comma after the 900 on the first line. Details are *super* important when editing files like this, you have to pay close attention :)
Logged

Vanquisher3343

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Error after changing battle Size in settings.json
« Reply #4 on: February 17, 2025, 01:12:31 PM »

Ahh I see. Thank you. This is the first time I have ever looked at a line of code so these mistakes should have been suspected :/
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26090
    • View Profile
Re: Error after changing battle Size in settings.json
« Reply #5 on: February 17, 2025, 01:14:22 PM »

Haha, no worries - but yeah something like a missing or an extra comma is going to mess it up!
Logged