[3.3.5] Custom Cinematic Cameras menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Meiya Stormsinger's Avatar Contributor

    Reputation
    163
    Join Date
    Mar 2009
    Posts
    196
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [3.3.5] Custom Cinematic Cameras

    Hello everyone.


    As the title of the thread states, this is a tutorial for custom cinematics for World of Warcraft 3.3.5.


    Without further ado here we go...




    Part I. Getting started...



    You need to download a bunch of programs if you don't already have them...




    * MyDbcEditor (Modcraft - View topic - [TOOL]*[DBC] mydbceditor)
    * Microsoft Visual Studio (https://www.visualstudio.com/en-us/d...studio-vs.aspx)
    * MPQ Editor (Ladik's MPQ Editor 32bit - The Hive Workshop)




    Once you have all the programs you need collect a bunch of files... The files you'll need are:




    *CinematicCamera.dbc
    *CinematicSequences.dbc








    Any camera skin file as they are all the same (E.g. FlyByDwarf00.skin) these can be found in Common-2.mpq / Cameras.






    Then you need to C++ program that generates the .m2 file which can be downloaded from Stoneharry's Github: https://github.com/stoneharry/Misc-W...tor/camera.cpp




    Part II. Editing the DBC's.



    Open up CinematicCamera.dbc, it should look something like this:







    Now insert a new line and give it your own ID.









    Now change the name to what you want to name your .m2 file later, I've chosen Test.mdx...




    Then you need to go ingame and get the coords for where you want the camera to end because the camera will use these coords as the "root coords".




    You can read about the different columns here: https://wowdev.wiki/DB/CinematicCamera







    Once you've set up the CinematicCamera.dbc you need to open up CinematicSequences.dbc




    Read about the different columns here: https://wowdev.wiki/DB/CinematicSequences




    You only need to insert a row where you specify a sequence ID and bind it to your cinematic ID, my cinematic ID was 300 and I've set the sequence ID to 200.











    Part III. Visual Studio...



    Open up Microsoft Visual Studio and create a new Win32 Console Application.







    You can remove the information that is generated in the file except for #include "stdafx.h"







    Then open up the camera.cpp from Stoneharry's github and put the information in the project.




    Now for the actual editing of the vectors... This is the tricky part.




    AnimationLength = The length of course...




    TimeStamp = When the camera triggers based on the AnimationLength...




    Position = DBC file coords +/- Vector (E.g. if set to 3920 in DBC and you do -5 in the vector it will do 3920 - 5...)
    ( Example: fake9.stamp = 0000; fake9.data.d[0] = 0.00f; fake9.data.d[1] = 150.00f; fake9.data.d[2] = 14.00f); )


    The structure of the vectors are: TimeStamp; X; Y; Z...








    Target = DBC file Z +/- Vector (E.g. if set to 10 in dbc and you do -5 it will look down, and +5 makes it look up...)




    For easy calculation I have done "RootX" - "NewX" = "OffsetX" (E.g. DbcX = 3920, NewX = 3940 then OffsetX = 3920-3940 = -20...)
    This only applies to the position vectors, the target is a bit more complex then that and you will need to mess around with this to get it to work.




    This is a very basic way to calculate the coords and it's a very complex system so you will need to do a lot of trial and error to get it the way you want...




    You also need to set up where you want the .m2 file to generate to, (E.g. FILE* f = fopen("C:\\Users\\Kenny\\Desktop\\Kenny\\World of Warcraft - 3.3.5a\\Data\\Patch-U.MPQ\\Cameras\\Test.m2", "w+");)




    This generates it straight into my patch folder and then I can just call it in-game without restarting the game (I have an unpacked MPQ folder...)




    Once you have entered all your vectors and what-not it's time to compile the program.




    Note: If you get an error saying something about _CRT_SECURE_NO_WARNINGS then go into Project -> Properties -> Configuration Properties -> C/C++ -> Preprocessors -> Preprocessor Definitions and add the line _CRT_SECURE_NO_WARNINGS...











    Should look something like this when compiled:







    Once that's done, go into the Release folder and run the console program, in my case it's C:\Users\Kenny\Documents\Visual Studio 2013\Projects\ConsoleApplication5\Release\ConsoleApplication5.exe...




    This will now generate the .m2 file to whereever you specified in the C++ file...








    Part IIII. Getting your camera ingame...



    As I meantioned I have an unpacked mpq folder meaning I don't need to shut down the game, open the mpq file and put in the new files... You can easily do this by creating a new folder in your en##/Data folder and naming it Patch-#.MPQ.




    So when you have created your MPQ you create a folder inside it named Camera, here you place the .m2 file and .skin file...
    Then go back to the root of the mpq and create another folder named DBFilesClient and in here you put the CinematicCamera.dbc and CinematicSequences.dbc...




    Then go ingame and write .debug play cinematic #CinematicSequenceID








    ??
    profit









    Part V. FAQ
    Do I need to use target vectors at all or can I comment them out? - You do not need to use these, you can comment them all out but if you are doing a camera that starts higher up than the DBC Z you will need to set the target Z to a negative value to make the camera look down, else it will look straight ahead.




    My camera is looking straight up into the sky / straight down in the ground. - Make sure that the first timestamp is set to 0000, else the camera won't know which coords to load (E.g. if you set the first one to 5000 it will look straight up into the sky until after the 5 seconds have passed and it loads the target.)




    I'm getting a WoWError when trying to play my cinematic. - Make sure you have the .m2 and .skin files set up correctly, and that the dbc's are set up correctly. The skin file needs to be named *filename*00.skin. Also make sure that you set the name of the file to *filename*.mdx in the CinematicCamera.dbc.







    Part VI. Credits

    Schlumpf for creating the C++ program to generate the .m2
    Stoneharry for helping me setting up my first camera.
    Myself for creating the guide.


    Attached Thumbnails Attached Thumbnails [3.3.5] Custom Cinematic Cameras-ef51ecd061-jpg   [3.3.5] Custom Cinematic Cameras-14aa0e22a3-jpg   [3.3.5] Custom Cinematic Cameras-ec2e6771ec-jpg   [3.3.5] Custom Cinematic Cameras-6d6564dfed-jpg   [3.3.5] Custom Cinematic Cameras-8ec02e60c9-jpg  

    [3.3.5] Custom Cinematic Cameras-70262581fa-jpg   [3.3.5] Custom Cinematic Cameras-62f876e3f6-jpg   [3.3.5] Custom Cinematic Cameras-370f0d2b49-jpg   [3.3.5] Custom Cinematic Cameras-6048efe4b5-png   [3.3.5] Custom Cinematic Cameras-47684e1836-png  

    [3.3.5] Custom Cinematic Cameras-2d438c3f79-jpg  
    Last edited by Meiya Stormsinger; 04-02-2016 at 07:56 AM.

    [3.3.5] Custom Cinematic Cameras
  2. Thanks stoneharry, hackerlol (2 members gave Thanks to Meiya Stormsinger for this useful post)
  3. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    150/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Good tutorial!

Similar Threads

  1. [ArcEmu] Is it possible to make a custom cinematic?
    By Uppercutter in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 02-01-2013, 01:14 PM
  2. [DBC Edit] [Show Off] Custom Cinematics & Cinematic Sequence
    By 92eatos in forum World of Warcraft Model Editing
    Replies: 7
    Last Post: 09-09-2011, 11:22 AM
  3. [C++ Script] Custom Starting Cinematic
    By Appled in forum WoW EMU Questions & Requests
    Replies: 13
    Last Post: 02-02-2011, 09:46 AM
  4. Custom Computer Build (opinions/comments?)
    By Matt in forum Community Chat
    Replies: 11
    Last Post: 07-23-2006, 12:57 PM
  5. New Custom Model Swapping Fix (1.11 Working)
    By Matt in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 06-23-2006, 06:05 PM
All times are GMT -5. The time now is 02:26 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search