Author Topic: New observers should watch game in progress  (Read 729 times)

0 Members and 1 Guest are viewing this topic.

Offline Forestidia86

  • Posts: 575
  • inactive
    • View Profile
New observers should watch game in progress
« on: July 14, 2019, 07:27:23 pm »
Moved to separate topic: 2nd: Observers should start level zoomed out

Two things which would in my opinion be good features for multiplayer:

1st: It would be good when one could see that a game is in progress. At the moment you have no indication and wonder why nothing goes on in the lobby, which is confusing.
« Last Edit: July 15, 2019, 02:07:12 pm by Simon »

Online Simon

  • Administrator
  • Posts: 2828
    • View Profile
    • Lix
Re: New observers should watch game in progress
« Reply #1 on: July 15, 2019, 02:01:44 pm »
Good summary, thanks, and important.

This is hard because the server has no idea whether a game is running.

Existing architecture: The server collects and relays ready status. When the server believes that everybody is ready, the server sends everybody an extra packet to start the game. Afterwards, the server relays plies (assignments and nukes by the players) and ready status -- because the server has no idea when the game is finished.

Ideas: First, the server should remember all plies.

Then, we must think how to separate one game A from the next game B. Certainly, the server will still know when B starts. But the new observer may join after A's players have all returned to the lobby, which the server does not know in the existing architecture.

The server has no idea when overtime starts because the server does not understand level files (he treats level files as an uninterpreted array of bytes) or game rules (the server mindlessly relays plies).

This is now github issue #393.

-- Simon
« Last Edit: November 02, 2019, 06:00:05 pm by Simon »