Demo Replay Config


(Donnovan) #1

This is my demo replay config.

bind "KP_PGUP" "cvaradd g_testSpectator 1 ; addChatLine $g_testSpectator" "" "default"
bind "KP_HOME" "cvaradd g_testSpectator -1 ; addChatLine $g_testSpectator" "" "default"

bind "KP_RIGHTARROW" "cvaradd demo_scale 1 ; addChatLine $demo_scale" "" "default"
bind "KP_LEFTARROW" "cvaradd demo_scale -1 ; addChatLine $demo_scale" "" "default"

I use KP_PGUP and KP_PGDN to change the player i am looking at. When i change, the id of the player is show on console (addChatLine $g_testSpectator).

Here the missing part: there is a way to it shows the player name, and not the player id?

Thanks!


(murka) #2

If i remember correctly the demo has each player data somewhere in the file, but there is no way to retrieve that other than to write an app to parse the demo files.


(Ashog) #3

Don, If you are looking for particular players, you can open a demo in wordpad, then search for ui_nickname (or simply “nick”) continuously to find all (or almost all, some may be missing due to late connects I suspect) players.
You can also search for the campaign name (“campaign”) to which the demo belongs.
Thats the only way how I could figure out smth in gazillions of Nirvana demos that I had to watch thru while making vids :slight_smile:
This is also necessary actually, because you have to first launch the same campaign locally with computer (or alternatively on that same server the demo comes from) in order to be able to replay a custom map demo. So if you don’t know which campaign it was, you are doomed to not know which campaign pak it was, and consequently, which maps were in this campaign, and consequently, which map versions these were (the latter concerns only Nirvana, since only Scrupus was nice and foreseing enough to scrupulously document all map version changes in each new campaign pak w/o which almost no Nirvana vids would be possible to make). Hence you will not be able to place necessary maps and paks into base/pro and thus replay a demo.

But you surely know this already.


(Donnovan) #4

Nice Ashog.

We also need the date of the demo to get the correct campaign file.