Kenshi
Guards lock gates
40 Comments
Horus Mar 17 @ 4:27pm 
Does this mean I can set some characters as gate guards and they'll open for parties that are not hostile?

If so, I'm in love with it!
Alexios II Komnenos May 28, 2024 @ 2:40am 
Very nice mod, recommended for nomad or "isolated" (aka not going to cities) playthroughs. If you do plan to play in cities, or be near cities, probably will not want to play with it, you'll be seeing fights from time to time and be required to import or get some shoppers screwed. And yes, it seems to work on UWE
Shima Jan 11, 2024 @ 10:06am 
Does it still work ? or It didnt work for me only ?
maxibreard Nov 6, 2023 @ 9:54am 
Work with uwe?
Bobby Sep 20, 2023 @ 1:37am 
I really like the mod you made,May I integrate it into my Kenshi mod :steamhappy:
kele Aug 29, 2023 @ 9:30am 
Hello, I am a player from China, I hope to translate this MOD into Chinese, I hope to get your permission, I am sorry to leave a message until now, there is a problem with my accelerator before, so I cannot leave a message
JPL 1138 Aug 8, 2023 @ 2:07pm 
I love the idea of this mod, but Kenshi's AI does not want to cooperate. Sho Battai has become a blood bath. An eternal battle rages night and day between the samurai guards, the tech hunters, the nomads, the united hero's league, and any unlucky peasant stuck outside the walls since they have all committed burglaries trying to get back in.

It's funny really. This must be what Kyoto was like during the Onin War.
kenpachi85 Jun 11, 2023 @ 6:39pm 
Thanks for making this maybe this will help the hub survive the Path to Valhalla mod. Fricking beak thing with 70 in stats and 57mph wiped the town out last time.
Pers May 3, 2023 @ 7:40am 
Thank you for making a great mod.
I have created a Japanese version of this mod and published the page.
If there are any problems, please contact us so i can correct or remove them.
https://steamcommunity.com/sharedfiles/filedetails/?id=2970865819
LSD Angel Jan 25, 2023 @ 7:42am 
@Rez yeah Thanks a lot
Xiivait Jan 24, 2023 @ 8:05am 
Thanks for the option man
REz  [author] Jan 23, 2023 @ 11:41am 
@LSD Angel, unfortunately that is kenshi AI being kenshi AI, I don't think I can fix that. I just updated the mod and now you can ask the guards to open the gates so you can avoid that case. The guards should also open the gates a bit more frequently now.
LSD Angel Jan 23, 2023 @ 10:21am 
Find strange fing, if gates closing and near caravan, then the strating to atack gates to open
REz  [author] Jan 8, 2023 @ 8:56pm 
@SteelBlood No, the mod affects only NPC cities.
SteelBlood Jan 8, 2023 @ 10:04am 
So does this mod let my own members close the gate to my own city when under attack? And will they reopen after?
REz  [author] Dec 28, 2022 @ 1:52pm 
@Jet as soon as guards aggro on you they will try to close the gates as fast as possible. The most consistent way of getting out of a town after you stole is to not get caught.
@b0ki works only with faction bases/towns
b0ki Dec 28, 2022 @ 11:54am 
Does this work with your base or only faction bases/towns?
Jet Dec 20, 2022 @ 5:18am 
do the walls close immediately or does it give you 10 seconds to slide under it? How do you get out if the town turns hostile due to theft? is there a way?
DUCATISLO Dec 3, 2022 @ 3:06am 
gg
REz  [author] Nov 22, 2022 @ 7:57am 
Sorry it took so long, I was really busy the past few weeks. I put in the description a link to the patch that makes it so only players can cause the guards to lock the gates.
CollapsibleChair Nov 19, 2022 @ 2:23am 
maybe people can use this mod - https://steamcommunity.com/sharedfiles/filedetails/?id=1790065955 - it has a npc who unlocks gates, might be a solution for those frustrated with gates being closed
Raymond Nov 11, 2022 @ 12:39pm 
nice idea, but seems to really buggy. Many towns constantly under attacks in Kenshi and this mod could makes them inaccessible to players most of the time. On contrary them closing their gates could make their settlements less vulnerable to late game players and provide extra challenges.
REz  [author] Nov 10, 2022 @ 3:48pm 
@GOLDENCOLEY sure will do it tomorrow, it should be pretty easy to do
@REz

If you haven't given up on the idea, could I be terribly bothersome and ask that you provide a "gate close only when player attacks" edition

Thank you @REz very much for this mod! I encountered faction gates all the time without the thought crossing my mind that there should be conditions under which they shut! Great idea! :rosebud:
Chrisme Nov 1, 2022 @ 8:17am 
Honestly, no idea. I don't mod Kenshi myself so you know more than me. I also don't want to screw the mod for other people if it is working fine for them.

But I think this change would make the mod kind of pointless. After all the main appeal is to have the city sealed off in case of an attack so that the inhabitants stay safe. If the guards only react to the player then this would not be fulfilled.
REz  [author] Nov 1, 2022 @ 8:10am 
I can make it so they close the gates only when the player attacks/kidnaps, so they don't close the gates when other factions/wild life attacks them. Do you think that would help?
Chrisme Oct 31, 2022 @ 11:39pm 
They do open the gates eventually. But it often takes a while. One thing to consider is possibly the knockout setting of the game. I left it at the default value of 1, so people rarely bleed out and die right away. This of course gives the guards a lot to do because people and animals constantly get up again here and there.

The real problem though is that groups decide to attack the gate to get inside when they cannot. This leads to two things: crime and the gate eventually breaking down unless you repair it. Crime might also mess up the relations between the different factions because I've seen tech hunters getting attacked by guards in several UC cities now (and another missing machinist shop keeper in Catun). But no idea what's the direct cause, it's just my observation.

I also run a lot of mods though. So there is also the possibility that another mod interferes. But I don't think that I've seen that kind of behaviour previously.
REz  [author] Oct 31, 2022 @ 2:56pm 
@Chrisme, that sounds like a clusterfuck. Was it caused by the guards not opening the gates fast enough? Or are they not opening the gates at all?
Chrisme Oct 31, 2022 @ 12:42am 
Cool mod.

However, it does cause some problems. I bought a house in Clownsteady and the place turned into a daily battlefield because of the gates. Initially a group of bandits attacked and the guards closed the gates.

Great!
But then nomads, tech hunters and mercenaries wanted to enter town and attacked the gates to get inside. This is a crime and of course the guards got onto the case quickly. The streets ran red with blood and I've never seen the police station so filled up (awesome for cheap weapon shopping btw).
The point of no return was reached when the engineering shop keeper somehow got caught up in this mess and was enslaved for his offense - never to be seen again. Guess I'm going to turn the mod off for now and import the save again to hopefully fix things.
REz  [author] Oct 25, 2022 @ 1:05pm 
The guards should open the gates more consistently now. They might take a while though since they can get distracted by other AI goals. This is more of a temporary fix until I find out how to force them to open the gate after they captured the troublemakers.
rbalsek Oct 24, 2022 @ 6:46pm 
나의 경우는 도적들을 다 잡고나서 치료가 끝나니까 문을 열었습니다. 소규모라서 빨리 끝난것 같은데, 많이 온다면 좀 더 걸릴수도 있고 한번 게임을 불러오기해보거나 안연다면 가져오기를 해야할수도 있어요.
The Holy Buttercat Oct 24, 2022 @ 5:21pm 
how long till they re-open the gate?
REz  [author] Oct 24, 2022 @ 5:19pm 
Hmmm, they should do it. Will try to fix it tomorrow to make it more consistent
neededlotus5 Oct 24, 2022 @ 5:08pm 
novel idea but they do not open the gate once all clear
REz  [author] Oct 24, 2022 @ 3:54pm 
@CollapsibleChair I tried to add a thieving event, unfortunately it doesn't work since the gate guards themselves need to see you steal.
Synopse Oct 24, 2022 @ 8:09am 
Beepdalf? Is it you?
rbalsek Oct 24, 2022 @ 3:59am 
오우 쉿... 나이스
CollapsibleChair Oct 24, 2022 @ 3:32am 
nice but could you add a thieving event, when some is caught thieving the gates are closed too?
Khagan Rey Oct 23, 2022 @ 9:52pm 
Good idea, thank you!
Batrach Oct 23, 2022 @ 6:58pm 
Great idea, thanks.