[1.1.34] LuaSurface.count_tiles_filtered() gives up

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3612
Joined: Tue May 13, 2014 11:06 am
Contact:

[1.1.34] LuaSurface.count_tiles_filtered() gives up

Post by DaveMcW »

If you give LuaSurface.count_tiles_filtered() an area that is partially uncharted, it returns too early.

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}}})
I believe this is reproducible on any map, but I attached a save you can test with.

count-tiles.jpg
count-tiles.jpg (390.24 KiB) Viewed 964 times
count_tiles.zip
(2.95 MiB) Downloaded 74 times

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 1787
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.34] LuaSurface.count_tiles_filtered() gives up

Post by boskid »

Fixed for 1.1.35

Post Reply

Return to “Resolved Problems and Bugs”