Garry's Mod

Garry's Mod

Map NPC Replacer
32 Comments
7david 4 Sep @ 9:13am 
threw an error and didnt work. i love this addon!
crysmiss07 29 Aug @ 5:29pm 
it CRACHS EVREY TIME! HELP
avast windows 17 Aug @ 8:46am 
бабка в скайпе быстрее разбиралась чем я в этой шняге
ColdMoon  [author] 3 Aug @ 6:17am 
The replaceable models are generated automatically based on your subscriptions. If the addons you subscribed to include enemy units which based on the Combine template, then they’ll appear in the COMBINE replacement list.
飞天大笑坝 3 Aug @ 2:40am 
npc model lost,some of them cant found,list improvement can't use,Noooo!!!TOT
Garry 25 Jul @ 5:10am 
Checked it, everything like in the previous comment. In the first game session the same thing happened and in the second one too. The only difference is that it's not laggy in the second session. Well, it was worth to try.
ColdMoon  [author] 24 Jul @ 12:58pm 
Could you try launching the game a second time to see if it still takes as long? I’ve now changed the code so that scanning NPC animation sequences only runs on the first startup or when a change in the NPC list is detected.
Garry 24 Jul @ 11:16am 
@ColdMoon, well now i noticed that loading of map went from "Lua started" to "Ready to play!" and now as previously i needed to wait, but this time for like 20 minutes for it to load with a screen where i need to restart. BUT eventually a managed to enter and i got auto-disconect but somehow i didn't disconnect. Then everything was laggy and after some time it ended and i could play normally. That's a big progress! 👍
ColdMoon  [author] 23 Jul @ 8:56pm 
@TF2 Gameplay batch-loading mechanism added, Please try and see if it works. It might cause a short freeze when you get the physics gun. In the future, I plan to have the scanning only run on the first startup or when a change in the NPC list is detected — that should completely resolve the issue.
Neosun 23 Jul @ 2:55pm 
Though I was pressing that blue save button (and nothing was reflecting), the most recent update fixed this.

Thanks :steamhappy:
Garry 23 Jul @ 1:33pm 
@ColdMoon, thank you. Yes, probably other users also can have such problem if they have a lot of add-ons like me. Maybe i will try to load the map (this is gonna be pain) before your update of a batch-loading mechanism tomorrow and see how it goes.
ColdMoon  [author] 23 Jul @ 9:52am 
@TF2 Gameplay Currently, it has to reload every time. But depending on your situation, I might add a batch-loading mechanism for users with a large number of subscriptions, to try and avoid overloading by loading too many models at once.
ColdMoon  [author] 23 Jul @ 9:44am 
@Neosun click the blue SAVE button on the left,the one on the top is for bodygroups
Neosun 23 Jul @ 7:05am 
I can confirm I'm having the same problem that Roy and Armalad are having.

Even if I save and ensure all the replacement flags I want are enabled, they do not apply.

Furthermore, going back to the configuration menu shows that they uncheck themselves every time I close or change tabs on the menu.
Garry 23 Jul @ 6:18am 
Yea, i think so. But if everything will load like after a hour, will it need to be loaded in next game session? Or i will need always to wait 2 hours for it to load every game session?
ColdMoon  [author] 23 Jul @ 6:09am 
@TF2 Gameplay To distinguish animation types of models, this addon loads all NPC models at game startup to check their animation data. In your case, you’ve probably subscribed to too many, causing a memory overload.
ColdMoon  [author] 23 Jul @ 6:05am 
To prevent player-spawned NPCs from being randomized, you need to re-check "Enable for Player spawned too" every time a new map is loaded. If it still doesn’t work, try deleting everything inside garrysmod/data/map_npc_replacer. If that’s not the reason, then I’m out of options too.
Armalad 23 Jul @ 5:20am 
Still nothing. Disabled all addons, save for this one and the snpcs I want to replace, removed everything from my addons folder and still nothing.
Garry 23 Jul @ 3:42am 
I found a very BIG issue here. I have like 800 addons and i found out that i can't load the map after installation of this addon. As i load the map, the screen stops on "loading resources" or sometimes stops on "Lua started" and basically i waited like 30 minutes to see if map will load. It didn't and i had to restart my PC because i couldn't even leave Garry's mod. After restarting i entered once again, same issue happened. BUT as i deleted the addon, everything went back to normal and i could play. Interestingly, there were no any errors of lua when i had this addon. I wonder if you can find an issue but in console didn't find anything.
ColdMoon  [author] 22 Jul @ 10:01am 
I’ve made an update—check if the issue happens to be resolved. If not, it might be a conflict with the addons you’ve subscribed to, since I haven’t encountered this issue myself.
Armalad 22 Jul @ 5:17am 
Done all that. Everything is checked, and I'm getting the same problem Roy is having.
ColdMoon  [author] 21 Jul @ 5:56pm 
@Armalad Also check "npc_ply_replacer_zombies" to randomizes zombies that spawn by yourself.
RoyTheBoy 21 Jul @ 5:17pm 
even when i save they dont appear
Armalad 21 Jul @ 10:54am 
Did all of that, still not doing anything. Does it mean anything that the SAVE button is grayed out? IT still says it's been saved, but i bring the snpc menu back up and the snpcs I checked off no longer are.
ColdMoon  [author] 21 Jul @ 9:46am 
@Armalad Check "Enable zombie etc. replacement" and "replace ZOMBIE to SNPC", then select your SNPC and click "OK", and click "SAVE" in main GUI, and then Utilities > Admin > Clean up > Clean up everything or restart the game
Armalad 21 Jul @ 5:58am 
How do you replace zombies with snpcs? I'm trying to replace the efault zombies with VJ common infected but it doesn't seem to be working. The save button is red and it doesn't seem to be saving the selected snpcs.
RoyTheBoy 21 Jul @ 2:22am 
thanks
ColdMoon  [author] 21 Jul @ 1:47am 
@RoyTheBoy It shouldn't affect the main functionality, but the issue is resolved now. Thanks for providing it.
RoyTheBoy 20 Jul @ 10:36pm 
got this error.

[Map NPC Replacer] lua/autorun/map_npc_replacer.lua:1666: bad argument #1 to 'Exists' (string expected, got boolean)
1. Exists - [C]:-1
2. TabMissingModels - lua/autorun/map_npc_replacer.lua:1666
3. unknown - lua/autorun/map_npc_replacer.lua:4131

Timer Failed! [Simple][@lua/autorun/map_npc_replacer.lua (line 4131)]

when i save my stuff it doesnt save.
ColdMoon  [author] 19 Jul @ 11:54am 
The available replacement options are determined by the NPC addons you subscribed to. Most of the ones I subscribed to are anime-themed, so that's why it turned out this way.
roneifranco 19 Jul @ 11:43am 
works with not-anime npcs?:steammocking:
AtrociousBean 17 Jul @ 9:52am 
buh???