Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4] 5 6 ... 22

Author Topic: Lazy Newb Pack Linux V0.40.24 with Dwarf Therapist/DFhack  (Read 165907 times)

myk

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #45 on: August 19, 2014, 05:56:15 pm »

DT:DF2014 just merged my qt4-compat branch, so DT should be compilable now on machines that don't have qt5.
Logged

DeDeRon

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #46 on: August 20, 2014, 02:49:42 am »

DT:DF2014 just merged my qt4-compat branch, so DT should be compilable now on machines that don't have qt5.
I was reading the git log of dt yesterday so i stumbled over the qt4 patches. i tried to compile with qt4 and it works. i sent an email to splintermind and asked to add this info to the readme.

thanks a lot for your effort, i am using slackware, which ships qt4 only, so i had to go through a qt5 compile, which takes ages. now i can remove qt5 from my 32 bit slackware box. excellent! many, many thanks.

myk

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #47 on: August 20, 2014, 04:49:33 pm »

n/p : )  yeah, I was in the same boat.

@Beau: I noticed that LNP/graphics/[16x16] Mayday v0.40.08/data/init/d_init.txt is missing the line:
Quote
[STRICT_POPULATION_CAP:220]
which causes forts to not ever get any migrants when using that graphics set

Edit: I see LNP 0.40.09 has it fixed.  Nevermind!
« Last Edit: August 20, 2014, 04:54:27 pm by myk »
Logged

King Mir

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #48 on: August 20, 2014, 05:01:36 pm »

40.09 does change d_init.txt again, and it's still probably better to update it instead of relying on the fact that the defaults are supposed to be correct now.

zomborger

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Linux V0.40.08 with Dwarf Therapist
« Reply #49 on: August 20, 2014, 07:10:12 pm »

does the error message change?  what is the output when you try to run the DwarfTherapist binary directly?  e.g.:
Code: [Select]
cd LNP/utilities/dwarf_therapist
./DwarfTherapist

Not really sure how to do that but when typed that into terminal, it just spit back that "no such file or directory." This is with the latest release 40.09r0 LNP

I am using Ubuntu 14.04 for the other person asking.
Logged

Dwimenor

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #50 on: August 21, 2014, 02:05:08 am »

You need to change your working directory to place where you downloaded and unpacked LNP.
Logged

Lasander

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #51 on: August 22, 2014, 12:53:43 am »

I've always avoided LNP but wow it's actually kindof neat.  Remove aquifers with one click?  Nice! 

I do have an issue though.  I can't get Dwarf Therapist to connect to DF.  I can get it to connect if I run it as root but I hate doing that and I can't seem to get ptrace to work. :(

Oh, and does anyone have issues trying to get DT to resize?  Its super wide and I can only control how vertical it is.
Logged
Worship!

Mimaku

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #52 on: August 22, 2014, 08:46:16 am »

Hello Lasander,

Beuatato has implemented Dwimenor's improved start-up-script a while ago. It asks once for sudo to set up the ptrace-scope for DT in a seperate shell-window...so with the 0.40.09r0 release of the LLNP it should work out of the box...

Code: [Select]
#!/bin/sh
LNP_DIR=$(dirname "$0")
cd "${LNP_DIR}"

#Check whether Dwarf Therapist can read from DF memory:
dt_capabilities=$(getcap LNP/utilities/dwarf_therapist/DwarfTherapist |cut -f2 -d"=")
dt_capabilities=${dt_capabilities:=0}
if [ ${dt_capabilities} != "cap_sys_ptrace+eip" ]; then
msg="Enable Dwarf Therapist to read from Dwarf Fortress memory"
xterm -e "echo $msg;sudo setcap cap_sys_ptrace=eip LNP/utilities/dwarf_therapist/DwarfTherapist"
fi

#run Lazy Newb Pack
java -jar lazy-newbpack-gui-0.5.3-SNAPSHOT.jar



If you can't use it this way perhaps it's a issue due to your distro? What distro are you using then?

And in DT i never have tried to change the window-size, since i use it always in fullscreen...but can confirm, that resizing goes only to the the menu-buttons and no further.
Logged

amfournda

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #53 on: August 23, 2014, 12:32:52 pm »

I was encourage to post this here, but my original post was here: http://www.reddit.com/r/dwarffortress/comments/2edclq/gentoo_linux_fix_script_for_lnp/

In short, I've had issues getting the Lazy Newb Pack packages to work on my Gentoo system. Nothing major: a path is wrong in a few of scripts, libpng doesn't seem to work so I need to convert all the art to bmp and the LD_PRELOAD workaround doesn't work for me. I know its not the most popular distro around, but I figured a few other linux people might be interested in my script to fix things:

Code: [Select]
#!/bin/bash

for D in `find . -maxdepth 1 -type d -not -name "."`
do
    if [[ "$D" != ./LNP-linux-v* ]]
    then
        echo "Cannot find LNP-linux directory."
        echo "Please ensure this script is in the same directory that you extracted the pack to."
        exit
    fi

    echo "Converting all png to bmp"
    for E in `find $D/LNP/graphics -maxdepth 1 -mindepth 1 -type d -not -name "."`
    do
        mogrify -format bmp $E/data/art/\*.png 2> /dev/null
        sed -i\.bak -e 's/\.png/\.bmp/g' $E/data/init/init.txt
    done

    echo
    echo "Fixing init.txt"
    sed -i\.bak -e 's/\.png/\.bmp/g' $D/df_linux/data/init/init.txt

    echo
    echo "Fixing the df launcher script"
    sed -i\.bak -e 's/LD_PRELOAD=\/usr\/lib32\/libz.so/LD_PRELOAD=\/lib32\/libz.so.1/g' $D/df_linux/df
    sed -i -e 's/LD_PRELOAD=\/usr\/lib\/libz.so/LD_PRELOAD=\/lib\/libz.so.1/g' $D/df_linux/df
    sed -i -e 's/ldconfig -p/\/sbin\/ldconfig -p/g' $D/df_linux/df
done

BeauBouchard has also kindly added the script to their github: https://github.com/BeauBouchard/DF-Lazy-Newb-Pack/blob/master/gentoopatch.bash
Let me know if it has any issues, but on my system I can download the LNP.tar.gz file, extract it, run the above script and play so that's a lot nicer than having to do the above by hand.
Logged

myk

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #54 on: August 24, 2014, 12:17:41 pm »

I'm also on gentoo, actually.  I solved the png issue by just recompiling libgraphics.so (via this repo ), putting the output libgraphics.so in df_linux/libs, and removing all other lib* files in there.

edit: I should also note that I have a slight patch against that repo to get it to work with how gentoo installs ncurses:

Quote
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff71ddc..56b4f40 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,7 @@ endif()
 add_definitions(-Dunix -Dlinux -std=c++11)
 
 find_package(OpenGL REQUIRED)
+set(SDL_BUILDING_LIBRARY TRUE)
 find_package(SDL REQUIRED)
 find_package(SDL_image REQUIRED)
 find_package(SDL_ttf REQUIRED)
@@ -58,7 +59,7 @@ include_directories(
     ${GLEW_INCLUDE_DIRS}
     ${FREETYPE_INCLUDE_DIRS}
     ${X11_INCLUDE_DIR}
-    ${CURSES_INCLUDE_DIR}
+    /usr/include/ncursesw
 )
 
 add_library(graphics SHARED ${SOURCES})
« Last Edit: August 25, 2014, 01:13:39 pm by myk »
Logged

Ohnsorg

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Linux V0.40.08 with Dwarf Therapist
« Reply #55 on: August 25, 2014, 02:07:47 pm »

does the error message change?  what is the output when you try to run the DwarfTherapist binary directly?  e.g.:
Code: [Select]
cd LNP/utilities/dwarf_therapist
./DwarfTherapist

Not really sure how to do that but when typed that into terminal, it just spit back that "no such file or directory." This is with the latest release 40.09r0 LNP

I am using Ubuntu 14.04 for the other person asking.

I'm using Ubuntu 12.04 and get the same error message:
Code: [Select]
./DwarfTherapist: 1: ./DwarfTherapist: Syntax error: "(" unexpected
I have to use "sudo" to even get that message.
Logged

Beautato

  • Bay Watcher
    • View Profile
    • Lazy Newb Pack Linux
Re: Lazy Newb Pack Linux V0.40.09 with Dwarf Therapist
« Reply #56 on: August 25, 2014, 03:14:29 pm »

I'm also on gentoo, actually.  I solved the png issue by just recompiling libgraphics.so (via this repo ), putting the output libgraphics.so in df_linux/libs, and removing all other lib* files in there.

edit: I should also note that I have a slight patch against that repo to get it to work with how gentoo installs ncurses:

Quote
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff71ddc..56b4f40 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,7 @@ endif()
 add_definitions(-Dunix -Dlinux -std=c++11)
 
 find_package(OpenGL REQUIRED)
+set(SDL_BUILDING_LIBRARY TRUE)
 find_package(SDL REQUIRED)
 find_package(SDL_image REQUIRED)
 find_package(SDL_ttf REQUIRED)
@@ -58,7 +59,7 @@ include_directories(
     ${GLEW_INCLUDE_DIRS}
     ${FREETYPE_INCLUDE_DIRS}
     ${X11_INCLUDE_DIR}
-    ${CURSES_INCLUDE_DIR}
+    /usr/include/ncursesw
 )
 
 add_library(graphics SHARED ${SOURCES})

Previously i think that andrew18 was using DF-unfuck in his previous LNP installation scripts which got it to work out of box in gentoo. In a perfect world we could have LNP install it on first run.  :D

Beautato

  • Bay Watcher
    • View Profile
    • Lazy Newb Pack Linux
Re: Lazy Newb Pack Linux V0.40.10 with Dwarf Therapist
« Reply #57 on: August 25, 2014, 03:16:19 pm »

Updated Linux Lazy Newb Pack to dwarf fortress V0.40.10

updated Dwarf therapist to v25, also compiled with qt4 so should work better with other distros.

Download here: http://dffd.wimbli.com/file.php?id=8936

Ohnsorg

  • Escaped Lunatic
    • View Profile
Re: Lazy Newb Pack Linux V0.40.10 with Dwarf Therapist
« Reply #58 on: August 25, 2014, 03:50:00 pm »

Updated Linux Lazy Newb Pack to dwarf fortress V0.40.10

updated Dwarf therapist to v25, also compiled with qt4 so should work better with other distros.

Download here: http://dffd.wimbli.com/file.php?id=8936

I get the same error:
Code: [Select]
./DwarfTherapist: 1: ./DwarfTherapist: Syntax error: "(" unexpected
Still using Ubuntu 12.04.
Logged

myk

  • Bay Watcher
    • View Profile
Re: Lazy Newb Pack Linux V0.40.10 with Dwarf Therapist
« Reply #59 on: August 25, 2014, 04:33:00 pm »

wait, maybe I misunderstood earlier: was the "(" unexpected error from when you run startlnp or from when you run ./DwarfTherapist directly?  If it's from running ./DwarfTherapist, what is the mode of the file and what does 'file DwarfTherapist' output?

@Beautato: Thanks for the new LNP release!
« Last Edit: August 25, 2014, 04:39:00 pm by myk »
Logged
Pages: 1 2 3 [4] 5 6 ... 22