[boskid][1.1.78] using a force_index for surface.find_entities_filtered is an error

This subforum contains all the issues which we already resolved.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[boskid][1.1.78] using a force_index for surface.find_entities_filtered is an error

Post by Honktown »

Subject says it all: using a force_index for surface.find_entities_filtered is an error: "bad argument #3 of 3 to 'find_entities_filtered' (string expected, got number)"

These do not work:
surface.find_entities_filtered{force = 3}
surface.find_entities_filtered{force = {player.force, 3}}

These work:
entity.force = 3
surface.find_entities_filtered{force = "neutral"}
surface.find_entities_filtered{force = {player.force, "neutral"}}
I have mods! I guess!
Link

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

Re: [boskid][1.1.78] using a force_index for surface.find_entities_filtered is an error

Post by boskid »

Thanks for the report. Issue is now fixed for 1.1.79

Post Reply

Return to “Resolved Problems and Bugs”