Barotrauma 潜渊症

Barotrauma 潜渊症

216 个评价
AI NPCs
9
10
4
5
7
2
2
3
3
3
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
176.698 MB
2023 年 11 月 5 日 下午 10:12
8 月 15 日 下午 2:53
10 项改动说明 ( 查看 )

订阅以下载
AI NPCs

描述
Enhance Your Barotrauma Experience with AI-Enhanced NPCs
This mod integrates OpenAI's ChatGPT into Barotrauma, aiming to increase immersion by enabling NPCs to respond via an AI chat system.
Please note that this mod is currently a work-in-progress.

Requirements
  • Lua for Barotrauma
  • An API key from an AI chat provider (e.g., OpenAI)

Default Configuration
Uses OpenAI and the latest ChatGPT 4o mini model (note: this is a paid service).
Configuration can be adjusted to use free models like the 7b model from OpenRouter (Documentation Here[openrouter.ai]). Keep in mind that free models often have lower rate limits, which may be insufficient for extended gameplay.

Setup Instructions
General Setup:
Include Lua for Barotrauma and AI NPCs in your active mods list via Settings and click Apply.

Singleplayer:
  1. Install client-side Lua by following this guide: Lua Installation Guide.
  2. Start the game.
  3. Press ESC and use the AI NPCs Options menu to enter your API key. Click 'Done' when finished.

Multiplayer:
  1. Install client-side Lua by following this guide: Lua Installation Guide.
  2. Set the Server Executable to Lua for Barotrauma when starting your server.
  3. Press F3 to open the console.
  4. Press ESC and use the AI NPCs Options menu to enter your API key. Click 'Done' when finished.

Optional - Using Alternative Model
To use an alternative model, modify the API endpoint and model configuration settings.

For a free model through OpenRouter, open the AI NPCs Options menu, go to the Chat Model section, and click the Refresh button to populate the Model dropdown. Make sure the "Free models only" checkbox is checked, then you can select any model from the list. The API Endpoint will be automatically updated to OpenRouter, so all you need to do is enter an API Key and click Apply.

Usage
Compatible with Single Player and Multiplayer modes (Campaign, Mission, Sandbox).

In Multiplayer, only the server needs to set up the API information. For the server host, the AI NPCs Options menu will update the server's settings. For clients, it only will update their local settings.

To interact with an NPC, type "!" followed by the NPC's name and your message. For example: !artie how are you doing?

Token usage ranges from 200 to 5000 per interaction.

All F3 console commands are viewable by running the "help" command. They are all prefixed with "ai_" and support TAB autofilling for certain parameters like configuration settings and NPC names. There are commands for modifying individual NPC's personalities, such as "ai_giverandomprofile <name>".
热门讨论 查看全部(19)
7
8 月 16 日 上午 9:00
Sixth Update
RubbingMyAxe
28
4 月 14 日 下午 5:08
置顶: Current Features and Goals
RubbingMyAxe
18
9 月 1 日 下午 5:48
置顶: Bug Reports
RubbingMyAxe
417 条留言
RubbingMyAxe  [作者] 14 小时以前 
@Voids Yes, if your computer is good enough. I like to use LM Studio for the orders prompt since it is always short and not very complicated.
Voids 20 小时以前 
Soo.. What i'm thinking.. Can use LLM studio to host ai and don't use API key?
Leechard 10 月 25 日 下午 8:40 
@RubbingMyAxe
Okay, I will give it a try. I'm worried that these two mods might be incompatible. ur mod has brought me enjoying in.thx
RubbingMyAxe  [作者] 10 月 25 日 下午 8:09 
@Leechard Yeah, the name thing can happen if it's a really unique and famous name.

Making him interact with an item would require some kind of change to their AI. I think Smarter Bots mod does it with alcohol for bots that have specific talents.
Leechard 10 月 25 日 下午 6:40 
Coincidentally i recruit a bot named Einstein, and he seems to truly believe he is the historical Einstein and even teaches me how to make rockets orbit Europa.:D .But it seems to have realized that it is an AI in a game and said many desperate yet philosophical things.:-O
Headshotkill 10 月 23 日 下午 2:54 
ok
RubbingMyAxe  [作者] 10 月 23 日 下午 2:06 
It does support longer conversations, it's just you have to specify who you're talking to each time.


This will work:
!artie how are you?
Artie Dolittle: I am doing well. How about you, captain?
!artie i am doing good, are you ready to depart?



This will not work:
!artie how are you?
Artie Dolittle: I am doing well. How about you, captain?
i am doing good, are you ready to depart?
Headshotkill 10 月 23 日 下午 1:42 
Ok so it doesn't support longer conversations but is more focused on issuing orders to specific people.
RubbingMyAxe  [作者] 10 月 23 日 下午 1:32 
Are you using voice or text? If voice, you have to say their name before your message, that's how the mod knows who you're talking to. Same with the text commands, you have to do use !<name> before the message.
Headshotkill 10 月 23 日 下午 12:54 
So it's kinda working now but very limited, I can call someone over to me with a very direct order like "Renato come here", and it will respond but when they ask what's up and I reply with a random question like "Where are you from" or "Check for any leaks" they won't respond.