How to put video before the mission?
by Flory Madrilejos · in Hardware Issues · 12/04/2008 (10:40 am) · 11 replies
Anybody know how? Please help.
If you have scripts please share... Thank you in advance.
If you have scripts please share... Thank you in advance.
#2
01/19/2009 (9:35 am)
Mike's script looks very well. I don't think TGEA has a Theora Video option though.
#3
01/20/2009 (10:10 pm)
anyone know how to convert files to video ogg cant seem to find anything
#4
01/20/2009 (10:31 pm)
convert files to video ogg: did you try Google? It is taking me more time to type this then it did to find quite a lot of info on convert files to video ogg.
#6
02/09/2009 (8:07 pm)
The quality of the video in OGG is not pretty good. Is there any extension files supported by torque aside from .ogg?
#7
02/10/2009 (6:32 am)
I have not tested .ogg video myself yet, but I'd be curious to know the answer to this as well.
#8
02/10/2009 (4:32 pm)
I think ogg is the only supported format due to it being free and platform independant.
#9
02/10/2009 (4:37 pm)
would it be possible to hardcode in .mov or somthing or is that somthing restricted by apple
#10
02/10/2009 (5:08 pm)
If you are a registered quicktime developer with apple, you could use the theora code to guide you thru adding into the engine.
#11
04/21/2009 (11:00 am)
Ojala me sirva para poder cargar mis videos
Torque Owner Mike Rowley
Mike Rowley
If...you are using tge, just make a theora gui control.
Here is one I made as a splash screen. It even has a skip button for those users who have already seen it.
//--- OBJECT WRITE BEGIN --- new GuiTheoraCtrl(Startup3Gui) { canSaveDynamicFields = "0"; Profile = "GuiDefaultProfile"; HorizSizing = "right"; VertSizing = "bottom"; position = "0 0"; Extent = "640 480"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; theoraFile = "./YourVideo.ogg"; // Place your video in client/ui, then place it's name here. done = "0"; stopOnSleep = "1"; backgroundColor = "0 0 0 255"; new GuiBitmapButtonCtrl() { Profile = "GuiButtonProfile"; HorizSizing = "relative"; VertSizing = "relative"; position = "463 439"; Extent = "140 30"; MinExtent = "8 8"; Visible = "1"; Command = "skipIt();"; text = "Button"; groupNum = "-1"; buttonType = "PushButton"; bitmap = "./button"; helpTag = "0"; new GuiMLTextCtrl() { Profile = "GuiMLTextNoSelectProfile"; HorizSizing = "right"; VertSizing = "bottom"; position = "75 10"; Extent = "300 19"; MinExtent = "8 2"; Visible = "1"; lineSpacing = "2"; allowColorChars = "0"; maxChars = "-1"; text = "<color:F6F4C4><shadowcolor:000000><shadow:1:1><font:Arial Bold:19>Skip"; helpTag = "0"; allowSelection = "1"; }; }; }; //--- OBJECT WRITE END --- function loadStartup2() { StartupGui.done = false; Canvas.setContent( Startup2Gui ); schedule(100, 0, checkStartup3Done ); } //------------------------------------- function Startup2Gui::click() { StartupGui.done = true; } //------------------------------------- function checkStartup2Done() { if (Startup2Gui.done) { echo ("*** Load Main Menu"); loadMainMenu(); } else schedule(100, 0, checkStartup2Done ); } //My skip function sto stop the video when the player skips the splash screen function skipIt() { Startup2Gui.stop(); loadMainMenu(); }To use this, copy/paste it to a new text file and name it startup2.gui.
At the bottom of startup.gui, change the checkStartupDone function so it says loadStartup2() instead of loadMainMenu(); and your video gui will load after the gg splash. If you want it to load before the game loads, (after the main menu) then you'll have to make other changes to some of the scripts.