Author Topic: Some coding help please  (Read 192 times)

Disney Rob

  • Jr. Member
  • **
  • Posts: 70
Re: Some coding help please
« Reply #5 on: August 19, 2020, 07:16:41 AM »
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 Edit: August 19, 2020, 01:29:22 PM by Disney Rob »

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1072
    • Email
Re: Some coding help please
« Reply #4 on: August 19, 2020, 12:11:27 AM »
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: XML
  1. <System type="Console">
  2.     <Name ss="18" em="Nintendo_Wii_U" tgdb="" gb="">Nintendo Wii U</Name>
  3.     <Emu selected="Cemu [Script]">
  4.         <Cmd hidden="false" name="Cemu [Script]" value="-f -g &quot;%path\%file%ext&quot;" extensions=".rpx,.wud,.wux"/>
  5.     </Emu>
  6. </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!


Tested working!
« Last Edit: August 19, 2020, 02:07:29 AM by mgalaxy »

Disney Rob

  • Jr. Member
  • **
  • Posts: 70
Re: Some coding help please
« Reply #3 on: August 18, 2020, 09:58:36 AM »
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

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1072
    • Email
Re: Some coding help please
« Reply #2 on: August 18, 2020, 01:26:02 AM »
  • First of, you want to create a new system definition, so that implies that you're editing the 'BaseSystems.xml' file, correct?
  • 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>
  • 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=""
  • 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 &quot;%path\%file%ext&quot;" extensions=".rpx"/>

The whole thing should look like that:

Code: XML
  1. <System type="Console">
  2.     <Name ss="18" em="Nintendo_Wii_U" tgdb="" gb="">Nintendo Wii U</Name>
  3.     <Emu selected="Cemu">
  4.         <Cmd hidden="false" name="Cemu" value="-f -g &quot;%path\%file%ext&quot;" extensions=".rpx,.wud,.wux"/>
  5.     </Emu>
  6. </System>

Please report if everything is working fine so that I can add it to the officila system list!
« Last Edit: August 19, 2020, 12:56:46 AM by mgalaxy »

Disney Rob

  • Jr. Member
  • **
  • Posts: 70
Some coding help please
« Reply #1 on: August 17, 2020, 11:59:12 AM »
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