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

    Run Games that require a Desktop for SDL

    Scheduled Pinned Locked Moved Help and Support
    retropiedesktopports
    5 Posts 3 Posters 616 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.
    • DolphinCubeD
      DolphinCube
      last edited by

      Hello! So theres a slight issue with what I'm currently doing. I am trying to run this game called "Sonic 3: Angel Island Revisited" and I manged to compile it sucessfully. But heres the thing: It needs to run in a desktop enviroment of sorts. How exactly do you do that on retropie? And if its possible to do it without pixel? Thats all I need for now

      1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael
        last edited by sleve_mcdichael

        Install xorg and preface your emulators.cfg command with XINIT:, e.g.:

        $ sudo apt install xorg 
        
        $ cat emulators.cfg 
        mygame = "XINIT:/path/to/mygame_launch_script.sh"
        default = "mygame"
        
        DolphinCubeD 1 Reply Last reply Reply Quote 0
        • DolphinCubeD
          DolphinCube @sleve_mcdichael
          last edited by DolphinCube

          @sleve_mcdichael said in Run Games that require a Desktop for SDL:

          Install xorg and preface your emulators.cfg command with XINIT:, e.g.:

          $ sudo apt install xorg 
          
          $ cat emulators.cfg 
          mygame = "XINIT:/path/to/mygame_launch_script.sh"
          default = "mygame"
          

          so if I wanted to run Sonic 3 Air with the desktop enviroment I would edit the emulators.cfg in ports? Is that correct?

          EDIT: Nvm I found it. So I can lead it to the ports section of the game if I do that?

          1 Reply Last reply Reply Quote 0
          • DolphinCubeD
            DolphinCube
            last edited by DolphinCube

            ok now im getting an error every time I try to start up the game saying its not there even tho I KNOW its there. And If I try to make it executible. It tries to run it then closes and it dosnt give me an error of any sort

            EDIT. Is this how its suppost to be done in emulators.cfg?

            sonic3air = "XINIT:/home/pi/RetroPie/ports/sonic3air.sh"
            ports_sonic3air = "sonic3air"

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

              @TheAutisticGamer said in Run Games that require a Desktop for SDL:

              EDIT. Is this how its suppost to be done in emulators.cfg?
              sonic3air = "XINIT:/home/pi/RetroPie/ports/sonic3air.sh"
              ports_sonic3air = "sonic3air"

              No, it should be

              sonic3air = "XINIT:/path/to/launch/script/or/program"
              default = "sonic3air"
              

              I don't think your game is installed as a port - you should have the emulators.cfg in /opt/retropie/configs/ports/sonic3air and the /home/pi/RetroPie/ports/sonic3air.sh should contain:

              "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "sonic3air"
              
              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.