Dwarf Fortress

Dwarf Fortress

AusSkiller Dec 9, 2022 @ 8:47pm
ChatGPT could greatly improve Dwarf Fortress!
I've been playing around with ChatGPT lately and think it could add a lot to Dwarf Fortress. I gave it the following prompt with a description of a character from the game:

Using the following description of Fensast Thaddopod, a human scholar, could you write a better description based only on the information in it. A medium-sized creature prone to great ambition. He is indefatigable, but he is very weak. His wavy hair is extremely long. He has a recessed chin. His somewhat short ears are extraordinarily broad. His eyelashes are short. His hair is white. His skin is brown. His eyes are emerald.

And ChatGPT responded with this:

Fensast Thaddopod is a human scholar who is known for his great ambition. Despite his small stature, he is highly determined and refuses to give up easily. He has long, wavy hair and a recessed chin. His ears are wide and his eyelashes are short. He has white hair, brown skin, and emerald green eyes. Although he may be weak in some ways, his indomitable spirit makes him a force to be reckoned with.

I think it could massively improve the writing for Dwarf Fortress and would love to see some kind of hook for replacing certain blocks of text with a version that ChatGPT reads and re-writes in a more natural way.
< >
Showing 1-9 of 9 comments
Rabblerouser Dec 9, 2022 @ 8:55pm 
The problem is GPT requires a LOT of computational power. Like server levels minimum.
Rabblerouser Dec 9, 2022 @ 9:01pm 
It seems awkward granted you can run actual IMAGES on consumer-grade hardware, so it just stands to reason text is stupid-basic to generate, right?

Well, no. Text is easy, but LANGUAGE. Ha! Language is complex. So much so that it doesn't work on consumer-grade hardware. The closest I've gotten is running KoboldAI on Google Collab.

A better solution is to find some way to have it display their characteristics in a more "essay-like" fashion with "buffer sentences" between and using "and" more... in a way that doesn't need to run a sentence through an AI that requires the computational power of a small laboratory to run.
However, some dorfs have an essay full of a description.... others... significantly less so a method that says {Name} has {eye_adjective} {eye_color_VAR} eyes [and] {hairlength} {hair_color_VAR} hair might be harder to code.

This is just the best solution we have for now.
Last edited by Rabblerouser; Dec 9, 2022 @ 9:06pm
AusSkiller Dec 9, 2022 @ 9:11pm 
Originally posted by Rabblerouser:
The problem is GPT requires a LOT of computational power. Like server levels minimum.
True it certainly wouldn't be something that could run locally but it could just call through to the servers to replace some text on occasion. It could also be used to automatically build up a data set for the many permutations of data written out using placeholder tokens though that could be used locally just replacing the tokens with the appropriate data and could be used locally, though it wouldn't be as effective.

Obviously Dwarf Fortress contains too much text to automatically naturalise the language everywhere but having an option to click a button to replace the regular Dwarf Fortress text with one rewritten by ChatGPT (or just GPT itself) would be kind of cool. I'm tempted to try out the combat log and see how that looks when ChatGPT rewrites a fight, GPT is supposed to be pretty good with creative writing so I think it could create some epic tales.
Last edited by AusSkiller; Dec 9, 2022 @ 9:12pm
AusSkiller Dec 9, 2022 @ 9:50pm 
Even just the ability to copy the combat log to text would be great so I can manually generate the story. I just fed it this excerpt from a combat log:
The pond grabber misses the reptile woman. The reptile woman bites the pond grabber in the body, tearing the fat and bruising the muscle and bruising the pancreas. The pond grabber misses the reptile woman. The pond grabber strikes at the reptile woman but the shot is blocked. The reptile woman strikes the pond grabber in the right lower tentacle with her copper shield, bruising the muscle. The reptile woman stabs the pond grabber in the right lower claw with her silver spear, but the attack glances away. The pond glances attacks the reptile woman but she jumps away. The pond glances attacks the reptile woman but she jumps away. The reptile woman stabs the pond grabber in the right upper tentacle with her silver spear, tearing the muscle. An artery has been opened by the attack. The pond grabber misses the reptile woman. The reptile woman stabs the pond grabber in the left lower tentacle with her silver spear, tearing the muscle. An artery has been opened by the attack.
And got it to spit out this epic retelling:
The battle between the pond grabber and the reptile woman was intense. The pond grabber swung its powerful tentacles at the reptile woman, but she was quick and agile, dodging its attacks with ease. She retaliated by biting the pond grabber in its body, tearing through its fat and bruising its muscle and pancreas. The pond grabber tried to strike back, but the reptile woman expertly blocked its attack with her copper shield. Seeing an opening, she lunged forward with her silver spear, striking the pond grabber in its lower right claw. However, the attack only glanced off its tough hide. The pond grabber continued to attack, but the reptile woman was able to jump out of the way each time. She then struck the pond grabber in its upper right tentacle, tearing its muscle and opening an artery. The pond grabber missed its next attack, and the reptile woman took the opportunity to strike its lower left tentacle with her spear, tearing its muscle and opening another artery. The pond grabber was no match for the reptile woman's skill and speed, and she emerged victorious.
kadzooks20 Dec 15, 2022 @ 2:30pm 
Originally posted by AusSkiller:
epic retelling
Yeah, games like DF where logs are presented to you and you need to use your imagination to fill in the gaps can benefit amazingly from chatgpt. It won't be perfect not without a lot more details and tweaking but even a mostly average result would be way more impressive than simple logs or canned responses.

Imagine this in something like a civ sim as well, where instead of basic text vomit it can take note of what you did and events surrounding things and weave a simple narrative out of why your crops aren't producing enough heheh
MadAsgardian Dec 15, 2022 @ 2:37pm 
I think the current approach is easier to scan. It's a game, not a novel.
RefuseOrchestra Dec 15, 2022 @ 2:45pm 
Neat Idea. Maybe I'll fire up NovelAI and see what I get.
Catteus Of Mars Dec 15, 2022 @ 2:53pm 
you guys just crashed chatgpt :3
Rabblerouser Dec 16, 2022 @ 2:24am 
Originally posted by MadAsgardian:
I think the current approach is easier to scan. It's a game, not a novel.
I'm not sure NovelAI is good for that sort of prompt. It's great for creating a story from scratch, but less great at following instructions, or so I've experienced. You might also need to adjusted biases.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Dec 9, 2022 @ 8:47pm
Posts: 9