Roberto Posted September 2, 2018 Report Share Posted September 2, 2018 How to define the video mode screen resolution? Just downloaded 0 A.D. on a DELL XPS 13 with high resolution screen 3840x2160. Seems that default fonts and menu are setup for 1024x768 and are too small in 4K resolution. Roberto Quote Link to comment Share on other sites More sharing options...
Silier Posted September 2, 2018 Report Share Posted September 2, 2018 (edited) Hi, You need to create file in this location: On Linux, create: * ; * $XDG_CONFIG_HOME/0ad/config/local.cfg * ; * (Note: $XDG_CONFIG_HOME defaults to ~/.config) * ; * * ; * On OS X, create: * ; * ~/Library/Application\ Support/0ad/config/local.cfg * ; * * ; * On Windows, create: * ; * %appdata%\0ad\config\local.cfg for windows 10 it is: C:\Users\Username\AppData\Roaming\0ad\config file local.cfg with: gui.scale = "1.2" and experiment with value a bit Edited September 2, 2018 by Angen 2 Quote Link to comment Share on other sites More sharing options...
Nescio Posted September 2, 2018 Report Share Posted September 2, 2018 Yes, 0 A.D.'s GUI is designed to be 1024×768. I also have a 3840×2160 screen and I'm using gui.scale = 1.875 because I prefer to be able to play the game at half a screen; if you want the GUI to be exactly 3840 pixels wide, set it to 3.75; you'd probably want a lower value, though. The location of your configuration file depends on your operation system (see https://trac.wildfiregames.com/wiki/GameDataPaths ); on mine (Fedora 28) it's `~/.config/0ad/config/user.cfg` This is not the first time someone asked. Perhaps a FAQ page should be made. Or add the ability to set the `gui.scale` in game under options. 3 Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 2, 2018 Report Share Posted September 2, 2018 1 hour ago, Nescio said: This is not the first time someone asked. Perhaps a FAQ page should be made. Or add the ability to set the `gui.scale` in game under options. Yeah this was planned. I also made a bot with generic answers for question asked on IRC but my attempt to host it on my raspberry failed. And I haven't seen progress on the FAQ in a while. Maybe it could be integrated in the new website design @implodedok The GUI scale option sounds like a good idea. Using hwdetect would work too. 1 Quote Link to comment Share on other sites More sharing options...
Roberto Posted September 2, 2018 Author Report Share Posted September 2, 2018 Many thanks to you Angen, Nescio and Stanislas69 who replied so quickly. I did as indicated and it did the trick! For my personal taste I used factor 2 for the gui.scale. Would be great indeed having these features somewhere. I was expecting to find it under settings.options.graphics in main menu window, but I am just a casual gamer and other place might fit better. In the meantime, having this information under FAQ would certainly help. Thanks again. Gonna play and test it further now. Cheers, Roberto PS FYI forgot to mention that I use Ubuntu as operating system. 3 Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 2, 2018 Report Share Posted September 2, 2018 Have fun with the game, and don't forget to try out the mods, if you get bored. 2 Quote Link to comment Share on other sites More sharing options...
pixel24 Posted September 18, 2020 Report Share Posted September 18, 2020 Hi@all, I want to play 0.A.D. under Ubuntu 20.04 on my laptop with HiDPI display (3840x2160) But the font in the game is not visible and much too small. I have tried the solution mentioned here and the file: ~/.config/0ad/config/local.cfg with the content: gui.scale = 1.8 I tried different values and also renamed the file to user.cfg. But nothing changes in the game. What am I doing wrong? with best pixel24 Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 18, 2020 Report Share Posted September 18, 2020 Have you tried with user.cfg instead ? Quote Link to comment Share on other sites More sharing options...
pixel24 Posted September 18, 2020 Report Share Posted September 18, 2020 (edited) 4 minutes ago, Stan` said: Have you tried with user.cfg instead ? yes. ~/.config/0ad/config/user.cfg $ echo $XDG_CONFIG_HOME /home/me/.config The variable $XDG_CONFIG_HOME was not set. I set it afterwards. Edited September 18, 2020 by pixel24 Quote Link to comment Share on other sites More sharing options...
pixel24 Posted September 18, 2020 Report Share Posted September 18, 2020 ok, I found the problem. If you install 0.A.D in the Ubuntu Software Center it will be installed as SNAP. Thereby ~/.config/0ad is not created. Creating it afterwards has no effect. Remove 0.A.D. in the Software Center and install 0ad with apt install. After that .config/0ad/config/user.cfg exists and you can set the value gui.scale. Now I can explore the game :-) Quote Link to comment Share on other sites More sharing options...
maximusbullet Posted December 15, 2020 Report Share Posted December 15, 2020 On 02/09/2018 at 4:48 PM, Stan` said: Yeah this was planned. I also made a bot with generic answers for question asked on IRC but my attempt to host it on my raspberry failed. And I haven't seen progress on the FAQ in a while. Maybe it could be integrated in the new website design @implodedok The GUI scale option sounds like a good idea. Using hwdetect would work too. hello thank you for the help but i dont see gui. scale in the readme file do i just need to type it in there i ask becouse you say change it ? Quote Link to comment Share on other sites More sharing options...
Stan` Posted December 15, 2020 Report Share Posted December 15, 2020 1 hour ago, maximusbullet said: hello thank you for the help but i dont see gui. scale in the readme file do i just need to type it in there i ask becouse you say change it ? You should put it in your user.cfg file Quote Link to comment Share on other sites More sharing options...
maximusbullet Posted December 15, 2020 Report Share Posted December 15, 2020 Just now, Stan` said: You should put it in your user.cfg file ok thank you found it scale was good but how do i get higher resolution ? Quote Link to comment Share on other sites More sharing options...
Stan` Posted December 15, 2020 Report Share Posted December 15, 2020 I'm not sure I understand. It uses your screen resolution by default Quote Link to comment Share on other sites More sharing options...
maximusbullet Posted December 15, 2020 Report Share Posted December 15, 2020 Force a particular resolution. (If these are 0, the default is ; to keep the current desktop resolution in fullscreen mode or to ; use 1024x768 in windowed mode.) xres = 0 yres = 0 im trying to get higher resolution it is blocky saw some 4k footage on youtube and it looks better was just wondering if it was posible Quote Link to comment Share on other sites More sharing options...
OptimusShepard Posted December 15, 2020 Report Share Posted December 15, 2020 2 minutes ago, Stan` said: I'm not sure I understand. It uses your screen resolution by default Not completely right. If you are using Windows and you have scaled your Windows, the game doesn't use the correct resolution. Than the game resolution is: resolution = Windows_resolution / Windows_scale You can solve this by changing the properties of pyrogenesis.exe properties -> Compatibility-> High-DPI settings -> enable "overwrite high DPI scaling" Quote Link to comment Share on other sites More sharing options...
Stan` Posted December 15, 2020 Report Share Posted December 15, 2020 7 minutes ago, maximusbullet said: Force a particular resolution. (If these are 0, the default is ; to keep the current desktop resolution in fullscreen mode or to ; use 1024x768 in windowed mode.) xres = 0 yres = 0 im trying to get higher resolution it is blocky saw some 4k footage on youtube and it looks better was just wondering if it was posible That doesn't work in FullScreen mode anymore sadly, it's only for windowed. Quote Link to comment Share on other sites More sharing options...
OptimusShepard Posted December 15, 2020 Report Share Posted December 15, 2020 8 minutes ago, maximusbullet said: im trying to get higher resolution it is blocky saw some 4k footage on youtube and it looks better was just wondering if it was posible Your graphics driver may have the feature "virtual super resolution". If you enable this, you can change the resolution for your Windows, and so the game resolution too. Quote Link to comment Share on other sites More sharing options...
PalmerWilliams Posted September 14, 2021 Report Share Posted September 14, 2021 Really helpful! Now I know how to change the resolution for my Windows! Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 14, 2021 Report Share Posted September 14, 2021 On 02/09/2018 at 4:48 PM, Stan` said: Yeah this was planned. I also made a bot with generic answers for question asked on IRC but my attempt to host it on my raspberry failed. And I haven't seen progress on the FAQ in a while. Maybe it could be integrated in the new website design @implodedok The GUI scale option sounds like a good idea. Using hwdetect would work too. @Stan` Is there a ticket for this you know about? Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 14, 2021 Report Share Posted September 14, 2021 https://code.wildfiregames.com/D3037 2 Quote Link to comment Share on other sites More sharing options...
wyrdstappa Posted November 5, 2021 Report Share Posted November 5, 2021 I am running on Ubuntu 20.04. I downloaded 0AD from ubuntu store and it is installed as snap. You need to look for the config in ~/snap/0ad/242/config/0ad/config (I am assuming 242 is a version number so yours may differ) 1 Quote Link to comment Share on other sites More sharing options...
Kokomal Posted November 24, 2021 Report Share Posted November 24, 2021 Hello can someone help me do this on macOS. There is no file named that on macOS but there is a similar file called "user.cfg" but in this user.cfg there is no gui.scale option to change. Quote Link to comment Share on other sites More sharing options...
Kokomal Posted November 24, 2021 Report Share Posted November 24, 2021 I also tried adding gui.scale into my user.cfg but it didn't change anything Quote Link to comment Share on other sites More sharing options...
Kokomal Posted November 24, 2021 Report Share Posted November 24, 2021 Nevermind, I got it now. I had to make sure it was gui.scale "2" not just gui.scale 2 these " " apostrophes matter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.