Barotrauma

Barotrauma

AI NPCs
Viser 1-8 af 8 forekomster
Opdatering: 11. dec. 2024 kl. 16:36

Fixed some errors.

Opdatering: 9. dec. 2024 kl. 13:50

Fixed error message when starting a round with multiple missions.

Opdatering: 8. dec. 2024 kl. 22:13

Orders update!

Also:
*Lots of internal optimizations, bug fixes, etc.
*Added Orders prompt to the options screen. If you have a particular phrase you want them to respond a certain way to and they won't do it consistently, you can add it as an example to the prompt.
*Added checkboxes for Orders and Chat to the options screen. So if you don't care about chatting with the bots, you can turn that off and just use chat to assign them orders. Or the other way around!
*Made ! chatbox command prioritize bots with the exact name, bots on your crew, and bots within the same room. This should resolve issues with you trying to talk to a bot next to you but triggering a bot elsewhere.
*Changed how data was saved for bots so that it's not entirely based on their name. It's now based on original name, job, appearance, etc. so chatting with one bot should not influence another bot with the same name anymore.

Opdatering: 27. juli 2024 kl. 15:32

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.

Opdatering: 12. dec. 2023 kl. 21:23

Added configuration option to change API endpoint. Renamed some of the configuration options.

Opdatering: 15. nov. 2023 kl. 18:07

Big update!

First, I've added new chat commands to view and edit the configuration settings so you no longer have to manually edit the configuration file! In multiplayer, only players that have permission to manage server settings can use these commands.

The commands are:
1. !listconfig = Will list all of the configuration settings and their values (including your OpenAI API key!) in the F3 console.
2. !getconfig <setting> = Will list a single configuration setting and its value in the F3 console.
3. !setconfig <setting> <value> = Will set the value of a configuration setting and print the result in the F3 console.

Example usages:
!setconfig Language Spanish = Will set the language of ChatGPT responses to Spanish.
!setconfig OpenAISecretKey mykeyasdfg = Will set the OpenAISecretKey to mykeyasdfg.
!setconfig SessionTokenCap 5000 = Will set the max total number of tokens for the current round to 5000.
!setconfig SessionTokenCap -1 = Will set the max total number of tokens for the current round to unlimited.
!setconfig EnableForNPCs true = Will enable the experimental setting where NPCs use ChatGPT to transform their standard dialogue.
!getconfig SessionTokenCap = Will print the value of the SessionTokenCap setting to the F3 console.

I have added almost universal language support via the Language configuration setting. Set this to any language (real or imagined) and all ChatGPT output will be transformed. For a wacky example, setting it to "like-dr-suess-book-character" will make the NPCs talk in rhyme.

I have also changed the way conversations and backstories are saved. At the start of a round, a folder is created using the map or level seed. All data for the session is stored in there. In a campaign, the map seed is the same throughout so this allows all data for an entire campaign to be self-contained in its own folder. In a multiplayer mission or sandbox round, the saved folder will be automatically deleted after the round ends.

I have added some extra error checking throughout the code.

I have added new generic backstories to the Backstories file, and also created a new file for Unique Backstories for unique NPCs that you will probably meet during campaign play.

I have greatly enhanced the NPC chat for the EnableForNPCs setting, though it is still not as good as I would like so I have defaulted this setting to false. It is safe to enable without chewing through tokens though, because I have added a 5 second delay between when this can be triggered to prevent spamming.

I have enhanced the prompt data for outpost NPCs.

Opdatering: 7. nov. 2023 kl. 17:08

Added a configuration setting for the ChatGPT model and set the default to the latest, gpt-3.5-turbo-1106. This latest model is cheaper and faster than the previous one.

Added Backstories feature for Singleplayer. When you first speak to an NPC, it has a chance of getting a backstory from a pre-generated list based on the NPC's role and personality trait. The selected backstory is saved to a file and linked to the NPCs name, so it will stick to them throughout the campaign. NPCs with backstories should have more consistent responses. Backstories are currently pretty limited, but can easily be expanded to add more variety. There is a configuration flag to disable this feature.

Removed mobile containers from the inventory items prompt, to leave out toolbelts.

Opdatering: 5. nov. 2023 kl. 22:12

Initial upload.