PDA

View Full Version : Loading straight to a replay?


chops
02-27-2009, 05:01 PM
Is there a way to load the game straight to a demo without giving the Valve splash screens?

Also, is there a way to make the game quit when a replay is completed?

Perhaps not, but I'm just curious.

Nuttz
02-27-2009, 05:05 PM
I can't be sure, but with some games you can simply go into the file and delete the videos for the startup, and then they don't play, don't take my word on it though, I haven't tried it with this.

And I have no idea what you're trying to ask with the second question.

chops
02-27-2009, 05:25 PM
I'll have to give that a shot (deleting the opening video). I hadn't thought of that.

My second question is me looking for the following: As soon as a replay is playing, have the game exit. Is that clearer?

elevator13
02-27-2009, 07:39 PM
Use -novid as a command line, it skips the Valve bald-headed dude and the 5 minute cinematic automatically.

chops
02-27-2009, 09:32 PM
Use -novid as a command line, it skips the Valve bald-headed dude and the 5 minute cinematic automatically.

Rocki'n. Thanks!

My second question is me looking for the following: As soon as a replay is playing, have the game exit. Is that clearer?

Wow, I didn't make that clearer at all. I meant, as soon as the replay is FINISHED playing, have the game exit.

TheHidden
02-27-2009, 11:04 PM
Wow, I didn't make that clearer at all. I meant, as soon as the replay is FINISHED playing, have the game exit.
That can be done. You just need to add a little bit to the demo in question

1) Start the game and use "Shift-F2" to call the demo player. Load the demo and pause it (you can let it run, but on short demos it's maybe better to pause)

2) Check the number of ticks the demo has, it's listed in the player. Let's say your demo has 2000 ticks.

3) Click "Edit".

4) In the new window click "New" and choose "PlayCommands". Another window appears. Enter a fitting name and change "Start On" to "TimeUseTick" and enter the tick before the last in the demo in the field.
In my example you would enter 1999.
In "Commands" you just enter "exit" (without quotes, of course). That is the console command to stop any gamy and close the game.

5) Hit "OK". Hit "Save".

6) Let it play (or jump to a tick before the end) and it will close and exit on the last tick.

Note that the commands aren't saved int the demo itself, but in a ".vdm" file with the same name and in the same directory as the demo itself. Whoever should view the demo needs both files for it to function.

As the .vdm file is basically nothing more than a text file, you should be able to skip some of the steps above for other demos by simply copying the file, rename it to match another demo and just change the tick number in the file to a fitting tick.

Edit:
And, of course, you could enter any tick within the tick range of the demo to end and exit at any given point. You just need to enter the tick number to end your demo then.

chops
02-28-2009, 04:51 AM
Wow! Thank you. Very helpful. This gives me something to work with.

I may have more questions.