Automate the opening and closing of doors, the pinning of maps, the refueling of furnaces and fires, and the storing of the products of processing machines such as windmills and yarn mills. These are all functions that exist in existing mods, but I have redeveloped them to make them easier for me to use.
Permissions and credits
Author's instructions
Automatics is released under the MIT license. You may modify and redistribute Automatics to the extent permitted by the MIT License.
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.5.1
Fixed an issue that could potentially cause exceptions when attempting to place containers added by specific mods.
Version 1.5.0
Update for Valheim 0.217.24
The removal of the previously deprecated "module_disable" option and the "resources_directory"
Version 1.4.8
Update for Valheim 0.216.9
Removed the "allow_non_duplicate_pins" option from the "removemappins" command. Instead, added the "dry-run" and "dangerous-mode" options.
Enabled specifying prefab names as targets for custom icons. For more details.
* please refer to https://github.com/eideehi/valheim-automatics/blob/1.4.8/docs/custom-icon-pack.adoc#format-of-custom-map-iconjson
Version 1.4.7
Added a console command to remove map pins.
Version 1.4.6
Fixed a bug where static pins were immediately deleted when the "Save Static Object Pins" option was not enabled.
Version 1.4.5
Fixed a bug where pins for static objects were sometimes duplicated when the player moved using portals.
Fixed a bug where an exception could occur when trying to delete a pin by right-clicking it.
Automatic Pickup no longer pickup items if it would cause the player to become overweight.
Added an option to the Automatic Processing to store only if products exist in the container.
Added a Ballista to Automatic Processing targets.
Changed the display name and description of the Automatic Processing config.
Version 1.4.4
Fixed a bug where the automatic door stops functioning when the player moves a certain distance away from it.
Fixed a bug where pins would be duplicated and added when the vehicle moves, if the vehicle's automatic mapping is enabled.
Version 1.4.3
Updated for changes in Valheim 0.214.2.
Fixed a bug where the "Pickup All Nearby" shortcut key wouldn't work if it included an interact key (e.g. Shift + E).
Fixed a bug that caused wild animals to attack containers with food under certain conditions, even if they were allowed to eat from them.
Fixed a bug where portals wouldn't be automatically pinned, even if "Allow Pinning Portal" was enabled.
Fixed a bug where pins would remain on the map even after disabling automatic mapping in the configuration.
Version 1.4.2
Fixed a bug where the game won't start if some modules are disabled.
Version 1.4.1
Fixed a bug where the toggle key for automatic doors would become disabled after using it to turn off the function.
Fixed a bug where the automatic mapping function would delete unrelated pins, such as pins added by users or boss pins.
Fixed a bug where the automatic mapping function would cause an exception when loading the world without exiting the game after logging out of the world.
Fixed a bug where the automatic door closing function would not work, causing the door to remain open.
The "printobjects" command can now output doors and containers.
Fixed a bug where the automatic repair function would cause an exception under certain conditions.
Fixed a bug where the "Distance For Automatic Opening" configuration for automatic doors was not functioning and instead referenced "Distance For Automatic Closing."
Modified the "Disable Module" item in the configuration to be more intuitive.
Added "Hexagonal gate" to the door presets.
Version 1.4.0
- Overall Rewriting
* Automatic door
- Logic Improvements
* Automatic feeding
- A little refactoring
* Automatic mapping
- Add Vehicle category
- Portal pinning is now a stand-alone option, not in the Other category
- Static object pins are no longer saved by default. They can be changed to be saved in the options
- You can now hold down the left Shift key and click on a pin on the map to force the pin to change to save
- Added option to automatically remove pins when destructible objects are destroyed. (probably won't work perfectly, so don't expect too much)
* Automatic mining
- Limit the number of parts that can be damaged by automatic mining to a maximum of 3 at a time
* Automatic processing
- Removed the option to limit crafting by the total number of items in a product, instead added an option to limit crafting by the number of product stacks
- Added option to replenish material only when the material in the processor runs out
- Added option to refuel only when the fuel in the processor runs out
- Smelter's automatic crafting has been improved to process time-based quantities of material even when away from it for extended periods of time
* Automatic repair
- A little refactoring
- Added Automatic pickup feature
- Custom objects have been renamed User-defined objects and moved to the General category of the Config
* I have documentation on how to add user-defined objects, so please read through it if necessary
- Mistlands content has been added to the automation
- Added options to completely disable each feature
- Change the console command to take arguments like the CLI
Version 1.3.2
Rebuild for Mistlands Update
* Content added in the Mistlands Update is not yet available for automation by Automatics
Version 1.3.1
Fix an error that occurred if ConfigurationManager was not installed
Custom map icons can now be treated as child mod of Automatics
* For details, refer to the "Directory structure" section of the README
Add option to hide pin names on custom map icon
* For details, refer to the "options" entry in the "Format of custom-map-icon.json" section of the README
Add option to set the scale at which custom map icons appear on the map
* For details, refer to the "options" entry in the "Format of custom-map-icon.json" section of the README
Version 1.3.0
Add the feature of 'Automatic Mining'
Add option to change the directory to load resources such as translation files and custom icons
Add option to change the position of the message displayed when enabling/disabling the automatic door function with a shortcut key
Change so that the slider for handling floating decimals in the configurator increases or decreases the numerical value by 0.01 increments
Reviewed and corrected the key names and descriptions in the configuration options
* The configurations are automatically migrated, but be sure to check the values of the configurations after starting the game to be sure
Rewrote most of the automatic mapping feature
* Fix inability to apply custom icons with internal names to birds
* Change the deposit pinning location to the center of the object
** Due to this change, large deposits such as copper may be pinned in duplicate with existing pins
* Add custom options for other objects, dungeons, and spots
Version 1.2.1
Change the automatic door to not work if there is an obstacle between the player and the door
Change the minimum automatic door process interval to 0
* Setting the value below 0.1 disables automatic opening or closing. The substantive minimum interval remains unchanged from 0.1
Change so that the printnames command searches all translations
* With this change, the printnames command can now take multiple arguments, allowing for more powerful filtering
* See printnames usage for command details
Version 1.2.0
Change the format of the Cutom Map Icon settings file from csv to json
* See "Format of custom-map-icon.json" for more information on json files
Change translation files format from csv to json
Fix 'Standing brazier' was omitted from 'Automatic Processing'
Fix to be able to output names of fish, birds and dungeons with the 'printnames' command
Fix a bug that prevented some config values from being read accurately
Version 1.1.2
Add command to output internal and display names
* See "Console commands" in the Description for details
Add options to suppress automatic processing based on item count
Add option to automatic refuel only when materials supplied
Change 'Automatic Repair' not to work during game pauses
Change 'Allow...(Custom)' options to evaluate for exact match if an internal name is specified, or partial match if a display name is specified
* The "$enemy_boar" matches only "Boar", but "Greydwarf" matches "Greydwarf brute" and "Greydwarf shaman" in addition to "Greydwarf"
* The same goes for TARGET for Custom Map Icon
Version 1.1.1
Fix a bug in which the 'Repair Pieces' function continued to work even though the 'Automatic Repair' feature was disabled in the configuration
Fix package task of mod files for Thunderstore
Version 1.1.0
Add the feature of 'Automatic Feeding'
Add the feature of 'Automatic Repair'
Add option to allow automatic opening/closing for any door
Fix a bug where the generated items would be lost if Smelter could not find the container when 'Automatic Store' was enabled
Fix a bug where the honey to be set over the maximum if Beehive could not find the container when 'Automatic Store' was enabled
Version 1.0.6
Fix a bug that prevented automatic pinning of player existing in the open air under certain conditions, judging that they exist in the dungeon
Add elements added in patch 0.207.20 to be the target for automatic pinning
Change the maximum value of the container search range in "Automatic Processing" to 64
Change to remove pins added by automatic pinning when some veins are destroyed
Version 1.0.5
Add shortcut key to perform searches for static objects
Add shortcut key to enable/disable automatic door
Fix a bug that caused dynamic pins to remain on the map when auto-pinning was disabled from the config
Change the initial value of the 'Automatic Map Pinning' configuration
Version 1.0.4
Fix a bug fish were not pinned
Fix a bug that caused pins to be deleted at unintended times
Fix a bug in which automatic pinning of ship was enabled regardless of the config value
Add the feature to customize the icons of pins added by auto pinning
* There are no custom icons bundled with Automatics, please add your own
Version 1.0.3
Fix a bug where tamed animals continue to be pinned
Add options for users to add map pinning targets (animals, monsters, flora, veins, and spawners)
* As a result, elements added by mods are no longer automatic pinning unless this option is used
Add an option to allow ships to be automatic pinning
* This is dynamic pinning, but unlike other dynamic pins, the pins is saved in the save data
Version 1.0.2
Improvement of FPS drop due to Automatic Map Pinning
* In particular, FPS is greatly improved in areas with a lot of flora, such as farms
Reduce the processing load on Automatic Door
Add Portal to the Automatic Map Pinning target
* Portal is added to "Allow Pinning Other Objects"
Version 1.0.1
Fix a bug that prevented some Tar Pits from being pinning
Fix a bug in which automatic map pinning of static objects causes a significant drop in FPS
Fix logic for determining if a vein is in ground
Change the Automatic Map Pinning process is not called when the game is paused
Change Automatic Door options so that Open and Close can be specified separately
Version 1.0.0.0
Initial release.
Automatics
[ Precautions ]
This mod has been developed by an individual and is not associated with the game's developer in any way. Please refrain from asking the developer any questions regarding this mod.
This mod has been developed with the sole intention of single-player usage. Please be aware that it is not supported for server operation, and we kindly request your understanding in this matter.
[ What is Automatics ] This is a mod that automates some of the tasks that I find a bit tedious on a daily basis. The features of this mod are all existing in existing mods, but I have redeveloped them to make it easier for me to use.
[ How to install ] I recommend using Vortex, just download Automatics in Vortex and activate it.
[ Features ]
TIP: Each of the features described below can be completely disabled using the "Disable Module" option in the configuration.
* Automatic Door Automatically opens and closes doors that exist near the player.
* Automatic Mapping Automatically pin various objects around the player, such as animals, monsters, floras, veins, and dungeons, to the map.
# Custom icon pack You can also define your own icons in png and json files. See document for custom icon pack specifications.
* Automatic Processing It automates a variety of tasks, such as replenishing fuel for fires and torches, storing items produced by processing machines such as windmills and string mills in containers, and feeding food into cooking stations and ovens.
* Automatic feeding Modifies tamable creatures so that they can eat food from containers and the player's inventory, not just items on the ground.
* Automatic repair It can automatically repair items when the player is near a crafting station or when the crafting station GUI is opened or automatically repair nearby pieces when the player has a hammer equipped.
* Automatic mining Automatically mines minerals in the player's surroundings. You can also add a shortcut key that allows you to mine at any time.
* Automatic pickup Automatically pick up items around the player. You can also add a shortcut key that searches the surroundings for the same items as the interacted item and pick up them all.
[ Console commands ] Automatics add a few commands to help the user.
[ Configurations ] I recommend to use Configuration Manager. Converting the vast amount of items to Nexus format can be very tedious, so please refer to the CONFIG.adoc on GitHub for more information. Details can also be found in the tooltip of the Configuration Manager.
[ Supplementary explanation ] * Matching by "Display name" and "Internal name" In some features of Automatics, there is an option that allows the user to add targets as needed. The "Display name" and "Internal name" are used to identify these targets. The display name and internal name are matched according to different rules.
** Display name Display names are the names that appear in the game, such as Boar, Deer, Dandelion, etc. The matching rule for "Display name" is a partial match, meaning that if the target display name contains the specified string, it matches. It is case-insensitive.
** Internal name Internal names are the names used inside the game program, such as $enemy_boar, $enemy_deer, $item_dandelion, etc. The matching rule for "Internal name" is an exact match, meaning that if the target internal name is identical to the specified string, it matches. It is case-insensitive. Note that internal names for translations added by Automatics are prefixed with @, not $, as in @internal_name
Matching result:: |==================================================================================| | | Grey | ling | $enemy_greyling | $enemy_greydwarf | $enemy_ | |-----------|-----------|----------|-----------------|------------------|----------| | Greyling | Match | Match | Match | No match | No match | | Greydwarf | Match | No match | No match | Match | No match | | Surtling | No match | Match | No match | No match | No match | |==================================================================================|