Build Your Own Arcade Controls Forum
November 21, 2009, 05:05:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:  
 
   Home   Help Arcade Search Login Register  

 
Main Woodworking Reviews Software Monitor/Video
Audio/Jukebox/MP3 Project Announcements Artwork Consoles Buy/Sell/Trade
Arcade Miscellaneous Everything Else Politics n Religion Forum Discussion Wiki Discussion
DOS/WinCab PowerMAME SK Jukebox UncleTs Jukebox Project Arcade
Linux Restorations Pinball MaLa Frontend  
 
Recent posts | Arcade | Rules | Old Boards | Old Archives | Chatroom | Wiki | File Repository | RSS


Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: DWJuke question  (Read 344 times)
0 Members and 1 Guest are viewing this topic.
durandal_666
Trade Count: (0)
Jr. Member
**
Offline Offline

Posts: 3


View Profile WWW
« on: August 29, 2009, 07:57:47 AM »

Got a question about DWJuke.  Currently set it up on my WIP cab as a joystick operated jukebox  - i know its not written for that in mind but Im much happier with DWJuke than other jukeboxes (Im running a micro-atx, so its low powered.  DWJuke has just enough bling without making my CPU cry).

Playstimulator & radio mode.  I had playstimulator set to the same time as my screensaver, so when left unattended the screensaver kicks in and it plays random music.  Great for parties when you cant get to the cab for whatever reason (READ: Too much booze).  However the playstimulator (like a real jukebox) plays a song and resets the counter, which leaves a lull.  I tried radio mode, but radio mode starts playing as soon as the juke is loaded.

I would like to run it so that it drops into radio mode after xx seconds of non play.  Ive tried fiddling with the settings in both skin and jukebox.ini to no avail.

Is this possible with current settings?  I can easily bind BTN_RADIO to a button on the cab but its just not quite as polished as dropping in automatically after a specified idle time.
Logged

Foldup Portable MAME case project: http://durandal666.blogspot.com
Chris
Moderator
Trade Count: (+1)
Full Member
*****
Offline Offline

Posts: 4548


View Profile WWW
« Reply #1 on: November 01, 2009, 11:36:37 PM »

I apologize for the lack of answer to this question.  There is no way to do this with the current version of the jukebox.

There is a feature I just added tonight that may work for you, though, and that is user timers.  So you'd want the juke to go into radio mode after it's been idle for a time; that part is easy.  The question is when do you want radio mode to stop?  Once radio mode starts, of course, the jukebox is no longer idle...

So let's solve the first problem: How to trigger radio mode?  The timer would look like this:

[Timer1]

#Intervals are measured in hundredths of a second
# 30000 = 5 minute interval
Interval=30000

# Autostart defines whether the timer starts when the jukebox starts
AutoStart=No

# Repeat determines whether the timer automatically repeats, or repeats a set number of times
Repeat=No

# StartAction and StopAction are messages that will stop and start the timer
StartAction = MSG_IDLE
StopAction = -MSG_IDLE

# OnStart, OnRepeat, OnEnd and OnStop are the messages that are sent at the beginning and end of a timer run.
# OnStart triggers as soon as the timer is first started.  Will probably never be used.
# OnRepeat triggers when the timer reaches the end of its timer and restarts
# OnEnd triggers when the timer reaches the end of its timer and does not restart.
# OnStop triggers when the timer is stopped by its stop message.  Will probably never be used.

OnEnd=CMD_RADIO

So this would start a one-time timer when the jukebox goes idle.  If it goes the full 5 minutes, it will toggle radio mode (and radio mode must be off already if the jukebox is idle at all).  If the tyimer endfs because hte juke is no longer idle, it will not trigger radio mode.

So how do we STOP radio mode?  If we trigger off MSG_SELECTING, then radio mode would be cancelled as soon as anyone enters any selection digits or letters.  However, CMD_RADIO toggles the radio state, so radio mode will keep going on and off.  I need to add discrete commands such as CMD_RADIO_ON and CMD_RADIO_OFF to guarantee a particular state gets set; that is easy enough.  So assuming that is done, the second timer looks like this:

[Timer2]

#Intervals are measured in hundredths of a second
#0 indicates that the timer will go off immediately
Interval=0

# Autostart defines whether the timer starts when the jukebox starts
AutoStart=No

# Repeat determines whether the timer automatically repeats, or repeats a set number of times
Repeat=No

# StartAction and StopAction are messages that will stop and start the timer
StartAction = MSG_SELECTING

# OnStart, OnRepeat, OnEnd and OnStop are the messages that are sent at the beginning and end of a timer run.
# OnStart triggers as soon as the timer is first started.  Will probably never be used.
# OnRepeat triggers when the timer reaches the end of its timer and restarts
# OnEnd triggers when the timer reaches the end of its timer and does not restart.
# OnStop triggers when the timer is stopped by its stop message.  Will probably never be used.

OnEnd=CMD_RADIO_OFF

So there we have it.. with the addition of these new timers you would have a radio mode that goes on after 5 minutes of idle and goes off as soon as someone manually selects a song.

There is one catch... MSG_SELECTING isn't triggered if a song is clicked on directly.  I'll have to do something about thaat.

--Chris
Logged

--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com
Kevin Mullins
Trade Count: (+2)
Full Member
***
Offline Offline

Posts: 3812



View Profile WWW
« Reply #2 on: November 03, 2009, 12:46:26 AM »

Very cool Chris.....  Cheers!

I may have to actually install a newer version of DWJuke now into my jukebox. 
Logged

Not a technician . . . . just a DIY'er.
Chris
Moderator
Trade Count: (+1)
Full Member
*****
Offline Offline

Posts: 4548


View Profile WWW
« Reply #3 on: November 03, 2009, 01:01:34 AM »

I am trying to finalize it for a release over the next few days. 
Logged

--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 17 queries.