1. The 30th edition of the Modeling Contest is finally up! The Portable Buildings need your attention, so come along and have a blast!
    Dismiss Notice
  2. The Aftermath has been revealed for the 19th Terraining Contest! Be sure to check out the Results and see what came out of it.
    Dismiss Notice
  3. Melee Mapping Contest #3 - Results are out! Congratulate the winners and check plenty of new 4v4 melee maps designed for this competition!
    Dismiss Notice
  4. The winners of our cinematic soundtrack competition have been decided! Step by the Music Contest #11 - Results to check the entries and congratulate the winners!
    Dismiss Notice

Cinematic Movies Tutorial

Discussion in 'Miscellaneous Tutorials' started by A Void, Jul 16, 2014.

  1. A Void

    A Void

    Joined:
    Mar 29, 2011
    Messages:
    2,480
    Resources:
    10
    Models:
    2
    Spells:
    1
    Tutorials:
    7
    Resources:
    10
    Cinematic Movies Tutorial

    Tools: World Editor, Trigger Editor, Windows Registry Editor, Any Media Player.
    Difficulty: Advanced.

    This tutorial will be about cinematic movies, those beautiful cinematics that you see often at the beginning, end and the middle of single player campaigns. They are located in your Warcraft III installation directory in a folder named - Movies.

    [​IMG]

    If you open this folder you will see various .mpq files, those .mpq files are actually cinematics that are played during campaign. To view and watch them you have to rename .mpq to .avi. If you haven't finished playing both games I advise you not to watch those cinematics, it will contain huge spoiler of the story-line.
    Blizzard had put a sort of protection in renaming .avi to .mpq, they have done this to prevent new players from accessing cinematics and spoilers early on in the game. Once you renamed files to .avi you can watch them in any Media Player that supports .avi format.

    Notice: Cinematics only work if they are in .mpq format, the game specifically is coded to search for this format and then in-game unwrap it into .avi.

    Now let's create our first custom cinematic:
    I already have my video (cinematic) in .avi format and ready.
    Click Here


    Move your custom cinematic to Movies folder located in your Warcraft III installation, rename the file ending to .mpq.

    Now you will have to open up Trigger Editor and find an action in Cinematic category named Cinematic - Play Movie. If you can't find the trigger then use a custom script: Custom Script: call PlayCinematic("<Cinematic>").

    [​IMG]

    <Cinematic> - is your movie file name, but without the ending.
    Ex: MyCinematic.mpq = Bad, MyCinematic = Good

    Here is how the rest of trigger should look like to run a cinematic instantly after the loading screen:

    [​IMG]

    You can now test your cinematic map my pressing Test Map button.

    As you noticed that your cinematic was running in 800 x 600 resolution that was preset by Warcraft III, you can change your cinematics color depth, refresh rate, and resolution in the registry. To do that, you will have to press Start and type in: regedit - then press enter and it will open Registry Editor.

    [​IMG]

    Now you will find these main options for configuring your cinematic display in Warcraft III:

    [​IMG]

    Cinematic Override - enables custom registry changes.
    Cinematic Width - resolution width of the cinematic.
    Cinematic Height - resolution height of the cinematic.
    Ex: 1024 x 768.
    Cinematic BPP - color depth of the cinematic.
    Ex: 8 - Bit, 15/16 - Bit, 18 - Bit, 24 - Bit, 30-48 - Bit. More information about color depth.
    Cinematic Refresh - monitor refresh rate of the cinematic.

    Important - to edit the values and numbers of the selected setting you must always click on decimal and write your value (number).
    Ex: Click "CinematicWidth" option in registry and click decimal, then enter the width number (value) of the cinematic: 800. 800 (width) x 600 (height) = 800 x 600 resolution. Then click OK to save.

    [​IMG]

    Notice: You must enable Cinematic Override to 1 for custom registry changes to take effect.
     
    Last edited: Jun 15, 2016
  2. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,500
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    Extremely nice, I was thinking about doing something like this.. sometime..
     
  3. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,418
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Cool tutorial. It is nice that someone made a tutorial for this. I always had to search for my old post on it if someone asked about it. But I like this tutorial's organization much better.

    But the tutorial should be in regular text. You can use that color for bold things, e.g. "Notice", or for any headers, but you should use default text for the rest of it (and non-italicized).

    I didn't know about the registry settings. It is cool that you found that out. :) If you have time, it could be cool if you could fiddle with trying to display captions. See the bottom of this thread:
    http://www.hiveworkshop.com/forums/2390249-post11.html
    I never tried it out, but I assume that if you can put a captions file in the correct location under the same name. e.g. HumanEd corresponds to UI\Captions\HumanEd.txt. It would be awesome if you had a part about that (if it works).

    Also, the name could use some work. We usually associate cinematics with triggered cinematics. There are a few different options: AVI, video, movie, cinematic movie. e.g. "Play Custom AVI's". Or "Play External Movie". It'll be easy for someone to locate, and they'll understand what the tutorial is about just from the title (titles are really important!).
     
  4. A Void

    A Void

    Joined:
    Mar 29, 2011
    Messages:
    2,480
    Resources:
    10
    Models:
    2
    Spells:
    1
    Tutorials:
    7
    Resources:
    10

    Aye! I will update it. :)

    Edit: How can I change the name to - "Cinematic Movies Tutorial" ?
     
    Last edited: Jul 17, 2014
  5. Heinvers

    Heinvers

    Arena Moderator

    Joined:
    May 7, 2010
    Messages:
    7,915
    Resources:
    83
    Models:
    2
    Icons:
    50
    Packs:
    3
    Skins:
    25
    Template:
    3
    Resources:
    83
    Make a thread in staff contact and ask there for the name to be changed.
     
  6. Hell_Master

    Hell_Master

    Joined:
    Nov 29, 2012
    Messages:
    5,515
    Resources:
    4
    Maps:
    3
    Template:
    1
    Resources:
    4
    Well, I changed it for you.

    Have a good day and a very helpful tutorial. To be honest here, I've got no idea or even a little that you could do this and now, I've learned something from this!

    Good job.
     
  7. A Void

    A Void

    Joined:
    Mar 29, 2011
    Messages:
    2,480
    Resources:
    10
    Models:
    2
    Spells:
    1
    Tutorials:
    7
    Resources:
    10
    Thank You
     
  8. machadomarrano

    machadomarrano

    Joined:
    Feb 12, 2011
    Messages:
    8
    Resources:
    0
    Resources:
    0
    a problem

    Forgive my intrusion... but I don't see that option anywhere in the trigger editor from the WORLD EDITOR... did blizzard removed that option? I just can't find it. Thank you for your answer!
     
  9. A Void

    A Void

    Joined:
    Mar 29, 2011
    Messages:
    2,480
    Resources:
    10
    Models:
    2
    Spells:
    1
    Tutorials:
    7
    Resources:
    10
    Do you have Jass New Gen World Editor? Otherwise if you do not you can use:

    Custom Script: call PlayCinematic("Cinematic Name")
     
  10. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,418
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Wtf, sorry for letting this sit so long. Great job with the tutorial--I like the topic--and very few people know that this is even possible.
     
  11. darwin

    darwin

    Joined:
    Aug 30, 2004
    Messages:
    880
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Is this option there for custom campaigns that are uploaded on the site here? Would you have to upload the .avi files and give instructions for the downloaders to put them in the right folder?
     
  12. A Void

    A Void

    Joined:
    Mar 29, 2011
    Messages:
    2,480
    Resources:
    10
    Models:
    2
    Spells:
    1
    Tutorials:
    7
    Resources:
    10
    If you are making a campaign with custom cinematic, then yes. Those cinematics will have to be uploaded somewhere (pastebin)on this site and then put in correct folder to view them. folder - Movies.
     
  13. ladiszlai

    ladiszlai

    Joined:
    Mar 3, 2016
    Messages:
    2
    Resources:
    0
    Resources:
    0
    Hello,

    Somebody can help me where can I put this command ? :
    "call PlayCinematic("<Cinematic>")"
     
  14. A Void

    A Void

    Joined:
    Mar 29, 2011
    Messages:
    2,480
    Resources:
    10
    Models:
    2
    Spells:
    1
    Tutorials:
    7
    Resources:
    10
    Here

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]
     
  15. ladiszlai

    ladiszlai

    Joined:
    Mar 3, 2016
    Messages:
    2
    Resources:
    0
    Resources:
    0
    Thank you :)

    Edit

    Ok I tried this is working but I needed to add this script too:

    call EndGame(True or False)

    If I not add this the cinematic won't play.
     
    Last edited: Mar 4, 2016
  16. pyf

    pyf

    Joined:
    Mar 21, 2016
    Messages:
    2,277
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    Thanks for the tutorial.

    I understand you refer to FMVs " at the beginning, end and the middle of single player campaigns ".
    Are there really FMVs in the middle of WC3's campaigns ? Maybe you refer to WCII here.


    stuff about WC3's FMVs
    The files in WC3's Movies folder, are standard avi containers with the mpq file extension. One may use MediaInfo Lite to know everything about them (program description at MajorGeeks).

    As a "protection" Blizzard used, for the video part, the fourcc BLZ0, which is exclusive to them afaik. Back then, media players could not split/decode the files properly.

    Nowadays, FFDShow supports BLZ0. FFDShow is both standalone, and part of codec packs such as K-Lite. VLC can also play such files (no need for a codec pack in that case).

    To watch these FMVs in a media player, you can directly drag-and-drop the "mpq" files in any decent media player (no need to rename them to avi beforehand). Works with VLC or MPC-HC. It will *not* work with Windows Media Player 11 (you have to rename the file to avi first).


    The FMVs may play on some HDTVs, which may have unofficial support for them. You will very certainly have to rename the files to avi first. For some reason, the same manufacturer may unofficially support BLZ0 in a specific product, then ditch/break BLZ0/audio support the year after in another of its products (no thanks, Samsung !). Therefore, your mileage may vary. Experiment, guys.
     
    Last edited: May 16, 2016
  17. Warseeker

    Warseeker

    Joined:
    Feb 18, 2014
    Messages:
    2,291
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I find this tutorial very useful ! Thanks for sharing :)