June 05, 2024, 12:28:08 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest WME version:
WME 1.9.1
(January 1st, 2010) -
download
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
THEORA question
« previous
next »
Pages: [
1
]
Print
Author
Topic: THEORA question (Read 3654 times)
0 Members and 1 Guest are viewing this topic.
SBOVIS
Frequent poster
Karma: 0
Offline
Gender:
Posts: 404
FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
THEORA question
«
on:
March 02, 2007, 10:19:49 AM »
Hi,
I am using THEIRA and the PlayTheora command, is there anyway that I can play the video clip in its entirety without having to put Sleep commands in for the duration?
As timing the Sleep command is a bit hit and miss and takes ages to get the exact length of the video clip.
Any ideas??
Many Thanks
Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS
Nihil
Supporter
Addicted to WME forum
Karma: 0
Offline
Posts: 528
Fear me! I'm evil!
Re: THEORA question
«
Reply #1 on:
March 02, 2007, 11:24:14 AM »
Hm, I haven't used videos for a while, but I can't remember that I had to use the sleep command anywhere? what do you need it for?
Logged
H.P. Lovecraft's Dagon
Dagon on Facebook
Dagon on Twitter
metamorphium
Global Moderator
Addicted to WME forum
Karma: 12
Offline
Gender:
Posts: 1511
Vampires!
Re: THEORA question
«
Reply #2 on:
March 02, 2007, 11:32:53 AM »
are you speaking about video entities?
if so, then you could do this:
yourEntity.PlayTheora("SomeFile");
while (yourEntity.IsTheoraPlaying()) Sleep(1);
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
SBOVIS
Frequent poster
Karma: 0
Offline
Gender:
Posts: 404
FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
Re: THEORA question
«
Reply #3 on:
March 02, 2007, 12:31:02 PM »
Ahhhhh thanks this helps, but at a certain point in the script the game crashes. But not at always the same place when a multiple of theoras are playing one after another.
I have changed the Sleep value which helps a little to slow things down after each video entity has played but does not totally stop it crashing.
Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: THEORA question
«
Reply #4 on:
March 02, 2007, 08:31:43 PM »
When you say it crashes you should also provide the wme_crash.txt file so that we know *where* it crashes.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
SBOVIS
Frequent poster
Karma: 0
Offline
Gender:
Posts: 404
FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
Re: THEORA question
«
Reply #5 on:
March 02, 2007, 09:14:26 PM »
Thats just it, it shows nothing in the logs, otherwise I would of attached them. The game exits if I raise the Sleep(1) to anything more. I think it is because of the WHILE loop.
I have tried keeping this as it is Sleep(1) and adding a Sleep(150); underneath to help space the videos as they play to fast after each other. This seems at the moment to be stable.
Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: THEORA question
«
Reply #6 on:
March 02, 2007, 11:00:09 PM »
It doesn't generate wme_crash.txt on crash? Are you using WME 1.7.1? And what Windows version?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
THEORA question