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

    Scripts as Roms "not found"

    Scheduled Pinned Locked Moved Help and Support
    shell scriptsystemrom not loadincartridge
    3 Posts 2 Posters 502 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.
    • T
      TS-loot
      last edited by

      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 found

      Hi 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/Console

      That 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 found

      Which 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!

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        @ts-loot said in Scripts as Roms "not found":

        ...
          <command>%ROM%</command>
        ...
        

        Try using bash %ROM% as command.

        T 1 Reply Last reply Reply Quote 1
        • T
          TS-loot @mitu
          last edited by

          @mitu THIS WORKED!! THANKS!!!

          1 Reply Last reply Reply Quote 0
          • 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.