URGENT: Major bugs in gameNetwork

In your docs, you write that calling endTurn will return the Match object in event.data. Well, it does not…

http://docs.coronalabs.com/api/library/gameNetwork/request.html#end-turn

The only data returned is

table

=================

provider -> gamecenter

type -> endTurn

name -> gameNetwork

As you see, the data object is not there. According to the docs, data should be there and contain the Match object.

Without the updated Match object, turn based playing is not working. Not sure when you introduced this bug, but it sure needs to be fixed immediately. I think a temporary workaround for us will be to reload the match with loadMatchData, but it takes extra loading time, extra requests and creates extra spaghetti code…

Please notice that this bug is also present in several other gameNetwork commands. So far I’ve found that the Match object is NOT returned in these calls:

endTurn

endMatch

quitMatch

This is tested in Xcode 6.1, I’m on Enterprise, running in iPhone4s xcode simulator. Deploy target ios 8. I am using the latest daily build and the latest gamenetwork plugin (2506)

For the record, just tested the same on a device, no match objects returned there either.

Were you ever getting the match data? I use Game Center for turn-based multiplayer in my game, and I don’t think I’ve ever gotten match data back after endTurn. In fact, getting up-to-date match data back from Game Center has always been an issue for me.

Hi,

no, I have never got the match data as part of the returned table in endTurn, endMatch or quitMatch. I also just discovered that doing a call to loadMatchData immediately after the endTurn callback fires gives me the old game data back. It’s as if playing more than one turn each in a turnbased game does not work in Corona. I bet they have made yet another assumption, like “no one needs to be able to play more than one turn each in a multiplayer game”. That would be typical Corona.

I’ll 1 up ya…

It’s “turn” based not “turns” based multiplayer.

vote it up!

Nail

For the record, just tested the same on a device, no match objects returned there either.

Were you ever getting the match data? I use Game Center for turn-based multiplayer in my game, and I don’t think I’ve ever gotten match data back after endTurn. In fact, getting up-to-date match data back from Game Center has always been an issue for me.

Hi,

no, I have never got the match data as part of the returned table in endTurn, endMatch or quitMatch. I also just discovered that doing a call to loadMatchData immediately after the endTurn callback fires gives me the old game data back. It’s as if playing more than one turn each in a turnbased game does not work in Corona. I bet they have made yet another assumption, like “no one needs to be able to play more than one turn each in a multiplayer game”. That would be typical Corona.

I’ll 1 up ya…

It’s “turn” based not “turns” based multiplayer.

vote it up!

Nail