[Rseding91] item-with-inventory filters lost transferring the item

This subforum contains all the issues which we already resolved.
User avatar
mickael9
Fast Inserter
Fast Inserter
Posts: 112
Joined: Mon Mar 14, 2016 4:04 am
Contact:

[Rseding91] item-with-inventory filters lost transferring the item

Post by mickael9 »

I have an item-with-inventory with filters set but when transferring it to the player inventory or placing it on the ground via script, the filters are cleared.

Here are some test cases:

Code: Select all

/c p=game.player; s=p.cursor_stack; s.set_stack('item-with-inventory'); s.get_inventory(1).set_filter(1, 'pipe'); p.insert(s); s.clear()

Code: Select all

/c p=game.player; s=p.cursor_stack; s.set_stack('item-with-inventory'); s.get_inventory(1).set_filter(1, 'pipe'); p.surface.spill_item_stack(p.position, s); s.clear()
In both cases, the item's inventory (in inventory or picked from the ground) lacks the filter.

One can verify that the filter is correctly set and that this doesn't happen when the player manually transfers the item or drops it on the ground:

Code: Select all

/c p=game.player; s=p.cursor_stack; s.set_stack('item-with-inventory'); s.get_inventory(1).set_filter(1, 'pipe')
With the item in hand, place it in inventory or drop it on the ground and pick it up: the filter is correctly set.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15000
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] item-with-inventory filters lost transferring the item

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”