Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: MAMEWAH + CPViewer - screensaver prob.  (Read 1700 times)

0 Members and 1 Guest are viewing this topic.

tore-

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:June 11, 2014, 06:18:33 am
  • I want to build my own arcade controls!
MAMEWAH + CPViewer - screensaver prob.
« on: June 04, 2005, 11:48:14 am »
Hello.

When using MAMEWAH and CPViewer together and using screensaver-type run_random_game_then_quit(?), I have some problems with the screensaver.

It tries to load the game, but insteed it launches CPViewer, if i press the assigned key for exit in CPviewer, the game loads.

Here are my confs:
Code: [Select]
mamewah.ini

### mamewah.ini (mamewah v1.61) ###

### (Global) Screen-Saver Options ###
delay                       30
slide_duration              3

### Audio Options ###
enable_sounds               1
sound_volume                100
music_path                  E:/Music
enable_music                0
music_volume                100

### Movie Options ###
intro_movie_file           
exit_movie_file             
keep_movie_preview_aspect   game_aspect
delay_before_movie_preview  2
music_movie_mix             mute_movies
movie_volume                100

### Misc Options ###
layout                      layout
ctrlr                       
wrap_list                   0
remember_current_game       1
keep_image_aspect           1
refresh_images              0
correct_orientations        horizontal
safe_mode                   0
show_cursor                 0
keyboard_led_states         -,-,-
winipac_file               
mamewah_ipc_file           
lcd_com_port                1
lcd_settings               
exit_action                 choice
app_to_run_on_exit         

### Settings used by MAMEWAH ###
current_emulator            mame
locked                      0
last_ipc                   




mame.ini:
### mame.ini (mamewah v1.61) ###

emulator_title                            M.A.M.E.

### List Generation Settings ###
rom_path                                  E:\Arcade\MAME\roms
rom_extension                             zip
dat_file                                 
nms_file                                 
catver_ini_file                           E:\Arcade\MAME\catver.ini
list_generation_method                    rom_folder_vs_listxml

### Execution Settings ###
emulator_executable                       E:\Arcade\MAME\mame.exe
commandline_format                        [name] -skip_disclaimer -skip_gameinfo -high_priority -sl -effect scan75 -resolution 800x600 {autodosbox}{nosafelaunch}
alt_commandline_format_1                  [name]{autodosbox}{nosafelaunch}
alt_commandline_format_2                  [name]{autodosbox}{nosafelaunch}
game_specific_config_path                 

### Artwork Locations ###
artwork_1_image_path                      E:\Arcade\MAME\snap
artwork_2_image_path                      E:\Arcade\MAME\cpanel
artwork_3_image_path                      E:\Arcade\MAME\marquees
artwork_4_image_path                     
artwork_5_image_path                     
artwork_6_image_path                     
artwork_7_image_path                     
artwork_8_image_path                     
artwork_9_image_path                     
artwork_10_image_path                     
movie_preview_path                       
movie_artwork_no                          1

### Screen-Saver Settings ###
enable_music_in_screensaver               1
saver_type                                run_random_game_and_quit
movie_path                               
movie_fullscreen                          1
quit_delay                                180
wrapper_executable                       
wrapper_commandline_format                [name]{nodosbox}{nosafelaunch}
scr_file                                 

### External Application Settings ###
ipc_file_or_path                         
app_1_executable                          E:\Arcade\CPViewer\cpviewer.exe
app_1_commandline_format                  [name] -clone [cloneof]
app_2_executable                         
app_2_commandline_format                 
app_3_executable                         
app_3_commandline_format                 
auto_launch_apps                          1

### Additional Settings ###
music_path                               
lcd_display_file_path                     
lcd_fe_text                               

### Settings used by MAMEWAH ###
current_list                              11


Any workaround for this?

Edit: Also, if you play a game while the screensaver is active, it will quit after the given seconds in the ini file, tips?
« Last Edit: June 04, 2005, 01:13:43 pm by tore- »

sc1103

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 11, 2020, 08:37:35 pm
  • ......
Re: MAMEWAH + CPViewer - screensaver prob.
« Reply #1 on: June 04, 2005, 02:25:36 pm »
Just a guess, it may be b/c of the "auto launch apps" equaling 1 but Im not sure

tore-

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:June 11, 2014, 06:18:33 am
  • I want to build my own arcade controls!
Re: MAMEWAH + CPViewer - screensaver prob.
« Reply #2 on: June 04, 2005, 08:41:07 pm »
Hm thats quite right, but then again it would be extremly handy if I could autolaunch CPV. when starting a game, but not when the screensaver is activated.

But I would tip that there is no workaround for that.

sc1103

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 11, 2020, 08:37:35 pm
  • ......
Re: MAMEWAH + CPViewer - screensaver prob.
« Reply #3 on: June 04, 2005, 11:36:18 pm »
Wait for screaming's post, he knows a lot more about MAMEWAH than I do... :P

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: MAMEWAH + CPViewer - screensaver prob.
« Reply #4 on: June 06, 2005, 08:25:11 am »
When using MAMEWAH and CPViewer together and using screensaver-type run_random_game_then_quit(?), I have some problems with the screensaver.

It tries to load the game, but insteed it launches CPViewer, if i press the assigned key for exit in CPviewer, the game loads.

Here are my confs:

snip

Any workaround for this?

  This is probably a minor oversight on Minwah's part, but I haven't tested it on my cab to be sure.

  Either way, you should be able to work around it:

1) Make a batch file that launches CPViewer, then MAME, like

Code: [Select]
IF [%1]==[ss] goto SS
E:\Arcade\CPViewer\cpviewer.exe %1 -clone %2
E:\Arcade\MAME\mame.exe %1 -skip_disclaimer -skip_gameinfo -high_priority -sl -effect scan75 -resolution 800x600
goto DONE

:SS
E:\Arcade\MAME\mame.exe %2 -skip_disclaimer -skip_gameinfo -high_priority -sl -effect scan75 -resolution 800x600

:DONE

2) Set your commandline_format to

Code: [Select]
ss [name] {nodosbox}{nosafelaunch}
3) Set your alt_commandline_format_1 to

Code: [Select]
[name] [cloneof]{nodosbox}{nosafelaunch}
4) In your controller file in MAMEWAH, set the LAUNCH_GAME_WITH_OPTIONS1 key to the same thing as LAUNCH_GAME, and delete whatever's there for LAUNCH_GAME.

  Basically, you're working off the premise that MAMEWAH will launch the game using the default commandline_format, while you can control how you launch the game with the other alt_commandline_format_1/2, and your batch file will differentiate the two.

  Again, I haven't tried it (just got back from vaca) so YMMV.  If you have any problems, I'll check it out when I get home from work tonight.

Edit: Also, if you play a game while the screensaver is active, it will quit after the given seconds in the ini file, tips?

  Hmm. Again, this is probably a minor oversight on Minwah's part but I haven't checked it out on my cab to be sure. I can't think of a good simple workaround for this, aside from changeing your saver_type to run_random_game_using_wrapper and using Howard Casto's emusaver wrapper for your screensaver.

  I'd like to use this option as my screensaver, so I'm curious if this is a "bug".  I'll check it out when I get home tonight.

-sab

tore-

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 60
  • Last login:June 11, 2014, 06:18:33 am
  • I want to build my own arcade controls!
Re: MAMEWAH + CPViewer - screensaver prob.
« Reply #5 on: June 07, 2005, 06:09:39 pm »
Did what you said, i didnt make it to work:
Quote
08.06.2005 00:06:49 MAMEWAH launched
08.06.2005 00:06:49 Cursor scheme: 3D-White, Arrow: C:\WINDOWS\Cursors\3dwarro.cur, Wait: C:\WINDOWS\Cursors\hourgla3.ani, AppStarting: C:\WINDOWS\Cursors\appstar3.ani
08.06.2005 00:06:49 Desktop colour: 10841658
08.06.2005 00:06:49 Wallpaper filename:
08.06.2005 00:06:49 Display mode: 1280x1024 @ 60Hz, 32 bit colour
08.06.2005 00:06:49 Decimal symbol: ','
08.06.2005 00:06:49 Games list read: mame-11.lst
08.06.2005 00:06:54 Layout selected: E:\Arcade\MAME\layouts\layout\mame.lay
08.06.2005 00:06:59 Ctrlr file selected: E:\Arcade\MAME\ctrlr\default.ini
08.06.2005 00:07:29 Bad image file: E:\Arcade\MAME\layouts\mamewah-art.png
08.06.2005 00:07:30 Commandline run: E:\Arcade\MAME\mame.exe Start ASURABLD  {flags=9}
08.06.2005 00:07:41 Bad image file: E:\Arcade\MAME\layouts\mamewah-art.png
08.06.2005 00:07:55 MAMEWAH quit

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: MAMEWAH + CPViewer - screensaver prob.
« Reply #6 on: June 07, 2005, 06:19:23 pm »
08.06.2005 00:07:30 Commandline run: E:\Arcade\MAME\mame.exe Start ASURABLD  {flags=9}

The 'Start' here is causing the problem I think...not sure where that is coming from tho.

I think screaming is probably right (ie an oversight on my part)...could you please let me know for sure if you have chance to test it screaming?