Xonotic Forums
[SOLVED] Binding a key to demo recording - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [SOLVED] Binding a key to demo recording (/showthread.php?tid=3692)



Binding a key to demo recording - Archer - 11-23-2012

Title says it all, how do I bind a key to demo recording?

So I could start recording a match once I press that button (For example "J"), and perhaps also stop it once I press that button, so it would be a toggle. Is that possible?

The auto-demo recording kinda starts to clutter my demo folder with useless demos :]


RE: Binding a key to demo recording - Mr. Bougo - 11-23-2012

Code:
bind j "toggle cl_capturevideo"

See http://dev.xonotic.org/projects/xonotic/wiki/Democapture

Also, don't record video while you're playing, record it from a demo. Otherwise you'll get terrible slowdowns and you might get weird timing in your video too.

EDIT: Also, demos compress well. At least in Nexuiz (lower ticrate though) I compressed them with lzma (7z or xzip) at around 40% of their original size if I remember this right?


RE: Binding a key to demo recording - Archer - 11-23-2012

(11-23-2012, 06:14 PM)Mr. Bougo Wrote:
Code:
bind j "toggle cl_capturevideo"

See http://dev.xonotic.org/projects/xonotic/wiki/Democapture

Also, don't record video while you're playing, record it from a demo. Otherwise you'll get terrible slowdowns and you might get weird timing in your video too.

Thanks for the help!

I know about the recording video thing though, that's why I record demos in the first place. If they contain good stuff, I can always get fraps to record it to a vid :]


EDIT: I actually meant recording demos with a toggle, not recording videos, slight misunderstanding Tongue

Any clue about that one?


RE: Binding a key to demo recording - Mr. Bougo - 11-23-2012

Demos can only start at the beginning of a game (i.e. when a new match starts or when you join a server). That means you can't start a demo manually, you either have to use autodemos or use the record command before joining a game. However, you can stop a demo using stop.