r/Tf2Scripts • u/JaditicRook • Aug 06 '17
Video settings in autoexec instead of launch options?
Like many I use a graphics config so I use various video settings in my launch options. I was wondering
- if using these settings through my autoexec instead would be ok
- what the actual scripting command equivalent for the launch options are.
The launch options in question: -dxlevel 98 -full -w 1920 -h 1080 Would also like to know the command for regular windowed mode if it exists.
The reason I'm asking is because I'd like to be able to use 2 different autoexec.cfg's. One for my normal settings and one for testing/messing around that loads in a smaller windowed resolution already in a server and doesnt bother with my preloading commands in my normal autoexec etc. (no SSD and the game takes a really long time to launch for me)
Changing both launch options and my autoexec.cfg is kinda tedious at the moment so I'd prefer to be able to just change cfgs. I also have -console -novid -high in my launch options but I plan to leave those in regardless so its doesnt really matter to me if there isnt an equivalent scripting command.
View all comments
4
u/Siouxsie2011 Aug 06 '17
I don't think you can change dxlevel from a config but you can set resolution in autoexec with
mat_setvideomode <width> <height> 0/1, 0 for fullscreen and 1 for windowed (only borderless I think)