Skip to content

v0.10.1 - Zone generation and transition

Choose a tag to compare

@neph1 neph1 released this 08 Sep 14:35
· 438 commits to master since this release

What's Changed

  • always use openai body for openai by @neph1 in #24
  • basics for zone generation and transition by @neph1 in #25
  • Zone fix for prancingllama

Phew, this was a biggie. Much more tricky than I had expected, and the code will need some cleaning.

  • A Zone is about 10 locations wide. When it ends is a bit random.
  • When you reach the end of a zone, a new one will be generated by the LLM, using various inputs from the story.
  • This zone is then used as input for the location generation until you reach the next, etc..

So this means that the LLM has the (theoretical) possibility to vary the theme of the story from the initial one.

Next up, I will need to do something about combat. It's too difficult to fight anything your own level. Also I think mob spawning will need to be handled by the MUD, rather than the LLM.

As usual, your mileage will vary with local LLM's. For me, sometimes it works beautifully, and sometimes just not.

Here are a couple of zones I got when testing. I decided to change the theme a bit, can you guess which game was the inspiration?

{
"name": "Dead Forest",
"description": "A vast expanse of twisted trees, their trunks blackened by radiation, stretching as far as the eye can see. Once teeming with life, now a ghostly landscape devoid of sound or movement save for the wind whispering through the branches.",
"races": [
"rad-zombie",
"lurker",
"scavenger"
],
"items": [
"rusted car parts",
"tattered clothing",
"broken appliances",
"radiation suit",
"fossilized food",
"antique radio"
]
}
{
"name": "Blighted Highlands",
"description": "A barren wasteland once known for its lush farmland and rolling hills, now scarred by radiation and nuclear war. Mutated creatures roam the ruins of small towns and abandoned farms.",
"races": [
"rad-zombie",
"lurker",
"mutant",
"abomination",
"irradiated animal"
],
"items": [
"rusty pitchfork",
"melted plastic",
"contaminated soil",
"broken irrigation pipe",
"rusted tractor",
"nuclear fallout suit",
"canned food",
"expired meds"
]
,"mood": "hostile",
"level": 3
}

Full Changelog: v0.9.3...v0.10.0