Startup Media

== Startup Music ==
Startup music is music that plays on the main menu when booting up the game, but does not play when returning to the main menu from elsewhere in the game. 
=== Engine ===
Source will play when it finishes loading the main menu after the application is launched. The asterisk matches anything at all (including nothing), so feel free to give your files descriptive names. If more than one file matches, a choice will be made at random.
All files must be encoded at 44.1 KHz.
=== Engine ===
GoldSrc will play or Redbook CD track 29 when it finishes loading the main menu after the application is launched. The track will loop and continue to play until a map is loaded.
Alternatively, create a file named in the mod's root directory and insert the following (adjusting MP3 path accordingly). The track will play every time the main menu is visited, instead of only upon game startup.
"PlayList"
{
 "Splash" "sound/music/yourmenumusic.mp3"
}
== Startup Videos ==
Startup videos is the video that plays when booting up the game, after the game has reached the end of the list inside the file, the main menu appears.
You can change the startup video for a game by placing the following files in the folder:
* file - for (Retail/WON version)
* file (or other specified in StartupVids.txt) - for or earlier
* file (or other specified in StartupVids.txt) - for and later
* file (or other specified in StartupVids.txt) - for (post-25th anniversary update), and games/branches that have been modified to include WebM support (such as ), aswell as and .
** Please note that in (post-25th anniversary), audio in the WebM video is muted and instead the game will try to play the file instead, which is much lower quality when played in-game (unless MetaHook is used).
If you are making a mod for (or other games) you can place any AVI, Bink Video (BIK), MOV (for ), or WebM (if the engine has WebM support added) file in your mod's folder. In order for the video to play when you start your mod you will need to create a file in the folder. Inside you simply specify the filename(s) of the video(s) you want to be played on a separate line. 
For example:
Keep in mind that an AVI video will need to be encoded using the Cinepak codec. It is not known whether audio codecs other than Microsoft ADPCM are supported.
DivX is also supported, however there appears to be a size limit to the startup video, so if a video is not played then its file size is too large, this has been tested with an AVI file over 100 MB.
You can get the BINK video encoder for free from RAD on their site at RAD Game Tools
For MOV (QuickTime), it is only supported in .
For WebM, it is only supported in (after 's 25th anniversary update), (after Panorama update), some third-party games, and fully supported in onwards.
When encoding the startup video note that older versions of does not properly support all Bink video resolutions, and only up to 1024x768. When using an unsupported video size (let's say 720x480) only the first few seconds of the video will display. After that it will freeze and you will only hear the video's sound, also the game may possibly briefly freezes with a "Not Responding" shown on the game's titlebar (if run on windowed mode), or the Busy cursor appears with the hl2.exe is not responding message. Another possibility is that the video will not play at all. This was later fixed in the and es onwards respectively, and these later games do play the startup videos in higher resolutions without freezing.
=== To Remove the Startup Video ===
Simply create in and leave the contents blank.
If you want to skip the startup videos, you can add the parameter to your Command Line.
Category:Tutorials Category:Modding Category:Tutorials Category:Sound System