Automatics is a mod that automates the tedious tasks of life in Valheim. Most of its features exist in existing mods, but it has been re-designed to make it easier for me to use.
Automatically opens and closes the door near the player. The interval and distance to detect the player can be changed from the configuration.
Automatic pinning animals, monsters, floras, veins, dungeons, etc. that exist around the player to the map. The pinning allows for each object and the detection range of the object can be changed from the config.
Using png files and json, you can customize icons for pins added by Automatic map pinning.
Place the necessary files in "/Valheim/BepInEx/plugins/Automatics/Textures" to make the custom icons work.
-
/Valheim/BepInEx/plugins/Automatics/Textures
-
custom-map-icon.json
-
Describe information such as which icons to customize and which images to use. Details are described in the Format of custom-map-icon.json section.
-
-
ICON.png
-
Icon image file. PNG files with transparency information are preferred. Prepare the number of icons required.
-
-
- Root <Array>
-
-
target <Object>
-
name <String>
-
Specify a display name such as "Boar" or an internal name such as "$enemy_boar"; See the Matching by "Display name" and "Internal name" section for the difference between matching by display name and internal name.
-
-
metadata <Object> (Optional)
-
level <Number>
-
By setting up this field, you can set up icons for different levels of animals and monsters. Note that the unstarred state is level 1. One star is level 2 and two stars are level 3. Also, do not set the metada field if matching by level is not required.
-
-
-
-
sprite <Object>
-
file <String>
-
Specify the name of the image file to be used for the icon. It is best to keep the image size between 16x16 and 32x32, as too large an icon will be obtrusive.
-
-
width <Number>
-
Specify the width of the icon.
-
-
height <Number>
-
Specify the height of the icon.
-
-
-
I don’t feel I have explained it very well, so I have prepared a sample file. Please click here to check the structure of the file that actually works. You can also download the zip file and check the operation on your PC.
Note
|
Zip is not guaranteed to work with mod loaders other than Vortex; if you are using a mod loader other than Vortex, please manually place the files in the Zip into the appropriate directory. |
Refueling pieces that need fuel. Deliver materials to pieces that process materials, and store items produced by pieces. These tasks can be automated via containers around the piece.
Animals and other creatures that consume food will be able to consume food from containers and the player’s inventory, not just from food on the ground.
Automatics add a few commands to help the user.
Displays the usage of commands added by Automatics.
-
COMMAND: Command name to display usage. If there is an exact match, it will be displayed. Otherwise, it will display the first partially matched command found. If omitted, the usage of the automatics command itself is displayed.
Outputs internal or display names that contain the specified string or match the specified regular expression. If multiple arguments are specified, only those matching all of them will be output.
-
WORD: A text contained in the internal or display name. (e.g. $enemy_, $item_, $piece_, Boar, Mushroom, Wood door); All partially matching internal and display names are output.
-
REGEXP: A regular expression of the internal or display name to be output. Must be prefixed with "r/". (e.g. r/^[$]item_, r/^boar$)
Examples:
-
printnames ling r/^[$]enemy_
-
printnames r/^[$@]location_.+(?<!_(enter|exit))$
-
printnames mushroom r/^[$]item_.+(?<!_description)$
I recommend using Configuration Manager.
The README would be too large if we described all the details of the configuration, so we split it into separate file.
Open CONFIG.adoc to see the configuration details.
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 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 names are the names used inside the game program, such as $enemy_boar, $enemy_deer, @internal_name
Display name | Internal name |
---|---|
Greyling |
$enemy_greyling |
Greydwarf |
$enemy_greydwarf |
Surtling |
$enemy_surtling |
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 |
-
Dependencies:
Automatics is developed and released under the MIT license. For the full text of the license, please see the LICENSE file.