Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Dwarf Therapist for DF34.11 on linux  (Read 2522 times)

TheSponge

  • Bay Watcher
    • View Profile
Dwarf Therapist for DF34.11 on linux
« on: March 26, 2015, 04:37:12 am »

Since going back to 34.11 for better performance I've been trying to find a working dwarf therapist to no avail. The source code in Splintermind's repo only works with DF2014 and I haven't been able to find any other linux packages for 34.11. I used to play 34.11 with DT so the packages definitely exist but I can't find them anymore. Does anyone know where to find one?
Logged

Metruption

  • Bay Watcher
  • They/Them
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #1 on: March 08, 2023, 10:40:24 am »

I was trying to get a nice 34.11 installation going and faced this same problem. I found this link to what claims to be a compiled binary for version 34.11 but could not get it to work: https://dffd.bay12games.com/file.php?id=4719
I also realized that I couldn't even get df 34.11 to work so I pretty much gave up. Necroposting with my findings so that if someone else faces this same problem and finds this forum post they might be able to make some progress. If you do find this and manage to get a nice linux 34.11 installation working with therapist and all please send me a PM and make a post here detailing your findings.

EDIT: wrong dffd link
« Last Edit: March 08, 2023, 10:42:11 am by Metruption »
Logged

A_Curious_Cat

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #2 on: March 08, 2023, 01:23:20 pm »

Since going back to 34.11 for better performance I've been trying to find a working dwarf therapist to no avail. The source code in Splintermind's repo only works with DF2014 and I haven't been able to find any other linux packages for 34.11. I used to play 34.11 with DT so the packages definitely exist but I can't find them anymore. Does anyone know where to find one?

I was going to recommend building it from source but, after looking at the source repositories for both the newer Clément version and the older Spintermind version, it appears that both have the same problem that they remove the memory layouts for older versions as newer version become available…
Logged
Really hoping somebody puts this in their signature.

Clément

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #3 on: March 08, 2023, 08:09:03 pm »

According to splinterz's topic, the last version for DF 34.11 was DT 22.0. Sadly I don't have tags for versions older than 26, but a quick search tells me it is c140b0ef41c38e79efe4de2fbc6d76981e04fb48.

Edit: I added a v22.0.0 tag.
« Last Edit: March 09, 2023, 06:19:26 am by Clément »
Logged

Metruption

  • Bay Watcher
  • They/Them
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #4 on: March 29, 2023, 06:52:41 am »

I was trying to get a nice 34.11 installation going and faced this same problem. I found this link to what claims to be a compiled binary for version 34.11 but could not get it to work: https://dffd.bay12games.com/file.php?id=4719
I also realized that I couldn't even get df 34.11 to work so I pretty much gave up. Necroposting with my findings so that if someone else faces this same problem and finds this forum post they might be able to make some progress. If you do find this and manage to get a nice linux 34.11 installation working with therapist and all please send me a PM and make a post here detailing your findings.

EDIT: wrong dffd link
Update on this: I managed to get df 34.11 working. After installing a 32 version of every library it complained about I found a comment on the mantis bug tracker that said if you hexedit the binary and change the one mention of "mouse.png" with "mouse.bmp" it will work.
http://www.bay12games.com/dwarves/mantisbt/view.php?id=2688#c11613
Logged

Clément

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #5 on: March 30, 2023, 06:20:07 am »

hexedit? LD_PRELOAD did not work?
Logged

Metruption

  • Bay Watcher
  • They/Them
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #6 on: March 30, 2023, 07:01:51 am »

hexedit? LD_PRELOAD did not work?
The LD_PRELOAD stuff did not work. I got a weird error about a library that I could find with ls not existing and just assumed that it was a slightly different version of the library than DF wanted or something.

Currently trying to compile therapist 22.0.0
Logged

Metruption

  • Bay Watcher
  • They/Them
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #7 on: March 30, 2023, 04:51:18 pm »

I compiled DwarfTherapist 22.0.0 and it didn't detect 34.11, the hexedit probably messed up the checksum. Currently it opens and instantly closes for some reason, I'm going to figure that out first and then edit the checksum of the 34.11 memory layout to try and get it to work.
Logged

Clément

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #8 on: March 31, 2023, 03:53:32 am »

I compiled DwarfTherapist 22.0.0 and it didn't detect 34.11, the hexedit probably messed up the checksum. Currently it opens and instantly closes for some reason, I'm going to figure that out first and then edit the checksum of the 34.11 memory layout to try and get it to work.

Yes, it would mess up the checksum. The checksum is a MD5 sum but only the first 8 digits are kept.

If you have Steam installed, you could also try running the unmodified binary in the steam runtime: "~/.steam/bin32/steam-runtime/run.sh ./df". It may solve the libpng/zlib issue.
Logged

Metruption

  • Bay Watcher
  • They/Them
    • View Profile
Re: Dwarf Therapist for DF34.11 on linux
« Reply #9 on: June 02, 2024, 09:16:55 pm »

The steam runtime trick did work, although I think it's incompatible with dfhack. This was also done with the modified binary.
Logged