Garry's Mod

Garry's Mod

NPC Tools
Problems with the NPC Spawner
When I create a NPC Spawner, then save and reload it says: "NPC Tools is creating errors", NPCs get duplicated and are not following patrol points.

This is a part from the console:
ERROR: numpad.OnDown key is nil!
ERROR: numpad.OnDown key is nil!
TEST [lua/entities/obj_npcspawner/cl_init.lua][lua/entities/obj_npcspawner/init.lua]
TEST [lua/entities/obj_npcspawner/init.lua][lua/entities/obj_npcspawner/init.lua]
FOUND IN ADDON [104486597]
TEST [lua/entities/obj_npcspawner/shared.lua][lua/entities/obj_npcspawner/init.lua]
TEST [lua/includes/modules/hon.lua][lua/includes/modules/duplicator.lua]
TEST [lua/includes/modules/json.lua][lua/includes/modules/duplicator.lua]
TEST [lua/includes/modules/hon.lua][lua/includes/modules/duplicator.lua]
TEST [lua/includes/modules/json.lua][lua/includes/modules/duplicator.lua]
TEST [lua/includes/modules/hon.lua][lua/includes/modules/duplicator.lua]
TEST [lua/includes/modules/json.lua][lua/includes/modules/duplicator.lua]

[NPC Tools] lua/entities/obj_npcspawner/init.lua:43: attempt to perform arithmetic on a nil value
1. unknown - lua/entities/obj_npcspawner/init.lua:43
2. Spawn - [C]:-1
3. CreateEntityFromTable - lua/includes/modules/duplicator.lua:433
4. unknown - lua/includes/modules/duplicator.lua:731
5. ProtectedCall - [C]:-1
6. Paste - lua/includes/modules/duplicator.lua:731
7. unknown - lua/includes/gmsave.lua:58

Please help! Thank you
< >
Showing 1-15 of 23 comments
Bloodvin Feb 16, 2014 @ 9:28am 
Originally posted by Chicken McNuggets:
Disable all your addons for ♥♥♥♥ sakes
suck my ass ♥♥♥♥♥
Geese1999 Feb 20, 2014 @ 12:27pm 
When I spawn NPCs with the spawner.. they don't follow mah nodes. :c
Kibōchen Jun 20, 2014 @ 7:38pm 
Yeah, same with me. I think it's because the map you're on dosent have nodes. Try gm_bigcity.
Mystic Midnight Jun 24, 2014 @ 6:00pm 
my npc's wont attack me...they just keep aiming at me and putting their weapon back down in a loop...they follow me like im an ally too....
Last edited by Mystic Midnight; Jun 24, 2014 @ 6:15pm
Kibōchen Jun 25, 2014 @ 3:56pm 
Are you using custom weapons? That might be the problem. NPCs only use weapons that came with the game in the first place, such as the HL2 weapons. If they use anything else, it causes errors until they die.
Last edited by Kibōchen; Jun 25, 2014 @ 3:56pm
Al Nahyаn Jul 24, 2014 @ 10:35pm 
WHAT THE ♥♥♥♥!!OKOfreufhou;RHFOherfohrofjiopfpoWREJFIOnrfrnFNRFAEFowgOIEGOiehoigeoihjfoiEJFROIhrwjfoiWJFJw'jfngriehgORGNFOAKRpwfkOIFHYERURJUFFJHFFFOSFDM
Al Nahyаn Jul 24, 2014 @ 10:36pm 
ALL OF YOU R ♥♥♥♥♥
Al Nahyаn Jul 24, 2014 @ 10:38pm 
THAY CANT HAVE THAT NPC GUN'S THAY NEDD COMBINE GUN'S
Kibōchen Jul 25, 2014 @ 5:19pm 
Beau, stop being autistic and don't talk in caps and gibberish.
Kodi022 Aug 28, 2014 @ 7:31pm 
The spawner tool's Patrol points don't work. The NPCs won't move on them. And newly spawned npcs won't move until shot at.
longmanuptop Sep 2, 2014 @ 10:22am 
The weapon select menu only shows player-only weapons.
Look at all of us,
Silverlan, what the ♥♥♥♥ have you done...
Longo Two-Guns Oct 6, 2014 @ 2:45pm 
How can I make the patrol routes work after reloading a game? And the spawners not produce an incredible amount of NPCs when I reload?
MajesticPigeon Nov 15, 2014 @ 10:43am 
i have problems with the Cleanup Corpses thing. i have it off but it cleaning up the corpses and i whan the corpses to stay.
Angsty Teen XD Dec 29, 2014 @ 3:17am 
Guys, anyone knows how to get rid of the spawnpoints except CTRL+Z? I really like this mod but if i want to delete a spawn point I only can do it with CTRL+Z. If I save the map and load in later, I'm not be able to do with them anything just the admin total cleanup what...what is unnacceptable on a fully built map. Any ideas?
Trosky Apr 4, 2015 @ 5:48pm 
The problem is the Npc's weapon, i have custom NPC's weapon but the addon only recognizes the player's weapon producing that Npc can't use the weapon.
Also i have problem with the Ar2 (pulse rifle)
< >
Showing 1-15 of 23 comments
Per page: 1530 50