RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    I.K.E.M.E.N GO on Raspberry Pi 4 [Now with an Install Guide!]

    Scheduled Pinned Locked Moved Ideas and Development
    golangikemenikemen gomugentutorial
    153 Posts 20 Posters 54.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SuperFromNDS
      SuperFromND @Larkas
      last edited by

      @Larkas Apologies for taking forever to reply to this, my motivation for running stuff on RetroPie took a bit of a blow a while back. But I'll still try and help out!

      1. It absolutely could be done, but just not with how I currently have full-games set up to run. One day I want to rewrite it to simply set the working directory to one containing a fullgame's files and run Ikemen_GO there, thus allowing pretty much every fullgame to run regardless of file structures or anything.

      2. IKEMEN in general has kinda spotty gamepad support right now, but the Xinput pads should at least be supported, strange. I've used no less than three unique Xinput controllers with my Pi running IKEMEN and all of them work just fine, so I can't really hazard a guess as to what your issue might be. :<

      ▲▼▲▼▲▼▲▼▲▼
      IKEMEN Go
      SRB2Kart
      ▼▲▼▲▼▲▼▲▼▲

      1 Reply Last reply Reply Quote 0
      • SuperFromNDS
        SuperFromND
        last edited by

        Hello! It's been quite a while since I've touched RetroPie or this project, but I'm currently looking into making a complete refactor into how the scripts work in order to allow multiple full games!

        I found out that, since IKEMEN uses the working directory to start reading files in, you could just use a command like this:

        cd /home/pi/RetroPie/roms/mugen/fullgame && /opt/retropie/ports/ikemen-go/Ikemen_GO
        

        And IKEMEN will run itself in that fullgame directory, essentially allowing you to store multiple of them at once.

        My gameplan now is to create a dedicated "system" with dummy ROMs (similar to ScummVM's .svm files) that when launched, tell runcommand which corresponding directory to cd into and launch. For example, loading test.mgn would load a fullgame at the directory /home/pi/RetroPie/roms/mugen/test.

        Once that's done, I'll update the scripts and guide above, as well as make a post explaining how all of that works. :)

        ▲▼▲▼▲▼▲▼▲▼
        IKEMEN Go
        SRB2Kart
        ▼▲▼▲▼▲▼▲▼▲

        1 Reply Last reply Reply Quote 0
        • SuperFromNDS
          SuperFromND
          last edited by

          UPDATE TIME! I can now proudly say my scriptmodule finally supports multiple game installs!

          How it works!

          When you install IKEMEN Go now via scriptmodule, instead of a port, you will now have a dedicated M.U.G.E.N folder in your ROMs folder. This folder contains two types of files: folders (each of which represent a fullgame) and a dummy file named after the folders and with a .mgn extension. An example (the default IKEMEN Go content) will be created upon install.
          51493e08-38ff-4d9c-b36f-7c46fee30989-image.png

          Adding games

          If you're copying a native IKEMEN game such as Famicom Fighters, simply copy the game's content to a new folder.

          If your game is based on M.U.G.E.N, such as Hyper DBZ, you'll need to first copy the ikemen-go folder (or download a fresh copy of IKEMEN Go 0.98.2 and extract its contents to a new folder), then copy the game's contents on top of that (saying yes to any overwrites). Otherwise you might run into errors about missing files that IKEMEN needs, but MUGEN does not (namely external and the debug font, but likely other issues as well).

          Either way, in order to launch a game, create a .mgn file named after the folder of the game you want to launch. The contents of the .mgn file do not matter at all; just make sure the filename matches the corresponding folder exactly (case sensitivity and all).

          How to install!

          The install procedure should be largely the same as before: download the two scriptmodules, put them in the required place, open RetroPie-Setup and install ikemen-go. However, there's gonna be one more step you'll have to take: scriptmodules (best I can tell) do not have any way to specify file extensions directly, so you won't actually see a M.U.G.E.N system appear right away. To fix that:

          • Open either /etc/emulationstation/es_systems.cfg or, if it's present, /opt/retropie/configs/all/emulationstation/es_systems.cfg
          • Find the system entry for M.U.G.E.N; this is created automatically when you install IKEMEN Go.
          • Change the <extension> line to this:
              <extension>.mgn</extension>
          
          • Save and restart EmulationStation.
            If for whatever reason you don't have a M.U.G.E.N system in es_systems.cfg, you can also just copy-paste this entire block to add it manually:
            <system>
              <name>mugen</name>
              <fullname>M.U.G.E.N</fullname>
              <path>/home/pi/RetroPie/roms/mugen</path>
              <extension>.mgn</extension>
              <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mugen %ROM%</command>
              <platform>mugen</platform>
              <theme>mugen</theme>
            </system>
          
          

          A small note

          Because of the way this is set up, you'll have to reconfigure your controllers with every new game. However, you can speed up this process after you've set it up once; find a game where you've configured your controllers to your liking, open up game_name_here/config/save.json, and copy-paste the KeyConfig and JoystickConfig sections to the config/save.json of any future games. You might be able to just copy the entire save.json wholesale, but certain games might have issues if they modify certain other parameters like System or CommonConst.

          Theme stuff!

          Since IKEMEN Go now creates an entire new 'system', that means theme authors can now include support for it! The theme system folder/ID is just mugen, so feel free to add support!

          For those using lilbud's Switch theme, I've created this image that you can add to the art folder:
          mugen.jpg

          The guide at the top of this thread will be updated shortly. :)

          ▲▼▲▼▲▼▲▼▲▼
          IKEMEN Go
          SRB2Kart
          ▼▲▼▲▼▲▼▲▼▲

          R 1 Reply Last reply Reply Quote 1
          • G
            GIJoel
            last edited by

            "No config found for system mugen"

            ok, so I thought I followed along with everything, but when I go to launch "IKEMEN-GO" in MUGEN, I get "No config found for system mugen". I get the same message when trying to launch another game from there. What did I miss?

            R 1 Reply Last reply Reply Quote 1
            • R
              radiofreero @GIJoel
              last edited by

              @GIJoel same here... there's no Linux executable (.deb) in the folder either. My guess is that the latest update messed up big time.

              1 Reply Last reply Reply Quote 1
              • R
                radiofreero @SuperFromND
                last edited by radiofreero

                @SuperFromND where's the executable, and why is the default mgn file blank? Shouldn't the mgn file lead to the executable?

                1 Reply Last reply Reply Quote 1
                • SuperFromNDS
                  SuperFromND
                  last edited by

                  Ooookay, so sorry for the wait everyone! I guess I didn't test thoroughly enough, as it seems like the current install scripts don't actually create a new system correctly. Gonna have to look into it later. @_@

                  ▲▼▲▼▲▼▲▼▲▼
                  IKEMEN Go
                  SRB2Kart
                  ▼▲▼▲▼▲▼▲▼▲

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    Jesuszilla @SuperFromND
                    last edited by Jesuszilla

                    Hello everyone! Long time no update but I figured I'd let the community know in case this helps anyone else.

                    If anyone wants a working version of the setup script, I have scripts that will compile the latest nightly:
                    http://www.trinitymugen.net/~Creator/Jesuszilla/scriptmodules/ports/ikemen-go-nightly.sh
                    http://www.trinitymugen.net/~Creator/Jesuszilla/scriptmodules/supplementary/golang-1.21.sh

                    EDIT: 2024/08/16: Uploaded new scripts because we upped the Golang version due to a library update. Please download the new scripts from the URL's above!

                    Replace the scripts in the setup steps with these if you want a working version of the latest nightly installed separately. @SuperFromND should be working on new scripts in the future but this will allow you to install a separate nightly build for now (which includes 3D stages but beware: they don't perform well on Pi 4 as of the date of this writing; someone is working on improving the 3D rendering as I write this post).

                    A user in the I.K.E.M.E.N Discord confirmed these modified scripts work with Pi 5 as well and 3D stages do perform better there from what I've seen from footage (I have no Pi 5 to test myself but the confirmation is good).

                    EDIT: If replacing the steps in the tutorial above with my scripts, make sure to surround the URL's in quotes " " like so:

                    sudo wget "http://www.trinitymugen.net/~Creator/Jesuszilla/scriptmodules/ports/ikemen-go-nightly.sh"
                    

                    ~ Is a special character in shells so that could cause errors trying to use the command otherwise.

                    madaloneM 1 Reply Last reply Reply Quote 1
                    • madaloneM
                      madalone @Jesuszilla
                      last edited by madalone

                      @Jesuszilla thanks for sharing! i got ikemen-dev working except for the .mgn file bit.
                      i got mugen working on wine through emulatonstation some time ago but i wanted to try ikemen without duplicating data so i symlinked my existing mugen folders under my wine roms dir, created .mgn file for the corresponding symlinks so it looks like this:
                      Screenshot 2024-05-26 at 02.39.04.png
                      when i run a game off emulationstation ikemen will run with the default pak.
                      this is how the entry for ikemen in es_systems.cfg looks:

                      <system>
                          <name>mugen</name>
                          <fullname>M.U.G.E.N</fullname>
                          <path>/home/osmc/RetroPie/roms/mugen</path>
                          <extension>.mgn</extension>
                          <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _PORT_ mugen %ROM%</command>
                          <platform>pc</platform>
                          <theme>mugen</theme>
                        </system>
                      

                      my emulators.cfg looks like so:

                      ikemen-go-nightly = "XINIT:/opt/retropie/ports/ikemen-go-nightly/ikemen-go.sh %ROM%"
                      ikemen-go = "XINIT:/opt/retropie/ports/ikemen-go/ikemen-go.sh %ROM%"
                      default = "ikemen-go-nightly"
                      

                      a game in my gamelist.xml looks like so:

                      	<game>
                      		<path>./AvengersVsX-Men.mgn</path>
                      		<name>Avengers vs. X-Men</name>
                      		<desc>description</desc>
                      		<image>./media/images/AvengersVsX-Men.png</image>
                      		<video>./media/videos/AvengersVsX-Men.mp4</video>
                      		<releasedate>20130318</releasedate>
                      		<developer>infinitymugenteam</developer>
                      		<publisher>infinitymugenteam</publisher>
                      		<genre>Fighting</genre>
                      		<players>1-2</players>
                      		<playcount>23</playcount>
                      		<lastplayed>20240526T020120</lastplayed>
                      	</game>
                      

                      and this is my runcommand output (ikemen runs fine, just not Avengers vs. X-Men):

                      Parameters:                                                                                                                                                                                                    │
                      Executing: xinit /dev/shm/retropie_xinitrc -- vt1 -keeptty                                                                                                                                                     │
                                                                                                                                                                                                                                     │
                                                                                                                                                                                                                                     │
                      X.Org X Server 1.20.11                                                                                                                                                                                         │
                      X Protocol Version 11, Revision 0                                                                                                                                                                              │
                      Build Operating System: linux Debian                                                                                                                                                                           │
                      Current Operating System: Linux TV 5.15.92-1-osmc #1 SMP PREEMPT Tue Jul 25 00:03:42 UTC 2023 aarch64                                                                                                          │
                      Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=E4:5F:01:00:49:20 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  roo│
                      t=LABEL=root-rbp4 osmcdev=rbp4 rootfstype=ext4 rootwait quiet cgroup_memory=1 cgroup_enable=memory                                                                                                             │
                      Build Date: 22 January 2024  06:21:42AM                                                                                                                                                                        │
                      xorg-server 2:1.20.11-1+deb11u11 (https://www.debian.org/support)                                                                                                                                              │
                      Current version of pixman: 0.40.0                                                                                                                                                                              │
                              Before reporting problems, check http://wiki.x.org                                                                                                                                                     │
                              to make sure that you have the latest version.                                                                                                                                                         │
                      Markers: (--) probed, (**) from config file, (==) default setting,                                                                                                                                             │
                              (++) from command line, (!!) notice, (II) informational,                                                                                                                                               │
                              (WW) warning, (EE) error, (NI) not implemented, (??) unknown.                                                                                                                                          │
                      (==) Log file: "/home/osmc/.local/share/xorg/Xorg.0.log", Time: Sun May 26 02:51:10 2024                                                                                                                       │
                      (==) Using system config directory "/usr/share/X11/xorg.conf.d"                                                                                                                                                │
                      (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.                                                                                                                                               │
                      Set mode 1920x1080@60.00Hz on HDMI-1                                                                                                                                                                           │
                                                                                                                                                                                                                                     │
                      Executing (via xinit): /opt/retropie/ports/ikemen-go-nightly/ikemen-go.sh /home/osmc/RetroPie/roms/mugen/AvengersVsX-Men.mgn                                                                                   │
                                                                                                                                                                                                                                     │
                      xinit: connection to X server lost                                                                                                                                                                             │
                                                                                                                                                                                                                                     │
                      waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
                      

                      initially i copied the Avengers vs. X-Men folder into the ikemen roms folder but got the same result.

                      then i copied the linux binary and files into a windows mugen folder, and that did run but i'm hoping i can use emulationstation.
                      what am i doing wrong?

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        Jesuszilla @madalone
                        last edited by

                        @madalone Yeah unfortunately multiple game support had to be removed because it wasn't working properly, hence the need for these "reverted" scripts. I believe it's a future todo for @SuperFromND.

                        madaloneM 1 Reply Last reply Reply Quote 0
                        • madaloneM
                          madalone @Jesuszilla
                          last edited by

                          @Jesuszilla thanks for the reply, hadn't seen it until just now. i'll be patient then. been running mugen with wine :)

                          1 Reply Last reply Reply Quote 0
                          • R
                            retro777
                            last edited by retro777

                            <SOLVED>
                            Rpi5 can't install this script, anyone also it?
                            my step is simple. wget 2 command is successfully
                            please check my screenshotスクリーンショット 2024-11-10 173707.png

                            i wanna play on my mugen on rpi5 really
                            <SOLVED>

                            i am foolish, nightly build was complete install. i used old script.

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              retro777 @retro777
                              last edited by

                              nightlybuild can install on retropie
                              but can't run game...
                              ikemen-go need x-window?

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                retro777 @retro777
                                last edited by

                                @retro777
                                one things,, new report

                                my emulator.cfg is here

                                ikemen-go-nightly = "XINIT:/opt/retropie/supplementary/ikemen-go-nightly/ikemen-go.sh %ROM%"
                                ikemen-go = "XINIT:/opt/retropie/supplementary/ikemen-go/ikemen-go.sh %ROM%"
                                default = "ikemen-go-nightly"

                                and, run .mgn on emulation station,display this.

                                "No config found for system mugen"

                                Which place do i check and fix??

                                es_systems.cfg here

                                <system>
                                <name>mugen</name>
                                <fullname>M.U.G.E.N</fullname>
                                <path>/home/pi/RetroPie/roms/mugen</path>
                                <extension>.mgn</extension>
                                <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 PORT mugen %ROM%</command>
                                <platform>pc</platform>
                                <theme>mugen</theme>
                                </system>

                                1 Reply Last reply Reply Quote 0
                                • D
                                  digitaldesigner
                                  last edited by

                                  I know this is becoming an old post now but the instructions no longer appear to work.

                                  Using the original instructions leads to an error of

                                  "No config found for system mugen"

                                  Using the nightly provided by @Jesuszilla results in an error when opening of

                                  "Failed to create window: VersionUnavailable: GLX: Failed to create context: GLXBadFBConfig"

                                  Any updates on how to get this working?

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    digitaldesigner
                                    last edited by

                                    Ok update as I seem to have managed to get this working. The key for me was to follow all the instructions from @SuperFromND at the top of this post.

                                    Once complete, when i tried to load the game i got "No config found for system mugen" and I was sent back to emulation station.

                                    I eventually ended up editing my etc/emulationstation/es_systems.cfg file as per the below

                                    Replace

                                    <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS mugen %ROM%</command>

                                    with

                                    <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 PORT mugen %ROM%</command>

                                    Restart emulation station and to my amazement - it worked!

                                    1 Reply Last reply Reply Quote 1
                                    • First post
                                      Last post

                                    Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                    Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.