Getting the code
- Download and install TortoiseSVN. (Make sure you check the "command line client tools" option and reboot when it asks you to.)
- Download and install TortoiseGit. (Make sure you reboot when it asks you to.)
Subversion (SVN) and
Git are installed by default on OSX and Mac OS, there is no need to download them.
You might need to have to install subversion for it to work. Depending on your Linux flavour your package manager might differ. For instance on Ubuntu it would be:
sudo apt update sudo apt install subversion
Git is usually present on modern distributions of Linux however you might need to install it in some cases. Depending on your Linux flavour your package manager might differ. For instance on Ubuntu it would be:
sudo apt update sudo apt install git
You'll need approximatively 8GB for a clean checkout, and a few more if you build and run the game. So try to have at least 20GB free to be safe.
Note: 0 A.D. is primarily developed on
SVN. However since we are using Arcanist and Phabricator, unless you have commit access you should never need to use
SVN if you don't want to. You can use
Git instead using mirrors, those may be slightly less up-to-date but usually offers faster downloads. Those mirrors are updated daily.
Important: Make sure that the checkout directory doesn't contain special characters (spaces or non-ASCII characters)
To checkout the latest code from
SVN, run this command:
svn co https://svn.wildfiregames.com/public/ps/trunk/ 0ad
Note: This is the read-only public
SVN URL. If you have commit access, you need to use this one instead:
svn co https://svn.wildfiregames.com/svn/ps/trunk/ 0ad
SVN stops before it has downloaded all files. You should check that it outputs something like
at revision rXXXXX. Otherwise run
svn cleanup 0ad svn up 0ad
To use a
Git mirror, use one of the following commands:
git clone https://github.com/0ad/0ad.git
git clone https://gitlab.com/0ad/0ad.git
As of April 2020, the Git repo consumes about 10 GB of disk space. Consider using
--depth=50 or something like that if you don't plan to compile previous versions.