Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Mame broken - It's running the wrong command line


Recommended Posts

Posted

I couldn't figure out why mame wasn't launching via gameex (Screensaver or normal game play) it would just go black then come back to gameex. I decided to look for a log file, and found one. It says it's running:

cmd.exe /c c: c:\...path to my mame exe ROMFILE OTHERCMDLINES

I've verfied my config, there is NO c: c:\ in it. And the other parts of the log where it reads out where the mame dir and mame exe are located point to the correct locations.

any ideas how to fix this?

Posted
I couldn't figure out why mame wasn't launching via gameex (Screensaver or normal game play) it would just go black then come back to gameex. I decided to look for a log file, and found one. It says it's running:

cmd.exe /c c: c:\...path to my mame exe ROMFILE OTHERCMDLINES

I've verfied my config, there is NO c: c:\ in it. And the other parts of the log where it reads out where the mame dir and mame exe are located point to the correct locations.

any ideas how to fix this?

That is not the exactly what is run, its just for logging pruposes. You need to look at \data\runitgame.bat to see exactly what is run. Theres ovbiously some kind of error in your config.

Posted

Thanks for the quick reply, your support is awesome :)

Ok I found the bat. My pre action is running first which is another bat which runs an EXE (I was having issues with gameex formtting the command line) and for some reason the bat stops there. After executing the line it wont go on to the mame stuff and just exits out. Unsure why??

Posted
Thanks for the quick reply, your support is awesome :)

Ok I found the bat. My pre action is running first which is another bat which runs an EXE (I was having issues with gameex formtting the command line) and for some reason the bat stops there. After executing the line it wont go on to the mame stuff and just exits out. Unsure why??

paste the contents of the file and ill have a look.

Posted
paste the contents of the file and ill have a look.

No need. I just did a test. I made two BAT files, test1 and test2

test1.bat

ECHO this is test1 1st
test2.bat
ECHO this is test1 2nd

test2.bat

ECHO this is test2

Once test2.bat is called from test1.bat it stops. Must be limitation of the BAT file. Maybe .CMD would be better, it doesn't have the limitation. I'll just change my BAT over to VBS to fix my issue for now.

Posted

I'm not sure if this is the problem or not, but...

Gameex keeps an eye on the process it launches. When that process ends, control is returned to Gameex, so as soon as Bat1 ends, control returns to Gameex.

Posted

Yup, it has to do with what you want the batch file to do. The way you originally called it, you are saying run test2.bat and wait till it finishes before continuing. With HK's version using "start test2.bat", you are telling the batch file to run test2.bat and continue on without waiting. I suspect that's what you really want, so that should fix it!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...