Utilities
1 year, 16 days ago
1.0 - 1.1
1.66K

i Settings

2 years ago

Great mod for managing my alerts in my mega base. Would it be possible to add COLUMNS_FOR_COMPACT_MODE as a user editable setting? Also, is it possible to scale the GUI? I know you can globally, but was wondering if it is possible to do just this one.

2 years ago

Hi there! I just published version 1.2.0. You can find a new mod setting "Columns in compact view". Scaling on the other hand... I have not much hope for this one. I really am just dipping my toes in modding for Factorio.

2 years ago

This is fantastic! Thank you for considering the suggestion

2 years ago

I have another request for a modifiable setting. I am using your mod to monitor the 500+ train stations. I have recently dropped below 60 UPS and noticed this mod has a small impact on performance. I manually changed the update frequency to every 300 ticks which cured the hit. Would it be too much to ask to add the update frequency as a configurable setting?

2 years ago
(updated 2 years ago)

Should be noted that you (Thebri) could use the function on_nth_tick instead of doing a if e.tick % REFRESH_RATE == 0 then calculation every tick.

2 years ago

Thank you @FuryoftheStars. I just finished going thru all the events and not finding any speaker related ones...

2 years ago
(updated 2 years ago)

My apologies, I'm not sure if I understand your response.

For clarity sake, what I'm saying is that you can replace this code starting at line 247:
(I hate the markdown system they use here.... Does not work half the time....)

script.on_event(defines.events.on_tick, function(e)
    if e.tick % REFRESH_RATE == 0 then
        for k,player in pairs(game.players) do
            draw_gui(player)
        end
    end
end)

With this:

script.on_nth_event(defines.events.on_nth_tick, REFRESH_RATE, function(e)
    for k,player in pairs(game.players) do
        draw_gui(player)
    end
end)

Doesn't solve what Sdclark99 asked, but rather eliminates a lua calculation that must be run every tick.

I maybe should have started a new thread on it than just posting in this one. :)

2 years ago

no worries. I understand you. I just thought there is a event when a speaker changes its state or something. because that would be very useful and would help to be much more performant.

2 years ago

Might be able to put in an API request?
https://forums.factorio.com/viewforum.php?f=28

You're right, though, that would be more performant.

New response