The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
November 15, 2019, 04:37:59 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  'Spectator' Melee
« previous next »
Pages: [1] Print
Author Topic: 'Spectator' Melee  (Read 2116 times)
countchocula86
*Smell* controller
****
Offline Offline

Gender: Male
Posts: 345


Culture 20!


View Profile
'Spectator' Melee
« on: February 08, 2007, 09:28:22 pm »

I think an interesting addition to the online melee feature of UQM would be a spectator mode; so when 2 people are squaring off, a few others could connect to whoever the host is and watch the battle.
Logged

I like to think you killed a man. It's the romantic in me.
AngusThermopyle
*Smell* controller
****
Offline Offline

Gender: Male
Posts: 304


A paranoid android.


View Profile
Re: 'Spectator' Melee
« Reply #1 on: February 09, 2007, 03:50:17 pm »

I like this idea; though having little-to-no coding skills myself, I'm not sure how difficult this would be to implement.

I also wonder what effect (if any) this would have on latency?
« Last Edit: February 09, 2007, 08:22:32 pm by AngusThermopyle » Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: 'Spectator' Melee
« Reply #2 on: February 09, 2007, 07:05:41 pm »

I like this idea; though have little-to-no coding skills myself, I'm not sure how difficult this would be to implement.
From the spectator's point of view, this is like having both players remote. From a player's point of view, it's just another socket to transmit the same information to. The connection setup and user interface part is probably going to be the most work, and that's reasonably straightforward.

I suspect this functionality will appear together with or shortly after some sort of "lobby" is implemented.

Quote
I also wonder what effect (if any) this would have on latency?
Latency is less a problem here as the spectators don't need to react to the game and the bandwidth use of a few spectators is negligible (if you want to support more than a dozen spectators or so, some sort of peer chaining solution could be a good idea instead of connecting directly to the players). The important part is to make sure that failure to transmit game state to a spectator never blocks the game (transmitting from a separate thread or with non-blocking I/O should do the trick).

As a bonus, if you have spectator mode, making a replay function is easy (save/load the data to/from a file instead of a network socket) and vice versa. However, adding rewind to the replay might be a bit tricky.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!