Page 1 of 1

(0.15.7) Quickbar bugged in Sandbox game

Posted: Fri May 05, 2017 2:34 pm
by aober93
I cannot acces the quickbar in sandbox games.

Check this out: type
/c game.player.print(#game.player.get_inventory(defines.inventory.player_quickbar))

in a normal game you will receive 10 or 20 (slots) (depending on research)

in sandbox youll get 60. But the quickbar doesnt have 60 slots. I receive errors when accessing items in any slot :?

can someone confitrm

Re: (0.15.7) Quickbar bugged in Sandbox game

Posted: Fri May 05, 2017 2:50 pm
by posila
Thanks for the report.
In sandbox game (when player has god controller and not character controller), you need to use defines.inventory.god_quickbar instead.