Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 12,726 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
can't play .avi or .mpg #228237
09/18/08 10:16
09/18/08 10:16
Joined: Sep 2008
Posts: 8
D
dgsj Offline OP
Newbie
dgsj  Offline OP
Newbie
D

Joined: Sep 2008
Posts: 8
my code is very simple
#include <litec.h>
#include <default.c>
#include <acknex.h>
void main()
{
video_mode = 7;
media_play("clock.avi",NULL,50);
while(1)
{
wait(1);
}
}

but it doesn't work...
An error is "Attempt to use uninitialized D3D device."

Re: can't play .avi or .mpg [Re: dgsj] #228238
09/18/08 10:19
09/18/08 10:19
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Unless your using pure lite-c mode I don't think you need litec.h

Read the manual it will tell you about media_play make sure you use
the lite-c example and NOT c-script..


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: can't play .avi or .mpg [Re: Nidhogg] #228250
09/18/08 11:38
09/18/08 11:38
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Quote:
Error E1507: Video not yet initialized

You called a DirectX function in the first frame before DirectX was initialized. Use wait(1) to wait for the second frame when a DirectX device is available.


The manual is your friend.

Re: can't play .avi or .mpg [Re: Tobias] #228377
09/19/08 01:36
09/19/08 01:36
Joined: Sep 2008
Posts: 8
D
dgsj Offline OP
Newbie
dgsj  Offline OP
Newbie
D

Joined: Sep 2008
Posts: 8
thanks


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1