Hi, is there a way to cancel an invitation request? or some feature I'm not currently aware of that could help me achieve something similar?
For exemple, in my game lobby, you can check other people's "character panel" and from there you can add them as friend, request a trade, etc. For the trading , it seems wise to use the invitation system. But if I close the character panel, I want to cancel the trade request.
I can also manage the trade requests myself with standard extension requests but yeah, the invitation system seems to be a good bet but only if I can cancel invitations.
Thoughts? Suggestions?
Thanks you
Canceling an invitation
The scenario is not entirely clear.
When User A sends and invitation (of any kind) to User B the latter can either accept or refuse.
Simply refuse it and it will be cancelled.
It doesn't make, however, that you can kill an invitation in the middle of it, just because you changed your mind. Once it is sent it will stay active until it runs out of the configured time.
If you want you can still avoid to accept the response if you keep track of when you closed the panel in question (trading panel)
That's your choice.
When User A sends and invitation (of any kind) to User B the latter can either accept or refuse.
Simply refuse it and it will be cancelled.
It doesn't make, however, that you can kill an invitation in the middle of it, just because you changed your mind. Once it is sent it will stay active until it runs out of the configured time.
If you want you can still avoid to accept the response if you keep track of when you closed the panel in question (trading panel)
That's your choice.
It's not easy as it sounds. There are many synchronization issues that can happen. For example the cancellation event arrives to the client after he has already accepted the invitation.
In that case we find ourselves in an inconsistent state in which the server knows that the invitation was cancelled, but for a while the client doesn't and he can still send an "accept" message.
In that case we find ourselves in an inconsistent state in which the server knows that the invitation was cancelled, but for a while the client doesn't and he can still send an "accept" message.
Lapo thanks for the replies, I understand the synchronization problem, but wouldn't that be solved with an "Invite Reply Successful" event and in the case of the canceled invitation, a new error in the "Invite Reply Error" event like "The invitation has been canceled"
Basicly, anything that is an interaction between 2 users will need that kind of system right? Cause that's what I will need to do I reckon. Seems like any game using the invite system is kinda restricted when it sends an invite, restrictions like not being able to send other invites, not leaving the interface where the invite was sent from. Otherwise you'd get many cases where someone accepts an invite and the inviter has already moved on to another game or something like that. If I create a game room and invite someone into it and then leave the game room, without canceling the invite, I'm leaving a dangling/invalid invite out there for the invitee.
Anyway, that's probably all because of the type of game I'm doing but it would be nice if the invite system had more support for synchronized/mutual interactions, like trading, game invites, team-up request, etc
And what the heck christian.kelvin10?
You're just repeating my question with an incredibly corrupted english
Basicly, anything that is an interaction between 2 users will need that kind of system right? Cause that's what I will need to do I reckon. Seems like any game using the invite system is kinda restricted when it sends an invite, restrictions like not being able to send other invites, not leaving the interface where the invite was sent from. Otherwise you'd get many cases where someone accepts an invite and the inviter has already moved on to another game or something like that. If I create a game room and invite someone into it and then leave the game room, without canceling the invite, I'm leaving a dangling/invalid invite out there for the invitee.
Anyway, that's probably all because of the type of game I'm doing but it would be nice if the invite system had more support for synchronized/mutual interactions, like trading, game invites, team-up request, etc
And what the heck christian.kelvin10?
You're just repeating my question with an incredibly corrupted english
If I create a game room and invite someone into it and then leave the game room, without canceling the invite, I'm leaving a dangling/invalid invite out there for the invitee.
No, an invitation has an expiry time. Let's say 10 seconds
Each invited player has that same amount of time to respond yes or no.
So the whole invitation cycle can last very little time, if you set it up correctly.
I don't understand a scenario where someone starts a game, fires 3 invitations that last 10-15 seconds and then he doesn't even wait for that, changes his mind and leaves the room to do something else.
It makes little to no sense at all.
With this I am not saying that this is not possible, but I am wondering why should you support such scenario.
It's like a restaurant trying to figure how to handle customers that sit at a table, make and order and then leave the building even before the waiter returns with the food and beverages
Hope you understand.
Re: Canceling an invitation
Hello,
For my part, I see in many cases that a client who sent an invitation to demand help, will change his mind, and don't need any help, so he want to cancel his invitation. That is in my case, so I will send a message to cancel, and all sellers who get the cancel message, will reply to the invitation automatically as impossible or refuse. And the client will not see the refuse, because he is in state of canceled invitation. that will change after reciving the automatically reply to his invitation. It is a lot of changes because there is no cancel invitation request.
Best.
For my part, I see in many cases that a client who sent an invitation to demand help, will change his mind, and don't need any help, so he want to cancel his invitation. That is in my case, so I will send a message to cancel, and all sellers who get the cancel message, will reply to the invitation automatically as impossible or refuse. And the client will not see the refuse, because he is in state of canceled invitation. that will change after reciving the automatically reply to his invitation. It is a lot of changes because there is no cancel invitation request.
Best.
Who is online
Users browsing this forum: No registered users and 115 guests