User panel stuff on forum
  5 posts on 1 page  1
Help
2014-10-27, 12:47
Member
5 posts

Registered:
May 2013
Back in the day there was a batch file circulating that would convert all QWD files in a directory to MVD (using qwdtools). Anybody happen to have it still, or that failing, feel generous enough to throw one together? Winter is coming and I feel like reliving some of the old Smackdown tourneys.

Thanks for any help!
2014-10-27, 13:11
Administrator
114 posts

Registered:
Sep 2013
Nate, is that the tool you are looking for?


# ./qwdtools
couldn't load .ini
demo name not specified
usage: qwdtools [-options] demoname1 demoname2 ...
example:
qwdtools -c -o * -od out mydemo.qwd
will convert demo 'mydemo.qwd' to 'out/mydemo.mvd'

available options: (argument in [] is optional)
-bd path changes current directory
-qd path path to qizmo dir, e/g: -qd ../qizmo
-od path output directory path
-o name output file name (default: *)
-debug_file name debug file name (default: debug.txt)
-log_file name log file name (default: log.txt)
-fps num demo fps (default: 20)
-fs filters spectator chats
-fq filters qizmo observers chats
-fc filters all chats
-ft filters team chats
-msg msg level (same as QW's msg command)
-c converts to mvd (assumed if no options are given)
-m marges multiple demos to one mvd demo
-log creates log file
-debug prints way too much messages
-noini ini file won't be executed
-ini path name of ini file (default: qwdtools.ini)
-stdin [format] file from stdin (default format: qwd)
-stdout result to stdout (first found option: -c/-log/-debug)


If so, it's available in mvdsv/tools/qwdtools/source. You can compile it and script as you like. I have compiled following version:

# file qwdtools
qwdtools: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x74c81d3e65854bf18e227dab1ae2968c8d542778, stripped


Not sure about scripting, but it shouldn't be hard to achieve. If you need my help, visit #duelmania @ quakenet
play.quake1.pl
2014-10-27, 13:34
Member
5 posts

Registered:
May 2013
That was a fast reply D2, thank you

Yes, QWDtools is indeed the tool I am using. I can convert QWD files to MVD on a file-by-file basis without problems, but am looking for a way to automate the process so that it will simply convert all QWD files in a directory to MVD. I remember that there was a demotools.zip back in the day -- and this was a long time ago -- in which a batch file was included that could do this. I am hoping it is still out there, because I am rather lost when it comes to scripting.

I will jump on IRC later if no one has hung on to the batch file, but hopefully this post clarifies what I am looking for in case someone else can benefit from the information.
2014-10-27, 14:20
Administrator
114 posts

Registered:
Sep 2013
Nate, are you looking for windows 'bat' file or linux 'sh' one?

BTW, searching after demotool.zip I found following resource: https://www.quaddicted.com/files/tools/demotools.zip. There is indeed couple of *.bat scripts, for example:

tools\convert to mvd.bat:

qwdtools *.qwd


and that's it
play.quake1.pl
2014-10-27, 14:46
Member
5 posts

Registered:
May 2013
DUDE! That is exactly what I needed, thank you so much!
  5 posts on 1 page  1