AutoCloseDoors

v1.0.4·Updated 2022-08-17

Automatically close opened doors.

About this mod Author’s original text

AutoCloseDoors

Server Only Mod

Server only mod for Auto Close Doors.

Installation

Copy & paste the AutoCloseDoors.dll to \Server\BepInEx\plugins\ folder.

Removal

If your server is on windows, or can be shutdown properly.\

All you need to do to remove the mod is shutdown your server and delete the dll.

If your server is on linux, or can't be shutdown properly\

Make sure to change the config of Enable Uninstall to true,\

Restart your server, and then execute the uninstallation command [default ~autoclosedooruninstall].\

After the uninstallation is complete, shutdown your server and remove the dll.

Wetstone Version

  • Uncomment WETSTONE--> in AutoCloseDoors.csproj
  • Rebuild the dll.

Config

Config

  • Enable Auto Close Doors [default true]\

Switch on/off auto close for doors.

  • Auto Close Timer [default 2.0]\

How many second(s) to wait before door is automatically closed.

  • Always Auto Close Doors [default false]\

When this is set to false, doors will not automatically close if castle is decaying, under attack, or being sieged.

  • Enable Uninstall [default false]\

Do not enable for better performance on server.\

This uninstallation method is only required on servers that can't shutdown properly, like VRising on Linux Wine.\

On Windows, servers can be shutdown properly, and all doors is by default reverted back to normal on server shutdown.

  • Uninstall Command [default ~autoclosedooruninstall]\

Chat command to uninstall mod. Only work if "Enable Uninstall" is set to true & the user is an Admin (adminauth).

Commands

autoclosedooruninstall

autoclosedooruninstall\

Revert all doors in the game world to not close automatically.

More Information

Changelog

1.0.4

  • Forgot to remove some debugging code, sorry...

1.0.3

  • Added config to prevent door auto closing if castle is decaying or under attack/siege.

1.0.2

  • Fixed issue with servants causing door to be stuck.

1.0.1

  • Now properly initialize config when reloaded with wetstone.

1.0.0

  • Initial Release

Known Issues

General

  • When doors are built for the first time, the user will need to open the door twice for the door to open.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPack_V_Rising

File & checksum

Filename
AutoCloseDoors-1.0.4.zip
File size
106.8 KiB