Scripts as Roms "not found"
-
Pi Model or other hardware: Pi Zero W v1.1
Power Supply used: PowerBoost 1000C (in turn powered by a usb cable branded as "Microsoft")
RetroPie Version Used: 4.6.2
Built From: RetroPie website
USB Devices connected: USB hub> gameboy buttons & remote keyboard & GB Cart RW v1.3b (device to read/write GameBoy Cartridges
Error messages received:
sh: 1: /home/pi/RetroPie/roms/cartridges/GBConsole.sh: not foundHi RetroPie forum,
I have been struggling on an issue for days and cannot find any solution online. The story: i am running a script which can reads/writes real GameBoy cartridges, so that my GameBoy Zero project can actually work with real games. (i am using the GBxCart RW v1.3 by insideGadgets (not intended as advertisement)) I have created a new 'system' by adding the following in the
/opt/retropie/configs/all/emulationstation/es_systems.cfg file:<system> <name>cartridges</name> <fullname>Cartridges</fullname> <path>/home/pi/RetroPie/roms/cartridges</path> <extension>.sh .SH</extension> <command>%ROM%</command> <theme>gbc</theme> </system>
And creating the appropriate roms folder:
/home/pi/RetroPie/roms/cartridges/
To have some structure, i have the necessary scripts to run the cartridge read/write device in a subfolder in the roms folder:
/home/pi/RetroPie/roms/cartridges/GB/Console
and then have a sh script in the roms folder to start the actual scripts in GB/ConsoleThat start sh script (GBConsole.sh) has the following code:
#!/bin/bash exec "/home/pi/RetroPie/roms/cartridges/GB/Console/console" sh -c "exit"
As you can see, this is just to execute the right script located in the GB/Console folder and does this wonderfull well: when i start this script from terminal, the right script starts and i can use the read/write script to use on my gameboy cartridges.
Also, the system "Cartridges" loads when starting ES and the 'rom' GBConsole is shown.
However, when i want to start this 'rom' from ES to start the read/write script, it says the following:
sh: 1: /home/pi/RetroPie/roms/cartridges/GBConsole.sh: not foundWhich is surprising (and annoying), since it did show in the ES as a rom for the Cartridge system. Before this error i had the Permission denied message which i fixed with the chmod commands.
I also tried to start the same script from the RetroPie Menu. And there, it also runs fine!
"Parse Gameslists Only" is OFF.I feel that i am so close in running real Gameboy cartridges from ES! Can someone see what i am doing wrong?
Many thanks!
-
@ts-loot said in Scripts as Roms "not found":
... <command>%ROM%</command> ...
Try using
bash %ROM%
as command. -
@mitu THIS WORKED!! THANKS!!!
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.