Page 1 of 1

Nintendo DS

Posted: Thu May 12, 2016 3:45 pm
by davhuit
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.

Re: Nintendo DS

Posted: Fri May 13, 2016 8:30 am
by 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 ?

Re: Nintendo DS

Posted: Fri May 13, 2016 3:24 pm
by davhuit
[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.

Re: Nintendo DS

Posted: Fri May 13, 2016 5:45 pm
by Aeliss
Same command line here.
Try to delete the "desmume.ini" file, to check if it's not a configuration problem.

Re: Nintendo DS

Posted: Sat May 14, 2016 1:18 pm
by davhuit
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.

Re: Nintendo DS

Posted: Sat May 14, 2016 3:26 pm
by Aeliss
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.

Re: Nintendo DS

Posted: Sat May 14, 2016 7:35 pm
by davhuit
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.

Re: Nintendo DS

Posted: Sun May 15, 2016 8:40 am
by Aeliss
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 ?

Re: Nintendo DS

Posted: Tue May 17, 2016 4:16 pm
by davhuit
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.

Re: Nintendo DS

Posted: Wed May 18, 2016 4:19 pm
by Aeliss
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.