Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
all-inclusive server-side demo

#1
Currently on our own client, we can record what's happening on our own screen into a demo file. That means if I play a game and record it, only my own point of view was recorded. However, I would love to review how other players fragged me.

Is it possible to have the server record everything during a game play? At the end of the game, an all-inclusive demo file (we may need to call it something else to avoid confusion) can be downloaded by the clients, or sent somewhere (say stats.xonotic.org) for download.

By everything I mean all events (all player activities, item cycles, etc.). Later on, I can re-spec (per-player POV) any player, or freely re-observe (floating ghost POV) the recorded game play from any angle, just like during a live game.

Imagine Antibody with this in his analysis video, mixing 3rd-person POV and 1st-perosn POV.

If that's too much information to record, perhaps at least record every player, and generate a multi-track type of demo, or even just multiple demo files. This way, at least I can still re-spec each player.

Digging through posts, I learned that during a game play, not all events are sent to the client, so I figured this has to be done on the server side.

Googling gave me only one example of another engine.

I don't quite know how Xonotic server and client work together so I'm not even sure whether this idea is feasible.
Reply

#2
Server side demos for each player are currently possible, though it had a crash issue with UTF-8 names last time I tried it (not to mention the space required for so many demos).
[Image: 230.png]
Reply

#3
@Mario could you give me a pointer to how to do server-side demos (is it a config? Or is it in a branch?)? Perhaps I can help track down the bug. I feel this function would really help me, and likely other beginners.

About the space concern, we can keep the recorded demo for, say, 30-min after the game. The players of that game are the ones who care about the demo the most, so I imagine after a game, they can download it right away.

After a few demos of test, it seems a demo file takes 5MB of space per player per 10-min game. So let's say we have three 10-min 4v4 games within this 30-min life-span requirement, it requires 3*5*8=120MB.

Or we can ask the players whether they want to download the demo right after the game, and they have to make the decision within a 10-second window.
Reply

#4
My concerns about CPU performance aside, if you wanted to make these available for download, I would suggest first rsyncing them to another server. Most game servers already serve maps off another server.
Reply

#5
Update: Today I met Slava (Sl@va in the forum) in the game and he showed me that sv_autodemo_perclient is the switch for server-side demo recording. Initial test works but I'll test a little bit more to see whether the load is a big issue.
Reply

#6
I use demo recording on

Xonotic DeFrag - Join/Run now! - balance changes

The server records demos (via mentioned sv_autodemo) for every player.
Those demos are parsed for first places, transfered to another server, recorded and uploaded to Youtube:

https://www.youtube.com/user/packerxonotic

On peak times there are around 8 players.

An issue might be the continnous IO stream demo recording causes...
Reply

#7
Thanks, @It'sMe. Impressive automatic flow!

I don't plan to convert the demo files into videos on my server -- I'll just let the users of that game to download them if they choose to do so. The server is running on SSD so I'm hoping disk I/O (or network I/O, if I end up mounting that folder via NFS on the file server) wouldn't be the bottleneck.

@-z-, I'm only serving the demo files to the participating players, so it's different from serving maps to the world. I doubt the file server would bog me down. I'll try to do some load test -- maybe this little server can handle all that.

@It'sMe:

1. Do you have some system load numbers of recording 8 demos at once for reference? Have you ever noticed any game server performance problem?

2. How do you figure out who won? The log?

@moderator: I didn't know Xonotic already kind of supports server-side demo recording so I asked here in the Suggestion. Could you move this thread to Server Administration? Thanks.
Reply

#8
I cannot notice a significant difference on performance when multiple demos are recorded... It seems to be very marginal.

I use this feature only for CTS... and if someone creates a record a comment is inserted into demo files like

'//CTS RECORD SET 0:18.75 151.867096 18.750000'

So I parse the demo files for this.
Reply

#9
(05-14-2015, 05:31 AM)ItsMe Wrote: I cannot notice a significant difference on performance when multiple demos are recorded... It seems to be very marginal.

Thanks, It'sMe. My test results seem to agree with yours. Multiple demo file recording doesn't result in heavy server load (which makes sense, considering the data size). (My server uses SSD, though.)

(05-14-2015, 05:31 AM)ItsMe Wrote: I use this feature only for CTS... and if someone creates a record a comment is inserted into demo files like

'//CTS RECORD SET 0:18.75 151.867096 18.750000'

So I parse the demo files for this.


I started another thread about demo file parsing. Do you mind sharing what parser you use for demo files there?
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Opensuse Leap 15.1 and Server.cfg ldegroot 3 180 08-01-2019, 02:52 PM
Last Post: ldegroot
  LAN server console commands dbl 1 422 06-13-2019, 04:55 AM
Last Post: martin-t
  How to change server cfg on modified server veecho 4 652 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Server error "Weapon stats writing failed: -404" FlufyBuny 1 331 04-13-2019, 04:36 AM
Last Post: It'sMe
  Dedicated server setup Rec0d 5 602 04-03-2019, 02:00 PM
Last Post: Rec0d
  South American Dedicated Server Professor 3 666 03-03-2019, 07:02 PM
Last Post: end user
Information [TUTORIAL] Xonotic Server behind OPNSense (and pfSense) gurbe 0 457 01-27-2019, 09:07 AM
Last Post: gurbe
  Xonotic server running behind UDP proxy not working doombringeroperator 2 648 01-07-2019, 02:23 PM
Last Post: doombringeroperator
  [NEED HELP] Server show on the browser list, but I can't connect! Professor 1 654 12-19-2018, 11:39 AM
Last Post: Professor
  Server Setup for Dummies litvinenkotea 7 4,387 12-08-2018, 01:20 PM
Last Post: tehjester78

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-