Demo "editing"

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

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.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

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
    User avatar
    Mirio
    Forum addon
     
    Posts: 1170
    Joined: Sun Apr 15, 2007 3:05 pm
    Location: Aneurysm

Sat Sep 13, 2008 1:10 pm

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
    User avatar
    Mirio
    Forum addon
     
    Posts: 1170
    Joined: Sun Apr 15, 2007 3:05 pm
    Location: Aneurysm

Sat Sep 13, 2008 11:07 pm



Return to Nexuiz - General Discussion




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest