Intro Video
by Norv Brooks · in Torque Game Engine · 01/03/2006 (8:29 am) · 7 replies
In implementing the Intro Video as initially presented in John Vanderbeck's 3/28/04 posting of "Video Playback in Torque" and the additional posting of Alessandro Louriero 10/4/05 "AVI Intro Problem: easy solution?" at launching the application of I got a momentary black screen and then proceeded to go to the Starter FPS main screen. The following is an excerpt from the Console Log:
Intro Video
Loading compiled script starter.fps/client/ui/movieplayer.cs.
starter.fps/client/ui/movieplayer.cs (0): Unknown command Play.
Object IntroGui(1338) IntroGui -> GuiAviBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
The code in MoviePlayer.cs that seems to be causing this error is:
IntroGui.play();
The application can't find the object IntroGui nor can I.
Anyone know why this is failing?
Thanks,
Norv
Intro Video
Loading compiled script starter.fps/client/ui/movieplayer.cs.
starter.fps/client/ui/movieplayer.cs (0): Unknown command Play.
Object IntroGui(1338) IntroGui -> GuiAviBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
The code in MoviePlayer.cs that seems to be causing this error is:
IntroGui.play();
The application can't find the object IntroGui nor can I.
Anyone know why this is failing?
Thanks,
Norv
About the author
#2
01/08/2006 (3:44 pm)
Ben - thanks for the info on Theora. I'll try it asap.
#3
01/08/2006 (4:46 pm)
Lemme know how it goes! :)
#4
2nd - I want to put a movie clip company logo at the very first. I built a "startupGui" with a guiTheoraCtrl. If this is a good way to go, how do I get the "startupGui" to come up ahead of the "mainMenuGui"?
Any tutorials on this?
Thanks for your help.
Norv
01/09/2006 (11:31 am)
Ben - a couple of questions - 1st, I'm working on a strategy game and I chose to use "starter.fps" to modify & build on. Which do you think would be best to use "tutorial.base" or "starter.fps" to end up with a strategy game?2nd - I want to put a movie clip company logo at the very first. I built a "startupGui" with a guiTheoraCtrl. If this is a good way to go, how do I get the "startupGui" to come up ahead of the "mainMenuGui"?
Any tutorials on this?
Thanks for your help.
Norv
#5
2 - Sure, go for it. If you look at starter.fps it already does this with a startupgui, so I'd look there.
There are some resources & notes, try using our search to hunt it down!
01/09/2006 (11:48 am)
1 - whichever one is most effective. :) Tutorial.base has less existing stuff in it, but starter.fps is fuller featured. Hard to say.2 - Sure, go for it. If you look at starter.fps it already does this with a startupgui, so I'd look there.
There are some resources & notes, try using our search to hunt it down!
#6
Thanks,
Norv
01/09/2006 (5:06 pm)
Ben - I got the logo video clip to come up first and then go to the mainMenuGui like I wanted. However, the problem I ran into was the video clip did not play all the way through. In the startupGui structure I set "done" to "0" and "stopOnSleep" to "1". It seems like I read in one of the forum thread where someone else had this problem but I can't find it. Any suggestions?Thanks,
Norv
#7
01/27/2006 (10:51 am)
If anyone has similar issue, I found that "waitTime" was set to "1000". When I increased the time to "10000" it solved the problem.
Associate Ben Garney