
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 !
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.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)
Hehe,..thanksNarc wrote: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.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)
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.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.The name also changed to weirdness.
PiggyWhiskey wrote:If it's negative infinity, does that mean it bounces back around to positive infinity? Free Tin!
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
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).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. 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:Can this mod cover Crude Oil Patches?
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).Peter34 wrote:And can it output to Wire Signals?
Huh. Yeah, that's pretty fucky. I'll take a look at it, thanks for the files.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.
I have no idea why you'd think we were discussing doing it any other way.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.
Just worry..heheheNarc wrote:I have no idea why you'd think we were discussing doing it any other way.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'm an idiot, I meant to actually replace the colorNarc wrote: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).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.
Exactly what I was aiming for!!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.
Btw, what is that green circle thing ?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.
They are enemy_expansion_chunk_candidateswaduk wrote: Btw, what is that green circle thing ?
Thanks, i have further question, but will PM you instead. Didn't want to ruined this thread with non YARM related question.PiggyWhiskey wrote:They are enemy_expansion_chunk_candidateswaduk wrote: Btw, what is that green circle thing ?
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