Left 4 Dead 2

Left 4 Dead 2

Left 4 GPT
 此主题已被置顶,因此可能具有重要性
smilzo  [开发者] 2023 年 8 月 21 日 上午 2:11
How to install (step by step)
  1. You need an OpenAI API Key (you can get it here: https://platform.openai.com/account/api-keys ). You will need to register (you can register with your google account) and verify your phone. Then you can create a demo key for free that you can use for a while. After it expires (or run out of tokens) you will need to pay to keep using it.
  2. Once you have your API key, subscribe to this addon (and Left 4 Lib) if you haven't done it already.
  3. Go to the Dot4GPT GitHub Repository (Here: https://github.com/smilz0/Dot4GPT ) and get the binaries of the external program. If you don't trust the binaries, get the source code and recompile it with Visual Studio.
  4. Once you have your binaries, put them wherever you want on your computer, it doesn't matter.
  5. In the same folder of the binaries you can find a few .bat files, one for each bot. Double click on one of them, for example Bill.bat.
  6. You will see the program open and terminate with an error message but you will also see a new file being created in the same folder. The file is called "settings.json". Open it with notepad or another text editor (or even better with a json editor).
  7. In the file you will see this string: "IOPath":"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Left 4 Dead 2\\left4dead2\\ems\\left4gpt". If the path to your L4D2 installation is different, change it but make sure to use double backslashes.
  8. In the file you will also see this: "ApiKey":"". Put your OpenAI API Key into the "". Like this: "ApiKey":"thisisyourapikey"
  9. Save the file and close it.
  10. Now double click on the .bat file of each bot you want to talk to. This time the console app should stay open. If it doesn't, you probably did something wrong.
  11. Open the game, make sure that the "Left 4 GPT" addon is enabled.
  12. Start a new local host game and start talking with the bots.
最后由 smilzo 编辑于; 2023 年 8 月 26 日 上午 1:45
< >
正在显示第 1 - 7 条,共 7 条留言
Mouse eating M&M 2023 年 8 月 21 日 上午 5:50 
uh the batch files they just die after 1 millisecond of me clicking it no error message either
Lorik 2023 年 8 月 22 日 上午 2:51 
there no new file creating when a press a bot folder why is that hard for only this?
• .50 BMG • 2023 年 9 月 23 日 上午 9:21 
bruh they keep saying...







Sorry what?
smilzo  [开发者] 2023 年 9 月 24 日 上午 4:56 
bruh they keep saying...







Sorry what?
That is the default reply when the chatgpt api fails. Try writing the request differently or maybe it's a connection issue. If you set the APIErrors setting to true in the settings.json file you get the error message instead of sorry what. That could help you troubleshoot it.
FireBADnoFire 2024 年 7 月 30 日 下午 12:16 
Can you make a version compatible with Ollama API and not just OpenAI's API?
smilzo  [开发者] 2024 年 7 月 31 日 上午 11:58 
引用自 FireBADnoFire
Can you make a version compatible with Ollama API and not just OpenAI's API?
I did it already
https://www.youtube.com/watch?v=Z_OX-yWXAo0
But it's private atm.
KaraZor-El 3 月 27 日 上午 7:56 
First of all, I would like to thank smilzo for this amazing addon. And since he did not release the local LLM support yet. I've forked his github repo and created a modified version from his plugin.
It's not only Local LLM supported, but also other providers like, Google, Mistral, Groq. You also don't need batch files, just run the exe directly.

Read the details for the additional featurers:
https://github.com/DrStr4Nge147/L4D2-LLMChat

Please take note that there will be no future upgrades for this project as this is only an attempt to modify the original project with the desired features. Let's leave it all to smilzo!
最后由 KaraZor-El 编辑于; 3 月 27 日 上午 8:13
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50