Garry's Mod

Garry's Mod

TTT to CW2.0 Weapon Conversion Addon V2
This topic has been locked
Crownhunter 19 Apr, 2020 @ 3:39am
Lua Errors
Hi Logan,

first of, thank you for your conversion mod. I really enjoyed it playing on a public server and wanted to install it on my server as well.
Sadly, I have some issues that I cannot open the customization menu with the "noClip" Key and that some lua errors are beening spammed.
I attached the server console output below. Maybe you can see an obivous error I made with the setup and push me in the right direction or solve this nil exception.

Thank you for your help


srcds.exe -console -maxplayers 16 -game garrysmod +gamemode terrortown +map ttt_minecraft_b5 -authkey 00_put_your_own_authkey_here_00 +host_workshop_collection 1357310455


Console initialized. ConVarRef mat_dxlevel doesn't point to an existing ConVar Game.dll loaded for "Garry's Mod" Initializing Steam libraries for Workshop.. WS: Waiting for Steam to log us in..... WS: Fetching collection info... Processing collection 1357310455... Collection 'test CW2' 4 new addons WS: Finished! WS: Processing 4 addons... Processing addon 4: Customizable Weaponry 2.0 (349050451)... Mounted! Processing addon 3: Extra Customizable Weaponry 2.0 (358608166)... Mounted! Processing addon 2: ttt_minecraft_b5 (159321088)... Mounted! Processing addon 1: TTT to CW2.0 Weapon Conversion Addon (1590111190)... Mounted! WS: Finished! Changing gamemode to Trouble in Terrorist Town (terrortown) Network: IP 111.222.333.44, mode MP, dedicated Yes, ports 27015 SV / 27005 CL Error loading cfg/trusted_keys_base.txt Error loading cfg/pure_server_minimal.txt Extracting BSP to map.pack in order to mount BSP embedded content... PREP OK Couldn't write map.pack to mount embedded content! Included TTT language file: chef.lua Included TTT language file: english.lua Included TTT language file: german.lua Included TTT language file: portuguese.lua Included TTT language file: russian.lua Included TTT language file: spanish.lua Included TTT language file: swedish.lua Included TTT language file: tradchinese.lua Trouble In Terrorist Town gamemode initializing... Making workshop map available for client download Unknown command "sk_plr_dmg_crowbar" Unknown command "sk_npc_dmg_crowbar" Unknown command "sk_plr_dmg_stunstick" Unknown command "sk_npc_dmg_stunstick" Executing dedicated server config file server.cfg Using map cycle file cfg/mapcycle.txt. Bad field in entity!! KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file materials/models/weapons/w_models/he nade/nade.vmt VertexLitGeneric, KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file materials/models/weapons/w_models/he nade/nade.vmt VertexLitGeneric, Failed to load .nav file: Cannot access! Initializing Steam libraries for secure Internet server No account token specified; logging into anonymous game server account. (Use sv_setsteamaccount to login to a persistent account.) Connection to Steam servers successful. Public IP is 11.22.33.444. Assigned anonymous gameserver Steam ID [A-1:234567(12345)]. VAC secure mode is activated. Client "testuser" connected (11.222.333.443:27006). TTT initializing convar settings... Bad field in entity!! [testuser|2|STEAM_0:0:123456789] Lua Error: [TTT to CW2.0 Weapon Conversion Addon] lua/autorun/cw2tttmain.lua:85: attempt to index local 'respectiveTTTgun' (a nil value) 1. DoStatTransfer - lua/autorun/cw2tttmain.lua:85 2. v - lua/autorun/cw2tttmain.lua:358 3. unknown - lua/includes/modules/hook.lua:84
< >
Showing 1-2 of 2 comments
Crownhunter 19 Apr, 2020 @ 3:48am 
the server.cfg :

ttt_minimum_players 1 ttt_preptime_seconds 20 ttt_posttime_seconds 5 ttt_traitor_pct 0.34 ttt_detective_pct 0.2 ttt_detective_min_players 4 ttt_cw20conversionmod_attachmentstyle 2
Logan  [developer] 19 Apr, 2020 @ 5:26pm 
You don't run into this issue with a vanilla install of the addon, so you've probably edited it in some way. Did you try adding weapons to the AdditionalWeapons table in cw2tttconfig.lua? That's going to be where the problem is deriving from, you've supplied it with a weapon class that doesn't exist.

As for not being able to edit the guns with noclip, were you able to in the public server, but not your private server?

Also, what's the server? Out of curiosity.
Last edited by Logan; 19 Apr, 2020 @ 7:42pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50