Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Custom Resolutions  (Read 7252 times)

cqsolace

  • Ensign
  • *
  • Posts: 15
    • View Profile
Custom Resolutions
« on: December 09, 2015, 12:07:00 PM »

Hi,

is there a way to create custom resolutions (in some config file or otherwise)? I'm hoping to have something like a 1440x1600 resolution windowed.

Thanks!
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24146
    • View Profile
Re: Custom Resolutions
« Reply #1 on: December 09, 2015, 12:18:39 PM »

Hi - open up starsector-core/data/config/settings.json, and there you should see this:

#"resolutionOverride":"1024x768",

Uncomment that line (by removing the # from the start) and set the resolution to whatever you want. If your graphics drivers support it (in practical terms, this may mean it doesn't exceed the display resolution in either dimension), it should work.
Logged

cqsolace

  • Ensign
  • *
  • Posts: 15
    • View Profile
Re: Custom Resolutions
« Reply #2 on: December 09, 2015, 12:25:29 PM »

Works perfectly, thank you very much!
Logged

Flow_Rate

  • Ensign
  • *
  • Posts: 10
    • View Profile
Re: Custom Resolutions
« Reply #3 on: September 08, 2019, 07:24:41 AM »

Hi Alex,

Apologies for bumping an old thread, but it's directly related. NVIDIA released integer scaling recently and so I wanted to try a N/2 reduction of my ultrawide monitor resolution (3440x1440 -> 1720x720). I used the setting you mentioned in this thread but got the error message:

Code
6989 [Thread-4] ERROR com.fs.graphics.L  - Exiting - exception in LWJGL initialization
org.lwjgl.LWJGLException: Failed to set display mode (-2).
at org.lwjgl.opengl.WindowsDisplay.nSwitchDisplayMode(Native Method)
at org.lwjgl.opengl.WindowsDisplay.switchDisplayMode(WindowsDisplay.java:358)
at org.lwjgl.opengl.Display.switchDisplayMode(Display.java:359)
at org.lwjgl.opengl.Display.create(Display.java:825)
at org.lwjgl.opengl.Display.create(Display.java:757)
at com.fs.graphics.L.Ò00000(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
6992 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Exiting - exception in LWJGL initialization
java.lang.RuntimeException: Exiting - exception in LWJGL initialization
at com.fs.graphics.L.Ò00000(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.lwjgl.LWJGLException: Failed to set display mode (-2).
at org.lwjgl.opengl.WindowsDisplay.nSwitchDisplayMode(Native Method)
at org.lwjgl.opengl.WindowsDisplay.switchDisplayMode(WindowsDisplay.java:358)
at org.lwjgl.opengl.Display.switchDisplayMode(Display.java:359)
at org.lwjgl.opengl.Display.create(Display.java:825)
at org.lwjgl.opengl.Display.create(Display.java:757)
... 4 more

Same error when trying a more typical resolution of 1280x720.

Trying either resolution windowed works just fine, error is only when fullscreen.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24146
    • View Profile
Re: Custom Resolutions
« Reply #4 on: September 08, 2019, 08:09:36 AM »

That error means that your graphics driver or display does not support that resolution in fullscreen mode.

(The game also doesn't support anything below 768 vertical, but that's not the issue here - it would run, but the UI wouldn't fit.)
Logged

Flow_Rate

  • Ensign
  • *
  • Posts: 10
    • View Profile
Re: Custom Resolutions
« Reply #5 on: September 08, 2019, 10:32:49 AM »

Gotcha, thanks for the quick reply!

Oddly, my graphics driver and monitor will run with desktop set at 1280x720 just fine but I still couldn't start the game in that fullscreen res.
« Last Edit: September 08, 2019, 10:35:05 AM by Flow_Rate »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24146
    • View Profile
Re: Custom Resolutions
« Reply #6 on: September 08, 2019, 10:36:57 AM »

Hmm - 1280x720 is not the same as 1720x720, though. Also, it seems possible that it might not be supported for OpenGL only.
Logged

Flow_Rate

  • Ensign
  • *
  • Posts: 10
    • View Profile
Re: Custom Resolutions
« Reply #7 on: September 08, 2019, 11:55:57 AM »

Right, I was trying both. Since you pointed out that the UI won't fit, it's sort of a moot point, I guess. Can you remind me if there's a hidden UI scaling option somewhere? For now I'm using regular aspect ratio scaling for 2560x1080 -> 3440x1440 (hard to read text at native 1440 UW).
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24146
    • View Profile
Re: Custom Resolutions
« Reply #8 on: September 08, 2019, 12:34:52 PM »

There isn't, no; what you're doing is about what I'd recommend at the moment.
Logged

Skupbrade

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: Custom Resolutions
« Reply #9 on: April 10, 2023, 05:21:17 PM »

You can change the resolution by editing the settings.json file in the starsector-core - data - config folder, in the search engine place "resolutionOverride" and modify the resolution that works for you, you have to remove the # to make it work, then look for "screenScaleOverride" to edit the size of the UI where 1 is the largest and 0.5 is already very small, and thus adapt it to your monitor, I have a 1078*600 minilaptop and now I can play it, it should work for large and small resolutions
Logged