Barotrauma

Barotrauma

AI NPCs
RubbingMyAxe  [udvikler] 27. juli 2024 kl. 15:35
Fourth Update
A pretty big update, tons of new stuff. The most notable is the new AI NPCs Options menu in Singleplayer which makes adding your API key and changing other configuration options very simple. Change log below!

OpenAPI Integration:
*Now using OpenAI's endpoint for moderation (if enabled in the configuration file). This passes all player input through the moderation API first and blocks flagged message. Also regulates player names in Multiplayer.
*Updated the default model to gpt-4o-mini for improved performance and lower costs.

NPC Awareness Enhancements:
*General submarine damage/flood status now available to all NPCs.
*Role-specific information for mechanics/engineers is added. Other roles can gain access to this by giving them a status monitor.
*Uses AI to summarize Missions at the start of each round, reducing AI confusion and the Mission prompt length.
*Updated the Health prompt with additional details for vitality and psychosis.
*Updated the Inventory prompt with details for the exosuit, if wearing one.
*Updated the Orders prompt with details on idleness, sitting/laying down, and turret type and ammunition (if manning a turret).
*Removed quality descriptors from items in the Inventory prompt.

User Interface Improvements:
*Transitioned non-speak chat commands to console commands with autofilling parameters for ease of use. Available commands show up on the help page with the "ai_" prefix.
*Made the speak chatbox command look better after sending it.
*Added AI NPC Options screen to the ESC menu for editing configuration options in singleplayer.
*Made longer NPC AI messages break up into chunks, the chunk size is a configuration option.

NPC Interaction and Backstory:
*Added Custom Instruction configuration setting which is appended to the beginning of all prompts.
*Improved NPC AI calls. Made them less spammy with a default 60-second cooldown for most message types. Enabled them by default.
*Enabled backstories in multiplayer (if enabled in the configuration file) and renamed it to 'profiles'.
*Expanded NPC profiles and modified the chance for NPCs to receive one.
*Added profile commands so you can add/change/clear information associated with specific NPCs.
*Added ai_clearconversationhistory command so you can wipe a character's conversation history if it starts behaving erratically.
*Made adjustments to the prompts. Responses are longer and contain more information now instead of being limited to three short sentences.
*Added new 'styles' feature that gives some variation even in characters with the same profile, and also keeps their responses more consistent.

Quality of Life Improvements:
*Expanded error checking and configuration options.
*Added descriptions for configuration settings via the ai_listconfig command.
*Added configuration setting for the prompt instructions.
< >
Viser 1-1 af 1 kommentarer
RubbingMyAxe  [udvikler] 27. juli 2024 kl. 15:47 
Also this update makes the instruction prompt configurable and the profiles system lets you customize individual characters with a profile (couple of sentences that describe the character's personality) and a speaking style (words or phrases to describe their speech).

I have a file full of pre-generated profiles and styles that the game will randomly pick from whenever you converse with a character, but you can overwrite the ones it picks for specific characters using the console commands:

ai_setprofile <character> <description>
ai_setstyle <character> <description>

So this example:
ai_setprofile "Darleen Mell" You are very rude and disrespectful to your subordinates. You criticize their performance and appearance constantly. ai_setstyle "Darleen Mell" argumentative, insulting, mean

Will create a very mean character. Let me know if you come up with any creative profiles that work well and I can add them to the pre-generated ones in the mod.
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50