Page 1 of 1

Automatic Client side demo

Posted: Fri Oct 21, 2016 8:51 pm
by Night_Hawk
Hey all,

Im wondering how would i write a script to automatically record client demos? I currently use comed and i have automatic demos enabled but after each game it keeps asking me if i want to keep the demo or not, this being annoying for start of duels as i dont start straight away, but 10 seconds after starting..

Re: Automatic Client side demo

Posted: Sat Oct 22, 2016 7:55 pm
by DeathStar
Night_Hawk wrote:Hey all,

Im wondering how would i write a script to automatically record client demos? I currently use comed and i have automatic demos enabled but after each game it keeps asking me if i want to keep the demo or not, this being annoying for start of duels as i dont start straight away, but 10 seconds after starting..
I made a demo/movie recording GUI that does exactly that, enables automatic demo recording and allows you to list and download the demos. It also allows you to record movies with the build in Cube 2: Sauerbraten screen recorder.

Installation Instructions for people who don't know where to put things

- open your Sauerbraten/autoexec.cfg file

Where is my autoexec.cfg file?
you may have to create one in the following directory if it doesn't exist
Mac: Users/username/Library/Application Support/sauerbraten/autoexec.cfg
Windows: C:\Program Files\Sauerbraten\autoexec.cfg or username\Documents\My Games\Sauerbraten\autoexec.cfg
Linux: ~/.sauerbraten/autoexec.cfg


- on a new line in the autoexec.cfg file, type: exec demo.cfg

- extract demo.cfg.zip and place the demo.cfg file in your Sauerbraten/gamedata folder

where is my gamedata folder?
Mac: right click on Sauerbraten -> show package contents -> contents/gamedata
Windows: C:\Program Files\Sauerbraten\gamedata or username\Documents\My Games\Sauerbraten\gamedata
Linux: ~/.sauerbraten/gamedata


- Open Sauerbraten and type /setupdemo

Installation instructions for experienced scripters
- Put "exec demo.cfg" on a new line in your autoexec.cfg file
- Extract the demo.cfg.zip file and place the extracted demo.cfg file in: Sauerbraten/gamedata
- Open Sauerbraten and type /setupdemo

Re: Automatic Client side demo

Posted: Sun Oct 23, 2016 2:55 am
by Night_Hawk
Yes, thank you so much deathstar! You're a legend

Re: Automatic Client side demo

Posted: Sun Oct 23, 2016 7:55 am
by DeathStar
It's the least I could do, you've done a lot for the clan. :)