• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Combine Mame Roms

Scheduled Pinned Locked Moved Help and Support
mame romromcombined roms
13 Posts 4 Posters 1.3k 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.
  • F
    Fredthedoggy
    last edited by Fredthedoggy 27 Aug 2019, 23:37

    If it helps:
    I have a raspberry Pi 0
    32 gb storage
    External Buttons/Joystick, that I could program

    I have 2 mame roms (pac-man & donkey kong).
    I was wondering If anyone knew how to make 2 buttons (one for each game) that would switch the current game, as long as no-body was currently playing.

    I was also wondering if you could combine the coin system, so if I put 5 coins in 1 game I could get 5 coins in the other game, when I switch?

    Thanks in advance,
    -Fred

    1 Reply Last reply Reply Quote 0
    • F
      Fredthedoggy
      last edited by 1 Sept 2019, 16:49

      I was told on the retropie reddit that this is impossible

      1 Reply Last reply Reply Quote 0
      • H
        Halvhjearne
        last edited by 1 Sept 2019, 17:58

        @Fredthedoggy said in Combine Mame Roms:

        I was told on the retropie reddit that this is impossible

        its not impossible, but perhaps it would be better not to run emulationstation and just boot directly to the prefered game, then make 1 button to kill the process of the current game and boot the other and maybe another button to shutdown/reboot the system.

        the coin handling would be another matter ... not sure if its possible to save the current amount somewhere, but i belive its possible to start mame with a specified amount of coins already inserted.

        1 Reply Last reply Reply Quote 0
        • F
          Fredthedoggy
          last edited by Fredthedoggy 9 Feb 2019, 20:13 2 Sept 2019, 13:55

          @Halvhjearne I know how to make a button that exits the game, but how do I make the button go to the next game?

          The one Idea I had was make my autostart.sh file somehow repeat itself, so
          It would be:

          /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes ~/RetroPie/roms/nes/pacman.zip
          /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes ~/RetroPie/roms/nes/donkeykong.zip
          sh /opt/retropie/configs/all/autostart.sh

          But the issue I realized, is I cant get it to turn off because this repeats forever, and when I exit it goes to the next game

          H 1 Reply Last reply 2 Sept 2019, 14:36 Reply Quote 0
          • C
            Clyde
            last edited by Clyde 9 Feb 2019, 15:21 2 Sept 2019, 14:17

            You could try to read the joystick buttons with jstest between the games, and shutdown the system instead of starting the other game if a particular button is pressed. I don't have a script ready for that, but here's a start on how to read joystick inputs and process them in an if…then…else statement:

            https://unix.stackexchange.com/questions/350132/using-a-shell-script-with-jstest-how-can-i-get-a-gamepad-to-interact-with-my-sc

            1 Reply Last reply Reply Quote 0
            • H
              Halvhjearne @Fredthedoggy
              last edited by 2 Sept 2019, 14:36

              @Fredthedoggy

              if this works and runs forever, why not just make a button for reboot/shutdown using gpio pins?

              1 Reply Last reply Reply Quote 0
              • F
                Fredthedoggy
                last edited by Fredthedoggy 9 Feb 2019, 16:40 2 Sept 2019, 15:40

                @Halvhjearne It would lose the current data, unless I switch games before shutting down

                H 1 Reply Last reply 2 Sept 2019, 16:55 Reply Quote 0
                • H
                  Halvhjearne @Fredthedoggy
                  last edited by 2 Sept 2019, 16:55

                  @Fredthedoggy

                  if it saves when you change game, you could just make it change the game before it does the shutdown/reboot

                  1 Reply Last reply Reply Quote 0
                  • F
                    Fredthedoggy
                    last edited by Fredthedoggy 9 Feb 2019, 18:47 2 Sept 2019, 17:39

                    One more thing, when I try calling autostart.sh I get the error:

                    /opt/retropie/configs/all/autostart.sh: Line 3: /opt/retropie/configs/all/autostart.sh:  Permission Denied
                    

                    Edit: You need to give autostart.sh run permission (source: https://askubuntu.com/questions/409025/permission-denied-when-running-sh-scripts?newreg=26d23eba961648029db8523b79a7d901)

                    C 1 Reply Last reply 2 Sept 2019, 17:54 Reply Quote 0
                    • C
                      Clyde @Fredthedoggy
                      last edited by 2 Sept 2019, 17:54

                      @Fredthedoggy said in Combine Mame Roms:

                      Edit: You need to give autostart.sh run permission

                      Alternatively, you can put sh in front of each line.

                      1 Reply Last reply Reply Quote 0
                      • F
                        Fredthedoggy
                        last edited by 2 Sept 2019, 19:13

                        oh, ok thanks @Clyde

                        1 Reply Last reply Reply Quote 0
                        • C
                          cyperghost
                          last edited by cyperghost 9 Feb 2019, 20:35 2 Sept 2019, 19:32

                          @Fredthedoggy Better use bash instead of sh
                          Or try to get familiar with dialog, so you can toggle and select some games with a simple menu. But it's an usual error that is spit out in your setup....

                          But if I read your posting history ... first you want to autostart PACMAN, now Donkey Kong or PACMAN ;) ....

                          1 Reply Last reply Reply Quote 0
                          • F
                            Fredthedoggy
                            last edited by Fredthedoggy 9 Feb 2019, 20:45 2 Sept 2019, 19:40

                            @cyperghost My overall goal is to make a pacman & donkey kong machine that has a power button (on/off that saves the current state), and a button that switches games seamlessly (because currently it has to wait for the games to load each time) and hopefully a way to have the credits transfer between games.

                            1 Reply Last reply Reply Quote 0
                            13 out of 13
                            • First post
                              13/13
                              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.

                              This community forum collects and processes your personal information.
                              consent.not_received