multiplayer.deleteMatch( matchID ) - question

is it supposed to be so that only the creator of a match can delete a match?

Because if I use multiplayer.deleteMatch( matchID ) from another player it dosent seem to delete the match. And as it is now, when a game is over I would like to delete the match after all players has seen the final move and saved stats and such. And that last player is not always the one that created the match. So is it possible for all players to delete a match? 

Yes only the match creator can delete the match.  When everyone has resigned from the match, it will be deleted on its own (in theory).  In the way I’ve worked with it, I have a business logic rule that I will never have a match with just one player in it (as far as getMatches() is concerned.  I will always add the first opponent right away.  That way if I see a match returned by getMatches() I know that’s a game that’s being removed.  If I"m not the creator, I resign, if I’m the creator I resign and delete for good measure.

ok, I will have to look into the resign part as well then. Was thinking of that being more of a way to quit the match before it was over, but I guess it should work just as well as the game over function. Thanks for the quick reply!

so I tried  with resign, guess it will work. But is there a way to not have it send a push notification? I dont need it to do that for the game over part.

ok, so just noticed another problem with resign… if I choose to resign before the game has ended… it just removes the match. just like deletematch, but with the difference of a push notification. and it dosent matter if you are the creator or not, it just removes the match.

I really dont understand the choices made regarding this. delete match should not be for only the creator player of the match, I am the one that decides when that function is to be used after all. And resign match should remove the match from the player that resigns, but the other player should still be able to see this on his end, until he chooses to remove the match.

Hi borqb,

I am having the same problems, sort of…

As far as the notification for the resign function goes, I asked Mohamed if this can be solved and he replied that the team is looking into a feature with which you can pass a parameter false if you don’t want a notification to be send.

For me calling the resign function with a player that is  not the creator, only this particular player resigns and the rest of the player field lives on. However the behavior that I find strange is when I resign with the creator of the match, namely the complete match will be deleted while I expect only the creator to resign. Is there maybe a Corona dev that can comment on this?

Thanks in advance

Qwertier

I havent experimented so much with the resign function yet, will look further into that to see if I can replicate what you are saying. First time I tried it I ended up with a match with only one user, but the weird thing was that is was the player that had resigned that was left so had to “manually” delete that match. After that it seemed that the match got deleted when eitherone of the players resigned but havent tested it out alot yet.

But some clear info on how this is supposed to work and the devs vision behind these functions would be nice.

Can a Corona dev please respond to this?

We are currently unable to use the resign fucntion…

Thanks

Qwertier

Yes only the match creator can delete the match.  When everyone has resigned from the match, it will be deleted on its own (in theory).  In the way I’ve worked with it, I have a business logic rule that I will never have a match with just one player in it (as far as getMatches() is concerned.  I will always add the first opponent right away.  That way if I see a match returned by getMatches() I know that’s a game that’s being removed.  If I"m not the creator, I resign, if I’m the creator I resign and delete for good measure.

ok, I will have to look into the resign part as well then. Was thinking of that being more of a way to quit the match before it was over, but I guess it should work just as well as the game over function. Thanks for the quick reply!

so I tried  with resign, guess it will work. But is there a way to not have it send a push notification? I dont need it to do that for the game over part.

ok, so just noticed another problem with resign… if I choose to resign before the game has ended… it just removes the match. just like deletematch, but with the difference of a push notification. and it dosent matter if you are the creator or not, it just removes the match.

I really dont understand the choices made regarding this. delete match should not be for only the creator player of the match, I am the one that decides when that function is to be used after all. And resign match should remove the match from the player that resigns, but the other player should still be able to see this on his end, until he chooses to remove the match.

Hi borqb,

I am having the same problems, sort of…

As far as the notification for the resign function goes, I asked Mohamed if this can be solved and he replied that the team is looking into a feature with which you can pass a parameter false if you don’t want a notification to be send.

For me calling the resign function with a player that is  not the creator, only this particular player resigns and the rest of the player field lives on. However the behavior that I find strange is when I resign with the creator of the match, namely the complete match will be deleted while I expect only the creator to resign. Is there maybe a Corona dev that can comment on this?

Thanks in advance

Qwertier

I havent experimented so much with the resign function yet, will look further into that to see if I can replicate what you are saying. First time I tried it I ended up with a match with only one user, but the weird thing was that is was the player that had resigned that was left so had to “manually” delete that match. After that it seemed that the match got deleted when eitherone of the players resigned but havent tested it out alot yet.

But some clear info on how this is supposed to work and the devs vision behind these functions would be nice.

Can a Corona dev please respond to this?

We are currently unable to use the resign fucntion…

Thanks

Qwertier