splintermind / Dwarf-Therapist

Maintained branch of the original Dwarf Therapist for Dwarf Fortress.
Other
405 stars 71 forks source link

v0.43.05 memory layouts #311

Open wookietreiber opened 8 years ago

wookietreiber commented 8 years ago

I'm waiting for the new memory layout. I created this issue, so we (everyone subscribing to this issue) will get notified once the new memory layout has been added and the issue gets closed.

(Edit: I hope this is OK this way, I can see no other means of notification other than frequently checking the repository manually.)

n0manarmy commented 8 years ago

I agree with this post. I'm waiting for 43.04 as well. I didn't see any local info on how to find the values too. I could dig through the forums if there is no tutorial anywhere else

lethosor commented 8 years ago

0.43.04 is weird because of the new Windows compiler. It's likely that there will need to be more changes than usual to make it possible to find layouts, and maybe to use DT. We (DFHack people) haven't even gotten to the point where we can auto-generate DT layouts from df-structures for 0.43.04 yet.

Linux and OS X should be about as easy as before, once we get df-structures updated - it's the next release that'll be the challenge there.

wookietreiber commented 8 years ago

Updated to v0.43.05.

fchaix commented 7 years ago

Waiting for this layout… :/

lethosor commented 7 years ago

It's going to take a while.

Hello71 commented 7 years ago

make that two, no, five whiles.

hovissimo commented 7 years ago

Anyone else who shows up and would like these layouts, you don't need to respond to the thread to get notifications, you can subscribe directly or use the thumbs up +1 reaction on the original post to show your support.

Thanks for helping to keep this thread tidy!

Richard-Degenne commented 7 years ago

Do we know why these layouts are so long to come out? Not being able to use Therapist is a real pain in the *ss. :'(

Sprunth commented 7 years ago

I'm not part of the group working on it, but almost undoubtedly a new compiler and 64-bit addresses will have made things complicated. The difficulty will be similar to understanding the memory of a completely new program, except for the fact that we know (for the most part) what we are looking for.

kitsuneninetails commented 7 years ago

Looks like the layouts are still waiting?

Lagg commented 7 years ago

Can anyone give a list of files aside from memorylayout.* where the constants and code for offsets and heap reading live?

lethosor commented 7 years ago

Maybe dfinstance* and gamedatareader.*?

levireeves commented 7 years ago

http://www.bay12forums.com/smf/index.php?topic=122968.msg7222256#msg7222256

wookietreiber commented 7 years ago

Note: I edited my original post to include a task list for the supported operating systems. Since the memory for Windows has been merged, I already checked that task.

hroest commented 7 years ago

are there any plans to also create memory layouts for linux and OSX? Is there a description of the process on how to obtain these memory addresses somewhere, what do people usually do on Linux to obtain these layout files (e.g. does one have to use fmem ?)

maxgraser commented 7 years ago

Will there also be 64-bit memory layouts in the future?

lethosor commented 7 years ago

I use devel/export-dt-ini in DFHack, usually. It seems to generate 64-bit layouts just fine, although to the best of my knowledge, they haven't been tested much. I did fix one issue that was reported with what it generated on 64-bit Linux.

@hroest If you're looking for one, here's one I generated. Note that it will not work with DT 37.

bensleveritt commented 7 years ago

@lethosor I'm not normally one for bumping for the sake of it but given that

Linux and OS X should be about as easy as before

is there any chance of a DT for other OSes?

lethosor commented 7 years ago

That was referring to 0.43.04, which was 32-bit only. Whatever existing DT builds are around for pre-0.43.04 should work for 0.43.04 on all OSes, given a valid memory layout.

bensleveritt commented 7 years ago

Ah, thanks. I'm guessing 64bit is much harder to crack, and it'll still be some time before we see DT for *nix OSes 0.43.05+?

lethosor commented 7 years ago

The hard part is getting DT to work with any 64-bit DF builds. 64-bit layouts are easy to generate, but verifying that they work can really only be done with a DT that supports 64-bit DF.

bensleveritt commented 7 years ago

I'm confused. Essentially. What's the latest version of DF/DT I can use on MacOS?

lethosor commented 7 years ago

Right now, 0.43.03 with DT 37 (or possibly older versions, although I can't guarantee that they would work). You would probably need to add this layout, following the instructions here. In theory, 0.43.04 would also work with DT 37, but I don't know if anyone ever bothered generating layouts for it.

bensleveritt commented 7 years ago

Brilliant. Thanks @lethosor

Richard-Degenne commented 7 years ago

Any update? It's been a while.

int-ua commented 7 years ago

https://github.com/Hello71/Dwarf-Therapist/blob/f25ef0fc857fc188ee9f1ec9085b6c1c751426f4/share/memory_layouts/linux/v0.43.05.ini

lethosor commented 7 years ago

Keep in mind that that is just for Linux, and you'll have to use https://github.com/Hello71/Dwarf-Therapist instead of this repo. There are various Windows builds in the DT forum thread that range from mostly working to not working at all for different people.

int-ua commented 7 years ago

Can you (or someone else) explain what's the major difference and why isn't it pulled into upstream?

lethosor commented 7 years ago

splinterz hasn't been active for 6 months, and current 64-bit builds of DT are still unstable.

wookietreiber commented 7 years ago

I have been running with the Hello71 version for a while now on 64-bit Arch Linux and had no problems.

anders-larsson commented 7 years ago

I've been running Hello71's version as well. It's working quite well.

However once when I created a squad (using the Archer, default, armour set and Dwarf Therapist kept crashing. It only seemed to affect that armour set specifically because I could create a squad using a different set without any issues and I could even switch to Archer for the existing squid without any issues with Dwarf Therapist.

lethosor commented 7 years ago

I meant that current 64-bit builds of DT are unstable for some people. Sure, they can work fine for some people, but others are having issues such as

If it works for you, that's great for you, but it doesn't mean it's stable for everyone else. (Hello71's fork may be better on Linux than the various Windows builds are on Windows, though - I haven't tried it.)