Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question: what do we know about the internal workings of DF?  (Read 1144 times)

Vanzetti

  • Bay Watcher
    • View Profile
Question: what do we know about the internal workings of DF?
« on: August 10, 2014, 04:09:09 am »

I'm interested to learn about how DF works, as a program. I found interesting articles on Gamasutra on the subject (interviews with Toady), but is there more?
Logged

Sergarr

  • Bay Watcher
  • (9) airheaded baka (9)
    • View Profile
Re: Question: what do we know about the internal workings of DF?
« Reply #1 on: August 10, 2014, 09:48:22 am »

You would better ask that in the DFHack thread.
Logged
._.

King Mir

  • Bay Watcher
    • View Profile
Re: Question: what do we know about the internal workings of DF?
« Reply #2 on: August 10, 2014, 10:43:26 am »

Are you looking for basic concepts or implementation details?

DFHack basically reverse engineers DF, so looking at that can tell you a lot about the implementation details.

For basic concepts: There were other interviews where Toady talked about how terrain is generated and stuff, so look at older interviews. Look at DFTalk too. But these kinds of questions tend to be buried among unrelated ones.

TinFoilTopHat

  • Bay Watcher
    • View Profile
Re: Question: what do we know about the internal workings of DF?
« Reply #3 on: August 10, 2014, 11:23:53 am »

Modding section may know as well.
Logged

Vanzetti

  • Bay Watcher
    • View Profile
Re: Question: what do we know about the internal workings of DF?
« Reply #4 on: August 11, 2014, 04:43:31 am »

Are you looking for basic concepts or implementation details?

DFHack basically reverse engineers DF, so looking at that can tell you a lot about the implementation details.

For basic concepts: There were other interviews where Toady talked about how terrain is generated and stuff, so look at older interviews. Look at DFTalk too. But these kinds of questions tend to be buried among unrelated ones.

I'm interested in more basic concepts, like the logic of the AI that controls the dwarfs...
Logged

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: Question: what do we know about the internal workings of DF?
« Reply #5 on: August 11, 2014, 11:00:43 pm »

A few people have disassembled various parts of the executable to learn more about how things like that work.  Quite a lot is known about some processes, or at least how they worked up through .34.11 since some AI has changed.  I know Qiuetust at least frequently writes up details on some algorithms, such as how the game decides how many bolts of cloth or logs to bring with caravans, or how the random mechanics behind insanity work, and so on.  Unfortunately, Toady hasn't published any details so the best we can come up with is through observation or such disassembly, and since the behavior of units is quite broad depending on what you're asking specifically you'd probably be best off to ask very specific questions and hope someone knows.
Logged
Through pain, I find wisdom.