CliftonM

[1.2.1] AnyRes v1.4.1 - Closer and closer to Unity 4.6 UI

Recommended Posts

Version-1.4.1-green.png KSP-1.2.1-red.png Currently-Released-blue.svg CKAN-indexed-blue.svg total.svg (GitHub only)

So, I got really tired of having to constantly edit config files, and restart KSP every time I needed to change the screen resolution.  I wrote this little plugin to end this once and for all:

AnyRes v1.4.1

What does it do?

It allows you to quickly and easily change the screen resolution and switch between fullscreen and windowed.  You can use any resolution imaginable as long as it is  positive number.

How do I use it?

In any scene, simply press alt + /, or click the toolbar button if it's available.  It will automatically open up when you're in the settings menu.

Pictures:

Spoiler

NGGPQEG.png

yfjMlAM.png

Video:

 

Download

...Or on SpaceDock

Source Code

HELP!  I set the resolution too small, and I can't change it back!

You can either open settings.cfg and change the SCREEN_RESOLUTION_WIDTH and SCREEN_RESOLUTION_HEIGHT values to something reasonable, or you can download the patcher which does this automatically.  Be sure to start KSP with it installed and immediately force it to quit once you see the resolution dialogue.  Delete the file from GameData after doing this, and then open KSP again.  It only needs to be done once to fix it.

Creative Commons License
AnyRes by Clifton Marien is licensed under a Creative Commons Attribution 4.0 International License.

Edited by CliftonM

Share this post


Link to post
Share on other sites
5 minutes ago, BT Industries said:

This will be very useful and time saving:D

Thank you.

No problem.  That's why I wrote it.  I hate the way the settings menu handles it. :)

Share this post


Link to post
Share on other sites
1 minute ago, Stone Blue said:

Oooo... Nice!
This will definately beat having to exit & restart the game...
Hmmm... I wonder if it will work with Multi-monitor Screen Space

I'm not quite sure.  I'll look into adding support if it isn't.  It should be, though.

Share this post


Link to post
Share on other sites

This will come in super handy when switching between laptop and external monitor use.  I’d been sticking with my laptop resolution even though it put KSP in a (comparatively) tiny window on my external monitor.

If you’re taking feature requests, I’d love to be able to save presets.  That way I could even more quickly switch between laptop and monitor sizes.

Also, I have two bug reports.  Do you prefer those here, or as GitHub issues?  (If the latter, I could put in my feature requests there as well.)

Share this post


Link to post
Share on other sites
Just now, meyerweb said:

This will come in super handy when switching between laptop and external monitor use.  I’d been sticking with my laptop resolution even though it put KSP in a (comparatively) tiny window on my external monitor.

If you’re taking feature requests, I’d love to be able to save presets.  That way I could even more quickly switch between laptop and monitor sizes.

I'll add it to my list.

Just now, meyerweb said:

Also, I have two bug reports.  Do you prefer those here, or as GitHub issues?  (If the latter, I could put in my feature requests there as well.)

GitHub would be best, but here is fine.

Share this post


Link to post
Share on other sites

Woah :) 

Props to you, @CliftonM, for one of the first (ever?) recognitions of Dres in a mod. 

:D

Edited by Sanic

Share this post


Link to post
Share on other sites

Update 1.1:

Changes:

  • Fix toolbar button
  • Fix UI issues by allowing reloading of scenes

Share this post


Link to post
Share on other sites

Very useful! Is it possible to change the resolution above the 'normal' resolutions which the game allows, f.e. 1920 x 1280?

Share this post


Link to post
Share on other sites

Does this support the Toolbar mod? For quality of life mods like this I prefer not to take up space on the stock toolbar. :) Looks great though.

Share this post


Link to post
Share on other sites
1 hour ago, jofwu said:

Does this support the Toolbar mod? For quality of life mods like this I prefer not to take up space on the stock toolbar. :) Looks great though.

I'm planning support sometime in the future, but right now the only option is the stock toolbar.

Share this post


Link to post
Share on other sites

This really needs to be added to KSP's config panel.  (Basically in the resolution select box there should be "Manual" which should make a pair of text boxes appear with the width and height.  I'd suggest adding "refresh" but unless you have a very advanced or old setup (LVD or CRT monitor, or video cards that require syncing across multiple monitors) there is never any need for it on a game like KSP.  (Maybe on some FPS games that can actually benefit from 120p refresh rates, but not on KSP.)

Edited by Ruedii

Share this post


Link to post
Share on other sites
2 minutes ago, Ruedii said:

This really needs to be added to KSP's config panel.  (Basically in the resolution select box there should be "Manual" which should make a pair of text boxes appear with the width and height.  I'd suggest adding "refresh" but unless you have a very advanced or old setup (LVD or CRT monitor, or video cards that require syncing across multiple monitors) there is never any need for it on a game like KSP.  (Maybe on some FPS games that can actually benefit from 120p refresh rates, but not on KSP.)

I'll look into refresh settings. :) 

Share this post


Link to post
Share on other sites

Yeah, refresh and superscaler settings should be added on this mod.  (Superscaler provides far better rendering than anti-aliasing on some systems.  Mainly due to some systems choking on the Unity Antialiasing shader.)  You may also want to see if there is somewhere you can adjust for non-squared display aspect ratios and other advanced rendering settings.

 

Share this post


Link to post
Share on other sites
Just now, Ruedii said:

Yeah, refresh and superscaler settings should be added on this mod.  (Superscaler provides far better rendering than anti-aliasing on some systems.  Mainly due to some systems choking on the Unity Antialiasing shader.)  You may also want to see if there is somewhere you can adjust for non-squared display aspect ratios and other advanced rendering settings.

 

I'll look into them.  I am currently waiting to add them until I get the final 1.1 update, though.

Share this post


Link to post
Share on other sites

Yeah, they'll be changing a lot of defaults around.

Share this post


Link to post
Share on other sites
On March 22, 2016 at 3:41 AM, TheCardinal said:

Very useful! Is it possible to change the resolution above the 'normal' resolutions which the game allows, f.e. 1920 x 1280?

Sorry I didn't realize that it was a question.  :blush:  It should work with any resolution above 0x0.

Share this post


Link to post
Share on other sites

Oh, one thing you may want to do is give the option to change the default z-buffer mode (quick reference of the depth of the object each pixel is displaying used to make rendering easier)   16bit is faster but can sometimes result in some z-fighting artifacts.  32bit is slower but is obviously better quality.  There are a huge list of other settings you can change.  I've been wanting to make a very complete "advanced graphics settings" mod myself to handle quick changing of all the settings, including all the "here be dragons" ones which I would mask behind a warning dialog.

Share this post


Link to post
Share on other sites

I've even set it to extremely low resolutions, but it's not a good idea to do. :)

Edit:

Why didn't it auto merge?!?!?!

Edited by CliftonM

Share this post


Link to post
Share on other sites

I've just put together a patcher in case you set it to a very low resolution and can't set it back.

https://github.com/CliftonMarien/AnyResFixer/releases/tag/1.0

Open KSP and immediately force quit it once you see the message box, then uninstall the dll.  It will then be back to a normal resolution.

You can still edit the config, but it's made for those who aren't comfortable with it.

Edited by CliftonM

Share this post


Link to post
Share on other sites

Updated to 1.1.1.  I warn you that there are known bugs.

Share this post


Link to post
Share on other sites

I have a bug report (which I’ll file at GitHub, but I’m documenting here for other users who don’t look at Github issues): the keyboard shortcut can create a permanent yaw trim if you use it in a flight scene, including the map.  See this from @hvacengi, who helped me work out a problem over on the kOS thread:

Quote

Trim is set by pressing the modifier key (alt on windows) and one of the translation controls.  You can reset it using the modifier key and "x".  This is not a control listed in the KSP settings, but you can find it on the KSP wiki.

So if I’m looking at a ship or the map view while flying a ship, and I call up, then dismiss, AnyRes with [alt+A], I’ve twice pushed the trim to the left.

Share this post


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.