[0.15.9] [Lua-API] robot.insert{} does not insert item

Bugs that are actually features.
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 525
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

[0.15.9] [Lua-API] robot.insert{} does not insert item

Post by Mylon »

I want to insert items to robots via script (part of my mod to simulate fast-replace with robots) but this doesn't seem to work. I can do robot.remove{} and that works, but robot.insert{} does not.

Screenshot: http://imgur.com/a/yF9Lr

Steps: Run console command to insert item into bot.

Observed behavior: Command runs without complaint, suggesting success. Bot has no item, neither displayed nor granted upon pickup.

Expected behavior: Bot has item in inventory (displayed like the chest)
Rseding91
Factorio Staff
Factorio Staff
Posts: 15981
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.9] [Lua-API] robot.insert{} does not insert item

Post by Rseding91 »

This is a side effect of not allowing the player to transfer items through CTRL + click.

If you want to transfer items into the robot you'll need to get the specific inventory and then do insert() on that.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”