Some coding help please

Get answers to questions about using mGalaxy.
Post Reply
Disney Rob
Elite Member
Elite Member
Posts: 178
Joined: Fri Jan 25, 2019 4:35 pm

I am trying to add the Wii U to my mGalaxy
However every time  I try to run runway, it crashes
Here is the code I am adding.
The paths are correct.
What am I doing wrong here.
</System>
      <System type="Console">
      <Name ss="Nintendo Wii U" em="[3]" tgdb="[4]" gb="[5]">"Nintendo Wii U"</Name>
      <Emu selected="Cemu">
          <Cmd hidden="false" name="Cemu" value="F:\Emulator\Wiiu\Cemu\Cemu"F:\Emulator\Wiiu\Cemu\Roms"/>
      </Emu>
      <Extensions>rpx</Extensions>
    </System>

Thanks for the help
User avatar
mgalaxy
Administrator
Administrator
Posts: 1195
Joined: Tue Dec 05, 2006 7:46 pm

  1. First of, you want to create a new system definition, so that implies that you're editing the 'BaseSystems.xml' file, correct?
  2. I suppose that you wrote </System> at first line to indicate that you are starting just below the previous system!? Otherwise, this is not correct.
    The block of code should begin by <Systems> and end by </System>
  3. The ID's were wrong...but that's a detail and shouldn't make mGalaxy bug.
    Anyway, the good one are: ss="18" em="Nintendo_Wii_U" tgdb="" gb=""
  4. The Cmd line is wrong. It should not contain the full path to you emulator but arguments and variable holders for path,file, extension.
    The extensions list (coma separated) should be part of the <Cmd> tag and extension type should be preceded by a dot:
    <Cmd hidden="false" name="Cemu" value="-f -g "%path\%file%ext"" extensions=".rpx"/>
The whole thing should look like that:

Code: Select all

<System type="Console">
    <Name ss="18" em="Nintendo_Wii_U" tgdb="" gb="">Nintendo Wii U</Name>
    <Emu selected="Cemu">
        <Cmd hidden="false" name="Cemu" value="-f -g "%path\%file%ext"" extensions=".rpx,.wud,.wux"/>
    </Emu>
</System>
Please report if everything is working fine so that I can add it to the officila system list!
Last edited by mgalaxy on Wed Aug 19, 2020 5:56 am, edited 1 time in total.
Disney Rob
Elite Member
Elite Member
Posts: 178
Joined: Fri Jan 25, 2019 4:35 pm

Thank you for the help, but it still crashes for some unknown reason.
I cut and pasted your code.
It's fine I can always just load Cemu from the desktop
User avatar
mgalaxy
Administrator
Administrator
Posts: 1195
Joined: Tue Dec 05, 2006 7:46 pm

Oops, sorry I forgot to place a data between quotation. The original post is edited!
Just before, I have to add that this emu will need a script to quit, so the emu name needs to be adapted. From 'Cemu' to 'Cemu [Script]'
The code is now:

Code: Select all

<System type="Console">
    <Name ss="18" em="Nintendo_Wii_U" tgdb="" gb="">Nintendo Wii U</Name>
    <Emu selected="Cemu [Script]">
        <Cmd hidden="false" name="Cemu [Script]" value="-f -g "%path\%file%ext"" extensions=".rpx,.wud,.wux"/>
    </Emu>
</System>
As for the script, take the first one in 'Script' folder (1964, 1964 UltraFast [Script].au3), copy it then rename it to: Cemu [Script]

One last thing, an icon for the system! In Data > BaseSystems create a folder called 'Nintendo Wii U' and drop the joined icon.png file into it!
Image

Tested working!
Attachments

[The extension has been deactivated and can no longer be displayed.]

icon.png
Last edited by mgalaxy on Wed Aug 19, 2020 7:07 am, edited 1 time in total.
Disney Rob
Elite Member
Elite Member
Posts: 178
Joined: Fri Jan 25, 2019 4:35 pm

Thank you again. I did the icon thing . It was the first thing i did. It was the only thing I was sure I knew how to do.
Just finished it up, and it works like a dream.
Again thank you for the help.

Last edited by Disney Rob on Wed Aug 19, 2020 6:29 pm, edited 1 time in total.
Post Reply