[2.1.14] Asteroid collector with set filters doesn't grab immediately

This subforum contains all the issues which we already resolved.
fi5hii
Fast Inserter
Fast Inserter
Posts: 130
Joined: Mon Oct 21, 2024 1:27 pm
Contact:

[2.1.14] Asteroid collector with set filters doesn't grab immediately

Post by fi5hii »

When placing an asteroid collector that has wires connected and the signal for set filter, it doesn't immediately start grabbing the asteroids. You have to either toggle the set filters off and on or wait quite a substantial amount of time. Sometimes they will pick up one type of asteroid but not all of them even if the filter is set to pick up all of them. This happens both in editor and in a real save, my demonstration is in editor.

Here's a video of the described happening:
collectors not grabbing.mp4
(13.35 MiB) Downloaded 32 times
My mods: Alcoholiotorio, More Hearts, Remove WDM Menu, Rainbow Menu Logos
Have some questions or want to chat? Join my discord
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4823
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1.14] Asteroid collector with set filters doesn't grab immediately

Post by boskid »

Thanks for the report. Issue is now fixed for 2.1.15.

Issue here is related to asteroid collector tracking not updated because of 300 ticks (5s) cooldown present because updating asteroid chunk tracking is relatively expensive operation and once it is done once, it is not performed again until cooldown ends. When asteroid collector was placed, at that moment it had no filters set so it entered a cooldown, 1 tick later when control behavior was updated it set all filters however tracking was not updated due to active cooldown. Fix here is to schedule tracking update so once cooldown ends, it does an update that was skipped. In your scenario that may still leave asteroid collector inactive for about 5 seconds, but after that time it will start working correctly.
fi5hii
Fast Inserter
Fast Inserter
Posts: 130
Joined: Mon Oct 21, 2024 1:27 pm
Contact:

Re: [2.1.14] Asteroid collector with set filters doesn't grab immediately

Post by fi5hii »

Thank you so much for the explanation and for the fix!

5 seconds is basically nothing in comparison to it sometimes being over a minute with how it works in 2.1.14.
My mods: Alcoholiotorio, More Hearts, Remove WDM Menu, Rainbow Menu Logos
Have some questions or want to chat? Join my discord
Post Reply

Return to “Resolved Problems and Bugs”