Text receive?

Make suggestions for improving one of the best games on the net!
Post Reply
User avatar
Zehra
Private First Class
Private First Class
Posts: 622
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Text receive?

Post by Zehra » Fri Jan 27, 2017 3:41 am

Hi all,

It seems the client does not disconnect from a server as observer if someone fails to close it.
It would be nice if that a system is built on the client to "confirm" if a message was sent.
If the client does not confirm, the client assumes the player to be disconnected and sends a message like "message not confirmed by client (assume player might be disconnected and unable to reply due to it)".
Thoughts?

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
blast
General
General
Posts: 4746
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Text receive?

Post by blast » Fri Jan 27, 2017 11:16 am

I don't understand what you mean. Why should a client disconnect if it's still running?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
Bullet Catcher
Captain
Captain
Posts: 553
Joined: Sat Dec 23, 2006 7:56 am
Location: Escondido, California

Re: Text receive?

Post by Bullet Catcher » Sat Jan 28, 2017 1:37 am

The protocol for this situation is to send "are you there?" to the player. If they respond, it is confirmed. If they don't respond, it is not confirmed. No changes to the game are required.

Also, server owners have the option to use -maxidle to automatically kick players who do nothing for too long.

User avatar
alfa1
Private First Class
Private First Class
Posts: 116
Joined: Tue Dec 04, 2012 10:21 pm

Re: Text receive?

Post by alfa1 » Sat Jan 28, 2017 2:13 am

I think he means he, as observer, might get 'not responding'. Then, as 'nr' doesn't appear in observer mode, and the other players can think he is there still and can be trying to chat to him, he might worry about not being able to respond them. He commented it to us recently in-game.

User avatar
Zehra
Private First Class
Private First Class
Posts: 622
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Text receive?

Post by Zehra » Sat Jan 28, 2017 3:59 pm

I'm basically referring to an observer becoming not responding and players wondering why all of a sudden they might have stopped chatting.
And like alpha1 mentioned, nr does not display as observer. (A client can stay for hours while not being online or connected and "nr" wouldn't display.)
So I'm thinking it might help if the client would confirm if a message is received so it's possible to know if a player went not responding or is away from keyboard.
(If they're away from keyboard a message confirms they received it and if they're not responding a message appears saying it hasn't been confirmed by the client.)
(It would only appear if the client didn't confirm if the message hasn't been received and wouldn't show otherwise.)
It's probably is easier to implement as a plug-in or player protocol, but would be nicer to have as an in game feature.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
blast
General
General
Posts: 4746
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Text receive?

Post by blast » Sat Jan 28, 2017 11:38 pm

The NR status only applies to clients that send player updates. Observers do not send player updates since they do not have a tank (or if they do, they are not relayed to other clients). The "not responding" status is calculated by the client based on the last player update that they saw for non-observer clients.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
macsforme
General
General
Posts: 2024
Joined: Wed Mar 01, 2006 5:43 am

Re: Text receive?

Post by macsforme » Sun Jan 29, 2017 3:08 am

For similar reasons, you cannot tell whether a player is NR if they're dead.

User avatar
Bullet Catcher
Captain
Captain
Posts: 553
Joined: Sat Dec 23, 2006 7:56 am
Location: Escondido, California

Re: Text receive?

Post by Bullet Catcher » Sun Jan 29, 2017 4:58 pm

If the network connection and client program are running normally, receipt of the TCP packet(s) containing a chat message is acknowledged automatically at the TCP layer, and the client's continued connection to the server is the confirmation you seek.

BZFlag client programs that are not responding at the network level will be disconnected from the server when their TCP connections time out, typically within a couple of minutes.

For determining whether some other player is at the keyboard and paying attention to you, anything beyond the "are you there" protocol I mentioned above would intrude on that player's privacy and we aren't going to implement it.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Re: Text receive?

Post by JeffM » Sun Jan 29, 2017 5:32 pm

There is the bzdbVariable sendObserverHeartbeat, it's intended to keep connections open, but it does not provide any visual feedback for the status of an observer.

Bzflag is not a chat program, use skype.

User avatar
Bullet Catcher
Captain
Captain
Posts: 553
Joined: Sat Dec 23, 2006 7:56 am
Location: Escondido, California

Re: Text receive?

Post by Bullet Catcher » Sun Jan 29, 2017 6:38 pm

The visual feedback for the status of an observer is that if they are connected then they are responding (the opposite of NR). There is no grace period for NR observers; they are immediately kicked when their NR state has been detected by the game server.

Post Reply