Demo "editing"

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Demo "editing"

Postby divVerent » Sat Sep 13, 2008 11:02 am

In Nexuiz svn, you'll now find a neat tool called "demotc.pl". It allows some sort of "cutting" of demos (actually, it works by speeding up the part you do NOT want by 100), and it can also insert capturevideo on/off marks.

Usage:

demotc.pl cut infile.dem outfile.dem time_start time_end
demotc.pl cut infile.dem outfile.dem time_start time_end --capture
demotc.pl uncut infile.dem outfile.dem (undoes cut's operation)
demotc.pl grep infile.dem "all-time fastest lap record with (.*)\n"

The latter looks for the given string in the demo, and prints whatever is inside parentheses (the .*).

A demo generated with --capture will set capturevideo 1 when the time_start comes, and capturevideo 0 at the end.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Mirio » Sat Sep 13, 2008 11:30 am

cool cool :D
can we have in the menu a demo section where you can play them and with buttons on the top or somewhere like "capture video On" , "capture video Off " , "stop demo" etc. uh just an idea for 2.5 ;)
i would be happy if the Demo menu of 2.3 will be back.. new guys wouldn't have problems in watching demos :)
ginseng
Mirio
Forum addon
 
Posts: 1170
Joined: Sun Apr 15, 2007 3:05 pm
Location: Aneurysm

Postby esteel » Sat Sep 13, 2008 1:10 pm

Well, the demo menu should make a comeback at some time, just making it flexible is not that easy..

I added userbinds for 'toggle capturevideo' so you can bind them to a key and just enable/disable creating .avi files.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Mirio » Sat Sep 13, 2008 5:25 pm

yes i have bind some cmds :)
just an idea to make it more comfortable for new guys :)
ginseng
Mirio
Forum addon
 
Posts: 1170
Joined: Sun Apr 15, 2007 3:05 pm
Location: Aneurysm

Postby esteel » Sat Sep 13, 2008 11:07 pm

well the extra bind in the svn menu is a start. lets see what can be added till the new release :)
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron