Setting infinity_filters does not work

This subforum contains all the issues which we already resolved.
Post Reply
Boodals
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Setting infinity_filters does not work

Post by Boodals » Sun Dec 16, 2018 9:16 pm

"game.player.selected.infinity_filters = game.player.selected.infinity_filters" gives the error "Unknown item name: name".
"game.player.selected.infinity_filters = {{name = "iron-ore", index = 1 }}" gives the same error, but is valid according to the api docs as far as I can tell.

I asked about it on discord, and Bilka took a look and said that "the writing is just broken".

I can use set_infinity_filter(index, filter) as a work around for now.

Oh, and reading infinity_filters can return nil, but writing doesn't accept nil, only { }. Minor issue but would be nice to not have to do nil checks.

Rseding91
Factorio Staff
Factorio Staff
Posts: 9437
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Setting infinity_filters does not work

Post by Rseding91 » Sat Dec 22, 2018 6:01 am

Thanks for the report. Both issues are now fixed for 0.17. The "nil" return was an error and wasn't meant to happen.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users