ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
660 stars 76 forks source link

[TF2] Crash when changing to a lower than 640x480 resolution #6456

Open Peril35 opened 1 month ago

Peril35 commented 1 month ago

After the ScreamFortress XVI update, the game immediately crashes if I try to change to any resolution that is lower than 640x480. This happens both when changing while in the main menu or while playing in a map. If I launch the game with such a resolution, the menu background with "Loading..." in the corner is shown, and when it loads, it crashes.

I am using the -small launch option to allow me to use lower than 640x480 resolutions and mastercomfig with the low preset. I don't think mastercomfig affects this, since I could change into lower than 640x480 resolutions fine with it before the update. Changing the preset doesn't do anything.

I've tried:

Previous behavior was: A crash when the map loaded with a lower than 640x480 resolution. The main menu worked fine. Changing into a smaller resolution after joining a map with a normal resolution fixed the issue for the rest of the game session. Using a height lower than 480 and a width of 640 also worked, along with using cl_drawhud 0.

I don't have any other setups to test but I feel like it can be reproduced in any. Just launch TF2 with the -small launch option and change to any lower than 640x480 resolution, eg. by using "mat_setvideomode 512 384 0"

Peril35 commented 1 month ago

Another user has told me he can reproduce this. He is using the default config. Default HUD crashed, as well as the custom HUD he had. He had to use CRU to use a lower than 640x480 resolution, so that might be needed for anyone trying to reproduce also.