YARM - Resource Monitor

by Narc

This mod helps you to keep track of your mining sites, with useful data such as the percent mined, and estimated time to depletion.

Utilities
1 year, 1 month ago
0.14 - 2.0
162K
Mining

b [Not YARM] Cant open gui interface in save from 1.1

1 year, 1 month ago
(updated 1 year, 1 month ago)

Sync save "Pyanodon.zip". https://drive.google.com/drive/folders/1_uzA8KCy9SMbQmlqp8uNr83q-Q0ftsNt?usp=sharing
I can't open any gui, don't know what happened

1 year, 1 month ago

Sync save "Pyanodon.zip". https://drive.google.com/drive/folders/1_uzA8KCy9SMbQmlqp8uNr83q-Q0ftsNt?usp=sharing
I can't open any gui, don't know what happened

1 year, 1 month ago

Thanks for providing a save, i have tomorrow off and will look at it. :)

1 year, 1 month ago
(updated 1 year, 1 month ago)

Hi, I'm away from my computer for a bit but I've asked Mithaldu to take a look. If you just want to get it working and don't mind using a console command, you can try this:

/c remote.call("YARM", "reset_ui", game.player.index)

It might help

1 year, 1 month ago

This command helped.

1 year, 1 month ago
(updated 1 year, 1 month ago)

Hi, I'm back and I've finally had some time to take a look and it's... exceptionally weird. With the debugger I can see the buttons are all created but the HUD for some reason only shows the auxiliary buttons (toggle background, toggle surface split, toggle narrow view). Without the filter buttons, you obviously can't change to a different filter.

It gets weirder: if I use remote.call("YARM", "set_filter", game.player.index, "all"), I get to see all the sites as I'm supposed to, and the list is very long (there are 120-ish sites) so it has a scroll bar -- the filter buttons are not scrolled off-screen! They literally did not render, or maybe they're rendering underneath the visible ones.

This might actually be a Factorio bug, and I'm going to report it -- the buttons exist as children of the mod_gui.YARM_root.buttons container, which is a vertical flow, so they should be visible. However, I suspect Wube will not prioritize it highly, as this is a very modded game.

1 year, 1 month ago
1 year, 1 month ago

Oh, that's interesting, the buttons exist but they have visible = false for some reason. Well, at least I can fix it for the future...

1 year, 1 month ago

@Moral1ty any chance you could check the bug report linked above and verify if I passed along the right save (from 1.1)?

1 year, 1 month ago

I gave save "Pyanodon" from 2.0 where gui doesn`t work. but you can download save "(Factorio 1.1) Pyanodon 4 stage 413 hrs" from my first message.

1 year, 1 month ago

but there are mods that are not supported in 2.0, but you can leave only the pyanodon and yarm.

1 year, 1 month ago

I downloaded 1.1 factorio and uploaded save with only pyanodon and yarm. and gui didn`t work in 1.1. i also uploaded this save "Pyanodon 1.1 yarm issue" in google disk.

1 year, 1 month ago

I downloaded 1.1 factorio and uploaded save with only pyanodon and yarm. and gui didn`t work in 1.1. i also uploaded this save "Pyanodon 1.1 yarm issue" in google disk.

Well, that actually solves the issue altogether, it's not a bug at all. The mod responsible is https://mods.factorio.com/mod/GUI_Unifyer, which doesn't have a 2.0 version (there is a different mod instead: https://mods.factorio.com/mod/GUI_Unifyer_Unified), which hides the YARM filter buttons because it replaces them with its own version. If you remove the unifier mod, obviously their buttons go away and YARM's buttons remain hidden.

New response