Startup Music: Difference between revisions
Jump to navigation
Jump to search
Tip:Startup music can be disabled by starting with
Tip:Only MP3 files are supported, and they do not loop. If a looping WAV is desired, edit valve.rc to add the line play #*ui/gamestartup.wav (or something similar) to the end of the file. Only one music track is supported using this method.
SirYodaJedi (talk | contribs) m (Elaborate on why it's "startup" music, and not "main menu" music) |
SirYodaJedi (talk | contribs) (WAV method, from interlopers tutorial linked on the looping page) |
||
Line 1: | Line 1: | ||
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. | 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. | ||
== {{src|2}} Engine == | == {{src|2}} Engine == | ||
Line 7: | Line 7: | ||
{{tip|Startup music can be disabled by starting with <code>-nostartupsound</code>.}} | {{tip|Startup music can be disabled by starting with <code>-nostartupsound</code>.}} | ||
{{tip|Only [[MP3]] files are supported, and they do not loop. If a [[Looping a Sound|looping]] [[WAV]] is desired, edit [[valve.rc]] to add the line {{code|play #*ui/gamestartup.wav}} (or something similar) to the end of the file. Only one music track is supported using this method.}}<!--Astrisk probably helps with RAM usage--> | |||
== {{gldsrc|2}} Engine == | == {{gldsrc|2}} Engine == | ||
GoldSrc will play '''{{path|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 [[Trigger_cdaudio (GoldSource Engine)|another track is called]] or a mulitplayer server is loaded. | GoldSrc will play '''{{path|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 [[Trigger_cdaudio (GoldSource Engine)|another track is called]] or a mulitplayer server is loaded. | ||
[[Category:Modding]] [[Category:Tutorials]] | [[Category:Modding]] [[Category:Tutorials]] [[Category:Sound System]] |
Revision as of 10:32, 4 June 2023
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.

-nostartupsound
.
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 another track is called or a mulitplayer server is loaded.