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 custom batchfiles config ?  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

MadEditor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:May 03, 2015, 10:09:44 am
Mamewah custom batchfiles config ?
« on: January 19, 2009, 05:04:25 pm »
Hi

It's been a long time since I configured my cab and I have some trouble now to configure Mamewah for another project.
I've gathered a bunch of old dos games, configured them with dosbox. As i could'nt find a frontend i liked for dosbox, i created a START.BAT file in each game folder. This BAT file call dosbox with the game.
But i want to use only relative PATH ! (This will be on an external HDD and so the drive letter can change)

So to call the game with mamewah i made a DOS.bat like this

CD DOS
cd %1
call start.bat


Now I'm trying to configure that in mamewah...

Here's what i've done ...

### DOS.ini (mamewah v1.63) ###

emulator_title                            OLD DOS GAMES

### List Generation Settings ###
rom_path                                  ..\..\GAMES\DOS
rom_extension                             
dat_file                                 
nms_file                                 
catver_ini_file                           
list_generation_method                    rom_folder

### Execution Settings ###
pre_emulator_app_commandlines             
emulator_commandline                      ..\..\DOS.BAT "[name]"{dosbox}{safelaunch}
post_emulator_app_commandlines           
general_app_commandlines                 

### Artwork Settings ###
artwork_image_paths                       ..\..\GAMES\DOSsnap
movie_preview_path                        ..\..\GAMES\DOSvideo
movie_artwork_no                          1
enable_fuzzy_search                       1
history_dat_file                         
history_dat_artwork_no                    1

### Screen-Saver Settings ###
enable_music_in_screensaver               1
select_random_game                        0
saver_type                                slideshow
movie_path                               
movie_fullscreen                          1
quit_delay                                0
saver_commandline                         

### Additional Settings ###
music_path                               
lcd_display_file_path                     
description_display                       [description]{scroll}

### Settings used by MAMEWAH ###
current_list                              0
       

the "..\..\" trick worked for everything but the command line !!! (artwork are ok, list generate correctly)

For the commandline a get this error :

20/01/2009 0:42:01 Error: 5 Invalid procedure call or argument in MsgExecCmd

It work perfectly if i put this commanline

emulator_commandline                      G:\GAMES\DOS.BAT "[name]"{nodosbox}{nosafelaunch}

But as I said before i want relative path ...

HELP PLEASE :-)
« Last Edit: January 19, 2009, 06:48:53 pm by MadEditor »

MadEditor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:May 03, 2015, 10:09:44 am
Re: Mamewah custom batchfiles config ?
« Reply #1 on: January 19, 2009, 05:18:16 pm »
For the same project, another question i can't find back...

I've named all my game' folders like this : "Name Of The Game (year)(developper name)"

Is there a way to use those information in a mamewah layout ? can it recover the year and developper name in the folder name ?

I know mamewah can filter the (year)(developper name) out in the game listing but i can't remember how ?

Thanx...

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah custom batchfiles config ?
« Reply #2 on: January 20, 2009, 06:53:44 am »
Best way to do this is to create shortcuts for each of your dos games...use custom config file(s) if neccessary. An example target:

"C:\Program Files\DOSBox-0.72\dosbox.exe" -noconsole -conf "C:\Program Files\DOSBox-0.72\xwing.conf"


Then point your Mamewah rom_path to a folder you have placed all these shortcuts in. Set the emulator_commandline to 'PC' and away you go. I have a few dos (& PC Windows) games setup this way in one Mamewah list.

MadEditor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:May 03, 2015, 10:09:44 am
Re: Mamewah custom batchfiles config ?
« Reply #3 on: January 21, 2009, 03:14:04 pm »
I'd like to avoid the LNK files solutions ... I'not ready creating 400+ shorcuts and .conf files...

I've already made those START.BAT i talked about... At that point the mamewah solution was not in my mind ...

Anyway I want to keep all this portable so there's always the relative path problem, in a lnk there's no way to use a relative path ...

I'm sure there's a solution in which i don't have to go making 400+ files again... .LNK or whatever :-) :-)

Does mamewah absolutely need the drive letter in the emulator commandline ?

I tried like this :

emulator_commandline                      \games\DOS.BAT "[name]"{dosbox}{safelaunch}

and i get the same error:

20/01/2009 0:42:01 Error: 5 Invalid procedure call or argument in MsgExecCmd
« Last Edit: January 21, 2009, 03:17:53 pm by MadEditor »

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah custom batchfiles config ?
« Reply #4 on: January 22, 2009, 05:00:59 am »
I'd like to avoid the LNK files solutions ... I'not ready creating 400+ shorcuts and .conf files...

OK I don't blame you!

Quote
Does mamewah absolutely need the drive letter in the emulator commandline ?

Yes it does. There is one way around it:

In mamewah.ini, set 'emulator_root_path = g:\games',
Then in your mame.ini file:

emulator_commandline                      [emurootpath]\DOS.BAT "[name]"{dosbox}{safelaunch}
rom_path                                  [emurootpath]\DOS
artwork_image_paths                       [emurootpath]\DOSsnap
movie_preview_path                        [emurootpath]\DOSvideo


etc..

This would still require you manually change the drive letter in emulator_root_path if neccessary, but only this one place would need to be changed.

HTH

MadEditor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:May 03, 2015, 10:09:44 am
Re: Mamewah custom batchfiles config ?
« Reply #5 on: January 22, 2009, 09:42:15 am »
Thanks ... I Guess i can live with it :-)

What about those info in the Folder name (year, dev), can mamewah recover them there ?

Otherwise i could easily create a .dat file or something equivalent but what structure should i make ?

And i Know Mamewah can strip off those info when displying the gamelist but i don't remember HOW :-)

MadEditor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:May 03, 2015, 10:09:44 am
Re: Mamewah custom batchfiles config ?
« Reply #6 on: February 01, 2009, 09:31:12 am »
I found the filtered list otpion i forgot about... so now i have my list Clean with only the Games Names ...

I still can't find any info as to how recover the year of the game and the Dev of the game...

Is there a way for mamewah to recover those info from the foder name or should i create a file listing those info?