Nintendo DS

Get answers to questions about using mGalaxy.
Post Reply
davhuit
Full Member
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 am

Hello.

I tried to install the Nintendo DS on Mgalaxy and I have two problems :

If I use the mGalaxy_Script.exe from the website, the emulator doesn't seem to load. There's the loading circle on Windows 7 which seems to run forever.

If I don't use the mGalaxy_Script file, then the emulator seems to load up fine but I just hear the sound, the window is not displayed.

The emulator version is the last, I guess : "DeSmuME_0.9.11_x64"

Thanks a lot.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

I haven't probleme on my system with same version.
It works on standalone mode ?
Without the script, the emul works but it is still in windowed mode mode.

Wich one script are you using ?
davhuit
Full Member
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 am

[quote="Aeliss"]
I haven't probleme on my system with same version.
It works on standalone mode ?
Without the script, the emul works but it is still in windowed mode mode.

Wich one script are you using ?
[/quote]

Yeah, it works fine outside Mgalaxy.

I use the official script found here : http://www.mgalaxy.com/forum/index.php? ... ew;down=67

And use the official command line in the systems.xml file :

Code: Select all

      <Cmd id="0" name="DeSmuME [Script]" value=""%path\%file%ext"" />
What I find weird is that it should work without the script, as the script is just here to force the fullscreen and add a combo key to close it, but it's not.

As I said, without the script, I heard the sound of the emu but the emu window is never displayed.

Can you check and post the command line in your own systems.xml file to see if it's the same?

If it was just a problem of script, I could have tried to recompile it myself but as long as it won't work without the script, it's pretty useless.
Last edited by davhuit on Fri May 13, 2016 3:27 pm, edited 1 time in total.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Same command line here.
Try to delete the "desmume.ini" file, to check if it's not a configuration problem.
davhuit
Full Member
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 am

No, it's not, already tried (and if I remember right, I think I got the same problem with demul a while ago, but it was working fine with a script) and it still run in the background, without displaying the emulator window.

And the emulator works fine outside mGalaxy, I even check the emu command line and "emulator.exe nameoftherom.nds" works fine outside of mGalaxy.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Ok, so I can't explain why, but I think the emul can't be active when you use it with mGalaxy.

Without script, you can listen to the sound, but the emul is hidden
With script, it's locked because it wait for the emul is active to continue >> WinWaitActive("DeSmuME") .

Have you try 'Alt+tab' to make the emul active ?

When I have this problem I m using this code

Code: Select all

;functions
Func Terminate()
    While ProcessExists ( $PID )
	  ProcessClose ( $PID )
    WEnd
    Exit 0
 EndFunc
 
 Func _WinWaitActivePID($iPid)
    While 1
        Local $list = WinList()
        For $i = 1 To $list[0][0]
            If $list[$i][0] <> "" And IsVisible($list[$i][1]) Then
                If WinGetProcess($list[$i][1]) = $iPid AND WinActive($list[$i][1]) Then Return $list[$i][0]
            EndIf
        Next
    WEnd
EndFunc

Func IsVisible($handle)
    If BitAND(WinGetState($handle), 2) Then
        Return 1
    Else
        Return 0
    EndIf

EndFunc
and use

Code: Select all

while _WinWaitActivePID($PID)
   sleep(500)
wend
just before WinWaitActive("DeSmuME") .

But after reading it, this code is just waiting too, it don't force the focus, IDK why it works.
Last edited by Aeliss on Sat May 14, 2016 3:28 pm, edited 1 time in total.
davhuit
Full Member
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 am

When I say "hidden", it really mean "hidden". Even with a ALT-TAB, you can't find any window of the emulator (you can only hear the sound) and you have to kill the process manually.

But I'll try your script anyway.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Yeah I know, but I have realy no more ideas, if it works in command line, I can't understand why it not work with mGalaxy. I don't see how mGalaxy can block it.
Perhaps I haven't the same version than you, but I can't reproduce the bug in my system with same emul version.

Have you another mGalaxy version to test ?
davhuit
Full Member
Full Member
Posts: 173
Joined: Mon Aug 12, 2013 3:06 am

I don't have the last version of mGalaxy but I don't think it would change something.

I'll try with another version of the emulator, for example, a 32-bits one and I will see what happens.

If it doesn't work, I'll just remove this system, not a big deal as I have a real 3DS.
Last edited by davhuit on Tue Jun 07, 2016 4:01 pm, edited 1 time in total.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Yep but I prefer play on emul, more option (like the save state) and I can use better display.
Another point is if you have the bug, someone else can have it too, even on other emul, it mean there is something missing on mGalaxy.
Post Reply