Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Mimaku

Pages: [1]
1
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.

2
hi,

getting dfhack up and running would be great. as for now it seems like there's no dfhack for the 0.40.09 version...but it would'nt take long i guess...with the 0.40.08r2 release it was pretty straight forward to get it running

on my ubuntu 14.04 x64 machine i had to delete the libstdc++.so.6 file in the df_linux/libs folder to avoid an issue with version-incompability...but after that it did start
also the stonesense-plugin was not able to load, due to an allegro-dependency issue stated in the bug tracker https://github.com/DFHack/dfhack/issues/282...if i see this correctly it hasn't been resolved for now

But apart from this bugs, which happened to me, it worked :-)

@Beautato
You have made a great Linux LNP...love to see the amount of build-in graphics packs...thats huge :-)

3
hello hagelund,

i can darkly remember that i had the same issue when i tried to build Dwarf Therapist from source...about a month ago or so

the issue in your case is a (or even more) missing library/libraries...since the new DT for 0.40.xx is made with qt5 instead of qt4, which it was for the older release of DF

Splintermind has on his GitHub-Repo a "short" instruction, which libraries are needed to build from source, but also required to run it (if i did not understand it right, correct me please)...here's the link https://github.com/splintermind/Dwarf-Therapist/blob/master/BUILDING.txt

before i give you a unnecessary advice to install a bunch of packages you perhaps wont need, try simply to get the missing library via

Code: [Select]
sudo apt-get install libqt5script5and all related dependencies...

if it still does not work - and thats where my confidents ends - just take them all in a good guess...here the snippet from splinterminds instruction

Quote
For Debian-derived (Ubuntu, Mint, etc.) distributions, you can run the following command from a terminal:

Code: [Select]
sudo apt-get install qtchooser qtbase5-dev qtbase5-dev-tools qtscript5-dev qt5-qmake libqt5script5 libqt5scripttools5 libqxt-core0 libqxt-gui0
I really can't remember if any sym-linking was necessary along the way...but i think it was not.

And last thing to say, i wont be held responsible if this in any *weird way* screws up your system...;-) I did it on my ubuntu, and it worked fine

4
Ok, so here's what i got on Ubuntu 14.04 64Bit

As it stands now i get an error, when starting the LNP from a fresh download...

Code: [Select]
./startlnp: 7: [: !=: unexpected operator
Fortunatly Dwimenor also posted his improved version, which worked absolutly fine for me

Quote
#!/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

So actually it's asking once for sudo to setup the ptrace permenantly and that's it - which is fine and which is the behaviour i would've expected..

If it's not to much of an effort, i would be really great if you used it for future releases of the LNP and patch the actual one...

Apart from that i was a bit mislead by the name of folder after extracting the archive, because it was simply called "pack"...i first looked though my download-folder and was'nt able to find the new "LNP-linux-etc..." folder, as it was called before. Silly me ;-)

Besides that the craftsdwarfship of this release is all of it's finest :-)

5
Quote
About sudo thing: you should never run games as root. NEVER. Here's a little quickfix for startlnp:

You are absolutely right about this...thanks for the hint! Now i realize, why it made me so curious about this ptrace vs. sudo thing...

@beautato:

Thanks for implementing it directly into the start-script...i will give it a try this evening

6
Thanks a lot,

great work! I unpacked it yesterday and it worked fine...no more building from source is great! :-)

The only issue i encountered, was that Dwarf Therapist failed to connect. It said, that i used the wrong version of DF. But most propably it was my fault, since i did not start the LNP via "sudo" nor have i checked how i configured the "ptrace_scope" on my system... i will check for it in a few hours, when i have time for this and update/edit this post.

PS: I personaly prefer the Phoebus-Tileset...so thanks for supporting it out of the box. Ironhand is great too, but i'm so familiar with phoebus that i stick with it for now...actually i haven't tested more than these two tilesets :-D

-- update --

ok, as i expected, it was really my fault...i should have run it with "sudo"...ptrace_scope does not seem to be necessary anymore...so, yeehaa! :-) awesome!

7
DF General Discussion / Re: Lazy Newb Pack Installer for Linux
« on: June 25, 2014, 03:37:06 pm »
Hello andrewd18!

Thanks for sharing that information and thank you even more for the time and efford you spent to make the linux-LNP. I can fully understand your decision, and i would'nt have made another choice than yours if i were you. Such a task is time-consuming, can be somehow a burden and is much too often not aknowledged as what it is ... a hobby project for the better good.

It's a shame that i am far from being good at programming...even more if it comes to shell-scripting. But i am hopeful that there will be someone, who is able to continue your work! :-)

So thank you again for your what you have built so far!.

As said before: I really appreciate it ;-)

8
DF General Discussion / Re: Lazy Newb Pack Installer for Linux
« on: June 22, 2014, 04:56:00 am »
So i was on vacation for a while...without normal access to the internet...  ::)

@Deadh34d

I can confirm this...i dont know what the issue is...but you can use the checksum i stated before. This workes for me again...

open the  sha1sums file in gedit (or similar) and change the bad checksum into this one

Code: [Select]
302b6b9d372120876c15efccba0e024a     downloads/Utility_Plugins_v0.44-Windows-0.34.11.r3.zip.zip
after that you should be able to install it...

9
DF General Discussion / Re: Lazy Newb Pack Installer for Linux
« on: June 02, 2014, 03:54:52 am »
Wow,

that was quick  :)

Thanks a lot for this immidiate update and that you spend your free time for this...you do a great job!

I think i will give the new version a try this evening...

cu, mimaku

10
DF General Discussion / Re: Lazy Newb Pack Installer for Linux
« on: May 31, 2014, 09:48:56 pm »
ok, so i "digged" further into this and found a solution... :-)

it looks like already stated, that this particular file Utility_Plugins_v0.43-Windows-0.34.11.r3.zip.zip is the source of evil.

taking a look at the DFFD shows that this file has been altered to Version 0.44 the 12th of May... http://dffd.wimbli.com/file_version.php?id=7248

what worked for me, was to change the two occurances of  Utility_Plugins_v0.43-Windows-0.34.11.r3.zip.zip in the df-lnp-installer.sh file to Utility_Plugins_v0.44-Windows-0.34.11.r3.zip.zip
and to update the checksum and filename of it in the sha1sums into
Quote
302b6b9d372120876c15efccba0e024a     downloads/Utility_Plugins_v0.44-Windows-0.34.11.r3.zip.zip

(i generated the checksum via
Code: [Select]
md5sum -filename- in terminal... i don't know if theres a difference between sha1 and md5, but for now i don't care as long as it works...i will "dig" into this too ;-) )

after that you can install the LNP via terminal as usual

11
DF General Discussion / Re: Lazy Newb Pack Installer for Linux
« on: May 31, 2014, 09:02:09 pm »
Hello there,
i can confirm this...

Quote
downloads/Utility_Plugins_v0.43-Windows-0.34.11.r3.zip.zip: FAILED

I tried to install it on Ubuntu 14.04 64Bit, so it does seem that there's a problem with the source, rather then with the OS...

I must say, that i like the comfort of getting all utilities to work and setup within the Lazy Newb Pack...i really appreciate it. So is there possibly an easy way to go around this error...?

12
DF Suggestions / Re: Dwarves as the pillars of unsustainable growth
« on: March 28, 2013, 06:58:58 am »
Hi there,

i really like the idea of oil being present in the layers, either as a small lake on the ground or a deposit underground (or as mentioned even under water). Poluting the surrounding as a negative side-effect (which _could_ but does'nt have to occur) sounds like fun:
- poisening the soils, so there wouldn't be any growth for some time and actual fauna would die of it
- accidantically polluting the water, making it undrinkable
- animals suffering and finally dying because of it (when they made contact)
- igniting it accidantically, so the only way to put it out is to close the pit

But there would be some benefits too, such as:
- refining it for weaponary (like traps, bins filled with oil which could be thrown at enemies, flamethrowers *gg* and so on)..
- using it for some machinery, instead of using waterflow as a energy source
- using it for workshops as an alternative to coal etc...
- let the sherrif tar and feather criminals ;-)

I think, there are plenty ideas for why it would be a nice addition to the current materials...but all i mentioned above are just some ideas and nothing else...

...but i find it worth to discuss this, what you others think? (perhaps its worth a seperate thread)...

...greetings,
Mimaku

Pages: [1]