Combine Mame Roms
-
@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
-
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: -
if this works and runs forever, why not just make a button for reboot/shutdown using gpio pins?
-
@Halvhjearne It would lose the current data, unless I switch games before shutting down
-
if it saves when you change game, you could just make it change the game before it does the shutdown/reboot
-
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)
-
@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. -
oh, ok thanks @Clyde
-
@Fredthedoggy Better use
bash
instead ofsh
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 ;) ....
-
@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.
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.