![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
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.
Source Engine
Source will play sound\ui\gamestartup*.mp3
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.
![Tip.png](/w/images/thumb/4/45/Tip.png/9px-Tip.png)
-nostartupsound
.![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
GoldSrc Engine
GoldSrc will play media\gamestartup.mp3
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.
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 StartupVids.txt
file, the main menu appears.
You can change the startup video for a game by placing the following files in the <moddir>\media
folder:
valve.avi
file (or other specified in StartupVids.txt (only in)) - for
GoldSrc (Retail/WON version) and
Source 2006 or earlier
valve.bik
file (or other specified in StartupVids.txt) - forSource 2007 and later
valve.webm
file (or other specified in StartupVids.txt) - forGoldSrc (post-25th anniversary update), and
Source games/branch that have been modified to have WebM support (such as
Strata Source), aswell as
CS:GO engine branch and
Source 2.
- Please note that in
GoldSrc (post-25th anniversary), audio in the WebM video are muted and instead the game will try to play the
<moddir>/sound/ui/valve_sound.wav
file instead, which is much lower quality when played in-game (unless MetaHook is used).
- Please note that in
If you are making a mod for Half-Life 2 (or other
Source games) you can place any AVI, Bink Video (BIK), MOV (for
macOS), or WebM (if the engine have WebM support added) file in your mod's
media
folder. In order for the video to play when you start your mod you will need to create a StartupVids.txt
file in the media
folder. Inside StartupVids.txt
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 BIK video encoder for free from RAD on their site at RAD Game Tools
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
For MOV (QuickTime), it is only supported in macOS.
For WebM, it is only supported in GoldSrc (after
's 25th anniversary update),
Counter-Strike: Global Offensive (after Panorama update), some third-party
Source games, and fully supported in
Source 2 onwards.
When encoding the startup video note that older version of Source 2007 does not properly all resolutions of BIK video, and only support 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
Source 2013 and
Left 4 Dead engine branch onwards respectively, and these later games do play the startup videos in higher resolutions without freezing.
To Remove the Startup Video
Simply create StartupVids.txt
in media
and leave the contents blank.
If you want to skip the startup videos, you can add the -novid
parameter to your Command Line.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Postal III](/w/images/thumb/c/c0/P3_icon.png/20px-P3_icon.png)
![๐ฟ](/w/images/thumb/1/11/Icon-gnome-folder_alt.png/15px-Icon-gnome-folder_alt.png)
mainmenu.bsp
map instead of the StartupVids.txt file, which would run the code to play all 5 intro files (Akella, RWS, Trashmasters intro, and the Source and Nvidia's PhysX legal and copyright notices). To skip the startup video, rename the following files in ![๐ฟ](/w/images/thumb/1/11/Icon-gnome-folder_alt.png/15px-Icon-gnome-folder_alt.png)
p3\media
and ![๐ฟ](/w/images/thumb/1/11/Icon-gnome-folder_alt.png/15px-Icon-gnome-folder_alt.png)
p3\english\media
(or ![๐ฟ](/w/images/thumb/1/11/Icon-gnome-folder_alt.png/15px-Icon-gnome-folder_alt.png)
p3\<language>\media
) folder: