Voting and Demo Questions

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Voting and Demo Questions

Postby Glass Joe » Tue Jun 20, 2006 4:24 pm

I've got a few questions that I was hoping someone could help me with. I counldn't find the answers in either the forums or the game docs.

1.) How can you call a vote to change the map?

2.) How can you call a vote to change the game-mode?

3.) How can you pause, slow-down, fast-forward demo playback?

4.) How can you record a video file from a demo? What format will it be in?

Thanks.
"Watch the jaw!! Don't hit my jaw!"
Glass Joe
Member
 
Posts: 10
Joined: Wed Apr 19, 2006 1:34 pm
Location: USA

Re: Voting and Demo Questions

Postby obi_wan » Tue Jun 20, 2006 4:34 pm

Glass Joe wrote:1.) How can you call a vote to change the map?

"vcall chmap dm_aneurysm" for example

Glass Joe wrote:2.) How can you call a vote to change the game-mode?

this one i dunno... should be a "vcall somethingAboutModeChanging"

Glass Joe wrote:3.) How can you pause, slow-down, fast-forward demo playback?

"set slowmo value" (1 is the real speed value, 0.1 will slowdown with a ratio of 10, 2 will playback at 2x... even if i didn't ever tried it, i assume a value of 0 pauses the demo)

Glass Joe wrote:4.) How can you record a video file from a demo? What format will it be in?

"set cl_capturevideo 1" will start recording and "set cl_capturevideo 0" will stop it. It generates a (lotta) pictures and a .wav file. I would advise you to set the appropriate cvar to get jpeg screenshotqs instead of tga (which aren't compressed)
[NSB] ppwer !
obi_wan
Alien trapper
 
Posts: 256
Joined: Mon Mar 13, 2006 9:24 am
Location: France

Postby esteel » Tue Jun 20, 2006 4:49 pm

Question 1 and 2 can be solved with the same vote..
vcall chmap dm_aneurysm
dm is the game type and aneurysm is the map :)
vcall chmap tdm_aneurysm
would chosse Team Deatchmatch on this map..

slowmo is right.. you can pause a demo with 'pausedemo'
Or if you want easy keybinding take a look into this thread: http://www.forums.alientrap.local/viewtopic.php?p=357#357

scr_screenshot_jpeg 0
will disable using jpg files for screenshots and then tga files will be created. Those are bigger but are faster to create and have better quality which is what you want for movies anyway :) Do not forget to set it back later again
Last edited by esteel on Thu Jun 22, 2006 10:30 am, edited 1 time in total.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Re: Voting and Demo Questions

Postby KadaverJack » Tue Jun 20, 2006 5:07 pm

obi_wan wrote:
Glass Joe wrote:2.) How can you call a vote to change the game-mode?

this one i dunno... should be a "vcall somethingAboutModeChanging"

You can call a vote for another gamemode the same way you vote for maps. Just use "ctf_basementctf" as mapname for example.

obi_wan wrote:
Glass Joe wrote:4.) How can you record a video file from a demo? What format will it be in?

"set cl_capturevideo 1" will start recording and "set cl_capturevideo 0" will stop it. It generates a (lotta) pictures and a .wav file. I would advise you to set the appropriate cvar to get jpeg screenshotqs instead of tga (which aren't compressed)

I recommend:
Code: Select all
cl_capturevideo_rawyv12 1
cl_capturevideo_fps 25 // or 29.97 if you are using NTSC
cl_capturevideo 1

That will record a raw YV12 stream (uncompressed, so it will get quite large, but best quality), which mencoder can convert to XVID or OGG/Theora for example.
Btw: it doesn't matter if your framerate drops below 25 while recording, as of Nexuiz 2.0 the engine will still record every frame (recording will just take longer) and keeps audio synced.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Re: Voting and Demo Questions

Postby tChr » Tue Jun 20, 2006 5:53 pm

KadaverJack wrote:I recommend:
Code: Select all
cl_capturevideo_rawyv12 1
cl_capturevideo_fps 25 // or 29.97 if you are using NTSC
cl_capturevideo 1

That will record a raw YV12 stream (uncompressed, so it will get quite large, but best quality), which mencoder can convert to XVID or OGG/Theora for example.
Btw: it doesn't matter if your framerate drops below 25 while recording, as of Nexuiz 2.0 the engine will still record every frame (recording will just take longer) and keeps audio synced.

Kadaver is right, as usual.. If you wonder, rawyv12 is a video format used iunternally in lots of programs, not mane programs can read it directly, but using the method kadaver describes here, you can save yourself _lots_ of work.

If you are really keen on making things really good you could also set the resolution of the game to standard pal or NTSC resolutoini before capturing, so ytou dont have to resize later. You should also record everything on _half_speed_ and the double the speed of the playbak in an editor (if you are going to edit) cause it looks better :)

If you are only making short stuff, ignore all I said :)
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

next quest...

Postby blumen » Sat Jun 24, 2006 8:56 pm

ok. now i have file

"movie11.yv12" (size 250 MB, lenght 20 seconds :P ) and i can't run it or convert it to avi file (i use windows XP). How can i ( pls easy kind) do this?

(i always use search in forum and google before i ask)


-------------------------------------------------------
i try to use mencoder (i have read manuals) but somethink is wrong

i try this:
Code: Select all
mencoder.exe movie11.yv12 -o film.avi


and i see this:
Code: Select all
MEncoder 1.0pre8-3.4.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 1800+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xdbba000
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

Exiting...


what i do wrong ??
---===BLU POWER===---
blumen
Newbie
 
Posts: 4
Joined: Sat Jun 24, 2006 5:40 pm
Location: Poland

Re: next quest...

Postby divVerent » Sun Jun 25, 2006 12:22 pm

blumen wrote:ok. now i have file

"movie11.yv12" (size 250 MB, lenght 20 seconds :P ) and i can't run it or convert it to avi file (i use windows XP). How can i ( pls easy kind) do this?

(i always use search in forum and google before i ask)


-------------------------------------------------------
i try to use mencoder (i have read manuals) but somethink is wrong

i try this:
Code: Select all
mencoder.exe movie11.yv12 -o film.avi


what i do wrong ??


You forgot to read the mencoder manual ;)

Code: Select all
mencoder.exe movie11.yv12 -o film.avi -demuxer rawvideo -rawvideo w=640:h=480:fps=25:format=yv12


You might need to change w, h, fps for your configuration.
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 Cinquero » Wed Aug 23, 2006 7:28 pm

Is it possible to record stuff as some sort of a script and then dump the video upon replay?

If I want to dump a 1280x1024 (HDTV/bittorrent you know) session uncompressed, I better do it that way :-).

Recent mencoder command:

mencoder dpvideo002.yv12 -demuxer rawvideo -rawvideo w=1280:h=1024:fps=25:format=yv12 -o film.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4096:aspect=1.33333
Last edited by Cinquero on Wed Aug 23, 2006 7:44 pm, edited 1 time in total.
Cinquero
Advanced member
 
Posts: 91
Joined: Wed Jul 19, 2006 11:13 pm

Postby KadaverJack » Wed Aug 23, 2006 7:32 pm

Cinquero wrote:Is it possible to record stuff as some sort of a script and then dump the video upon replay?

Just record a demo and capture the video while replaying the demo.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby esteel » Wed Aug 23, 2006 8:58 pm

Cinquero wrote:Is it possible to record stuff as some sort of a script and then dump the video upon replay?

You mean scripted camera movemnt or maybe scripted bot movement? Hmm Possible but it would be much coding work..
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Next

Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron