[2.0.72] Radius method of find_asteroid_chunks_filtered fails to find

Bugs that are actually features.
thesixthroc
Fast Inserter
Fast Inserter
Posts: 135
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

[2.0.72] Radius method of find_asteroid_chunks_filtered fails to find

Post by thesixthroc »

Putting the player on a small moving space platform and running the following three commands will return values X, X and 0 respectively. The third command fails to count the number of chunks.

/c game.print(#game.player.surface.platform.find_asteroid_chunks_filtered{})
/c game.print(#game.player.surface.platform.find_asteroid_chunks_filtered{area={{-1000,-1000},{1000,1000}}})
/c game.print(#game.player.surface.platform.find_asteroid_chunks_filtered{position = game.player.position, radius = 5000})
Bilka
Factorio Staff
Factorio Staff
Posts: 3684
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.0.72] Radius method of find_asteroid_chunks_filtered fails to find

Post by Bilka »

Indeed, the method doesn't support that argument: https://lua-api.factorio.com/latest/cla ... s_filtered
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Not a bug”