Kenshi
NPCs Shop More
Fixing Idle NPCs bug
For everyone having issues with idle NPCs it is fairly easy to fix this problem, since it doesn't seem to be getting fixed by the mod maker for now. (Aphelion, if you read this I can fix the mod and send you the updated files if you want.)

  1. Go to your steam workshop files for this mod: "steamapps\workshop\content\233860\2164419226" and copy the 2164419226 folder.
  2. Paste it in your "steamapps\common\Kenshi\mods" folder and change the name to any of your choice (Recommend "NPCs Shop More Fix").
  3. In the folder, change the name of the three files to precisely match the folder name, except with a preceeding _ (underscore) before the name for the .img and .info files. Example: "_NPCs Shop More Fix.info" & "NPCs Shop More Fix.mod"
  4. Open the Forgotten Construction Set (FCS) in your main Kenshi directly. Make sure the 4 main game files are checked, and then check the new mod (NPCs Shop More Fix or whatever you named it) and make sure the mod is marked *ACTIVE*. Make sure no other mods are checked if you have used the FCS before. Click done.
  5. In the middle of the top bar, click the "Changes" button.
  6. Scroll all the way to the bottom where you'll find several AI_PACKAGE entries. Double Click "hang out in a bar" to open the package.

  7. At this point you can go the quick-fix way or the proper fix way. For a quick fix, simply delete "shopkeeper" from the Squad AI Goals (this should have been entered as Shopping instead but shopkeeper was used by mistake). Delete Shopping from Squad2 AI Goals as well (reason below). Skip to the last instruction if you don't want to go through the effort of a proper fix. At this point most NPCs will begin to behave properly, though bar squad members will cease to go shopping.

    • (OPTIONAL) Proper Fix; Remove Shopkeeper, and use the dropdown and button at top to add a new Squad AI Goal as Shopping.

    • At this point both Squad and Squad2 should have Shopping 0 24 0. Change both to match: Shopping 8 17 50.
      • (These values are explained at bottom of the FCS window but I'll reiterate here; First value is the starting hour the AI goal will activate, 2nd Value is the end hour, 23:00/11 PM. Third value is weight. You can set these values to whatever you want, but there are limits: First value 6 or higher, second value between 7-23. For bar NPCs such as here, the vanilla game itself uses 0-24 for the squad leader, but using this for the squad members results in them going idle and standing around (sometimes inside shops after closing, preventing them from closing) after midnight. I recommend using the same values as vanilla civilians; 8 17 0. This prevents after-closing weirdness of idle NPCs.

  8. Add a new Squad AI Goals and Squad2 AI Goals like we did above, but this time instead of Shopping add "patrol hometown (fluff)" to both. This should be set as the following: "patrol hometown (fluff) 0 24 3". Do this again for the "obey the AI package (non urgent) 0 24 0"
    • (Why: Now we need to add another AI goal to govern what these NPCs do when they are not shopping. When an NPC has no goal assigned they will default to relaxing, but if they have a goal assigned but cannot accomplish it they often default to idle. As such if we simply leave them with the shopping goal they will idle whenever they can't shop (either because it is outside the time limits set above, or the shops are closed). This can cause them to idle INSIDE a shop they were in at the time the goal stopped, preventing the shop from closing.)

  9. At this point you should see the following:
    Squad AI Goals
    Shopping 8 17 50
    patrol hometown (fluff) 0 24 3
    obey the AI package (non urgent) 0 24 0

    with the same for Squad2 AI Goals

    This will fix most NPCs affected by the bug, and the bar NPCs will go shopping once again.

  10. (OPTIONAL) Adjust the "at home, bar" AI_PACKAGE to have the Squad AI Goals match the Leader AI Goals. This entry only affects the Dancing Skeleton patrons, so if you aren't in Shark you won't notice, but they will also be bugged if left as-is. I haven't thoroughly checked the gate guard entries, but at a cursory look they should behave normally. If anyone does notice gate guards idle bugged let me know and I'll do some troubleshooting on them. "patrol town 24hr" looks like it might also cause the bug, but it is only used in a few areas like Spring, Mourn, and World's End. If anyone does notice it, I'd suggest adding a "Patrol Hometown" AI goal to match the leader AI goals in that AI Package and it should be enough to fix it.

  11. Once done, save the mod. Open Kenshi (If you open through steam you need to close the FCS first since Steam thinks it's already running, or open via the Kenshi.exe in the main directory if you want to leave FCS open) and go to your mods. Disable the workshop mod and enable the one you just edited. Load your save and you should see NPCs update within a few seconds. You do not need to do an import, the NPCs will adjust automatically.
Last edited by Luca; 22 Jan @ 3:50am
< >
Showing 1-3 of 3 comments
Fable 7 Mar @ 11:39pm 
Many thanks for taking the time to write this out. I haven't even used the mod yet, but I'm doing this as a precautionary step prior to use.
Last edited by Fable; 7 Mar @ 11:41pm
Lukemis 16 Apr @ 2:46pm 
So unbelievably based, I thought the aimless freaks were just the cost of using this mod. Ask the OG creator if you can upload your version to the workshop. I'm semi-familiar with FCS so I was able to pull it off but others might not be so FCS literate.

I feel like you've cured my kenshi AIDS.
I spent like three hours trying to find the issue, when i did, i started to wonder how would i fix it, at this point i'm pretty experienced in the fcs but nothing like the best ones so i knew i would be there for a while and after weeks modding the game more than playing it XD (i don't regret it one bit) i wanted to play already. Thank you so much.

I would just give all of us a favor and upload the mod somewhere. You could upload in skymod for example or lover's lab if you want to avoid steam or nexus. If you don't do it, i will eventually when i upload all the mods i have been working. The mod author seems to be focusing on learning Unreal Engine for Kenshi 2 and life, and he doesn't show activity in his steam profile since a year now.

While i believe in the copyright for mods, and people can actually license them and claim for them, i don't think this goes as far to not upload a patch for another people's work. In fact anyone could literally do the same changes and items in the fcs he did, add a diferrent value to one of the things, name it differently, and voilá. Mods are for the community. And the copyright in most cases are the respect the community have for the authors. Not even those mods licensed can stop internet from uploading somewhere. As licences can't stop pirate forums and websites.

Again, thanks you so much for this. And if you decide uploading it yourself. Put in the name "idle npc" or something, like "npc shop more fix (idle npc)".

Because i certainly didn't knew what was causing the problem, and when i reached out in discord nobody told me anything XD. So it would be great to add that for the future people that find this problem caused by this mod and don't know where the hell look for it.
< >
Showing 1-3 of 3 comments
Per page: 1530 50