dborodin836 / TF2-GPTChatBot

An AI-powered chatbot for Team Fortress 2 fans and players.
GNU General Public License v3.0
13 stars 1 forks source link

Not working? #115

Closed teufortressIndustries closed 1 month ago

teufortressIndustries commented 1 month ago

I just bought a new pc yesterday and decided to try out the v2, but apparently none of the commands work? I tried removing - disabled trait from the commands.yaml but it feels like it did nothing. image image

teufortressIndustries commented 1 month ago

I think i configured everything right? -novid -rpt -usercon +ip 0.0.0.0 +rcon_password password +hostport 42465 +con_timestamp 1 +net_start config.ini

[GENERAL]
TF2_LOGFILE_PATH=C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\console.log
OPENAI_API_KEY=sk-1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKL

[GROQ]
GROQ_API_KEY=pipes -> |||||||||||||||

[COMMANDS]
CLEAR_CHAT_COMMAND=!clear
RTD_COMMAND=!rtd

[RCON]
RCON_HOST=127.0.0.1
RCON_PASSWORD=password
RCON_PORT=42465

[CHAT]
; Type: bool [True/False]
;
; Before (ENABLE_SHORTENED_USERNAMES_RESPONSE=True):
; [username] <response goes here>
; After (ENABLE_SHORTENED_USERNAMES_RESPONSE=False):
; <response goes here>
;
; Default = True
ENABLE_SHORTENED_USERNAMES_RESPONSE=True

; MUST include $username
; Type: string
;
; Before (SHORTENED_USERNAMES_FORMAT="[$username] "):
; [username] <response goes here>
; After (SHORTENED_USERNAMES_FORMAT="Response for $username: "):
; Response for username: <response goes here>
;
; Default = "[$username] "
SHORTENED_USERNAMES_FORMAT="[$username] "

; Type: integer
;
; Before (SHORTENED_USERNAME_LENGTH=12):
; [longusername] <response goes here>
; After (SHORTENED_USERNAME_LENGTH=6):
; [longus..] <response goes here>
;
; Default = 12
SHORTENED_USERNAME_LENGTH=12

; Time in seconds
; Type: float
;
; Default: 1.3
DELAY_BETWEEN_MESSAGES=1.3

[MISC]
; Type: bool [True/False]
; Disable the default binding for key presses
; F11 - Start/Stop program
; F10 - Stats command dump
;
; Default = False
DISABLE_KEYBOARD_BINDINGS=False

[STATS]
STEAM_WEBAPI_KEY=Free Items Exploit 2024!!!
ENABLE_STATS_LOGS=False

[CUSTOM-MODEL-GENERAL]
; 127.0.0.1:5000 or your-uri-here.trycloudflare.com
CUSTOM_MODEL_HOST=127.0.0.1:5000

[PERMISSIONS]
; Set to True if the function should fall back to checking the username for admin privileges when the user's SteamID3
; does not match the host's SteamID3.
FALLBACK_TO_USERNAME=True

[EXPERIMENTAL]
; Unlike the standard 'Fire-and-Forget' queue which sends messages without acknowledging
; their delivery, the confirmable queue adds reliability by ensuring that each message is
; successfully delivered. It also integrates additional checks to ascertain if a user
; has been muted by the game, preventing unnecessary message transmission while muted.
; It is considered experimental and may be more error-prone than the standard approach.
; Use with caution, as it may introduce unexpected behavior or performance issues.
; Type: bool [True/False]
;
; Default = False
CONFIRMABLE_QUEUE=False

[FUN]
; 0 - disabled, 1 - rickroll, 2 - random youtube meme
RTD_MODE = 0

commands.yaml

commands:
  # OpenAI commands
  - name: gpt3
    prefix: '!'
    provider: open-ai
    type: quick-query
    model: gpt-3.5-turbo-1106
    traits:
      - openai-moderated
      - empty-prompt-message-response:
          msg: "Hello there! I am ChatGPT, a ChatGPT plugin integrated into Team Fortress 2. Ask me anything!"

  - name: gpt4
    prefix: '!'
    provider: open-ai
    type: quick-query
    model: gpt-4o
    traits:
      - admin-only
      - openai-moderated

  - name: cgpt
    prefix: '!'
    type: command-global
    provider: open-ai
    model: gpt-3.5-turbo-1106
    traits:
      - openai-moderated

  - name: pc
    prefix: '!'
    type: command-private
    provider: open-ai
    model: gpt-3.5-turbo-1106
    traits:
      - openai-moderated

  # Text-generation-webui commands
  - name: ai
    prefix: '!'
    type: quick-query
    provider: text-generation-webui
    traits:

  - name: chat
    prefix: '!'
    type: command-global
    provider: text-generation-webui
    traits:

  - name: pcc
    prefix: '!'
    type: command-private
    provider: text-generation-webui
    traits:

  # GroqCloud commands
  - name: g
    prefix: '!'
    type: quick-query
    provider: groq-cloud
    model: llama3-70b-8192
    traits:

  - name: gc
    prefix: '!'
    type: command-global
    provider: groq-cloud
    model: llama3-70b-8192
    traits:

  - name: gpc
    prefix: '!'
    type: command-private
    provider: groq-cloud
    model: llama3-70b-8192
    traits:
teufortressIndustries commented 1 month ago

I think I might have found the issue. logs are dead empty! (almost) console.log

For FCVAR_REPLICATED, ConVar must be defined in client and game .dlls (sv_use_steam_voice)
[TF Workshop] Got 39 subscribed maps, 39 new
ProtoDefs post data loaded.
ProtoDefs loaded. 40.23 MB used
ProtoDefs post data loaded.
ProtoDefs loaded. 40.23 MB used
maxplayers set to 24
Steam config directory: C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\platform\config
CClientSteamContext logged on = 1
Convar tf_impactwatertimeenable has conflicting FCVAR_CHEAT flags (child: FCVAR_CHEAT, parent: no FCVAR_CHEAT, parent wins)
Parent cvar in server.dll not allowed (tf_mvm_max_connected_players)
Convar cl_particle_retire_cost has conflicting FCVAR_CHEAT flags (child: FCVAR_CHEAT, parent: no FCVAR_CHEAT, parent wins)
Convar r_drawropes has conflicting FCVAR_CHEAT flags (child: FCVAR_CHEAT, parent: no FCVAR_CHEAT, parent wins)
Couldn't find script file scripts/hudanimations_user.txt
Couldn't find script file scripts/hudanimations_user.txt
ProtoDefs post data loaded.
ProtoDefs loaded. 40.23 MB used
ProtoDefs post data loaded.
ProtoDefs loaded. 40.23 MB used
Cleaning up unneeded replay block data...
Replay cleanup done.
Loading default settings for high sensitivity
ProtoDefs post data loaded.
ProtoDefs post data loaded.
CTFGCClientSystem::PostInitGC
CTFGCClientSystem - adding listener
ProtoDefs post data loaded.
ProtoDefs post data loaded.
'overrides/pre_comfig.cfg' not present; not executing.
Lobby-based matchmaking mode not active
Can't alias "kill" as it's already a ConCommand or ConVar and not an input command (+/-).
Can't alias "explode" as it's already a ConCommand or ConVar and not an input command (+/-).
Can't alias "commentary_finishnode" as it's already a ConCommand or ConVar and not an input command (+/-).
Unknown command "r_shadowlod"
Unknown command "cat_ipc_exec_all"
Unknown command "cat_detach"
Unknown command "block_game_overrides_once"
'overrides/setup_hook.cfg' not present; not executing.
Low preset selected 
Disable Pyroland addon applied 
Flat Mouse addon applied 
'addons/lowmem.cfg' not present; not executing.
'addons/no-footsteps.cfg' not present; not executing.
No Soundscapes addon applied 
'addons/no-tutorial.cfg' not present; not executing.
Null-Canceling Movement addon applied 
'addons/transparent-viewmodels.cfg' not present; not executing.
Can't alias "spec_next" as it's already a ConCommand or ConVar and not an input command (+/-).
Can't alias "spec_prev" as it's already a ConCommand or ConVar and not an input command (+/-).
Modules applied 

---------------|||||-------------------- 
----------||||||||||-------------------- 
-------||||||||------------------------- 
-----||||||-----||||||||---------------- 
---|||||----||||||||||||||||------------ 
--||||----|||||||------|||||||---------- 
-||||---|||||--------------|||||-------- 
-|||---||||------------------||||------- 
|||---||||--------------------||||------ 
|||---|||----------------------|||------ 
|||---|||----------------------|||---||| 
|||---|||----------------------|||---||| 
|||---||||--------------------||||---||| 
||||---||||------------------||||---|||| 
|||||---|||||--------------|||||---||||| 
||||||---||||||||------|||||||----|||||| 
||||||||----||||||||||||||||----|||||||| 
|||--||||||-----||||||||-----||||||--||| 
|||----||||||||----------||||||||----||| 
|||-------||||||||||||||||||||-------||| 
|||-----------||||||||||||-----------||| 

  ********************************** 
  ********************************** 
  mastercomfig 9.10.3 loaded 
  May 6, 2024 
  ********************************** 
  ********************************** 

  ################################################## 
  This release took 50 hours to produce. 
  If you like the work I do, consider supporting me! 

  docs.comfig.app/latest/support_me 

  I accept Ko-fi, Liberapay, and trade offers! 

  Your continued support, gratitude and dedication 
  are much appreciated. Thank you so much! 
  ################################################## 

\\\ TabGraph successfully launched! \\\ 
Can't alias "mat_antialias" as it's already a ConCommand or ConVar and not an input command (+/-).
09/11/2024 - 23:02:46: Network: IP 0.0.0.0, mode MP, dedicated No, ports 42465 SV / 27005 CL
09/11/2024 - 23:02:46: [FRAGMENT] Applied default settings 
09/11/2024 - 23:02:46: [FRAGMENT] Applied misc aliases 
09/11/2024 - 23:02:46: [FRAGMENT] frag_info 
09/11/2024 - 23:02:46: [FRAGMENT] frag_oobe 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpresets 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cprimary 
09/11/2024 - 23:02:46: [FRAGMENT] frag_csecondary 
09/11/2024 - 23:02:46: [FRAGMENT] frag_caccent 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cnegative 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpositive 
09/11/2024 - 23:02:46: [FRAGMENT] frag_ccasual 
09/11/2024 - 23:02:46: [FRAGMENT] frag_ccompetitive 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cmvm 
09/11/2024 - 23:02:46: [FRAGMENT] frag_ccommunity 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpartymember1 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpartymember2 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpartymember3 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpartymember4 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpartymember5 
09/11/2024 - 23:02:46: [FRAGMENT] frag_cpartymember6 
09/11/2024 - 23:02:46: [FRAGMENT] frag_scoreboard 
09/11/2024 - 23:02:46: [FRAGMENT] frag_hitmarker 
09/11/2024 - 23:02:46: [FRAGMENT] frag_killfeed 
09/11/2024 - 23:02:46: [FRAGMENT] frag_playerclass 
09/11/2024 - 23:02:46: [FRAGMENT] frag_mmenu 
09/11/2024 - 23:02:46: 'frag_usercfg' not present; not executing.
09/11/2024 - 23:02:46: [FRAGMENT] frag_usercfg 
writing bindings to C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\cfg\frag_vrc.txt
teufortressIndustries commented 1 month ago

Turns out my hud was at fault. Sorry for false alarm! Removing it fixed the issue. Who knew? image image