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



  • 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


  • administrators

    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.



  • 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


  • administrators

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

    logs to /dev/shm/runcommand.log



  • 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
    


  • 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
    


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.