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: Nulldc help  (Read 10828 times)

0 Members and 1 Guest are viewing this topic.

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Nulldc help
« on: April 23, 2009, 11:12:04 pm »
I've got nulldc (1.0.3) working the way I want and I'm trying to get mala to work with it now.

I've searched and still haven't been able to get past one point. I can get mala to launch nulldc but I can't get it to launch and run a game from a list.

I've tried using the preset commands in mala but it's still a no go.

What should the command line show?
I've tried using loader.exe and it's still a no go.

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Nulldc help
« Reply #1 on: April 24, 2009, 12:12:34 am »
This is my command line for nulldc:
Code: [Select]
-config ImageReader:defaultImage="%path%\%rom%.%ext%"
Here are two critical parts of the [ImageReader] region of nulldc.cfg:

Code: [Select]
defaultImage=defualt.cdi
LoadDefaultImage=1

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Nulldc help
« Reply #2 on: April 24, 2009, 12:30:45 am »
I tried that and same thing, nulldc launches but doesn't launch the game:(

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Nulldc help
« Reply #3 on: April 24, 2009, 12:36:03 am »
1) Are you sure everything is to the letter. For example default is spelled defualt in nulldc.cfg.

2) Are you able to manually launch games from within nulldc (without the use of Mala)

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Nulldc help
« Reply #4 on: April 24, 2009, 01:08:02 am »
Yeah I saw the misspelling and thought that was weird but I left it the same.

I think I figured it out though. I needed to make this line true:
Emulator.AutoStart=1

In order for it to auto start and load the image I also had to specify the default image in nulldc.

Now I just have to figure out how to load and close joy2key at the same time.
« Last Edit: April 24, 2009, 01:36:57 am by ivwshane »

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Nulldc help
« Reply #5 on: April 24, 2009, 01:39:14 am »
I've been able to get joy2key to launch before nulldc opens but nulldc won't open until I close joy2key:(

I've seen one other thread with a similar issue but no fix.

Any ideas?

fallacy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 992
  • Last login:March 11, 2025, 01:20:39 am
Re: Nulldc help
« Reply #6 on: April 25, 2009, 11:34:30 pm »
if I remember right just type  %rom% in the mala command line.

Make sure within Nulldc the rom path is set to your rom folder.

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Nulldc help
« Reply #7 on: April 26, 2009, 01:30:13 am »
That works but how do I get joy2key to launch first and then nulldc?

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Nulldc help
« Reply #8 on: April 26, 2009, 05:57:14 pm »
I believe you're going to have to use a batch file as your executable instead of nulldc.exe.  The first part of the batch file will launch joy2key using the start command so that execution will continue in the batch file without having to quit joy2key.  Of course after launching joy2key the batch file will run nulldc.exe with the command line parameters that it had received from Mala.


ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Nulldc help
« Reply #9 on: April 27, 2009, 01:54:43 am »
Thanks.

And how would you close both after closing one?

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Nulldc help
« Reply #10 on: April 27, 2009, 11:53:04 am »
And how would you close both after closing one?

To close nulldc, I would just configure nulldc to use the button/key of your choice to exit.  For joy2key, I would insert a line in the batch file after the line that runs nulldc to kill the process.  A program such as taskkill should work.  This program comes with XP Pro, but I think you can download it also.  Usage is something like:  taskkill /IM joy2key.exe

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Nulldc help
« Reply #11 on: April 28, 2009, 04:30:07 am »
Ok I got everything to work (except for a hotkey to exit the emu but I haven't tried it yet).

I basically created two batch files and in order for everything to work correctly I chose the batch file as the executable as opposed to the actual emulator itself.

The first batch file starts joytokey/xpadder and then starts nulldc and then calls another batch file only after you exit nulldc:

Quote
@echo off
start Xpadder.exe
start /wait nullDC_1.0.3_mmu.exe
call end.bat

The second batch file simply kills the joytokey/xpadder program:

Quote
taskkill /f /im Xpadder.exe

Hopefully the hotkey to exit wont give me any issues.

Oh and I thought the command to open the game worked but it doesn't, it only opens the game that I set as default which means no matter what game I selected in my game list, nulldc will only open the default file I chose.

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Nulldc help
« Reply #12 on: April 28, 2009, 09:45:22 am »
Oh and I thought the command to open the game worked but it doesn't, it only opens the game that I set as default which means no matter what game I selected in my game list, nulldc will only open the default file I chose.

In the batch file, you need to add some parameters to the end of the line that executes nulldc.  If your Mala command line for nulldc is like mine:
Code: [Select]
-config ImageReader:defaultImage="%path%\%rom%.%ext%"
You'll have to change the nulldc line in your bat file to:
Code: [Select]
start /wait nullDC_1.0.3_mmu.exe %1 %2=%3

In the way of an explanation, in this particular case:
%1 equals -config
%2 equals ImageReader:defaultImage
%3 equals "%path%\%rom%.%ext%"

We have to put the equal sign back in because the batch file strips it out for some reason.  Even though I don't use joy2key, I tested the %1 %2=%3 to make sure it started up the correct game that Mala passes to the batch file.

Hope this helps...

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Nulldc help
« Reply #13 on: April 29, 2009, 08:17:49 pm »
Had any luck?

ivwshane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 23, 2025, 06:30:06 pm
    • My first mame cab! (WIP)
Re: Nulldc help
« Reply #14 on: April 30, 2009, 02:00:37 am »
No:(

When I tried the above it would launch nulldc and then quickly close.