Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 47 48 [49] 50 51 ... 192

Author Topic: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)  (Read 870560 times)

Vehudur

  • Bay Watcher
  • [evil]
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #720 on: September 13, 2011, 11:03:39 pm »

I'll give it a shot.
Logged
Quote
...and a third died in his bunk of natural causes - for a dagger in the heart quite naturally ends one's life.

I used to have an avatar, but I was told to remove it after it kept making people go insane.

Vehudur

  • Bay Watcher
  • [evil]
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #721 on: September 14, 2011, 04:59:02 pm »

Nope, reinstalling both DF and DT (and then updating those files again) did not fix it.

Yes, I know I'm an evil elf for double posting.

EDIT:

Fixed it.

Turns out I had a few very nasty registry errors that I had to fix.  I've no idea WHY they were screwing with DT as they were unrelated, but, it seems to have fixed it.
« Last Edit: September 14, 2011, 08:07:05 pm by Vehudur »
Logged
Quote
...and a third died in his bunk of natural causes - for a dagger in the heart quite naturally ends one's life.

I used to have an avatar, but I was told to remove it after it kept making people go insane.

PFactorial

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #722 on: September 18, 2011, 11:26:55 am »

I tried Dwarf Therapist on Ubuntu:
and this is what I got after the "LD_LIBRARY_PATH= ...etc"

LD_LIBRARY_PATH= /home/prestonpc/Games/dt/bin/DwarfTherapist >error.txt
Could not open logfile for writing! "No such file or directory"
Application asked to unregister timer 0x1d000008 which is not registered in this thread. Fix application.
Application asked to unregister timer 0x7b000008 which is not registered in this thread. Fix application.
Application asked to unregister timer 0xa000009 which is not registered in this thread. Fix application.
Application asked to unregister timer 0x74000013 which is not registered in this thread. Fix application.

Dwarf Therapist popped up for a bit, then it shut down and gave me that
Logged

DrKillPatient

  • Bay Watcher
  • The yak falls infinitely
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #723 on: September 18, 2011, 11:34:21 am »

I tried Dwarf Therapist on Ubuntu:
and this is what I got after the "LD_LIBRARY_PATH= ...etc"

LD_LIBRARY_PATH= /home/prestonpc/Games/dt/bin/DwarfTherapist >error.txt
Could not open logfile for writing! "No such file or directory"
Application asked to unregister timer 0x1d000008 which is not registered in this thread. Fix application.
Application asked to unregister timer 0x7b000008 which is not registered in this thread. Fix application.
Application asked to unregister timer 0xa000009 which is not registered in this thread. Fix application.
Application asked to unregister timer 0x74000013 which is not registered in this thread. Fix application.

Dwarf Therapist popped up for a bit, then it shut down and gave me that

From the DT build readme:

Quote
The build output directory for dwarf therapist is parallel to the root of the source directory and named dwarftherapist-build-desktop. In order to run dwarf therapist you should create an empty log directory under the release or debug directory, and copy the etc folder to the same location. You should end up with a directory structure such as this:

    bin
        debug
            etc
            log
            DwarfTherapist.exe
        release
            etc
            log
            DwarfTherapist.exe

Once you have this structure, you should be able to launch DwarfTherapist and execute step-through debugging.
Logged
"Frankly, if you're hanging out with people who tell you to use v.begin() instead of &v[0], you need to rethink your social circle."
    Scott Meyers, Effective STL

I've written bash scripts to make using DF easier under Linux!

PFactorial

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #724 on: September 18, 2011, 11:38:10 am »

what?
I'm sorry, I'm just a newb :P
Logged

PFactorial

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #725 on: September 18, 2011, 11:39:23 am »

there is no release or debug category.
Logged

DrKillPatient

  • Bay Watcher
  • The yak falls infinitely
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #726 on: September 18, 2011, 02:40:31 pm »

Oh, did you not build it from source? Can you post the structure of your dwarftherapist directory, then?
Logged
"Frankly, if you're hanging out with people who tell you to use v.begin() instead of &v[0], you need to rethink your social circle."
    Scott Meyers, Effective STL

I've written bash scripts to make using DF easier under Linux!

PFactorial

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #727 on: September 18, 2011, 03:18:10 pm »

Theres way too many files...I'm using the Linux version that I just downloaded and extracted to a folder
Logged

fci525

  • Escaped Lunatic
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #728 on: October 17, 2011, 05:52:38 pm »

I'm having trouble running therapist in Ubuntu 11.10. I built it from source following the instructions on the site, and things went fine for the most part. It even starts, but then it immediately quits. It gives slightly different output (one extra line) when I actually have a fort loaded than when I don't.


Spoiler: Dwarf fortress running (click to show/hide)
« Last Edit: October 18, 2011, 11:00:43 am by fci525 »
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #729 on: October 17, 2011, 09:02:08 pm »

You have a problem: you are using a nanny-like linux distribution. It assumes that you are a simple user and protects you from anything that resembles a threat. This is a good thing, in some cases. In other cases, it's breaking basic functionality, like debugging.

Anyway, to fix the problem:
  • Open /etc/sysctl.conf as root and add these lines:
Code: [Select]
kernel.randomize_va_space = 0
kernel.yama.ptrace_scope = 0
  • Save
  • Reboot

Modest Moose

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #730 on: October 17, 2011, 10:12:10 pm »

You have a problem: you are using a nanny-like linux distribution. It assumes that you are a simple user and protects you from anything that resembles a threat. This is a good thing, in some cases. In other cases, it's breaking basic functionality, like debugging.

Anyway, to fix the problem:
  • Open /etc/sysctl.conf as root and add these lines:
Code: [Select]
kernel.randomize_va_space = 0
kernel.yama.ptrace_scope = 0
  • Save
  • Reboot

Im having the exact same problem, and this solution did nothing for me. Im on 10.10, i believe. (Oneiric Ocelot, most recent update)
Logged
Modest Moose cancels Clean Self: Unconscious

fci525

  • Escaped Lunatic
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #731 on: October 17, 2011, 10:24:53 pm »

That took care of "ptrace attach: Operation not permitted". But now I'm just getting "Unknown error". Which I guess doesn't help much with diagnosing the problem.

If it helps, here's the output of run.log when therapist is run while a fort is loaded:
Spoiler (click to show/hide)
« Last Edit: October 18, 2011, 12:08:41 am by fci525 »
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #732 on: October 18, 2011, 06:39:40 am »

You need new memory offset/layout files. But you shouldn't *need* new files, because they are already in.

So, I guess you got your source code from some outdated archive.

Try to get the current state:
hg clone https://code.google.com/p/dwarftherapist/

Obviously, you need 'mercurial'. Hmm. When did they switch from svn? Interesting...

fci525

  • Escaped Lunatic
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #733 on: October 18, 2011, 09:44:24 am »

That did it. I originally used the instructions on the BuildingDwarfTherapist page, which were slightly different than the ones on the source page. But I've got the right stuff now, so thanks for the help.
Logged

MrOassis

  • Bay Watcher
  • You know, MAGMA IS ALWAYS THE SOLUTION!
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.10 3/15/11 see first post)
« Reply #734 on: October 18, 2011, 10:25:11 am »

All I can say is this.
Thank you so much for helping maintain this mod for the community
It is THE mod for Dwarf Fortress
Pages: 1 ... 47 48 [49] 50 51 ... 192