You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive this error while running my simple game inspired by the example game included with this repo. During my cbk_on_event callback, I'm trying to handle GGPO TIMESYNC events just as the example game suggests in order to idle the session for the given number of frames:
if event.code == ggpo_py.GGPOEventCode.GGPO_EVENTCODE_TIMESYNC.value:
self.session.idle(round(1000 /60 * event.frames_ahead))
The reference to event.frames_ahead is causing the issue. I'm not familiar with pybind11, but from what I can tell from py_ggposession.cpp in the src folder, all of the other GGPOEvents with specific attributes are binding them (like SYNCHRONIZING_WITH_PEER) except for the TIMESYNC event. Perhaps adding the binding for the frames_ahead attribute would do the trick?
The text was updated successfully, but these errors were encountered:
I receive this error while running my simple game inspired by the example game included with this repo. During my cbk_on_event callback, I'm trying to handle GGPO TIMESYNC events just as the example game suggests in order to idle the session for the given number of frames:
if event.code == ggpo_py.GGPOEventCode.GGPO_EVENTCODE_TIMESYNC.value:
self.session.idle(round(1000 /60 * event.frames_ahead))
The reference to event.frames_ahead is causing the issue. I'm not familiar with pybind11, but from what I can tell from py_ggposession.cpp in the src folder, all of the other GGPOEvents with specific attributes are binding them (like SYNCHRONIZING_WITH_PEER) except for the TIMESYNC event. Perhaps adding the binding for the frames_ahead attribute would do the trick?
The text was updated successfully, but these errors were encountered: