Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
crash with media_play in publish #305369
01/14/10 13:28
01/14/10 13:28
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi,

I've got the following problem:

When I play my intro.avi in the published version of my game the whole engines shuts down. The last message in my logfile is:

intro.avi video opened

I had the same behaviour some months ago where it was a codec problem.

But the same avi works fine in the non-published version so it can't be the codec?

Any hints to this?

Regards,
Pegamode.

Re: crash with media_play in publish [Re: pegamode] #305405
01/14/10 16:39
01/14/10 16:39
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
It can be the codec, but it can also have other reasons, such as a different version of the movie in the published version.

Re: crash with media_play in publish [Re: jcl] #305431
01/14/10 19:22
01/14/10 19:22
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
To check it out I copied the file manually to the publish folder so the movie is the same.

I can't explain why the same movie doesn't run on the same machine ... strange.

Re: crash with media_play in publish [Re: pegamode] #305513
01/15/10 09:52
01/15/10 09:52
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Is this the same app with your random crash in a save function? Both problems might be connected.

Re: crash with media_play in publish [Re: jcl] #305523
01/15/10 11:25
01/15/10 11:25
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Yes. It's the same application.

To do a quick check I'll write a short main.c where only the avi is played and do a publish.

If the avi is played there must be something in the code of the project.

Re: crash with media_play in publish [Re: pegamode] #305681
01/16/10 14:18
01/16/10 14:18
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I tried the following code:

Code:
#include <default.c>
#include <acknex.h> // Pure Mode

void main() {	 				
	video_mode = 8;	
	video_depth = 32;					
					
	level_load(NULL);		
	wait(1);
	
	var mhandle = media_play("intro.avi",NULL,100); 
	while (media_playing(mhandle) != 0) {
		wait(1);
	}
	
}



If I run this in dev mode everything works fine. The avi is played.
When I publish the code and start the exe the engine crashes.

I did tests on different computers ... everytime the same.
I also changed the avi. Some avis are played fine both in dev mode and published and some are working only in dev mode but crash when the code was published.

Currently I think that there is a bug in the engine.
The engine reacts different on some avis if the code is published or not.

This is what I also could find out:

If I use an AVI that is played both in dev mode and published, the FFv-TrayIcon (K-Lite CODEC pack) is displayed when the code is started in dev mode, but it is not displayed when the code was published. So I think the engine uses a different CODEC for playing the movies.

Regards,
Pegamode.


Last edited by pegamode; 01/16/10 14:57.
Re: crash with media_play in publish [Re: pegamode] #305900
01/18/10 11:20
01/18/10 11:20
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Hmm, this sounds strange. But you can send the application together with the codec to Support. We can look into it and can maybe give you some advices how to solve this problem.

Re: crash with media_play in publish [Re: jcl] #305905
01/18/10 11:47
01/18/10 11:47
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Ok. I've put it on your ftp server (avi-issue.rar).

Thanks in advance.

Regards,
Pegamode.

Re: crash with media_play in publish [Re: pegamode] #305919
01/18/10 14:26
01/18/10 14:26
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Thanks, we got it - but found no difference between the debug and release versions. We've tried it on several PCs. We haven't installed your CODEC, though. The AVI ran already with some standard codec from a codec pack that was already installed on most of our machines. Maybe that is the reason - can you try other CODECs?

Re: crash with media_play in publish [Re: jcl] #305921
01/18/10 14:31
01/18/10 14:31
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Thanks for the information.

Do you know which codec packs are installed on your machines?
That would make it easier to find a working one.

It's really strange that the CODEC doesn't work in the release version.

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

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