How to run UDB on Linux.
It took me a bit to figure out how to get this to work right, and other people have had trouble in the past, so I’m here to help.
Gonna break this into easy steps:
- Install Git (though it should be preinstalled on most Distros?)
- Install Mono-Complete, Mono-Devel doesn’t have everything required to compile UDB.
- Select where you wish to put the code for things, and open it in your terminal.
git clone https://github.com/UltimateDoomBuilder/UltimateDoomBuilder && git clone https://github.com/Doom-Utils/zennode
- Assuming you have all the packages to install, it should be as simple as:
cd UltimateDoomBuilder && make && cd .. && cd zennode && make && cd ..
- There is one more step, and that’s setting up the UDB nodebuilder (by default, it assumes you’re using a windows machine and will therefore have .exe files as node builders).
cd UltimateDoomBuilder/Build/Compilers/Nodebuilders
- This directory is where all the node builders are, copy your freshly made ZenNode binary into here.
cp [location of ZenNode directory]/ZenNode .
- Then, we’re going to need to edit a config. Don’t worry, this shouldn’t be too scary.
cp ZenNode.cfg ZenNode.bak
- Making a backup, just in case! Then, open it with your perfered text editor, GUI or otherwise.
nano ZenNode.cfg
- In the compilers section, there is another section called zennode. Within that, we simply remove the .exe extension in the “program” string.
- i.e.
program = "ZenNode.exe";
→program = "ZenNode";
- Save and quit, then the program should be good to run! Test it like so, if you’re still in “UltimateDoomBuilder/Build/Compilers/Nodebuilders”:
cd .. && cd .. && ./builder
- If you closed out of the Terminal, you should just go back to “UltimateDoomBuilder/Build” and run “./builder”
As a final test, make a really basic level. One square with a player start should be enough. Control + S to save the level, and if you don’t get any errors, you now have UDB running on Linux! Pat yourself on the back.