1. AI Roguelite
  2. News

AI Roguelite News

Paving the way for free/cheaper chatGPT (not really working yet) + various fixes

Began implementation of free ChatGPT-like functionality for Kobold Horde. This uses the new config line KOBOLD_HORDE_CHATGPT with a default whitelisted substring of GPT4-X-ALPACA. Warning: Currently this feature is so slow to the point of being unusable because there’s only 1 chatGPT model in Kobold Horde with high queue times. Also, there is a possible issue with the kobold horde API causing bugged outputs. I will continue monitoring the feasibility of various free/cheap ChatGPT-like options.

Abilities cooldown logic: Abilities now use a cooldown feature alongside energy requirements, instead of requiring a heal to recharge.

Fixed bug where if AI declared enemy defeated during an interaction with an NPC, the NPC would die

Fixed bug where no XP was gained if “outcome wasn’t great”

Added feature allowing you to use an ability to satisfy “required item/thing” in quests

Track raw resources

[h3]Track raw resources:[/h3]
  • Press the dog paw symbol when recipe-based crafting is active to start tracking all raw resources for that recipe. Open currently tracked recipes by pressing the dog paw during inventory view.
  • Only tracked resources will be eligible as overriding raw resources for foraging and looting. Also, the probability of acquiring a raw resource (if tracking it) has been buffed. Please note: tracked items still need to pass the eligibility check to show up for foraging/looting merchants. For non-chatGPT, this is via the "[item] can be found in:" words. For chatGPT, it asks ChatGPT whether it makes sense for an item to be found in the particular area.


[h3]Misc[/h3]
  • Fixed use ability on self bug
  • Customizable save location
  • Fixed new quest location even when quest location was already reached
  • Tweak ChatGPT checks including quest completion via story, self injury, enemy injury, and more
  • Reduced ChatGPT plot armor from 2 to 1. ChatGPT has a tendency to wish to continue a story rather than end it.
  • Fixed Wombo issue. Wombo changed VFX v2 into a premium model. Switched it to realistic v2.

Fixes incl better popup UI

  • Implemented tooltip big image for hovering over player
  • Fixed modding order being overwritten by writing to player prefs instead. Hopefully this update would be the last time anyone encounters overwritten mod orderings.
  • Fixed some false positives in all modes of text gen by preventing the used item/ability from showing up as a new item/ability if their names are almost equivalent
  • Fixed UI issue where tooltip would still show when modal window popped up
  • Fixed survival bar bug where survival bars weren't leveling up correctly (this fix works on older saves but cannot retroactively apply level ups)
  • Improved auto-scroll logic such that it stops auto-scrolling if you clicked in the window or scrolled yourself
  • Overhauled modal window UI: Moved it up to not block log text; also, player can now interact with non-turn-taking buttons behind the modal including scroll through the text log.
  • Fixed some false positives with ChatGPT via a new prompting technique which confirms whether item/ability was actually legitimate
  • Fixed a few formatting issues with ChatGPT generated entities
  • Reduced chance of abstract items in required item/location in ChatGPT-generated quests
  • Fixed ChatGPT issue where some enemy loot were presenting as "I'm sorry / need more information" etc due to prompt being unclear
  • Fixed ChatGPT raw resource implementation
  • Fixed survival bar wrong texture
  • Added retry logic for OpenAI. When there's a failure, it will retry once. This brings the chance of a failure from about 1/100 to 1/10000
  • Maybe fixed issue where NovelAI image gen would randomly stop working

Some fixes (more coming soon)

Fixed NovelAI image gen
Full prompt string now also includes current location
Slightly reduced survival bar drain

ChatGPT:
Fixed broken TTS
Fixed broken equipment check
Fixed parent place bug
Fixed consumables giving abilities bug
Tweaked prompts to slightly reduce overtriggering of side quests, status effect, key plot point

ChatGPT Integration Released

[Update 4/29/2023: If you're looking for a free ChatGPT-like option, the closest thing is the recently added "Open Assistant" option. This gives a similar experience to ChatGPT but with slightly lower accuracy and much less reliable service. Original post below.]

ChatGPT has been a real game changer for AI Roguelite, and I’m very excited to continue improving it. To activate it, you'll need to subscribe to the Sapphire tier in the in-game link and select "Cloud generation (Sapphire)". It’s a work in progress and I’m working out some kinks, but I am already pretty mind-blown by how well it can generate a consistent story from the player’s actions.

Everything regarding prompting, text generation, and event checks has been completely overhauled to fit the new model. Here are, in my opinion, the most exciting improvements:

[h2]Story text quality[/h2]

Instead of generating first the “action string” and then the rest of the story, the whole process is now consolidated end-to-end as the game can simply instruct ChatGPT to produce the desired story in natural language. This results in a much higher quality of story text overall.

Example: [Generate the next 3-4 sentences of the story, in which you expertly use your baseball bat on the white sofa.]

You cautiously take a seat in the chair he's offered, careful not to jostle any of his weeds, rocks or small animal parts. As you begin to chat, you notice a white sofa in the back corner that looks oddly out of place in this shamanic abode. In a moment of pure reflex, you reach for your baseball bat and take a majestic swing, smashing the sofa to bits. Jonas looks on in disbelief, but then chuckles and nods thoughtfully. "I was wondering how long it would take for someone to take care of that eye sore," he says with a shrug.

[h2]Story-based quest completion[/h2]

A question such as “did the player complete the task to X”, while too complicated for previous models, is handled with decent accuracy by ChatGPT and is now a more viable way to complete quests than before. Previous solution was using a token prediction algorithm using a lot of math.

[h2]Organic follower intervention[/h2]

The game no longer hand-holds the AI into deciding when the follower should intervene. It simply states in the prompt that you have a follower who may help you out in certain situations. The AI can at any point in the story “decide” to make the follower intervene. Without any extra prompt manipulation, ChatGPT generates dramatic stories/combat which often involve your follower saving your life.

[h2]Event checks[/h2]

ChatGPT is sophisticated enough to answer every event check question in a single request with a giant list of yes/no questions, instead of using the logprobs logic that smaller models required. The event check accuracy is not perfect and is a work in progress. However, it’s already better than other existing options for most checks.

[h2]Caveats[/h2]

Using ChatGPT for AI Roguelite currently requires the Sapphire tier subscription at $20 per month (with this subscription, you still have access to the older paid cloud models). In the future as the tech gets cheaper, similar functionality might be implemented for local or cheaper models.

For now, calibration and biases won’t work with ChatGPT because of lack of log probs in the output. The only way to adjust the false positives/negatives is by adjusting the wordings of the questions. Hopefully in the near future, ChatGPT event checks should be accurate enough that biasing won’t be needed anymore.

If you made a mod and want it to work with ChatGPT style prompting, you may need to fill out the new chatgpt-specific fields in the survival bar config files, as well as taking a look at event-checks-chatgpt and prompts-chatgpt.

There are rare cases where you may encounter a text completion refusal due to OpenAI censoring "unsafe" generations and responding beginning with "I'm sorry". I tested the limits of this and found that the chances of it happening are low, and are influenced by how much you deviate from the story. The vast majority of offensive NSFW and violent prompts should still pass as long as they're related to the existing story. Do note that if you encounter actual story text depicting a failure to do something, and you rolled a critical failure, that is working as intended.

Known issues for ChatGPT (fixes coming soon):
- New characters appearing need to be deduplicated better
- Text is sometimes produced in past tense
- Text is produced in larger quantities which causes scrolling UI usability issues
- Key plot point, new side quest, new item, and new ability are overtriggering
- Mood and energy change are too correlated

Known issue that won’t be fixed:
- Not fully compatible with survival bars of saves made before March 21, 2023. The game should still run but you may need to check the global “disable survival mechanics” option to avoid starving to death.

[h2]Misc[/h2]

Added topic name input when auto-generating a world preset for a new game, to make it more interesting.