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 )
Pros
Easy to use, even the noobish, works on every map.
Advanced users can edit it to their liking, instruction below
Notes
v1.0
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
Function listing:
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 saw that a leaked was in this....?? OMG!! And I thought "Is it too good to be trrue? Nahh, programmer wouldn't do that".... >.< Grr...But nice tutorial
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Oh please, I dont intent to make this thread a rickroll disscussion. Feel free to leave feedback/suggestion on the library here, rick roll can go to the youtube video comments.
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.
In blizzard map, they just simple use a wait until transmission is finished, and then send the next transmission. Slightly alter my wait structure if you want to do that.
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?
Converting might not synch it very well, try to play each tranmission and wait unti it then play the next, only clean up the movie after the tranmission is done. You have to tweak the library a bit
But which sound should I play, as I would use different actions to play all the transmissions, right? And which actor, you can't leave it blank apparently.
EDIT: Besides, the movie is laggy, not the audio file. This is in comparison of the actual movie in the campaign.
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 ?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Wonder how that rickroll DOTA map got done ?? You have the answer:
(prepare for a leaked footage at the end of my video)
Asset page for map download:
(v1.0)
http://www.sc2mapster.com/assets/starmovie/
Cons, read this before deciding to use
Pros
Notes
How to use this library
Open any map of your choice, with whatever terrain and size, follow these 3 steps
Step 1: Preparation
Step 2: EZ Data Edtior
Now you're done with the data editor
Step 3: Use the Library
Function listing:
Play Texture Movie
Play Texture Movie Cleanup
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 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.
//end sarcasm
Nice. Specially for campaigns.
Omg....I saw that a leaked was in this....?? OMG!! And I thought "Is it too good to be trrue? Nahh, programmer wouldn't do that".... >.< Grr...But nice tutorial
I knew it! Your main rival in Heart of the Swarm is Rick Astley!
Infested Rick ftw
thanks for ruining it buddy
Nothing wrong with exposing a Rickroll :P
Oh please, I dont intent to make this thread a rickroll disscussion. Feel free to leave feedback/suggestion on the library here, rick roll can go to the youtube video comments.
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
for some reason whenever the trailer comes internet explorer crashes D:
While I can't think of an immediate use I'd apply this for in a map...I must respect the ingenuity of making this possible. Much thanks Progammer.
It will be used a lot for campaign maps I think.
but there is a problem! if you open menu the animation/film still runs but the sound doesn't. this is anoying :/
@HellGateSc2: Go
Try with a muted video, it pauses, but not with video that has sound. I have no idea how this magic happen :(
(your actual ogv video imported must not have sound channel. Or if you want to experiment, some briefing video in the game is muted)
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.
@lnsidious: Go
In blizzard map, they just simple use a wait until transmission is finished, and then send the next transmission. Slightly alter my wait structure if you want to do that.
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?
@lnsidious: Go
Converting might not synch it very well, try to play each tranmission and wait unti it then play the next, only clean up the movie after the tranmission is done. You have to tweak the library a bit
@progammer: Go
But which sound should I play, as I would use different actions to play all the transmissions, right? And which actor, you can't leave it blank apparently.
EDIT: Besides, the movie is laggy, not the audio file. This is in comparison of the actual movie in the campaign.
@lnsidious: Go
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 ?