We’ve had a Mac version of our game in beta testing for a while and a few issues have come up when running on OSX 10.9 (Mavericks). I’m not sure if they are interrelated or not:
- The console is spammed with the following message:
2014-03-09 21:18:25.728 p3dpython[464:507] unlockFocus called too many times. Called on <CocoaPandaView: 0x2b791910>.
This message appears to be logged at least once per frame.
-
XQuartz must be installed to run the game. Is there any other option here, or am I stuck requiring users to install additional software in order to run the game?
-
Although I am unable to reproduce it myself, multiple users who are running the game on OSX 10.9 report that when pressing keys on the keyboard to move the character, the character continues moving after the key is released. This leads me to suspect that the key up event is not firing. I accept keyboard input with the following code:
button_node = game.buttonThrowers[0].node()
button_node.setButtonDownEvent('buttonDown')
button_node.setButtonUpEvent('buttonUp')
button_node.setKeystrokeEvent('keystroke')
game.accept('buttonDown', self.key_down)
game.accept('buttonUp', self.key_up)
game.accept('keystroke', self.typekey)
Why might this not work for some users?