Automatic Gates
Изображение 1 из 7. Материалы автора из Steam Workshop.
О материале
«Automatic Gates» — материал мастерской Kenshi. Моды Kenshi: фракции, расы, строительство и изменения геймплея. Для установки откройте оригинал в Steam Workshop, проверьте требования автора и подпишитесь. Совместимость с версией игры редакцией не проверена.
Описание автора
Automatic Gates
New base gates that close on their own when enemies get close, and open again once the danger has passed. No more enemies inside your walls before you even notice you are under attack!
How it works
-
A hostile character within 200 m of a gate closes it. The gate reopens after 10 seconds without a threat.
-
A gate you closed yourself stays closed. If you reopen a gate during a threat, the mod backs off until the threat is over.
-
Base alarm: gates within 500 m of each other close and open together.
-
Caged prisoners, fleeing enemies and crippled enemies do not count as a threat.
-
Neutral factions can be set to count as a threat or not, faction by faction.
-
Most values can be changed in a settings file (see below).
What is in this mod
Four new gate buildings, one for each vanilla gate: Makeshift Gate (auto) and Defensive Gate II, III and IV (auto). The vanilla gates are not changed. You choose from the build menu between the normal gate (vanilla) and the new "(auto)" version. Each gate has its own research with the same name, which you unlock in order (Makeshift, then II, III, IV) and which also needs the matching vanilla wall technology. Upgrading an automatic gate gives you the next automatic gate, not a manual one.
Requirements
This mod needs two other mods to work. Without them, the gates will not do anything.
-
RE_Kenshi
-
KenshiLua
Installation
-
Subscribe to this mod.
-
Install RE_Kenshi: https://www.nexusmods.com/kenshi/mods/847. Follow the install instructions on that page. Tested with version 0.3.5.
-
Install KenshiLua: go to https://github.com/Genpretz/KenshiLua/releases and download KenshiLua.v0.3.3-alpha.zip (or a newer version if available; I can't guarantee that newer versions work). Unzip it and copy the KenshiLua folder into your Kenshi mods folder. Tested with version 0.3.3-alpha.
-
Start the Kenshi launcher, open the Mods tab and make sure KenshiLua and automatic-gates are both active before starting the game.
-
In game, research the gate technologies listed above, then build the gates from the "Defensive Gate (auto)" construction entry, which you can find next to the regular gates.
Settings
The settings file does not exist until you started the game once with the mod active! On the first start, the mod creates the folder *Kenshi\mods\automatic-gates* (if it does not exist yet) and the file automatic-gates_settings.txt in it. The game can hang for a few seconds during this very first start. Open the file with any text editor. Every setting is explained in the file. You can change:
-
Detection range and reopen delay
-
Base alarm on or off, and its range
-
Whether fleeing or crippled enemies count as a threat
-
How each neutral faction is treated
Restart Kenshi after changing the file.
Troubleshooting
I spent multiple days testing and bug fixing, it runs stable and without issues on my PC, but bugs can still happen. If something does not work, please leave a comment on this Workshop page. I will look at it there. Before you do, check these points:
-
RE_Kenshi is installed and Kenshi starts with it.
-
KenshiLua and automatic-gates are both active in the mod list.
-
You are building the gates marked "(auto)", and you have researched them.
If it still does not work, please include this in your comment:
-
What you expected and what happened instead
-
Your Kenshi, RE_Kenshi and KenshiLua versions
-
The file automatic-gates_log.txt from the folder **Kenshi\mods\automatic-gates**. Set DEBUG_LOGGING=true in the settings file first, reproduce the problem, then copy the relevant lines.
Notes
-
This mod does not need the "Import savegame" function to be used.
-
As with any mod that adds buildings, back up your saves before adding or removing it.
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.