2

I changed the video settings to the maximum resolution that the game supports and widescreen.

I wanted to change back but now only a small part of the game is available on the screen to I can't get to where I can change the settings.

I have re-installed and tried both the "-safe" and "-autoconfig" set launch options but they didn't do anything.

How can I fix this?

5
  • Possibly useful: developer.valvesoftware.com/wiki/…
    – 3ventic
    Nov 2, 2013 at 18:44
  • Delete the config file? Nov 2, 2013 at 20:20
  • @SevenSidedDie the .cfg file? I deleted it but it just creates a new one when I play it and it doesn't change the settings
    – Kecoey
    Nov 2, 2013 at 22:12
  • Is this Half Life or is this Half Life: Source? Nov 2, 2013 at 23:00
  • @Kecoey Hm, I'm having a hard time finding the file where resolution is stored. It doesn't appear to be any of the (multiple) config files that HL:S uses. But using 3ventic's link, I've figured out another way to fix this, so I posted an answer below. Nov 2, 2013 at 23:20

2 Answers 2

2

If this is Half Life: Source, then you can start the game with this command line option in order to have it re-autodetect your screen and use the default size it first started with:

-autoconfig

This will not fix your config file, but it will ignore the current (bad) config files, allowing you to fix your resolution settings, close the game, then run the game without the -autoconfig option to use your newly-chosen resolution.

You can add command line options to a game from within Steam by right-clicking the game in your Library, choosing Properties, clicking Set Launch Options, then pasting in -autoconfig (or whatever command line option you're adding).


If this is Half Life (the original), then you can start the game using the -w and -h command line options to tell it to start up with a different resolution. For example:

hl.exe -w 800 -h 600

Will start the game up in 800x600 (4:3 resolution), and will allow you to fix your graphics settings to that next time you start the game without the -w and -h options, it'll use your new resolution settings.


Reference source: Command Line Options article at the Valve Developer Community site (thanks to 3ventic)

1
  • @Kecoey Worked? Excellent! Nov 2, 2013 at 23:26
1

Assuming this is the Steam version of HL1 you can

  1. Go to Properties by right clicking on the game in your library
  2. Select Set Launch Options
  3. Enter -window -noborder -width [native width of monitor] -height [native height of monitor] without the brackets

This fixed the problem for me

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .