• 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

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.
  • D
    DolphinCube
    last edited by 13 Feb 2023, 21:58

    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 13 Feb 2023, 22:15

      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"
      
      D 1 Reply Last reply 13 Feb 2023, 22:19 Reply Quote 0
      • D
        DolphinCube @sleve_mcdichael
        last edited by DolphinCube 13 Feb 2023, 22:19

        @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
        • D
          DolphinCube
          last edited by DolphinCube 13 Feb 2023, 22:51

          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"

          M 1 Reply Last reply 14 Feb 2023, 05:04 Reply Quote 0
          • M
            mitu Global Moderator @DolphinCube
            last edited by mitu 14 Feb 2023, 05:04

            @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
            5 out of 5
            • First post
              5/5
              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