2 questions.
I need a sample of an avi and the script that someone has gotten it to run with for a screensaver. Nothing I have tried works.
Also when I go to lauch a game it simply blows up. I have tried it on XP and Windows 2000. The two sample scripts that I downloaded both launch games differently. Can someone post what they are doing in the event which launches mame.
Any help would be appreciated. We are trying to get this cabinet ready for a kids birthday.
Thanks!
Sorry to hear you're having problems with EmuTron,
Let's see if I can answer your questions,
I need a sample of an avi and the script that someone has gotten it to run with for a screensaver. Nothing I have tried works.
You can download the MameArcade avi file from my site at
www.pacmanfan.com it's about 5mb and it probably won't be on the site for much longer.
EmuTron can currently play only avi files with no soundtrack and animated gifs.
Playing a movie is identical to loading a bitmap,
To play a movie during the screensaver, use this code
EVENT SCREENSAVER_START // this event is fired once automatically when the screen saver starts
ACTIONS
//This line load the movie:
LoadBitmap(backgroundbitmap,"c:\movies\mamearcade.avi")
//Right after you load the movie, you can set it to loop like this:
AnimateBitmap(backgroundbitmap,LOOP,"none")
END_ACTIONS
END_EVENT
EVENT SCREENSAVER_DISPLAY
//this event is called automatically for every frame drawn to the screen
ACTIONS
// this next line displays the movie into the rectangle specified by backgroundrect
DisplayBitmapStretchFit(backgroundbitmap,backgroundrect)
END_ACTIONS
END_EVENT
EVENT SCREENSAVER_END
// this is called automatically when the user presses a key
// I have it reload the current script to stop and re-start all animations
ACTIONS
RunScript("scripts\mame.cfg") // reload the script to stop all animations
END_ACTIONS
END_EVENT
Well, that's playing an avi file inside the screensaver in a nutshell.
Also when I go to lauch a game it simply blows up. I have tried it on XP and Windows 2000. The two sample scripts that I downloaded both launch games differently. Can someone post what they are doing in the event which launches mame.
Well, there are 2 ways to launch emulators / applications through EmuTron.
Launch is the old method that is more compatible
Launch2 is the new method but more seemless
to use the Launch command, you need to open a dos .bat file, write some commands to launch the emulator with the right rom, write a command to relaunch emutron, and close the file, Then you Launch("etlaunch.bat") the file and exit EmuTron. the bat file re-launches EmuTron after it's finished running.
Some code to do all this:
EVENT LAUNCH_GAME
KEYDEFS
SCAN_LALT // the left alt key launches
END_KEYDEFS
ACTIONS
OpenWriteFile ("ETLaunch.bat")
WriteToFile("cd " +mamepath)
WriteToFile(mamename + " " + rompath + CurListItem(testgamelist,FILECOL) + ".zip")
WriteToFile("cd " + emutronpath)
WriteToFile("emutron.exe")
WriteToFile("exit")
CloseWriteFile()
Launch("ETLaunch.bat")
ExitProgram() // the ETLaunch.bat file reloads emutron
END_ACTIONS
END_EVENT
If this code doesn't work, check your mamepath, mamename, and rompath.
open up the etlaunch.bat file inside the emutron directory and see what's being written to it. double click on it to test it.
The second method Launch2 is a little easier, however, I just discovered that it has some problems with DMame (Dos mame).
To quote from my doc file:
Launch2
The launch2 function is really a replacement for the Launch command. It has a few more parameters, but much better control over launching applications You can use it by the following syntax:
Launch2 ( exename , exepath ,parameters , pause)
exename is the name of the application you want to launch with the full path, ex: "c:\mame\mame.exe"
exepath is the path it's located ex:
"c:\mame\"
parameters is the parameters you're passing,(like the rom name)
pause is a flag , 0 or 1 to let emutron know whether or not it should wait until the program finishes before continuing.
To sum this up, with the Launch2 command, Emutron pauses all video and audio, and launches another application. It waits until the application (emulator) is done, the it un-pauses and continues onto the next line in the script.
Try this out, and if you're still having problems, email me your script, and tell me where your paths for mame, and your roms are, and I'll try to configure it for you.
-PacManFan