MMF2 and automatically store wav-files to the exe-file. But what about other files like module-musics and videos?
Any idea how to store music and video files to the exe. I know that at least is possible to store music files to it.
MMF2 and automatically store wav-files to the exe-file. But what about other files like module-musics and videos?
Any idea how to store music and video files to the exe. I know that at least is possible to store music files to it.





MMF 2 supports mod music files and so if you implement them into your program, they will be saved as part of the EXE. However, video files can't be stored in the EXE and have to be supplied externally to the program. The only way you could get the movie files into the EXE is if you convert them into Active Objects. This will cause you to lose the sound so you'll have to import this as a sound file and play it along side the movie Active Object.
KnightTrek Productions
http://www.knighttrek.com












If you use the "Data Elements" dialogue you can add external files (e.g. videos) to be included within your .exe file.
Alternatively, select "Include external files" in application properties. To quote the help file this:
Includes in the built file all the external files referred to by the events or by any object. This option is very handy if you want to create one EXE file that contains everything. Upon runtime, the files are extracted to a temporary folder, and all the pathnames that refer to the files are relocated to the temporary folder. Note: this option doesn't include the files whose filename is calculated with an expression in the events.
.:::.Joshtek.:::.





Learn something new every day [wink].
Thanks for the info, Joshtek.
KnightTrek Productions
http://www.knighttrek.com
Hmm Did I understood right? I selected "Include external files" and put video to the game. I created EXE, but it still plays it from the original file. :/












Sorry, but you'll have to be more detailed in what you are doing. And remember, it stores the file in the EXE version but not the MFA version.
.:::.Joshtek.:::.
I don't understand.












I don't know what you are doing wrong. Sorry.Originally Posted by Jarzka
.:::.Joshtek.:::.





Jarzka, are you sure that your EXE is still playing the original movie file and not a stored version inside the EXE itself? One way to test this is to move the original movie file into another folder so it's path is no longer valid and then run your EXE. If the movie plays, it is not playing the original version.
Also, look at the size of your EXE. With the movie file now part of it, the EXE size should be considerably larger.
KnightTrek Productions
http://www.knighttrek.com