Page 2 of 9
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 7:28 am
by waduk
Hehe,..now that's something i can smile about
Ahh,..so that's how it works. I guess i must learn how to customized RSO then, to generate small yet rich ore fields (the default is generating bigger and richer the further we go)
Thank you !
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 8:04 am
by Narc
waduk wrote:Ahh,..so that's how it works. I guess i must learn how to customized RSO then, to generate small yet rich ore fields (the default is generating bigger and richer the further we go)
We're talking about fractions of milliseconds every 60 seconds here; don't waste your time on an optimization you don't know you need.
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 8:52 am
by waduk
Narc wrote:waduk wrote:Ahh,..so that's how it works. I guess i must learn how to customized RSO then, to generate small yet rich ore fields (the default is generating bigger and richer the further we go)
We're talking about fractions of milliseconds every 60 seconds here; don't waste your time on an optimization you don't know you need.
Hehe,..thanks
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 11:29 am
by PiggyWhiskey
Narc, I'm loving this mod. its good to have something more than just an unofficial update.
Its smooth, intuitive and amazing to work with. Even better that it points out the direction the field is.
I encountered a weird bug today.
The console was spammed with "Invalid color value (resmon.lua line 455)
It was for a Bob's Mods tin ore field that was being punished by miners and god module 5's. It happened just as the field finished.
Edit:
Just noticed there was a new version. Downloaded it, but the affected line wasn't changed. So I assume the bug still exists.
Also, it might be of note that I had TimeButtons installed and running at 5x speed while I was in a train. Might be helpful....might not....
Edit2: I tried to replicate the bug from the autosave, and couldn't. (Still have it saved though)
Perhaps I lost some ticks while speeding the game which happened to be the one the Tin-Ore was saved on?
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 11:55 am
by Narc
PiggyWhiskey wrote:I encountered a weird bug today.
The console was spammed with "Invalid color value (resmon.lua line 455)
It was for a Bob's Mods tin ore field that was being punished by miners and god module 5's. It happened just as the field finished.
That's... funky. At a guess, if miners go fast enough, they can make a resource go negative for a tick before it's removed, and the site just happened to update at the wrong moment.
I can add some clamping for negative color components, but I find the other utterly baffling -- I suppose "-1.$" could be negative infinity, but the site amount remaining is clearly zero. Here, give
this in-dev package a try. It's got the clamping that should at least prevent the errors from popping up.
Negative infinity percent?!
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 12:01 pm
by PiggyWhiskey
I'll try that download even though I couldn't replicate it.
If it's negative infinity, does that mean it bounces back around to positive infinity? Free Tin!
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 12:26 pm
by Narc
PiggyWhiskey wrote:If it's negative infinity, does that mean it bounces back around to positive infinity? Free Tin!
A bug like that did exist:
https://forums.factorio.com/forum/vie ... 30&t=15567 -- I still have a couple of -1 ore spots in my world that I debug-created to see for myself. I refuse to mine them, though, since they effectively amount to infinite (and very cheated) ore.
I suspect you have about a 1/600 chance to reproduce the issue; the important part is that you should be able to remove the offending site if it happens again.
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 7:36 pm
by Talguy
Would it be possible to colorize the ore type by their respective map color? This is because it would then be easier to distinguish the different ore types, for obvious reasons.
Untested, but from what I can see the following should work:
el = sites_gui.add{type="label", name="YARM_label_ore_name_"..site.name,
caption=site.map_color}
el.style.font_color = color
if not player_data.current_site then
player_data.current_site = {
added_at = game.tick,
surface = entity.surface,
force = player.force,
ore_type = entity.name,
map_color: entity.map_color,
ore_name = game.get_localised_entity_name(entity.name),
entities = {},
initial_amount = 0,
amount = 0,
extents = {
left = entity.position.x,
right = entity.position.x,
top = entity.position.y,
bottom = entity.position.y,
},
known_positions = {},
next_to_scan = {},
scanning = false,
}
if resmon.is_endless_resource(entity.name, entity.prototype) then
player_data.current_site.minimum_resource_amount = entity.prototype.minimum_resource_amount
end
end
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 7:56 pm
by Peter34
Can this mod cover Crude Oil Patches?
And can it output to Wire Signals? I'd like to have some big luminuous Nixie Tubes to show the remaining ore in my main fields, and play with the interface minimized...
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Fri Oct 02, 2015 8:50 pm
by Narc
Talguy wrote:Would it be possible to colorize the ore type by their respective map color? This is because it would then be easier to distinguish the different ore types, for obvious reasons.
Yes, that sounds good. Since you seem to have the right idea with the code (but, hint, you don't want to change the caption -- the color is nearby), I'll gladly review your pull request; lacking one, I'll get around to it when I get around to it (which will probably be when the settings screen finally makes an appearance).
Peter34 wrote:Can this mod cover Crude Oil Patches?
Yes. Crude oil (or any other fluid -- also tested with spring water), endless ores, probably deep ores, too. The meaning of the percent-remaining display changes when an endless resource is detected, such that it will show 0% when all the entities comprising the site are at their minimum production rate.
Peter34 wrote:And can it output to Wire Signals?
No, there is not currently an in-world entity to output circuit signals from. Take a look at
Choumiko's Resource Combinators for that (though I haven't tried them myself, having no need for such).
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sat Oct 03, 2015 7:06 am
by JyeGuru
I ran into a bug I didn't see mentioned in the thread -
YARM doesn't pick up all of the squares of a resource patch.
Not sure if it's because I'm in 12.10, but it's not hard to just click the extra ones (if I notice) anyway.
However, sometimes there's ONE square that just refuses to work - clicking it deselects all the currently selected bits.
See below for examples of both in a coal patch.
Example:
http://i.imgur.com/nVaLdmY.gifv
Save Game+Mods:
https://www.dropbox.com/sh/68u389ewsp4s ... L6wla?dl=0
Version: 12.10
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sat Oct 03, 2015 9:02 am
by Narc
YukiHyou wrote:I ran into a bug I didn't see mentioned in the thread - YARM doesn't pick up all of the squares of a resource patch.
Huh. Yeah, that's pretty fucky. I'll take a look at it, thanks for the files.
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sat Oct 03, 2015 10:17 am
by waduk
Hi Narc, if you want to add custom color like Talguy suggested, i suggest just color code a portion of the table, not the whole line.
I like the idea but i don't want to lose the current color warning.
In case you didn't know what i'm saying (due my lack english), here's the mockup i made in Photoshop.
Ignore the color i choose, i just rough made that to get the idea across.
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sat Oct 03, 2015 10:21 am
by Narc
waduk wrote:Hi Narc, if you want to add custom color like Talguy suggested, i suggest just color code a portion of the table, not the whole line.
I have no idea why you'd think we were discussing doing it any other way.
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sat Oct 03, 2015 10:33 am
by waduk
Narc wrote:waduk wrote:Hi Narc, if you want to add custom color like Talguy suggested, i suggest just color code a portion of the table, not the whole line.
I have no idea why you'd think we were discussing doing it any other way.
Just worry..hehehe
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sat Oct 03, 2015 1:13 pm
by Talguy
Narc wrote:Talguy wrote:Would it be possible to colorize the ore type by their respective map color? This is because it would then be easier to distinguish the different ore types, for obvious reasons.
Yes, that sounds good. Since you seem to have the right idea with the code (but, hint, you don't want to change the caption -- the color is nearby), I'll gladly review your pull request; lacking one, I'll get around to it when I get around to it (which will probably be when the settings screen finally makes an appearance).
I'm an idiot, I meant to actually replace the color
However, even when fixing the code, the text shows up white as map_color is part of Lua/Resource (I think). Not sure how to get the map color now. As an alternative, you could maybe prepend the icon instead, but not sure how to add an icon to the factorio GUI controls :S
EDIT: Maybe ask
Outsider (advanced logistics system)
waduk wrote:Hi Narc, if you want to add custom color like Talguy suggested, i suggest just color code a portion of the table, not the whole line.
I like the idea but i don't want to lose the current color warning.
In case you didn't know what i'm saying (due my lack english), here's the mockup i made in Photoshop.
Ignore the color i choose, i just rough made that to get the idea across.
Exactly what I was aiming for!!
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sun Oct 04, 2015 10:40 am
by JyeGuru
Found another bug for you!
The invisible "remote viewing" things that are on the ore patches are targets for biters.
This means they end up attacking the beacon in the middle of the ore patch instead of the miners a lot of the time.
Additionally, even after deleting the ore patches from the sidebar, the remote viewer thing stays there - and is still a target.
Screenshots:
https://www.dropbox.com/s/3iwxwig6cto5x ... 8.png?dl=0
https://www.dropbox.com/s/a78ruan0sxtkg ... 9.png?dl=0
Is there a command that can be used to clear or reset these things? It's kinda "cheating" that the biters go and gang up on them instead of continuing to the base.
Edit: Added second screenshot
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sun Oct 04, 2015 11:02 am
by waduk
YukiHyou wrote:Found another bug for you!
The invisible "remote viewing" things that are on the ore patches are targets for biters.
This means they end up attacking the beacon in the middle of the ore patch instead of the miners a lot of the time.
Additionally, even after deleting the ore patches from the sidebar, the remote viewer thing stays there - and is still a target.
Screenshot:
https://www.dropbox.com/s/3iwxwig6cto5x ... 8.png?dl=0
Is there a command that can be used to clear or reset these things? It's kinda "cheating" that the biters go and gang up on them instead of continuing to the base.
Btw, what is that green circle thing ?
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sun Oct 04, 2015 11:07 am
by PiggyWhiskey
waduk wrote:
Btw, what is that green circle thing ?
They are enemy_expansion_chunk_candidates
It's potential location the biters will move to when the expand.
Press F4 and it's down the bottom.
It's semi-cheating as you can see where biter bases are all time. Even without radar
Re: [MOD 0.12.7+] YARM (Yet Another Resource Monitor) v0.6.20
Posted: Sun Oct 04, 2015 11:38 am
by waduk
PiggyWhiskey wrote:waduk wrote:
Btw, what is that green circle thing ?
They are enemy_expansion_chunk_candidates
It's potential location the biters will move to when the expand.
Press F4 and it's down the bottom.
It's semi-cheating as you can see where biter bases are all time. Even without radar
Thanks, i have further question, but will PM you instead. Didn't want to ruined this thread with non
YARM related question.