Video and sound is separated since I cant play sound from a video texture. If your computer is weak, the video will lag behind the sounds
Need campaign dependencies. You have to make your own unit to be the screen if you cant afford campaign dependencies. Also video can eat your map space, be sure to balance it out, or make single player map.
Be careful with copyrighted and/or offensive materials.
Promote sc2mapster in your map and credit Progammer if you used this library (ok not really a con but just put it here for now )
Easy to use, even the noobish, works on every map.
Advanced users can edit it to their liking, instruction below
Ignore the orphaned trigger in the map when you openned it. sc2 does not clear it up when I saved
How to use this library
Open any map of your choice, with whatever terrain and size, follow these 3 steps
Step 1: Preparation
Prepare an .ogv video file with an .ogg sound file that synch with the video (the video can be muted). If you cannot find a good way to convert video to ogv, I used fireogg, a firefox addon
Import both of them into your map. Save it before doing anything else. (This is to ensure the file can be referenced later)
Step 2: EZ Data Edtior
Open Texture Tab
Create a new Texture named Your Movie Name here with Default Setting (just add object and click OK)
set File: directory of your movie file, typically "yourmoviehere.ogv"
set Slot: "video" (no uppercase)
Open Sounds Tab
Create a new Sounds named Your Sound Name here with Default Setting (just add object and click OK)
double click Sounds Assets+ :
right click and add your sound file into the sounds box, typically "yoursoundnamehere.ogg"
Open Actors Tab
Create a new Actor named Your Sound Actor here with Actor Type Sound (just add object, select sound from the drop down and click OK)
set Sounds - Sounds: to the sounds object you just created
Now you're done with the data editor
Step 3: Use the Library
Open my demonstration map and copy the library trigger over to your map (anything under the line)
Run the appropriate action
Play Texture Movie
Player Group: Choose the player group that you want to play the video to, normally Active Players
Position: Point position in which the screen will be created. Anywhere is possible, just make sure nothing is getting in the way of the screen
Movie Texture: Link it to the movie texture object you have just created in step 2
Movie Sound: Link it to the sound object you have just created in step 2 (this is not actually be played but rather to measure video length
Movie Sound Actor: Link it to the sound actor object you have just created in step 2 (this is what will actually be played.
Wait/Not Wait: Determine whether trigger queue will wait for the video to finish or not. NOTE: You have to cleanup the video yourself by running the clean up trigger if you don't wait.
Camera Zoom Time: How fast the camera will zoom into the screen, recommended at 2.5s
Fade In/Out Time: How fast the screen will fade in/out, recommended at 1s
Play Texture Movie Cleanup
Run this trigger if you did not wait in the previous action
Note for localization issue: If you does not see the trigger name due to localization, use those above screenshot to rename them.
For Advanced Users
Take a look inside the trigger and tweak it accordingly. Please do credits even if you changed them
For the video to be fullscreen, change camera distance and/or field of view. Aware of different screen resolution that may screw up camera
Set camera far clip to 0 to have totally black background (basically the map will not be rendered further than the video screen)
For Blizzard Employees
You don't really have to use this library. There are two actions that can do the same thing better. Unfortunately it is only authorized to use on Blizzard signed map. So make sure you get some guy from the map development department to sign them.
Send Transmission from Video Sources with Fullscreen Portrait
Set Dialog Item Flash Value (play a flash movie in a dialog item(flash))
omg i needed this so bad i look at a bunch of screens to do this on like city billboards and stuff but non of the quality was good enough this is perfect i never thought about putting it on the screen for some reason
thanks so much again
This is great! I got it to play a UNN broadcast which was exactly what I was looking for! Thanks a lot for this library progammer!
One problem with the UNN broadcasts however, is that each sentence is a different transmission. I assume that means you need to mashup a complete new soundfile which contains the correct timings of all the transmissions within the broadcast. Looks like a lot of work. If anyone has a suggestion of how to do this easier, be my guest.
Hmm, I just converted the audio transcript of the whole broadcast to an ogg file, imported it as you said including the new actor etc. I got it to play the sound file, while playing the broadcast on the screen, but it's not synced well. The movie seems to play somewhat laggy, but I have no idea why since I put all the graphics on low now and the movie plays at normal speed during the campaign on high settings. Any thoughts?
Find the actual sounds file for each line (each dialog line = 1 file, dunno about the name) Dont record it from the game. Also if it does laggy, I have no idea how to improve. Does the original news in the campaign lag as well ?