Garry's Mod

Garry's Mod

Military SNPCs
Error
I've been encountering this error:

[VJ Base] lua/entities/npc_vj_creature_base/init.lua:3776: attempt to compare nil with number
1. IdleSoundCode - lua/entities/npc_vj_creature_base/init.lua:3776
2. unknown - lua/entities/npc_vj_creature_base/init.lua:1678

Does Anyone know what it means becuase I dont, Tank barrels are also gone from the tanks.
Thank you in advance
< >
Showing 1-13 of 13 comments
Uber SirBuger 17 Mar, 2017 @ 6:07pm 
This also happens for all tanks from all Military snpcs addons
This Happens to Me as well, I would really like to know how to fix it.
Last edited by Doordashing On Fent; 24 Mar, 2017 @ 1:17pm
gfront55 17 Apr, 2017 @ 9:50am 
I think it may have to do with the mod Half Life 2 Beta SNPCs. I disabled that addon and it fixed the problem for me.
Uber SirBuger 17 Apr, 2017 @ 5:29pm 
thanks
i disabled that addon to but tanks are still broken with this error: [VJ Base] lua/entities/npc_vj_creature_base/init.lua:3776: attempt to compare nil with number
1. IdleSoundCode - lua/entities/npc_vj_creature_base/init.lua:3776
2. unknown - lua/entities/npc_vj_creature_base/init.lua:1678

same here
MadmanSkeleton 4 Jul, 2017 @ 12:59pm 
delete all of these addons and try the tanks again https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=840889184
medium_rifle 5 Aug, 2017 @ 10:11am 
everything is an error except for tanks
Crispy_Potato 24 Jan, 2018 @ 11:19pm 
[VJ Base] lua/autorun/vj_entity_codes.lua:365: attempt to call method 'TranslateActivity' (a nil value)
1. VJ_TranslateWeaponActivity - lua/autorun/vj_entity_codes.lua:365
2. DoReloadAnimation - lua/entities/npc_vj_human_base/init.lua:1827
3. RunCode_OnFinish - lua/entities/npc_vj_human_base/init.lua:1866
4. DoRunCode_OnFinish - lua/entities/npc_vj_human_base/schedules.lua:29
5. ScheduleFinished - lua/entities/npc_vj_human_base/schedules.lua:85
6. unknown - lua/entities/npc_vj_human_base/init.lua:1648
that happens to me too but on videos it shows no errors on the charaters
The Shark Dude 2 Jun, 2019 @ 8:16am 
Why is nobody talking about how the SNPCs do ZERO DAMAGE to other NPCs?
NitroStarman 5 Jan, 2020 @ 6:34am 
Im getting this error now. I recently downloaded a content pack from a SWRP server. I've always had VJ base addons without issue. The server uses them without issue too.
Has a solution been found? I don't have any of the outdated/incompatible addons installed.

[VJ Base] lua/entities/npc_vj_human_base/init.lua:3354: attempt to perform arithmetic on field 'VJ_LastInvestigateSdLevel' (a nil value)
1. DoEntityRelationshipCheck - lua/entities/npc_vj_human_base/init.lua:3354
2. unknown - lua/entities/npc_vj_human_base/init.lua:2212

NPCs dont attack their enemies and individual hostile NPCs only attack me if I hurt them specifically (their friends are supposed to attack/become alert if one of them gets attacked, but error seems to break this mechanic). Sometimes I can't damage them (shots go through them).
iamstewpit 27 Jul, 2021 @ 1:49pm 
Has no one found a solution to this problem yet?
< >
Showing 1-13 of 13 comments
Per page: 1530 50