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 - Beowulf

Pages: [1] 2 3
1
Thanks to Simon Swerwer, we now have voiceovers for Adventurer / Fortress mode speech.

Hi zwei,

O_o where is it up for grabs? Only via update functionality currently?

Also for your Historian App, any chance of you supplying the apk somewhere else than on Google Play?

2
Hi compiled cb50786ddbfe8802e210425b348347656e6b845e
friend in-game becomes family member in DT (talked with ... lately).

3
When will a 40.08 compatible version be released? Getting constant crashes of soundsense during combat.

Er, it "only" reads the gamelog.txt logfile, there is no need to patch soundsense for any new DF version unless that version would change the name of that file or the way it logs stuff which is basically not happening.

4
Another Linux option would be to setcap at install; you'd only have to run something as root once, and you'd never disable the global protection. With an rpm/deb package you could make it invisible even.

Care to elaborate? I do not quite get what you mean.
But it does not really matter, it does not need root privileges at all, the way I suggested and handle it.

What would be the exact command(s?) you would still need root for with your approach?

5
I have not looked at how dfhack goes about this but it should be possible to just have these utilities be the parent of the df process (i.e. they start it) and do without the bad CAP_SYS_PTRACE.

Sure enough, works:
main.cpp
Code: [Select]
diff --git a/src/main.cpp b/src/main.cpp
index 2aee63d..1fb1ed5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -30,10 +30,36 @@ THE SOFTWARE.
 *
 */
 
+
 #include "dwarftherapist.h"
 #include "dfinstance.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <unistd.h>
 
 int main(int argc, char *argv[]) {
+  char *launcha_args[5];
+  pid_t pid;

+  launcha_args[0] = "/opt/pt/df/df_current/df_linux/df";
+  launcha_args[1] = "arg1";
+  launcha_args[2] = "arg2";
+  launcha_args[3] = NULL;

+  switch ((pid = fork()))
+  {
+    case -1:
+      perror ("fork");
+      break;
+    case 0:
+      execv ("/opt/pt/df/df_current/df_linux/df", launcha_args);
+      exit(EXIT_FAILURE);
+      break;
+    default:
+      ;
+      break;
+  }
     if(!DFInstance::authorize()){
         return 0;
     }


Script:
39c39
< _DT_BINARY="/usr/bin/DwarfTherapist"
---
> _DT_BINARY="/opt/pt/df/therapist/installroot/usr/bin/DwarfTherapist"
45c45
< _ETC_BASE_FOLDER="/usr/share/dwarftherapist/"
---
> _ETC_BASE_FOLDER="/opt/pt/df/therapist/installroot/usr/share/dwarftherapist/"
49c49
< _NOTIFY_ICON="/usr/share/pixmaps/dwarftherapist.png"
---
> _NOTIFY_ICON="/opt/pt/df/therapist/installroot/usr/share/pixmaps/dwarftherapist.png"
234c234
< check_ptrace_state
---
> #check_ptrace_state
236c236
< provide_gui_to_setcap
---
> #provide_gui_to_setcap

Yes, I have it in a funny path and yes I cannot write C at all and that is newbish c&p trial and error, hard-coding-pathes glory bullshit.
But, hey it works.  :D

6
Building under Ubuntu 12.04 LTS / 64-bit:

Followed the instructions at https://github.com/splintermind/Dwarf-Therapist/blob/master/BUILDING.txt, *except* prior to doing that I had to do:

sudo apt-add-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update


Those are necessary because they intend Qt 5 for use on more recent releases of Ubuntu.  If you build other stuff that uses Qt, you may want to read up on the above before doing it.

Compiles, installs, and runs OK.  I haven't had time to test much - wanted to post before I forget what I did.


I'm suprised at the requirement for running it as root.  The old precompiled verision that I was using on Ubuntu 10.04 did not require it.  Was use of ptrace added since the fork?

I see the suggestion for running it as a child of df, but I start df with dfhack, and ./dfhack& causes problems because you need the terminal.  Any ideas for how to launch it as a child when using dfhack?

Splintermind, are you interested in talking to the dfhack people about converting it to a plug-in?
ok i'll see about adding that to the documentation. if i remember the ptrace/sudo stuff was there before i even forked the code, so i'm not sure how that precompiled version doesn't require it.

setting things up to use dfhack as a back-end would be very beneficial. i already use a dfhack script to generate another list of memory offsets to use, but it's all very redundant, and probably some code that could be removed entirely if there was access to a dfhack api. however, i honestly don't even know where to begin such a conversion.

That is most likely because:
"In Ubuntu 10.10 and later, users cannot ptrace processes that are not a descendant of the debugger." -> They have started setting the yama/ptrace_scope setting of the yama Linux security module.


I have not looked at how dfhack goes about this but it should be possible to just have these utilities be the parent of the df process (i.e. they start it) and do without the bad CAP_SYS_PTRACE.

7
Utilities and 3rd Party Applications / Re: World Viewer for DF 40.0X!
« on: August 10, 2014, 08:56:59 am »
Please do upload the files it would help me find if it's a bug, I've never had the timeline crash but because of how many factors are involved I could have certainly overlooked something.

Hmm, it has done it on another world, too (I'll first try it on Windows to make sure it is not caused by using mono which I suspect it is; I'd have to see where to upload [possibly would end up being dffd] to anyway).

Thanks for the answers and once again for the sweet program.

8
Indeed, this is splendid!

Added the likes of "|(It is the [0-9]+.* of ((Granite)|(Slate)|(Felsite)).*)" to the seasons.xml instantly.

9
Utilities and 3rd Party Applications / Re: World Viewer for DF 40.0X!
« on: August 07, 2014, 02:51:44 pm »
Awesome program, really like it a lot!

Am I the only one that had it crash while playing back the timeline (so a good deal into it), though?
Should I upload the necessary world files for that (created with 0.40.06; also I'm on mono)?

The bridges and stuff you showed here: http://www.bay12forums.com/smf/index.php?topic=128932.msg4426698#msg4426698
They do not require extra info from dfhack, or do they (think not, otherwise this "for DF 40.0X" thread would not be entirely appropriate for it atm, eh)?
Is that only available in your current build version?

10
Country lore 101 or poetic yeoman club talk, you decide: "Farmer (to Farmer): In a time before time somebody attacked somebody."

Also, human hero is human hero:
Code: [Select]
You draw the copper crossbow with your Left hand.
You draw the +bronze shield+ with your Right hand.
You: Whosoever would blight the world, preying on the helpless, fear me!  I call you a child of the night and will slay you where you stand.
Gaval Irolisman, Human Lye Maker vampire: Fool!  I've defeated many fearsome opponents!
The flying +copper bolt+ strikes The Human Lye Maker vampire in the upper body, tearing the muscle and tearing the liver through the cassowary leather robe!
The Human Lye Maker vampire jumps away from The flying +copper bolt+!
Gaval Irolisman, Human Lye Maker vampire: I must withdraw!
The Farmer scrambles out of the Human Lye Maker vampire's flight path!
The Farmer scrambles out of the Human Lye Maker vampire's flight path!
Eslo Hathurciro, Lasher: I cannot just stand by.  This might require an answer.
Gaval Irolisman, Human Lye Maker vampire: I must withdraw!
The flying +copper bolt+ strikes The Human Lye Maker vampire in the left lower leg, chipping the bone through the alpaca wool chausse!
A ligament has been torn and a tendon has been torn!
The Human Lye Maker vampire falls over.
Tuma Ronikasi, Crossbowman: This is my fight too.  This might require an answer.
The flying +copper bolt+ strikes The Human Lye Maker vampire in the upper body, tearing the muscle and chipping the right false ribs through the rope reed fiber cape!
A tendon in the right false ribs has been torn!
The Crossbowman punches The Human Lye Maker vampire in the left lower arm from behind with his right hand, bruising the muscle through the cassowary leather robe!
Gaval Irolisman, Human Lye Maker vampire: I yield!  I yield!

If this human hero would now initiate a talk with another vampire like that, it would be the pot calling the kettle black.  ;D
Too bad it was not my character who got the killing blow (travelled quite a bit for it and even stopped for the night in tree-hugger territory on the journey there! :X) on Gaval but that thief did not get to bask in "his" glory at all. :>
Now the Oracular Planet is the hero's oyster.

11
2014 saw the new release with improved Adventure after more than two years.
that is a good turn of affairs. It is terrific! It is for the best.
Indeed.  8)

Once you rip out peoples tongues they shouldn't be able to talk.
+1

I am yet to eat my first fairy in this new version.
I hope that has not become a thing from the past (what about worms and bugs?).

12
DF General Discussion / Re: version 21.100.19a
« on: August 17, 2006, 04:09:00 pm »
quote:
Every menu selection that uses the "n" key has been replaced with "Shift + R Menu", whatever that is.

Aha so it's 'n'. Anyway same here.
And I haven't kept any old init stuff.
I thought it came from me starting to make use of keybinding, though (euro 'qwertz' kb) but now I guess that's not the case.

13
DF General Discussion / Re: Newbie questions and some found bugs
« on: August 13, 2006, 06:42:00 am »
If that's so: Superb! So all is good.   :D
I was just wondering because in my first game where I raised skills at start quite a bit I struck on gold and silver pretty much immediately and now in my second one I mined so much yet haven't found anything worthwile..

14
DF General Discussion / Re: Newbie questions and some found bugs
« on: August 13, 2006, 05:59:00 am »
quote:
Miner proficiency affects the chance of getting minerals.

I thought the dungeon generator predetermined where there are mineral and gem veins..
That surely drops the appeal of dwarf mode for me. Treasure hunting is so much fun.
Now all you have to do is spend points on giving a starter dwarf good mining skill?  :(

15
DF General Discussion / Re: Door placement/removal bug
« on: August 17, 2006, 03:56:00 pm »
quote:
Your lil miner picture rules.

2nded!
Can you upload it somewhere?
It's just a shame it doesn't have little more detail/variety added with grey and magenta bits like the original does.

Pages: [1] 2 3