Bay 12 Games Forum

Dwarf Fortress => DF General Discussion => Topic started by: temetvince on January 10, 2016, 01:18:20 pm

Title: How I got DF + lazy newb pack + dwarf therapist + armok vision to work on Ubuntu
Post by: temetvince on January 10, 2016, 01:18:20 pm
Hello, I just wanted to share my experience getting DF + mods to run on Ubuntu 15.10. Maybe this will help someone else (doubtful).

I wanted df + lazy newb pack + dwarf therapist + armok vision. This turned out to be harder than I anticipated. Here's what I did (note newer versions of these files may or may not work)

Steps:
Download lazy newb pack for linux, default: http://lazynewbpack.com/linux/
Download dfhack r4 (the stonesense version): https://github.com/DFHack/dfhack/releases/tag/0.40.24-r4
Download armok vision 0.7.2: https://github.com/JapaMala/armok-vision/releases

Extract the lazy newb pack
Extract dfhack into the df_linux folder of the lazy newb pack folder, overwriting all existing dfhack files
Create a folder called "Armok Vision" inside the lazy newb pack folder.
Extract armok vision into the Armok Vision folder.

Run PyLNP. Go to File->Configure terminal. Type "xterm" without quotes.
Create a file named "run" in the lazy newb pack folder. Add these lines to it:
#!/bin/bash
./PyLNP &
./LNP/utilities/dwarf_therapist/DwarfTherapist &
./"Armok Vision"/"Armok Vision.x86_64"

Open a terminal in the lazy newb pack folder. Type "chmod +x run".

Now, to run the game, type "sudo ./run". It must run as sudo to get dwarf therapist to connect. I personally feel more comfortable allowing these 3 programs to run as root than disabling ptrace protection. I suppose a script could be set to enable and disable it before and after playing dwarf fortress.
Title: Re: How I got DF + lazy newb pack + dwarf therapist + armok vision to work on Ubuntu
Post by: fricy on January 10, 2016, 03:07:50 pm
FYI: dfhack.40.24-r4 has a nasty workflow bug (https://github.com/DFHack/dfhack/issues/741) that will crash your games, not recommended.
Title: Re: How I got DF + lazy newb pack + dwarf therapist + armok vision to work on Ubuntu
Post by: temetvince on January 10, 2016, 04:21:21 pm
Thank you. I didn't realize that. I did try rc5 but it broke more compatibility with the lazy newb pack than rc4 did. I'd say it's probably worth it to use rc5 instead of 4 to avoid game crashing bugs (the terminal errors didn't seem to be too serious iirc, more like warnings that this or that won't work).