Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: THEORA question  (Read 3654 times)

0 Members and 1 Guest are viewing this topic.

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
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 Offline
  • Posts: 528
  • Fear me! I'm evil!
    • View Profile
    • Order of Dagon
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?

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
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 Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
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 Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
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. ::wave

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
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.

 ::rock


Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
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. ::wave
 

Page created in 0.022 seconds with 18 queries.