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: How to select Naomi Bios in Demul AHK script for Mala? [SOLVED VIA BATCH FILE]  (Read 6392 times)

0 Members and 1 Guest are viewing this topic.

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
I'm using an Auto Hot Key script to launch my Demul (ver .57) arcade games in Mala.

The main launch code I'm using with Auto Hot Key is:

Run, C:\Arcade\Demul\demul.exe -run=naomi -rom=crzytaxi

Some games (IE: Crazy Taxi) will run under either a Japanese or a USA Bios. I'd prefer the USA BIOS since I'm English speaking.

Is there a way to call for the USA Naomi Bios within the AHK script so that I don't have to do it manually for each game? Otherwise every game is auto selected to be Japanese. I'd just like to control the Bios to be USA when possible.
What is the command line code for this? Does it exist?
I tried something like this with AHK "-bios=epr-215577g" but it didn't work.

Any thoughts or suggestions here? I'm trying to make this completely automated from within the MALA interface. No manual exit to set up Bioses or anything else. So far I've got it all straight...except for switching to a USA BIOS when possible without having to go into Demul manually to do so. Any help?

Thanks


« Last Edit: May 28, 2012, 05:50:20 pm by Wade007 »
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 10:49:58 am
  • ...
Re: How to select Naomi Bios in Demul AHK script for Mala?
« Reply #1 on: May 28, 2012, 09:46:49 am »
Not that I know of, but Demul info is hard to come by for some odd reason.  ???

For Demul v.5.6 that I'm using on my cabs, I have a separate folder/copy of Demul set up for each bios that I want to use.


Not sure if it's the same or not, but looking at Demul.cfg for v.5.7 on my laptop, it has the lines:

naomiBiosAuto = true
naomiBios = 9

I would think you could change naomiBiosAuto to false and have a batch file swap in the correct bios, similar to what you did for the controls.
The bios number is 1 less than it's place in the drop-down list because the first one is naomiBios = 0.

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: How to select Naomi Bios in Demul AHK script for Mala?
« Reply #2 on: May 28, 2012, 02:56:55 pm »
BadMouth,
Thanks for your reply. You've been a solid source of info on this forum.
You've got a couple of good ideas here. I can see how separate Demul folders would work. I'll have to play around with the other idea a bit to see if it'll work. I'll post back if I have any success. Also...thanks for the PM. ;)
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: How to select Naomi Bios in Demul AHK script for Mala?
« Reply #3 on: May 28, 2012, 04:53:46 pm »
Just got the following response (cut & paste) back directly from one of the Demul developers regarding the ability to switch BIOS's in the command line :

"no, it's impossible to select bios using command line. but you can
disable bios auto select in naomi bioses menu and select one of the
most recent US bioses, like H or G... you'll be able to run any gamy
with it, except thoose which needed EXP or JP bioses only... as for
"taxi", it will run then with US bios for sure."

So...there we have it. Not possible right now. I guess Badmouth's multiple folder suggestion or batch file idea (see above post) are the best options right now.

« Last Edit: May 28, 2012, 04:59:31 pm by Wade007 »
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: How to select Naomi Bios in Demul AHK script for Mala?
« Reply #4 on: May 28, 2012, 05:49:05 pm »
It worked!!

I used the Batch file idea (Thanks BadMouth) to switch out (copy over) the Demul.ini file, which in turn defines which BIOS Demul will use for the currently loaded game.

I tested this over and over between Crazy Taxi (USA Bios) and Dynamite Baseball '99 (Japanese/Auto Bios). It worked like a champ!!

I set up one game manually for the USA BIOS (Crazy Taxi), played the game briefly, quit, and then re-saved the resulting Demul.ini file as "USABios_Demul.ini". Then set Demul up for "Naomi Auto Bios select" with a game I knew would only run with a Japanese or otherwise non-USA Bios (Dynamite Baseball '99). Copied and pasted that newly created Demul.ini file as "AutoBios_Demul.ini".

Then I created two batch files entitled "GetAutoBios.bat" and "GetUSAbios.bat" to switch out the saved Demul.ini files I had named "AutoBios_Demul.ini" and "USABios_Demul.ini"

These batch files are executed in the AHK file for each Demul game as:
Run, C:\Arcade\Demul\AHK scripts\GetUSABios.bat

Adjust your path in the code above accordingly.

Example code for USA Bios batch file:
@echo off
Copy /Y "C:\Arcade\Demul\Config\USABios_Demul.ini" "C:\Arcade\Demul\Demul.ini"

Keep the quotes shown in the code above. /Y will instantly answer the query "Are you Sure...?"

Anyway, I hope this can help someone else who has the same question or concern.

Now I just have to go through each and every Demul-Naomi game I already have set up for Mala and add the code to the AHK script accordingly.
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN