This mod is intended as a library for other mods to make use of. As such it has no effect on a game when installed on its own. It provides a set of API functions and an administrative interface.
A waypoint type needs to be registered before the other methods in this mod can be used. ``waypoints_type`` is a unique string that will be used to reference this type of waypoint, and waypoints_def is a table with the following possible properties (all of which are optional):
waypoint_data is a freeform table you can put whatever you want into (though it will be stored as a serialized string so don't get fancy if you can avoid it). There are three properties on waypoint_data with special meaning:
The same as add_waypoint, but if there's already a waypoint at pos then the values of any fields in waypoint_data will replace the corresponding fields in the existing waypoint.
Select a waypoint type from the dropdown and all waypoints of that type will be listed in the table, sorted by increasing distance from your current location. Select a waypoint from the table and its location and serialized data will be shown below. Clicking the "save" button will save any changes you've made to the waypoint's position or serialized data (provided the serialized data has valid syntax). There's also a "name" field for more convenient renaming than editing the serialized data manually. You can also teleport to the selected waypoint or delete it.
Caution: This interface lets you access the guts of the data stored for each waypoint, only make edits if you know what you're doing. You can disrupt other mods that may be using waypoint data to store information. In the pictured example the "settlement_type" property is specific to the mod that is using named_waypoints, so changing or removing this value will cause undefined behaviour.
"``/named_waypoints_discover_all <waypoints_type>``" and "``/named_waypoints_undiscover_all <waypoints_type>``" will set all existing waypoints of the provided type to be either discovered or not discovered by you. It can be useful for a server administrator to "know all and see all" as it were. Note that visibility item and range limitations still apply.
If you have the personal_log mod installed, the default waypoint-discovery notification popup will include an option to log the location of the just-discovered waypoint. It will create a log entry for that player with the waypoint's name as its content.