To reproduce, I started a new game, waited 30 minutes for all charting to finish, then tried to count some tiles. At about 800 tiles away from the start position, count_tiles_filtered() began failing.
Code: Select all
/c game.print(game.player.surface.count_tiles_filtered{area={{0,0},{100,800}}})