Live data from Hacker News

How Dwarf Fortress is built

stackoverflow.blog

271–280 of 407 posts

Re: How Dwarf Fortress is built

#271

Earlier quoted context omitted.

Hickey nails this one in his talks. When you make something a class, that's NOT an abstraction, that's a concretion. You make a Tool class, you haven't abstracted what a tool is, you've made a fixed decision about what it is. For games that want this level of complex interaction between components, entity component systems are the way to go.

> For games that want this level of complex interaction between components, entity component systems are the way to go. Entity component systems are still in a half-baked state, with everyone rolling their own slightly different conceptual model. They're solving a problem, but not solving it well. One promising direction is getting rid of entities. Components need to link to entities and other components anyway, so o…

> One promising direction is getting rid of entities. > > Components need to link to entities and other components anyway, so one may as well treat entities as zero-size components

You are essentially describing ECS here. In ECS, entities are nothing but a "handle" without any additional data, normally just an integer used to link common components together.

Re: How Dwarf Fortress is built

#273
post #2

I read everything about this game I can get my hands on. I don’t fully understand why I find dwarf fortress so intriguing. It’s such a pure passion project… that actually made it.

I used to love falling asleep to the DFTalk podcast..

Re: How Dwarf Fortress is built

#274
My biggest take from this :

> When you declare a class that’s a kind of item, it locks you into that structure much more tightly than if you just have member elements. It’s nice to be able to use virtual functions and that kind of thing, but the tradeoffs are just too much.

Aka, OOP is a bad design even when you take the benefits of its virtual method system.

Stick with struct and functions.

Re: How Dwarf Fortress is built

#275

Earlier quoted context omitted.

One of my favorite Twitter users. https://twitter.com/DwarfFortBugs It's just funny Dwarf Fortress bugs.

LOL - 5386: Imprisoned Vampire Elected Mayor

> Imprisoned Vampire Elected Mayor

That's not even (necessarily) a bug: whether convicts can win/hold elected positions is a aspect of applicable law (albeit a weird one), vampires (IIRC) have high social stats and skills and so are well-postioned to win elections in general, and dwarves (and for that matter humans) don't necessarily update their opinion of someone just because they were convicted of a crime (especially if they don't hear about the conviction, which (knowledge transmission) I recall was added to the game modeling at some point). So this is like a headline "Bob Smith Convicted of Murder; Wins Mayoral Election Anyway", which seems weird-but-possible in real life.

Re: How Dwarf Fortress is built

#276
post #33

> What’s your favorite bug and what caused it? > A: It’s probably boring for me to say, but I just can’t beat the drunken cat bug... That was the one where the cats were showing up dead all over the tavern floor, and it turned out they were ingesting spilled alcohol when they cleaned their paws. I think that bug explains very well just how deeply complex Dwarf Fortress really is. Drinks can be spilled. Some drinks ha…

Other amusing DF bugs: Dwarfs trying to clean their inner organs (dwarf wounded, doctor closes the wound, dirt stay inside) Undying children in the moat water (for years... just swimming there...) Killer carps (there was a long time during which carps were really overpowered because constant swimming was buffing them up really good, dwarfs getting close to water sources were eaten by carps) Catplosions (Tarn loves ca…

> Catplosions

Sounds like the answer is more taverns.

Re: How Dwarf Fortress is built

#277
What's surprising to me is Dwarf Fortress author uses Visual Studio Community, rather than the paid version of that IDE:

> "In enterprise organizations (meaning those with >250 PCs or >$1 Million US Dollars in annual revenue), no use is permitted beyond the open source, academic research, and classroom learning environment scenarios described above."

Surely there has been years where his revenue has exceeded $1 million.

Re: How Dwarf Fortress is built

#278
post #33

> What’s your favorite bug and what caused it? > A: It’s probably boring for me to say, but I just can’t beat the drunken cat bug... That was the one where the cats were showing up dead all over the tavern floor, and it turned out they were ingesting spilled alcohol when they cleaned their paws. I think that bug explains very well just how deeply complex Dwarf Fortress really is. Drinks can be spilled. Some drinks ha…

Reminds me a little bit of something strange I saw in Rimworld - all of my dogs were developing liver cirrhosis! It turns out that my dogs weren't alcoholics - it just happened to be that beer was the only food source they had zoned access to, so they were drinking it out of hungry desperation, and while it gave them enough calories to live on, it also gave them cirrhosis.

In reality, the beer might have killed the dogs, since the hops in the beer is toxic to dogs.

Re: How Dwarf Fortress is built

#279

What's surprising to me is Dwarf Fortress author uses Visual Studio Community, rather than the paid version of that IDE: > "In enterprise organizations (meaning those with >250 PCs or >$1 Million US Dollars in annual revenue), no use is permitted beyond the open source, academic research, and classroom learning environment scenarios described above." Surely there has been years where his revenue has exceeded $1 milli…

He posts his revenue.

http://www.bay12forums.com/smf/index.php?topic=177791.0

Re: How Dwarf Fortress is built

#280
post #279

What's surprising to me is Dwarf Fortress author uses Visual Studio Community, rather than the paid version of that IDE: > "In enterprise organizations (meaning those with >250 PCs or >$1 Million US Dollars in annual revenue), no use is permitted beyond the open source, academic research, and classroom learning environment scenarios described above." Surely there has been years where his revenue has exceeded $1 milli…

He posts his revenue. http://www.bay12forums.com/smf/index.php?topic=177791.0

Oh, that's not that much revenue:

> 2020: $130801.30

> 2019: $119133.25

> 2018: $92558.50

> 2017: $83491.24

> 2016: $89423.38

> 2015: $60603.43

> 2014: $66765.31

> 2013: $48999.11

> 2012: $57854.88

> 2011: $42294.19

> 2010: $54501.15

> 2009: $32516.44

> 2008: $32318.46

> 2007: $19052.28

Once he releases the paid Steam version with updated graphics he'll likely be making millions in revenue though.

Post reply on HN