Page 1 of 1

Command Box when loading game

Posted: Thu Feb 09, 2023 1:01 am
by sharpy2010
Hi everyone!

When I press enter in mGalaxy to select a game, a command box appears for about half a second, then the game starts within Mame.

I wonder if it would be possible some way to hide that command box from showing up whilst the game loads.

Thanks!

Chris.

Re: Command Box when loading game

Posted: Thu Feb 09, 2023 8:13 pm
by jmd
Maybe you could try this:
Open mGalaxy/Data/Definition/Emulators.xml with a text editor
Do a search on "MAME" untill you find this line:

Code: Select all

<Emulator name="MAME" hidden="false">
then, replace "false" by "true"
Save

From what I understand, this parameter is supposed to set the visibility of the command window

Start mGalaxy and tell us if it's working the way you'd like ;)

Re: Command Box when loading game

Posted: Fri Feb 10, 2023 1:05 am
by sharpy2010
Hi JMD, thanks for taking the time to reply!

This is frustrating.... I made the change, and it did EXACTLY what I wanted it to, it hid the command window.

The only problem is that when I press Escape to come out of the game that loads, and back into mGalaxy, Mame crashes and does not exit.

I'll show you what I changed, and maybe you can let me know if something is wrong:

<Emulator name="MAME" hidden="true">
<Systems>
<System name="Arcade" option="" script="false" cmd="-rompath "%path" %file%ext -volume -%volume(32,0) -skip_gameinfo -nowindow -joystick" extensions="zip|7z|chd"/>
<System name="Capcom CPS-1" option="" script="false" cmd="-rompath "%path" %file%ext -volume -%volume(32,0) -skip_gameinfo -nowindow -joystick" extensions="zip|7z|chd"/>
<System name="Capcom CPS-2" option="" script="false" cmd="-rompath "%path" %file%ext -volume -%volume(32,0) -skip_gameinfo -nowindow -joystick" extensions="zip|7z|chd"/>
<System name="Capcom CPS-3" option="" script="false" cmd="-rompath "%path" %file%ext -volume -%volume(32,0) -skip_gameinfo -nowindow -joystick" extensions="zip|7z|chd"/>
</Systems>
<Requirement>None</Requirement>
</Emulator>

Re: Command Box when loading game

Posted: Fri Feb 10, 2023 1:29 am
by sharpy2010
I've now done some experimentantion, and the command box that opens up is Windows Powershell. Some messing about with the configuration settings of Poweshell means that the box now loads in a maximised window and looks a lot better (but not quite perfect). It only displays for a split second anyway, but I wanted it to not happen at all! I've tried having powershell disappear when it loses focus, but that doesn't work (emulator still crashes on exit) and doesn't look great anyway.

So, progress is being made! I'll update if I find a method to fully hide / remove the command box!

Re: Command Box when loading game

Posted: Fri Feb 10, 2023 9:58 pm
by mgalaxy
Unfortunately this is not possible with MAME at the moment.
Is it possible for you to use RetroArch with a MAME core ?...because then you won't have this problem!

Re: Command Box when loading game

Posted: Sat Feb 11, 2023 2:53 am
by sharpy2010
[quote="mgalaxy"]
Unfortunately this is not possible with MAME at the moment.
Is it possible for you to use RetroArch with a MAME core ?...because then you won't have this problem!
[/quote]

Ah thats a shame. I found that setting the window to fullscreen makes a much more pleasant loading screen than the windowed command box. Thats my workaround at the moment.

mGalaxy is great, really happy with it so far. It's running on my own PC, but going to make a standalone cabinet soon!

Re: Command Box when loading game

Posted: Sat Feb 11, 2023 11:15 am
by mgalaxy
I might have a solution for you ;)

Enclosed you'll find 2 files.
  • Copy (and overwrite) 'Emulators.xml' into: 'mGalaxy > Data > Definition' folder
  • Copy 'MAME.au3' into: 'mGalaxy > Data > Scripts' folder
Report here if it's working like it should ;)

Re: Command Box when loading game

Posted: Mon Feb 13, 2023 12:57 pm
by sharpy2010
Hi mGalaxy!

YES!!!!

That is working perfectly and is exactly what I wanted!

Thank you very much, I really appreciate it  :D :D :D

[quote="mgalaxy"]
I might have a solution for you ;)

Enclosed you'll find 2 files.
  • Copy (and overwrite) 'Emulators.xml' into: 'mGalaxy > Data > Definition' folder
  • Copy 'MAME.au3' into: 'mGalaxy > Data > Scripts' folder
Report here if it's working like it should ;)
[/quote]