Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AbrahamR, AndrewAMD, ozgur), 763 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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