• 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

Programmatically run game from console

Scheduled Pinned Locked Moved Help and Support
retropieprogrammingcontroller
6 Posts 2 Posters 1.8k 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.
  • A
    advancedservers
    last edited by advancedservers 14 Dec 2016, 05:00

    Hi,

    I am buiding a NESPi DIY based off of DaftMike's incomplete work (http://www.daftmike.com/2016/07/NESPi.html My Work - https://github.com/benmprojects/NESPi_DIY). When launching game manually from in retropie the controller works. When launching from my script my controller doesnt work. I am getting the follow error

    retropie usb gamepad not configured

    My script is below.

    subprocess.call("sudo openvt -c 1 -s -f -- " + "/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snes" + "/home/pi/RetroPie/roms/snes/SuperMarioWorld.sfc " + "&", shell=True)

    Any Ideas???

    Thanks

    Ben

    1 Reply Last reply Reply Quote 0
    • B
      BuZz administrators
      last edited by BuZz 14 Dec 2016, 05:23

      Please use a code block / inline code block as otherwise the forum will think some characters are styling - http://commonmark.org/help/

      Can you enter the runcommand menu both ways ? Enable verbose logging and compare the logs.

      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

      1 Reply Last reply Reply Quote 0
      • A
        advancedservers
        last edited by 14 Dec 2016, 06:21

        Hi BuZz,

        can you explain how to run the verbose logging and the file location. I have only just started playing with retropie.

        Thanks

        ben

        1 Reply Last reply Reply Quote 0
        • B
          BuZz administrators
          last edited by 14 Dec 2016, 06:24

          available in the runcommand menu - https://github.com/retropie/retropie-setup/wiki/runcommand

          logs to /dev/shm/runcommand.log

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          1 Reply Last reply Reply Quote 0
          • A
            advancedservers
            last edited by 14 Dec 2016, 06:41

            this is from my script

            Parameters: 0 _SYS_ snes /home/pi/RetroPie/roms/snes/SuperMarioWorld.sfc
            Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg "/home/pi/RetroPie/roms/snes/SuperMarioWorld.sfc" --appendconfig /dev/shm/retroarch.cfg
            PPU.RenderSub = 0
            PPU.FullClipping = 1
            Settings.Transparency = 1
            Settings.SpeedhackGameID = 7
            PPU.SFXSpeedupHack = 0
            coldata_update_screen = 0
            1 Reply Last reply Reply Quote 0
            • A
              advancedservers
              last edited by 14 Dec 2016, 06:44

              And launching it manually

              Parameters: 0 _SYS_ snes /home/pi/RetroPie/roms/snes/SuperMarioWorld.sfc
              Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg "/home/pi/RetroPie/roms/snes/SuperMarioWorld.sfc" --appendconfig /dev/shm/retroarch.cfg
              PPU.RenderSub = 0
              PPU.FullClipping = 1
              Settings.Transparency = 1
              Settings.SpeedhackGameID = 7
              PPU.SFXSpeedupHack = 0
              coldata_update_screen = 0
              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                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