Page 1 of 1

[0.14.8] game.take_screenshot's by_player parameter

Posted: Wed Sep 21, 2016 9:46 pm
by credomane
game.take_screenshot's by_player parameter no longer works with a player index. Instead throws an "invalid player specification" error.

According to the documentation a player index is supported and it was working correctly in 0.13 when the parameter was first introduced.

Pretend the required parts are there.

Code: Select all

game.take_screenshot({by_player=game.players[1]}) -- works [LuaPlayer]
game.take_screenshot({by_player=game.players[1].name}) -- works [string]
game.take_screenshot({by_player=game.players[1].index}) -- fails [number]
game.take_screenshot({by_player=1}) -- fails [number]

Re: [0.14.8] game.take_screenshot's by_player parameter

Posted: Thu Sep 22, 2016 1:45 am
by Rseding91
Fixed for 0.14.9.