How To Set 0 A.D. Game For HiDPI Displays
- Adam Douglas
In the process of playing around with 0 A.D, I discovered that the interface was quite small and hard to read. At present there is no setting that I could find within the game to adjust the HiDPI scale setting. It took me quite sometime of searching online to figure out if it was even possible to set the HiDPI scale. Here is my findings and solution to the problem on multiple operating systems.
- 0 A.D. a25.b-1
- Arch Linux x86_64 kernel 5.13.13-arch1-1
- BASH v5.1.8(1)
- GNOME Shell v40.4.0
- GDM v40.1
- Mutter v40.4.0
- X11 (WaylandEnable=false [disabled in /etc/gdm/custom.conf])
- 0 A.D. a25.b-1
- Windows 10 Pro 64-bit
- ~ (tilde) represents the $HOME (/home/username) of the current user when using BASH
- Steps prefixed with a “$” (dollar sign) represents the CLI (command-line interface) prompt
- The text after the “$” is to be entered at the CLI
The 0 A.D. doesn’t appear to have a setting within the game to adjust the DPI scale when using a HiDPI display.
Make sure 0 A.D. is not running before proceeding.
The solutions are applied on a per user account bases.
- Open the terminal.
- Edit the file “user.cfg” by adding the following new line.
$ nano ~/.config/0ad/config/user.cfg
Adjust the value within the double quotes as desired.
gui.scale = "1.87"
I believe the “user.cfg” file is located at “~/Library/Application\ Support/0ad/config”. Unfortunately I’m not able to verify and test since I do not own macOS.
- Open “File Explorer” by pressing Windows key + E.
- In the address bar enter “%appdata%\0ad\config” without double quotes and press enter.
- Double left mouse click on the file “user.cfg”.
- Select the “Notepad” app to open the file.
- Edit the file “user.cfg” by adding the following new line. Adjust the value within the double quotes as desired.
gui.scale = "1.7"
- Save the file.
- Close Notepad app by left mouse clicking on the “X”.
The value "%appdata%" is a shortcut to your user account "appdata" directory (e.g. C:\Users\adamsdesk\AppData\Roaming\0ad\config\).
I’m publishing this as part of 100 Days To Offload. You can join in yourself by visiting 100DaysToOffload.com.