Skip to content

Package update Instructions

BeauBouchard edited this page Jan 4, 2015 · 7 revisions

In the event that the package needs to be updated (new version of DF or utilities) these instructions will help you assemble a Lazy Newb Package.

Installing DF

First, start with a blank folder named pack. Download the new version of Dwarf Fortress from http://www.bay12games.com/dwarves/, and place the files in the pack folder, as df_linux.

Installing LNP

Download the latest version of a LNP GUI, there were two versions of LNP that work cross platform for linux, the leading and most actively developed one right now is Pidgeot's PyLNP Lazy Newb Pack Python interface, although Dricus's Lazy Newb Pack Java interface works in a nearly identical fashion.

Building Dwarf Therapist

Debian-based Dependencies


sudo apt-get install qt4-qmake libqt4-dev # Qt 4
sudo apt-get install qt5-qmake qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev # Qt 5

Gentoo-based Dependencies


sudo emerge -av qtcore # Qt 4 (Currently only Qt 4 is supported)
  • As Gentoo only supports Qt 4, qmake doesn't have a -qt parameter. Otherwise, follow the instructions as below.

Building

qmake -qt=4 # Qt 4 on Debian-based
qmake -qt=5 # Qt 5 on Debian-based
qmake # Qt 4 on most other distros
make -j$(nproc) # Run as many jobs as processing units

For instructions on exactly where to find qmake and how to invoke it on other distros, consult your distribution's documentation.

This will take 2–10 minutes, depending on CPU. Get a cup of coffee.

After it is done, the DT files you need to manually migrate to the ./pack/LNP/utilities/dwarf_therapist/ folder, the DT files you need will be located at:

Dwarf-Therapist/dist/*
Dwarf-Therapist/share/*
Dwarf-Therapist/ /DwarfTherapist

The 'share' file has all the memory mappings, assuming DT is uptodate with dwarf fortress there should be a dist/memory_layouts/linux/v040.xx.ini file for your version. If there isn't a file for your version, perhaps splintercell and the other amazing contributors haven't made one yet. You can manually map the memory addresses with DT to make your own, however I won't go into this in this wiki.

After your files are migrated into the utilities folder they will be automatically detected by the PyLNP gui and should show up under utilities.

Getting the Core Files

$ git clone [email protected]:Lazy-Newb-Pack/LNP-shared-core.git

The file created "LNP-shared-core" will be the entire contents of the Lazy Newb Pack's, everything but the graphics files.

Installing the graphic files

You first need to download all the latest maintained graphics files from fricy's DFgraphics repo, this will require using the terminal client as it is one of the only ways to get all the submodules for a git repo. The commands for which are as follows:

$ git clone [email protected]:Lazy-Newb-Pack/DFgraphics.git
$ cd ./DFgraphics
$ git submodule init
$ git submodule update

Then copy those files into the pack/LNP/graphics/ folder. Each folder in the graphics folder acts as a separate graphics select-able, you can also add files into a pack/LNP/colors folder to change the tile colors.

If additional utilities are updated they can be installed from their various websites.