1. AI Roguelite
  2. News

AI Roguelite News

A1111 for local image gen, better local text gen support

This update is mainly geared towards people who generate images or text locally using their NVIDIA GPU.

Overhauled the local image gen to use A1111 and its API. It generates images much faster than the original stable diffusion, and with less VRAM required!

Oobabooga API was not suitable for my text gen purposes because of the overhead in traditional event checks, so instead of going with that, I fixed some code in gpt_server to autoload the models better, so more models should be supported than before.

Image gen and text gen are also a little more transparent than before with the python code exposed under the "ai" directory, and being run via an included standalone python exe. This may also make it slightly easier to debug issues.

I also implemented preliminary support for Llama-based chat models, but this has only been briefly tested on my own computer, and only with the model Aitrepreneur/wizardLM-7B-GPTQ-4bit-128g which is small enough to fit on my GPU.

Difficulty Overhaul, Auto-generated UI image, and other fixes

[h3]Difficulty overhaul [/h3]
  • Conversation was OP, so modified that to be influenced by charisma and pre-picked skills
  • Critical failures are now disabled for conversation, use consumable on self, and offer item, but can still be enabled in options if you enjoy the hilarious results
  • Roll checks are no longer so punishing in the beginning nor so easy when you’re leveled. Instead of being absolute, all roll checks now scale with the target’s level as well as being influenced by the item/ability level if applicable.

[h3]Generated image for exploration area[/h3]

In the UI the left panel now gets an auto-generated image, which can be toggled off in the options.

[h3]Misc[/h3]

Added ability to outright delete summaries or key plot points
Added ability to delete NPCs
Fixed flashing texture issue
Added UI clarity for the ability to continue story without input without needing to spend any essences
Fixed display names not updating after editing (finally)
Added option to reset summaryception settings to defaults
Fixed text log frame modding
Fixed issue where enemy disappeared if http error occurred during location change with enemy
Added a config option to prevent local AI from loading at start (only for debugging for people who experience CTD or freezing on game start)
Fixed Open Assistant equipment detection
Hopefully fixed issue where 6b model calibration would fail
Fixed open assistant empty required skills in some cases

Notice to modders: Please be aware that some prompts have been changed

Open Assistant fixes, save during combat, possible fix for memory leak

  • Fixed open assistant not working after a patch they made which changed the way chats should be retrieved
  • Added button to delete side quests
  • For some event checks which are chatGPT compaible, ChatGPT now respects event trigger sliders, only if it’s dragged all the way to the left to the minimum value (you can think of it as turning off the feature).
  • Mitigated infinite death loop issue by increasing survival bar value when dying
  • Slightly increased font size for journal and modal views
  • Mysterious memory leak / crashing issue: Identified and fixed the most likely cause of memory leaks and/or crashing. It is thought to be caused by a particular type of texture allocation. All the code is now migrated away to the new way of allocating textures. This results in a brief flash before the texture is loaded, which will probably be fixed in the next update.
  • Fixed issue where defeating all the enemies in a room while using Open Assistant caused an error when trying to regenerate enemy names
  • Mod logic: Mods are no longer enabled by default when a new mod is detected. It defaults to disabled.
  • Improved summarization prompt to reduce chance of ChatGPT saying “protagonist”. Special thanks to Furoggu.
  • Added ability to save while in combat.

Moddable UI, player-controlled lorebook, other fixes

Most of the images of the UI can now be replaced via mods, so please mod to your heart's content. Examples in default/ui/info.txt. Please note, the default directory only serves as an example and is not being used, because I realized that loading images from disk instead of baking it into the game increases the load time by a few seconds. Custom images will only be loaded if they're in a mod directory other than "default".

Customizable preambles for ChatGPT: The "preamble" messages are now available in json form under chatgpt-preambles. Jailbreaking isn't needed for most scenarios, but it's there in case you need it. Please try not to increase the token count too much (a reasonable limit might be implemented in the future)

Player controlled lorebook: An optional text field now appears in the story tab view. It serves as a permanent player-editable grounding point for story facts, lore, important events, etc.

Fixed some of the most egregious Open Assistant issues such as constantly being attacked by non-existent entity

Misc
- Fixed bug where summary couldn't be turned off
- Inventory sorting preferences is now remembered in the save file

Starting attributes/skills + Open Assistant integration (experimental)

[h3]Starting attributes/skills:[/h3]

The new game window now allows you to specify starting attributes and skills. The starting skills have also been woven into the preset scenarios as well as the auto-generation of those scenarios. This allows you to better roleplay your character and not be so helpless in the beginning.

[h3]Open Assistant:[/h3]

Open Assistant (not to be confused with OpenAI) is a new free service open to the public, which does not have an official API. There is now an option to use the API in an unofficial way (subject to breakage if they patch it). Please note, even though I have provided a default cookie, this cookie may expire in which case you need to follow instructions on how to register your own free account and copy/paste the cookie.

The quality is not as good as OpenAI's ChatGPT, but is mostly better than the other free cloud option (kobold horde). The service reliability depends heavily on the time of day. More updates will be coming in the near future which may mitigate the queue time issue using better retry logic.

[h3]Misc:[/h3]

Fixed some bugs in resource tracking
Fixed widescreen equipment issue
Fixed blank ability/item issue
Fixed use ability on self issue in non-chatgpt mode