Difference between revisions of "TF2/Adding an Introductory Video"

From Valve Developer Community
< TF2
Jump to: navigation, search
(Tweaking.)
(Embedding the video .BIK)
Line 17: Line 17:
 
Once you have converted the file, place the .BIK video into Steam\steamapps\username\team fortress 2\tf\media. Make sure you name your video file the same name as your map, so the engine knows what map the video belongs to. For example if it was for dustbowl the video would be named cp_dustbowl.BIK.   
 
Once you have converted the file, place the .BIK video into Steam\steamapps\username\team fortress 2\tf\media. Make sure you name your video file the same name as your map, so the engine knows what map the video belongs to. For example if it was for dustbowl the video would be named cp_dustbowl.BIK.   
 
{{note|When distributing your map, the video will not work if embedded in the bsp, it must be included separate from the map}}
 
{{note|When distributing your map, the video will not work if embedded in the bsp, it must be included separate from the map}}
 +
{{note|RAD Tools is a commercial product and can't be used legally without purchasing a licence for its use in your Source mods. This was pointed out to be by Jeff of RAD Game Tools.}}
  
 
== Theory ==
 
== Theory ==

Revision as of 12:26, 21 June 2010

Overview

In this tutorial you will learn how to convert a video into the required .BIK format and to be played in game. You will not learn how to record a video, only to embed it in game.

Record your video

To record your video you will need a video recording tool such as FRAPS or the built in Source Recorder.

If you want to add the TV tuned music from the Valve video files You can find three TV tuned sound files in Steam\steamapps\username\team fortress 2\tf\sound\ui.

Converting the file

TF2 will only play .BIK (Bink) files. You will need to use RAD video tools to convert the video, you can get the RAD Video Tools here.

Embedding the video .BIK

Once you have converted the file, place the .BIK video into Steam\steamapps\username\team fortress 2\tf\media. Make sure you name your video file the same name as your map, so the engine knows what map the video belongs to. For example if it was for dustbowl the video would be named cp_dustbowl.BIK.

Note.png Note: When distributing your map, the video will not work if embedded in the bsp, it must be included separate from the map
Note.png Note: RAD Tools is a commercial product and can't be used legally without purchasing a licence for its use in your Source mods. This was pointed out to be by Jeff of RAD Game Tools.

Theory

Now when you launch the map, it will have a Watch Movie option for you to watch your video.