I tried the following 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.