Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 21 22 [23] 24 25 ... 108

Author Topic: DFHack 0.5.15 (legacy)  (Read 405234 times)

magistrate101

  • Bay Watcher
  • That one kid.
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #330 on: September 18, 2010, 07:57:50 pm »

So how is the .13 compatible version of this coming?

Seriyu

  • Bay Watcher
    • View Profile
    • Springless Clock
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #331 on: September 18, 2010, 08:28:44 pm »

Does anyone know if this is capable of assigning specific pets to dwarves? And how to do such a thing? I realize it probably won't be simple, but I'd like to know if it's possible without breaking anything.

magistrate101

  • Bay Watcher
  • That one kid.
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #332 on: September 18, 2010, 08:39:27 pm »

Does anyone know if this is capable of assigning specific pets to dwarves? And how to do such a thing? I realize it probably won't be simple, but I'd like to know if it's possible without breaking anything.

it cannot be done right now as, as far as i know, we do not know the offsets for who the pet adopts :\

Seriyu

  • Bay Watcher
    • View Profile
    • Springless Clock
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #333 on: September 18, 2010, 08:52:24 pm »

Dang, oh well. Thanks anyway.  :D

Olith McHuman

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #334 on: September 19, 2010, 01:33:54 am »

On linux, I'm getting this
Code: [Select]
pread failed: can't read 0x3c bytes at address 0xa9536288
errno: 16
terminate called after throwing an instance of 'DFHack::Error::MemoryAccessDenied'
  what():  SHM ACCESS DENIED
Aborted

error too. I'm on a custom compile of kernel 2.6.32 and I still have the sources for it. If you want me to play with some kernel settings, just let me know :).
Logged

dierre

  • Bay Watcher
  • Fear not the Reaper
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #335 on: September 19, 2010, 06:02:06 am »

On linux, I'm getting this
Code: [Select]
pread failed: can't read 0x3c bytes at address 0xa9536288
errno: 16
terminate called after throwing an instance of 'DFHack::Error::MemoryAccessDenied'
  what():  SHM ACCESS DENIED
Aborted

error too. I'm on a custom compile of kernel 2.6.32 and I still have the sources for it. If you want me to play with some kernel settings, just let me know :).

I used the last memory-ng from the git repository and I'm ok now. Even with stonesense.
Logged

magistrate101

  • Bay Watcher
  • That one kid.
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #336 on: September 19, 2010, 10:35:57 pm »

I used the last memory-ng from the git repository and I'm ok now. Even with stonesense.

WHAT??!?!?!?! i have been working for 2 days to find the god danged memory.xml thingy for 0.31.13 -.- TELL ME HOW TO GET IT TO WORK!
 :'( :'( :'( :'( :'(

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #337 on: September 20, 2010, 06:17:28 am »

I assume he's talking about linux, because windows needs a recompile to work, and not all the offsets are found yet.
Logged

Eugenitor

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #338 on: September 20, 2010, 10:38:42 am »

The rest of them I consider cheating, but I neeeeeed my dfcleanmap. The outside of my fort is absolutely coated in blood, pus, and vomit...
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #339 on: September 20, 2010, 11:13:50 am »

Ok. I know the items module is being dumped and blah blah... but what about materials?

Code: [Select]
#14 0xcd621e8 item_barst [0,-1,8,-1] 8 40 0 0 1 CAT bar
#1648 0xdea4740 item_barst [0,-1,9,-1] 8 0 0 0 1 MULE bar

Why does it think ash and potash are now cats and mules? lol

Probably because I decided to do it empirically instead of systematically reversing the material subsystem. I'll take a look when I have a bit of free time. Also I didn't realize the item module is to be dumped, why is that ? Because of the hackish nature of the accessors decoding "system" ?
Logged

Olith McHuman

  • Bay Watcher
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #340 on: September 20, 2010, 03:38:05 pm »

On linux, I'm getting this
Code: [Select]
pread failed: can't read 0x3c bytes at address 0xa9536288
errno: 16
terminate called after throwing an instance of 'DFHack::Error::MemoryAccessDenied'
  what():  SHM ACCESS DENIED
Aborted

error too. I'm on a custom compile of kernel 2.6.32 and I still have the sources for it. If you want me to play with some kernel settings, just let me know :).

I used the last memory-ng from the git repository and I'm ok now. Even with stonesense.

Ok, it works now (mostly, sometimes it stops working and I get those errors again, restarting df fixes it). Thanks!
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #341 on: September 20, 2010, 07:32:03 pm »

Right guys. Just pushed out a tools-only release.

If you're on Windows, you can use the tools, but the Memory.xml that comes with them won't work for Stonesense yet. Wait for further updates.

If you're on Linux, all should be fine. Both tools and Stonesense should work nicely or with minimal glitches.

magistrate101

  • Bay Watcher
  • That one kid.
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #342 on: September 20, 2010, 10:38:39 pm »

Right guys. Just pushed out a tools-only release.

If you're on Windows, you can use the tools, but the Memory.xml that comes with them won't work for Stonesense yet. Wait for further updates.

If you're on Linux, all should be fine. Both tools and Stonesense should work nicely or with minimal glitches.

THANK YOU THANK YOU THANK YOU!!!!!  :o  :D :)

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: DFHack 0.4.0.7b - tools and memory access library
« Reply #343 on: September 21, 2010, 05:49:15 am »

Probably because I decided to do it empirically instead of systematically reversing the material subsystem. I'll take a look when I have a bit of free time. Also I didn't realize the item module is to be dumped, why is that ? Because of the hackish nature of the accessors decoding "system" ?

The accessor decoding worked great..  the problem with the module is that it only works(worked) on windows.

I'm torn, because Dwarf Fortress itself has to switch on each item's type to really understand it. The thing is, because Dwarf Fortress uses that switch it already has the types. So for us to properly understand items we too have to switch on each type anyway, so what to do?

EDIT:

This seems to work and has show then right material types for all the items I have ran across in .13.

Code: [Select]
const uint32_t vtable = p->readDWord(items[i]);
const std::string className = p->readClassName(vtable);
const uint32_t type = p->readWord(p->readDWord(vtable)) >> 8;
const uint32_t matoff = p->readDWord(p->readDWord(vtable+8)) >> 24 ;
const int16_t typeC = p->readWord(items[i]+matoff);
const int32_t typeD = p->readDWord(items[i]+matoff+(matoff % 4 ? 2:4)); // faster to grab the next aligned byte than read the vtable more

If someone can show me one it doesn't work on, that would be great.


« Last Edit: September 21, 2010, 07:22:17 am by devek »
Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

Gearheart

  • Bay Watcher
    • View Profile
Re: DFHack 0.5.0.0 - tools and memory access library
« Reply #344 on: September 21, 2010, 09:12:21 am »

Yay, dfhack.

No more bloodsoaked maps killing my fps!
Logged
Pages: 1 ... 21 22 [23] 24 25 ... 108