This frontend rocks!
2 questions
Thanks for one of the best frontends out there!!!!! It isn't necessarily easy to configure, but I've figured out quite alot on my own, and I actually enjoy tinkering with this one.
wee beastie
Hey wee beastie,
Let see,
1- Can you cut and paste your daphne.cfg file and daphne.lst file into this thread? I'm having some difficulty with these, and I think taking a look at someone else's might help.
I don't have a script set up for Daphne yet, although I can't imagine that it's too hard. Post what you've got, and I'll see if I can configure it for you.
2- I'm not sure how to get the screensaver running. I looked at the docs, but it only tells about the event for the screensaver. I put an action underneath the "EVENT SCREENSAVER" line that would play an avi movie, but it doesn't seem to launch after the 60 seconds appointed in the etconfig.cfg file.
Do you have the latest 2.10 version of EmuTron? In the docs, I outline how to use the screen saver. Basically, after the screensaverdelay time has elapsed, the program calls the SCREENSAVER_START event (If you have one).
In this event, you can load up your movie file just like you would a bitmap.
Then EmuTron calls SCREENSAVER_DISPLAY instead of DISPLAY to draw the screen for every frame.
After the user presses a button /mouse/joystick, the program calls SCREENSAVER_END, so you can clean up / reload bitmaps etc..
Then EmuTron goes back to the normal DISPLAY event
So, to play a movie in the screen saver:
I would use the background bitmap (because it's already there)
Step 1 - Load a movie into a bitmap. The movie will start to play automatically. It will play once.
To get it to loop, use the LOOP flag in the animatebitmap, this will make the same movie play over and over.
The SCREENSAVER_DISPLAY function below will draw the movie to the screen.
After the user presses a key, the SCREENSAVER_END event will be called automatically by the program, and you can reload your normal background bitmap into there. (Personally, I have the MameArcade.avi file playing as a background all the time)
EVENT SCREENSAVER_START
ACTIONS
LoadBitmap(backgroundbitmap,Appdir + "movies\mamearcade.avi")
AnimateBitmap(backgroundbitmap,LOOP,"none")
END_ACTIONS
END_EVENT
EVENT SCREENSAVER_DISPLAY
ACTIONS
DisplayBitmapStretchFit(backgroundbitmap,backgroundrect)
END_ACTIONS
END_EVENT
EVENT SCREENSAVER_END
ACTIONS
LoadBitmap(backgroundbitmap,Appdir + "images\backgrnd.jpg")
END_ACTIONS
END_EVENT
Some more things you can do:
Instead of looping one movie, load a list of movies into a list variable, and use the callback function in AnimateBitmap to notify an event to load the next movie when it's done playing.
Here's the code to do it below:
Let's say you have a movies.lst file which contains:
mamearcade.avi
movie2.avi
movie3.avi
movie4.avi
//declare a list for the movies
List movielist
// this event will load a movie, set it up to play once,
// and when the movie is done playing, it will call
// itself to load another movie from the list
EVENT LoadNextMovie
ACTIONS
LoadBitmap(backgroundbitmap,Appdir + "movies\" +CurListItem(movielist,0))
AnimateBitmap(backgroundbitmap,SINGLE,"LoadNextMovie")
NextInList(movielist,1)
END_ACTIONS
END_EVENT
EVENT SCREENSAVER_START
ACTIONS
LoadList (movielist,AppDir + "lists\movies.lst",1)
FireEvent("LoadNextMovie")
END_ACTIONS
END_EVENT
EVENT SCREENSAVER_DISPLAY
ACTIONS
DisplayBitmapStretchFit(backgroundbitmap,backgroundrect)
END_ACTIONS
END_EVENT
EVENT SCREENSAVER_END
ACTIONS
// restore whatever background bitmap you were using before
LoadBitmap(backgroundbitmap,Appdir + "images\backgrnd.jpg")
END_ACTIONS
END_EVENT
I hope this all helps, Post what you've got for Daphne, and I'll see if I can help you.
-PacManFan