How do I automatically record on a dedicated server?

Locked
sokuman
Posts: 3
Joined: Wed Jul 18, 2012 6:17 am

How do I automatically record on a dedicated server?

Post by sokuman »

Hi,
Sorry if this supposed to be in a different forum.
Anyway, I am running a dedicated server. And, I would like to record the matches. Is there a way to do so?
I am running it with a batch file:
--
ioquake3.exe +set fs_game mod +set sv_pure 0 +set vm_game 0 +set vm_cgame 0 +set vm_ui 0 +set dedicated 1 +exec rcd2.cfg
--
And a test cfg file (rcd2.cfg):
--
bind F5 g_synchronousclients 1
bind F6 record
bind F7 g_synchronousclients 0
bind F8 stoprecord
seta df_autorecord "1"
sv_maxclients 16
map q3dm1
addbot sarge 5
addbot bones 5
team spectator
--
But, it isn't recording anything : (
I would really appreciate the help!
menkent
Posts: 2629
Joined: Sun Jul 23, 2000 7:00 am

Re: How do I automatically record on a dedicated server?

Post by menkent »

might be a problem with ioq3's implementation of autorecord (i didn't know it was "df_", but whatev). have you tried asking google?

http://ioquake3.org/help/
cl_autoRecordDemo Boolean Record a new demo on each map change.
sokuman
Posts: 3
Joined: Wed Jul 18, 2012 6:17 am

Re: How do I automatically record on a dedicated server?

Post by sokuman »

I tried asking google, but all I got were command lists.
Anyway, when I type record into the console of a dedicated server, it says "You must be in a level to be able to record."
Does this mean that the engine was not built to record a match without the recording player participating in the match even if as a spectator?
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: How do I automatically record on a dedicated server?

Post by Eraser »

As far as I know, standard Quake 3 does not support server-side demo recording. This means that only a player in the match can record a demo from his point of view. There are mods that support server-side demo recording though, but the only one I know of is Ultra Freeze Tag.
DTS
Posts: 2879
Joined: Thu Jul 13, 2000 7:00 am

Re: How do I automatically record on a dedicated server?

Post by DTS »

I think CPMA has some server-side demo recording of some kind, I read something about it having multi-view (POV) demos before and that having something to do with the server.
sokuman
Posts: 3
Joined: Wed Jul 18, 2012 6:17 am

Re: How do I automatically record on a dedicated server?

Post by sokuman »

I see. Ok, is there a way to record from a given Player's perspective while from a dedicated server?
menkent
Posts: 2629
Joined: Sun Jul 23, 2000 7:00 am

Re: How do I automatically record on a dedicated server?

Post by menkent »

not as far as i know. you'd have to join the server as a spectator.
grosbedo
Posts: 1
Joined: Wed Dec 03, 2014 12:06 pm

Re: How do I automatically record on a dedicated server?

Post by grosbedo »

Actually you can by using GTV and configuring its cfg so that it automatically record a client-side demo. However, GTV doesn't move by default, so that you will record only from a fixed point (the default spectator spot) for the whole game.
To fix that, you can use a modification I made of GTV so that it automatically cycles through players regularly:
http://zsensible.free.fr/openarena/gtv3-oacl_v0.9.9.zip

Also, if you want to record server-side demos without needing any client connected, I have made a patch for OpenArena+ioquake3 that is available here:
https://github.com/lrq3000/openarena_en ... sidedemos/

And the unified diff patch if you want to port it to another engine:
https://github.com/downloads/lrq3000/op ... .patch.zip

Also, you could use ExcessivePlus mod to record server-side demos from a client's perspective, but this is not automatic, you need one player to always be connected (you can create a fake client using a script and launch it alongside your dedicated server, this should not be too hard, I have made the tool oamps.sh to do this sort of stuff if you want an helper).
Locked