Blog / Post

0 A.D. Screenshot

How To Set 0 A.D. Game For HiDPI Displays

  • Adam Douglas
  • gaming

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.

Environment

Linux

  • 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])

Windows

  • 0 A.D. a25.b-1
  • Windows 10 Pro 64-bit

Assumptions

  • ~ (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

Problem

The 0 A.D. doesn’t appear to have a setting within the game to adjust the DPI scale when using a HiDPI display.

Solution

Note

Make sure 0 A.D. is not running before proceeding.

Note

The solutions are applied on a per user account bases.

Linux

  1. Open the terminal.
  2. 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"
    

macOS

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.

Windows 10

  1. Open “File Explorer” by pressing Windows key + E.
  2. In the address bar enter “%appdata%\0ad\config” without double quotes and press enter.
  3. Double left mouse click on the file “user.cfg”.
  4. Select the “Notepad” app to open the file.
  5. Edit the file “user.cfg” by adding the following new line. Adjust the value within the double quotes as desired.
    gui.scale = "1.7"
    
  6. Save the file.
  7. Close Notepad app by left mouse clicking on the “X”.

Info

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.