Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reading/writing into memory from DF  (Read 488 times)

bongotastic

  • Bay Watcher
  • Loving cows for their haunting moos
    • View Profile
Reading/writing into memory from DF
« on: May 17, 2010, 08:23:05 am »

Hi, I'm wondering how Dwarf Therapist is interacting with Dwarf fortress. Is this a UDP or TCP connection? IS there documentation somewhere on how to connect to DF, and how to interact with a working instance? Since DTherapist does it, I hope that this exists somewhere.

I've got an idea on automating some of the production management that I'd like to try.

Thanks.
Logged
Nothing screams "Christmas" quite like a new release of DF.

Ratbert_CP

  • Bay Watcher
    • View Profile
    • The Enraged Primate
Re: Reading/writing into memory from DF
« Reply #1 on: May 17, 2010, 09:35:27 am »

Direct memory manipulation. There is no connectivity for DF.  It may be in the long-term goals, but I wouldn't expect anything anytime Soon(tm).

DT uses its own system, but there is also a library written for just this purpose called dfhack.  The memory mapping hasn't been updated for .31.04 yet, but it's usable on .03 and below.

Linkity-link
Logged
Ratbert #CP#Z
"For FUN and HONOR!"