You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-11
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ your mining sites and warns you when they're starting to run low.
6
6
7
7
Once the mod is installed, using it is relatively simple:
8
8
9
-
* Use the shortcut button "Resource monitor marker" to drag-select at least one
9
+
* Use the shortcut button "Resource monitor" to drag-select at least one
10
10
ore entity in a patch (like using a blueprint).
11
11
* _Can't find the shortcut button? You may need to add it to the [shortcut
12
12
bar](https://wiki.factorio.com/Shortcut_bar)._
@@ -32,9 +32,10 @@ at all!) or "all sites" (which never hides them).
32
32
33
33
Each site has some buttons associated with it:
34
34
35
-
* The 'ab|' button allows you to rename the site. This can be useful to prevent
36
-
auto-naming from overwriting one of your sites with another.
37
-
* Note: Names may not be longer than 50 characters!
35
+
* The 'ab|' button allows you to add a name tag for the site. The name tag will
36
+
replace the index in the display.
37
+
* Note: Names may not be longer than 64 characters!
38
+
* However, [rich-text=tags] count as only 3 characters
38
39
* The 'eye' button opens the map to the center of the ore site.
39
40
* The 'X' button allows you to delete the site. When first clicked, it turns
40
41
red; click it again within 2 seconds to confirm deletion, or leave it alone to
@@ -90,6 +91,7 @@ members of the #factorio IRC on espernet.
90
91
* Italian translation by futuroattore86
91
92
* Chinese translation by @71e6fd52 and @muink
92
93
* Japanese translation by @shelaf
94
+
* Ukrainian translation by @MetenBouldry
93
95
* More updating assistance by @kylewill0725
94
96
* Other-mod-friendly patches by @JonasJurczok
95
97
* Resource monitor shortcut graphics by @npc-strider (aka morley376)
@@ -106,35 +108,38 @@ members of the #factorio IRC on espernet.
106
108
* SpaceEx explorer viewer patch by @oof2win2
107
109
* Ore counts adjusted by mining productivity by @georgehank
108
110
* With fixes by @EvilPLa
109
-
* The aforementioned [Factorio mod localization project](https://github.com/dima74/factorio-mods-localization) for making my life incredibly easy! Thank you @dima74!
110
-
111
+
* The aforementioned [Factorio mod localization project](https://github.com/dima74/factorio-mods-localization)
112
+
for making my life incredibly easy! Thank you @dima74! Thank you all contributors!
111
113
112
114
113
115
## Remote interface ##
114
116
115
117
YARM's remote interface is grown as needed; there are only a few functions currently:
116
118
117
-
-`remote.call("YARM", "reset_player", player_name_or_index)`: sets the target player's character to be whatever the player has selected (if it's of a compatible type, of course) and clears out internal data relative to the player.
118
-
- Note: this is considered deprecated, as the player character is no longer (since v0.8) being changed to allow remote viewing.
119
-
-`remote.call("YARM", "reset_ui", player_name_or_index)`: destroys the target player's YARM UI, forcing it to be recreated (hopefully correctly) at the next UI update cycle (about every 5 seconds).
119
+
-`remote.call("YARM", "reset_ui", player_name_or_index)`: destroys the target player's YARM UI, forcing it to be recreated (hopefully correctly) at the next UI update cycle (configurable, default 5 seconds).
120
120
-`remote.call("YARM", "set_filter", player_name_or_index, new_filter)`: provides programmatic hooks to change the active filter. The filter value may be 'none', 'warnings', or 'all' -- other values are unsupported. The previously active filter is returned.
121
+
-`remote.call("YARM", "get_filter", player_name_or_index)`: returns the given player's current filter (as above) without changing it.
121
122
-`remote.call("YARM", "get_on_site_updated_event_id")`: returns the identifier for the `on_site_updated` event, detailed below. You should probably call this every time mods are initialized, as it is set in the main `control.lua` runtime.
122
123
123
124
Additionally, there is one event:
124
125
125
126
-`on_site_updated` is periodically raised whenever a site's ore count and stats are brought up to date. The event contains:
126
127
-`force_name`, the name of the force owning this site
127
-
-`site_name`, the name of the site that just finished updating; site names are unique within a force
128
+
-`site_name`, the index of the site that just finished updating; site indexes are unique within a force
129
+
- NB: before YARM 1.0, this was the unique name, which no longer exists
130
+
-`name_tag`, the player-assigned name tag of the site (empty by default)
128
131
-`ore_type`, the entity.name of the resource entities tracked in this site (e.g., `crude-oil` or `iron-ore`)
129
132
-`amount`, the number of ore units remaining in the site
130
133
-`ore_per_minute`, the number of ore units mined in a minute on this site, based on the number mined since the last update
131
134
-`remaining_permille`, the ratio of ore remaining versus the initial amount from when the site was created
132
135
- NB: permille is analogous to percent, but multiplied by 1000 instead of 100; its symbol is ‰
136
+
-`ore_type`, the prototype name of the site's ore entity
137
+
-`etd_minutes`, the number of minutes until the site is believed to be depleted
133
138
134
139
135
140
## License ##
136
141
137
-
The source of **YARM** is Copyright 2015 Octav "narc" Sandulescu. It
142
+
The source of **YARM** is Copyright 2015 Octav "narc" Sandulescu and contributors. It
138
143
is licensed under the [MIT license][mit], available in this package in the file
"author": "Mithaldu (current maintainer) and Narc",
7
7
"homepage": "https://github.com/narc0tiq/YARM",
8
8
"dependencies": [
9
9
"? aai-programmable-vehicles",
10
10
"? angelsrefining",
11
11
"? omnimatter",
12
12
"? dqol-resource-monitor"
13
13
],
14
-
"description": "This mod helps you to keep track of your mining sites, with useful data such as the percent mined, and estimated time to depletion.\n\n*** GUI_Unifyer is highly recommended to be installed with this mod. ***\n\nOriginal author: Octav 'narc' Sandulescu, based on work by drs, jorgenRe, and L0771"
14
+
"description": "This mod helps you to keep track of your mining sites, with useful data such as the percent mined, and estimated time to depletion.\n\nOriginal author: Octav 'narc' Sandulescu, based on work by drs, jorgenRe, and L0771"
0 commit comments