[0.11.3] Blueprint icon index out of bounds

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

[0.11.3] Blueprint icon index out of bounds

Post by DaveMcW »

The blueprint API can only set 3 icons, the 4th gives an error.

Steps to reproduce:
1. Put a working blueprint in the first slot of your toolbar.
2. Run this command:

Code: Select all

/c game.player.getinventory(1).getitemstack(1).blueprinticons = {{index=1,name="lab"},{index=2,name="lab"},{index=3,name="lab"},{index=4,name="lab"}}
You get the error message, "Cannot execute command. Error: [game.player.getinventory...]:1:Index out of bounds."


Also, setting index = 0 crashes the game.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.11.3] Blueprint icon index out of bounds

Post by kovarex »

Thanks for the report, it is fixed for 0.11.9 now.
Post Reply

Return to “Resolved Problems and Bugs”