Barotrauma

Barotrauma

AI NPCs
RubbingMyAxe  [developer] Nov 7, 2023 @ 5:27pm
First Update!
I wanted to push this update out quickly because OpenAI released a new ChatGPT 3.5 model yesterday that is cheaper and faster than the previous one. I've added a setting to the configuration file for the model to use, and it defaults to this newer version.

I also added something new I've been working on to help keep the characters consistent throughout a campaign: backstories. I have a file of pre-generated backstories, and when you first talk to an NPC there is a chance it will search this file and apply one to that NPC. This backstory is associated with that NPC's name and gets saved to a file that is loaded whenever Lua reloads, so it should stick to them even between sessions.

An example backstory from the file is:
"You are known for your constant stream of bad puns and jokes. Despite your penchant for puns, you are a skilled ship mechanic who can fix almost anything."
Only mechanic NPCs with the Joker personality trait would be able to get this particular backstory.

This is singleplayer only at the moment, because personality traits are not synced properly in multiplayer. There is a configuration setting to turn off backstories if you don't like it. The file it loads from is Data/Backstories.json, try adding your own and let me know if you come up with anything that works well. The list of backstories is pretty limited right now, but if this seems like a good feature I will work on generating more.
< >
Showing 1-1 of 1 comments
RubbingMyAxe  [developer] Nov 12, 2023 @ 2:32pm 
Next update is coming in a couple of days. So far I've expanded the backstories feature, added backstories for the unique NPCs you see in campaign (like Artie Dolittle), and added support for any language ChatGPT can produce. I've also improved the way NPCs talk when the EnableForNPCs configuration setting is turned on.

I'm working on allowing the configuration settings to be updated by a chat command, so you can set your API key and other things without having to edit files since a lot of people are having trouble with that.

Also adding more error checking and better console output to problem areas that people have commented or messaged me about. Please post any issues in the Bug Report section so I know where this needs to be improved.

https://i.imgur.com/4yUX19e.png
Last edited by RubbingMyAxe; Nov 12, 2023 @ 4:29pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50