Startup videos? Created 7 years ago2016-11-18 09:13:35 UTC by Dallas Dallas

Created 7 years ago2016-11-18 09:13:35 UTC by Dallas Dallas

Posted 7 years ago2016-11-18 09:13:35 UTC Post #332324
Is it still possible to have the startup videos play in vanilla goldsource when you launch a mod?

Like valve.avi etc...?
Posted 7 years ago2016-11-18 10:14:55 UTC Post #332325
I checked to see how the game used to play those videos, it was handled by hl.exe but it doesn't appear to have that code anymore in the Steam version.
Posted 7 years ago2016-11-18 12:08:18 UTC Post #332326
I actually included an AVI file with my (cancelled) mod. It plays sometimes, but sometimes doesn't.

As much as I remember, you need to have this TXT file called startupvids.txt or something. And yes, even though it is the 'non-Steam' version, it IS basically the Steam version, the one I have.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 7 years ago2016-11-18 14:36:43 UTC Post #332327
I think the AVI has to respect some properties in order to work. Can't remember which ones.
Posted 7 years ago2016-11-18 15:32:51 UTC Post #332328
I searched through all relevant engine libraries and couldn't find anything referring to avi files, startupvids or -novid, with the exception of the launcher setting the -novid parameter when restarting.

I did find this: https://developer.valvesoftware.com/wiki/Startup_Videos

I think that's what you were referring to.
Posted 7 years ago2016-11-18 15:50:55 UTC Post #332329
Seems to match my understanding -

Not possible any more in vanilla goldsource.
Possible in HL2/source.

Thanks guys.
Posted 7 years ago2016-11-18 18:29:07 UTC Post #332330
I'm sure it's not that much of a handicap. Videos are still possible, though.

About the properties part, I remember the video either must have DivX encoding, or either it mustn't be compressed at all.
I remember that its resolution was also 1024x768.

And, if by 'vanilla' you mean the WON GoldSrc, it should work the same, although I'm fairly unsure about that.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 7 years ago2016-11-18 19:05:01 UTC Post #332331
These days the Steam version is considered vanilla. WON is too old and has a lot of bugs that were fixed in the Steam version.

I looked around both the launcher and the engine and found nothing indicating that videos could be played on startup.
Posted 7 years ago2016-11-18 21:58:32 UTC Post #332332
But still, it works. The code has to be somewhere.

How come that startup videos work on my mod? My mod uses the vanilla GoldSrc yet it plays that opening clip very well. No freezing, stuttering etc.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 7 years ago2016-11-18 22:54:18 UTC Post #332333
1. Create StartupVids.txt in "media" folder of your mod, for example "valve/media".
2. Put the names of .avi-files you want to see at startup in it, for example
media/sierra.avi
media/valve.avi
3. Copy these .avi-files in "media" folder.
4. Start your game without developer mode (no -dev parameter in a shortcut).
5. Enjoy!
Posted 7 years ago2016-11-18 23:11:20 UTC Post #332334
I just tried that with my mod under Steam and it didn't work. I'm using the avi files from the old WON HL install, version 1.1.0.8. I didn't specify any launch options.
Posted 7 years ago2016-11-18 23:30:20 UTC Post #332335
2 Solokiller:
Probably it doesn't work only for latest versions of Steam HL (Steampipe has broke many things). In standalone version of Cry of Fear (based on older sources of Steam HL) this still works.

P. S. It also works for Xash3D.
Posted 7 years ago2016-11-19 00:13:43 UTC Post #332336
I confirm what Qwertyus said.
Posted 7 years ago2016-11-19 09:46:06 UTC Post #332337
So yeah - confirmed it does not work in vanilla from steam.

..Sure, if you have some older version or custom version of the game, yeah it will work.
Posted 7 years ago2016-11-19 15:49:20 UTC Post #332338
I jumped from WON to Xash3D, I hate STEAM, so I ever had problems with startup videos. Old is gold, sometimes ;)
Posted 7 years ago2016-11-19 19:50:23 UTC Post #332343
Hmm, let me check something...
*opens properties of hl.exe

Oh, I have version 1.1.1.1, so it means something? I downloaded it from 'cswarzone.com'.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 7 years ago2016-11-20 16:36:33 UTC Post #332358
2 Admer456
It means it's old version of Steam HL (before 2006 year, probably).
Posted 7 years ago2016-11-20 22:03:19 UTC Post #332366
Hmm, it makes sense now, thank you Qwertyus. Before 2006, lol. Don't get me wrong, but I guess that's one positive use of piracy. Getting older, unavailable versions of software.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 7 years ago2016-11-20 22:30:36 UTC Post #332367
Hl WON is almost abandonware ;) I use HL v 1.1.1.0 that´s from 2002!! XD
Posted 7 years ago2016-11-20 23:23:36 UTC Post #332370
I have "1.1.1.1" with the Steam version of HL1.

A word of warning people : you shouldn't trust what "right-click -> Properties -> Details -> Version" says because this depends on how Valve setup the "hl.exe" project. If you are a programmer and you got Visual Studio, add a "Version" resource file and there you can specify your copyright, version and such. But it's pointless because nobody does that (especially in projects where cross-platform is important).
Posted 7 years ago2016-11-20 23:30:28 UTC Post #332371
Not like it matters, these days the Steam build ID is what's used to identify versions, not the ancient patch version.
Posted 7 years ago2016-11-20 23:35:50 UTC Post #332372
i didnt play much won hl but if you think that current hl doesnt have bugs, then you clearly spend too much time coding and too little time playing because almost every single weapon and feature is broken in current hl
Posted 7 years ago2016-11-20 23:50:57 UTC Post #332373
You must be logged in to post a response.