Skip to content

Commit d5496eb

Browse files
committed
Update version to 1.0.0, set change log
1 parent 000929b commit d5496eb

File tree

3 files changed

+63
-19
lines changed

3 files changed

+63
-19
lines changed

README.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ your mining sites and warns you when they're starting to run low.
66

77
Once the mod is installed, using it is relatively simple:
88

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
1010
ore entity in a patch (like using a blueprint).
1111
* _Can't find the shortcut button? You may need to add it to the [shortcut
1212
bar](https://wiki.factorio.com/Shortcut_bar)._
@@ -32,9 +32,10 @@ at all!) or "all sites" (which never hides them).
3232

3333
Each site has some buttons associated with it:
3434

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
3839
* The 'eye' button opens the map to the center of the ore site.
3940
* The 'X' button allows you to delete the site. When first clicked, it turns
4041
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.
9091
* Italian translation by futuroattore86
9192
* Chinese translation by @71e6fd52 and @muink
9293
* Japanese translation by @shelaf
94+
* Ukrainian translation by @MetenBouldry
9395
* More updating assistance by @kylewill0725
9496
* Other-mod-friendly patches by @JonasJurczok
9597
* Resource monitor shortcut graphics by @npc-strider (aka morley376)
@@ -106,35 +108,38 @@ members of the #factorio IRC on espernet.
106108
* SpaceEx explorer viewer patch by @oof2win2
107109
* Ore counts adjusted by mining productivity by @georgehank
108110
* 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!
111113

112114

113115
## Remote interface ##
114116

115117
YARM's remote interface is grown as needed; there are only a few functions currently:
116118

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).
120120
- `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.
121122
- `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.
122123

123124
Additionally, there is one event:
124125

125126
- `on_site_updated` is periodically raised whenever a site's ore count and stats are brought up to date. The event contains:
126127
- `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)
128131
- `ore_type`, the entity.name of the resource entities tracked in this site (e.g., `crude-oil` or `iron-ore`)
129132
- `amount`, the number of ore units remaining in the site
130133
- `ore_per_minute`, the number of ore units mined in a minute on this site, based on the number mined since the last update
131134
- `remaining_permille`, the ratio of ore remaining versus the initial amount from when the site was created
132135
- 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
133138

134139

135140
## License ##
136141

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
138143
is licensed under the [MIT license][mit], available in this package in the file
139144
[LICENSE.md](LICENSE.md).
140145

changelog.txt

+44-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,51 @@
22
Version: 1.0.0
33
Date: 2024-12-18
44
Bugfixes:
5-
- fix a crash on submitting/cancelling a site expansion very quickly (narc, #181)
6-
- fix a many-times-reported crash when an entity is removed while scanning a site (narc, #180)
7-
Changes:
8-
- make the fake ore items optional, and turn them off by default (narc, #178)
5+
- fix a crash on submitting/cancelling a site expansion very quickly (#181)
6+
- fix a many-times-reported crash when an entity is removed while scanning a site (#180)
7+
- fix that sites with the same auto-generated name would overwrite each other (#52)
8+
Changes:
9+
- make the fake ore items optional, and turn them off by default (#178)
10+
- the localization has been horribly messed up (big release!) but it is now possible for
11+
translators to work from Crowdin, so it should be easier to update in future
12+
- the GUI now updates without destroying and recreating itself every time (#99); this should
13+
remove most (probably all) issues with buttons not reacting to clicks
14+
- surface, site, and ore names are no longer colored (#14)
915
Features:
10-
- use LuaRendering for overlay instead of creating a false chest entity -- should be faster to display the overlay now (narc, #179)
16+
- use LuaRendering for overlay instead of creating a false chest entity -- should be faster to
17+
display the overlay now (#179)
18+
- use Enter to confirm the rename box, Esc to cancel it (fix #75)
19+
- include surface name in the ore tracker (this fixes #183: ores on different surfaces were
20+
overriding each other and messing up site ore counts)
21+
- add color schemes (#23); the default remains red-to-green, but there is now also a red-to-blue
22+
and grayscale, as well as full customization for anyone who wants it
23+
- add custom site name formatting (#48): sites now have a custom name tag for players to
24+
configure, and multiple sites can have the same name tag without overwriting each other
25+
- add HUD update time setting, between 0.5 and 10 seconds (default remains 5 seconds)
26+
Translation:
27+
- add Ukrainian language (@MetenBouldry, #138)
28+
Info:
29+
- remove unused array_pair library (it was wonderful when it was needed)
30+
- add a hsv library to convert RGB to HSV and back again, for easier linear interpolation in
31+
the HSV colorspace (this entry might be the fanciest thing I've written all year)
32+
- change the big monolithic resmon.lua to a bunch of modules in the resmon/ folder; this
33+
should make no difference to players but any contributors will find it a bit easier to work
34+
with:
35+
- the click module contains everything to do with clicking in the UI (i.e., button management)
36+
- the locale module deals with creating localized strings as well as some other special text
37+
- the migrations module provides a framework to centralize migrating runtime data
38+
- the sites module provides ordering and filtering sites, as well as turning them into data for display
39+
- the types module centralizes how new lua tables of different formats are created
40+
- the ui module contains the main UI handling for the HUD root, rename window, etc.
41+
- the yatable module ("Yet Another Table") handles displaying sites data from the sites module,
42+
including all the logic for UI update-in-place
43+
- known bug: it is possible to add the same location multiple times, in different sites;
44+
previously, this was masked by the site auto-name conflict bug, but fixing it correctly
45+
is much more difficult than asking players to delete duplicates themselves. Sorry :(
46+
Remote Interface:
47+
- remove the remote call `reset_player` (fake players haven't existed for a long time!)
48+
- validate input to `set_filter` (it should be an actual filter)
49+
- remove deprecated `show_expando` and `hide_expando`
1150
---------------------------------------------------------------------------------------------------
1251
Version: 0.11.2
1352
Date: 2024-10-24

info.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "YARM",
3-
"version": "0.11.2",
3+
"version": "1.0.0",
44
"factorio_version": "2.0",
55
"title": "YARM - Resource Monitor",
6-
"author": "Mithaldu (current maintainer)",
6+
"author": "Mithaldu (current maintainer) and Narc",
77
"homepage": "https://github.com/narc0tiq/YARM",
88
"dependencies": [
99
"? aai-programmable-vehicles",
1010
"? angelsrefining",
1111
"? omnimatter",
1212
"? dqol-resource-monitor"
1313
],
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"
1515
}

0 commit comments

Comments
 (0)