Page 1 of 1

[0.11.3] Blueprint icon index out of bounds

Posted: Mon Nov 17, 2014 9:07 pm
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.

Re: [0.11.3] Blueprint icon index out of bounds

Posted: Mon Jan 05, 2015 3:26 pm
by kovarex
Thanks for the report, it is fixed for 0.11.9 now.