User panel stuff on forum
  7 posts on 1 page  1
General Discussion
2006-04-14, 14:59
Member
3 posts

Registered:
Mar 2006
Have you ever dreamed about old-school demo effects for your latest trick? Do you need Adobe Premiere for that kind of stuff? How about fancy centerprints - you won't do it in this program. Editing *.dem files was very cool; is it impossible with *.qwd? :huh?:
We will start with a normal trick demo - e3m1box.qwd (50,525 bytes). In short, it is a recorded trick of getting to square-ssg from square by shooting an explosion box. 8)
The first tool we will try is QWDEditor II. It is a very cool program, but it's website is offline for a long time by now, so I decided to mirror the program and its effects tutorial. After copying the demo to QWDEditor directory, I ran the program and opened the file I wanted to edit (CTRL+O).
http://www.quake.tek.pl/www/tutorials/qwd/figure0.png

When another window pop-up, I did CTRL+O again to select the output filename. Here is how the program looks like:
http://www.quake.tek.pl/www/tutorials/qwd/figure1.png

As you can see, I tried to add the speed adjust effect (right click on the timeline and select Insert effect). Despite of the starting "speed up", I decided to slow down the movie. Then I wanted to add some cool fade in and fade out (150 frames each).
http://www.quake.tek.pl/www/tutorials/qwd/figure2.png

Finally, I added a centerprint in the 155 frame. After CTRL+S the special *.fx file was saved, which stores the information about applied effects. I also hit CTRL+W for the retouched demo to be saved. I copied it way back to /qw/demos/ and played it in FuhQuakeGL.
http://www.quake.tek.pl/www/tutorials/qwd/figure3.png

Here is the demo after QWDEditor II tweaks. (53,579 bytes)
Now we will want some changes in the demo's header where important information is being stored. We will use The Little Movie Processing Centre by Uwe Girlich (download lmpc330m.zip if you are using Windows - 245,900 bytes). Check out his website with cool things like the unofficial QWD format description. This program doesn't have a window interface - everything is done in command prompt and the output files are tweaked in any good textpad (I use ConTEXT). The idea of LPMC (Little Movie (...)) is to convert a QWD file to some kind of a code (look below) and to convert this semi-code to a QWD file again.
// source: QWD binary file e3m1box_qwde.qwd
sblock {
time 2:08:57.50732422h;
seq1 1;
seq2 1;
serverdata { serverversion 28;
(...)

How to use the program? It's pretty simple. To convert your QWD file to a semicode use:
c:\lmpc\bin>lmpc32.exe -s e3m1box_qwde.qwd temp.cod
e3m1box_qwde.qwd (QWD bin) -> temp.cod (QWD txt)

After altering the file, use:
c:\Gry\Quake\_progs\lmpc\bin>lmpc32.exe -l temp.cod e3m1box_lmpc.qwd
temp.cod (QWD txt) -> e3m1box_lmpc (QWD bin)

Let's say that I want to change the map name and include information about demo series there. In temp.cod exists the line:
mapname "Termination Central";

All we have to do is to change it to what we want:
mapname "e3m1 - Termination Central\nshAmAn's trick series";

We can also alter the userinfo (see below) or the serverinfo.
string "\\name\\shÁmÁn\\*FuhQuake\\0.28\\*VIP\\6";

And so on... If we would change the mapname in a QWD demo (not semi-code), here is what we would get while playing demo:
http://www.quake.tek.pl/www/tutorials/qwd/figure4.png

But using the LMPC technique:
http://www.quake.tek.pl/www/tutorials/qwd/figure5.png

See our demo after LMPC. (53,608 bytes)
Of course, if you want to change the serverinfo's watervis value, you can use the textpad, without LMPC. This is because such change won't alter the QWD size, hence - won't cause an error. You might have probably noticed that since QWDEditor changes, our demo crashes in the end of it (host_error). Now we can rid of this, adding the ability of free camera moving and reducing the demo size extra. We have to convert our QWD to MVD using HighLander's ?id=320" class="bb-url">QWDTools. QWDTools is another command prompt utility.
c:\qwdtools>qwdtools e3m1box_lmpc.qwd
-filter_chats
-fps 24
-msglevel 4
source: e3m1box_lmpc.qwd
converting to: out/e3m1box_lmpc.mvd
average demo fps:0.0 (originally 0.0)
Done...

The disadventage of MVD is that the spectator must see use FPP view while fading the screen for fade to work properly.
http://www.quake.tek.pl/www/tutorials/qwd/figure6.png

Get our finally retouched demo. (20,993 bytes; 42% of original QWD size)

We could have also reduce the demo size using Qizmo's compression (QWD to QWZ).

Okay, that's it! Any comments/suggestions? Share your demo editing experience here!
2006-04-14, 20:54
Member
1011 posts

Registered:
Feb 2006
i remember using these tools a long time back

i wonder though

can you convert '.qwd -> .lmpc -> .dem -> .lmpc -> .qwd'

just that demtool, recam, remaic and stuff all work on .dem...
2006-04-14, 21:44
Member
3 posts

Registered:
Mar 2006
oldman wrote:
i remember using these tools a long time back

i wonder though

can you convert '.qwd -> .lmpc -> .dem -> .lmpc -> .qwd'

just that demtool, recam, remaic and stuff all work on .dem...

This is not straightforward at least.
c:\Q\qw\demos\lab>lmpcm -s temp.qwd temp.cod
temp.qwd (QWD bin) -> temp.cod (QWD txt)
c:\Q\qw\demos\lab>lmpcm -l temp.cod --game QUAKE out.dem
temp.cod (DEM txt) -> out.dem (DEM bin)
lmpcm: bad block type: DEM structure: internal error

BTW 9 MB QWD resulted in 102 MB semi-code.
2006-04-14, 23:06
Member
1754 posts

Registered:
Jan 2006
looks cool, but I'm too lazy to find out more
2009-07-13, 16:47
Member
685 posts

Registered:
Jul 2007
Hi,

What program is best for cutting a large 100mb .qwd into smaller demos???
2009-07-13, 20:57
News Writer
646 posts

Registered:
Mar 2006
how the hell did you manage to create a 100MB qwd
2009-07-13, 23:19
Member
685 posts

Registered:
Jul 2007
!phil wrote:
how the hell did you manage to create a 100MB qwd

I've got demos of reppie playing ffa on xs4all. Made them with 'easyrecord'

I got about 4 demos of around 15 MB and one big ass 100 MB. He played non-stop for a loooooooooooong time. But I'd like to make separate demos so I can put the mapname in the filename and then if I want to see ztndm3, I can just load that demo instead of having to fast forward for a loooong time


And the demos were made with a dubious alpha version of ezquake which, for some reason, couldn't not save the demo as .mvd. That was just broke
  7 posts on 1 page  1