RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    moonlight: request for comments and testing

    Scheduled Pinned Locked Moved Ideas and Development
    moonlighttestingscriptmodulestreamingsteam
    147 Posts 21 Posters 40.3k 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.
    • H
      hhromic @llamadestroyer
      last edited by

      @llamadestroyer said in moonlight: request for comments and testing:

      Can be used with steam link? I think they are using same rom folder. Your script works awesome! I asked just for curious.

      Yes it can be used at the same time. Steam Link is installed under "ports" (and doesn't use any "roms") while Moonlight is installed as an "emulator" for the "steam" platform (using ".ml" "roms"). These two are 100% independent.

      Thanks for the feedback, glad you like the scriptmodule!

      1 Reply Last reply Reply Quote 0
      • H
        hhromic @Silent
        last edited by hhromic

        @Silent said in moonlight: request for comments and testing:

        @hhromic I just gave the newest scriptmodule a try and slugify option is a bit disappointing - while of course it works as intended and ThegamesDB handles these names relatively well, MobyGames seems terrible at it (so far I have 0 matches for games which names consist of multiple words). Will try IGDB next and report.

        I think I'll stick to non-slugified names for now.

        Oh that's a boomer to hear about the slugify solution. May I ask how exactly are you scraping these? I might give it a try myself to sort out what can be further done. Perhaps after slugifying changing "-" to " " might help, but I don't want to introduce more noise to the filename mangling if not necessary. Thanks for testing!

        S 1 Reply Last reply Reply Quote 0
        • S
          Silent @hhromic
          last edited by

          @hhromic said in moonlight: request for comments and testing:

          May I ask how exactly are you scraping these?

          Exclusively via Skyscraper. I'm yet to try the aliasMap for those - seems like it'd be a good solution, but I think changing - to would indeed help a lot.

          H 1 Reply Last reply Reply Quote 1
          • J
            jackalblood
            last edited by

            Hi there Ive just installed moonlight for the first time on my retro pie and got everything setup fine right up to after I generated the configs all my games list and I restart retropie, but I'm not seeing any new menu items in emulation station and nothing but kodi in ports have I missed a step somewhere?

            I've read the instructions a few times and I don't think I missed anything.

            Any help would be greatly appreciated

            Thank you

            1 Reply Last reply Reply Quote 0
            • H
              hhromic @Silent
              last edited by

              @jackalblood thanks for testing the scriptmodule and confirming it's working fine for you (at least until game file generation).

              The scriptmodule creates a "Steam" system where it places all the moonlight config files (with .ml extension), contrary to Kodi or Steam that only have a single entry in the "Ports" system. You should be able to find a "Steam" system in your emulationstation alongside others such as "SNES" or "NES".

              Maybe you are using a theme that doesn't support this system? In that case you should still be able to find it I think. If you are not using the default theme, can you switch to the Carbon included theme just to check if it's your theme or something else?

              J 1 Reply Last reply Reply Quote 0
              • J
                jackalblood @hhromic
                last edited by

                @hhromic I was actually using carbon already.

                However I did get the menu item to show with the scripts present by running this script after your embedded one.

                [link text]https://github.com/TechWizTime/moonlight-retropie(link url)

                This made the menu item appear and the scripts work perfectly although streaming performance sucked as I was away and using VPN.

                All in all thanks so much for your work I've tried everything to get moonlight working in the past (hence my remembering the above script)

                1 Reply Last reply Reply Quote 0
                • H
                  hhromic
                  last edited by

                  @Silent I improved the filename mangling functionality now. The option is no longer called "slugify" alone but more general "file name mangling". There are three options now for it: NONE, SLUGIFY and WINDOWS. The latter is less agressive than "slugify" and only removes/replaces characters to make the names windows-compatible (SMB shares and FAT32 filesystems). Give it a try and see if it improves scraping for you. This should be the last change before submitting to official RP :)


                  @jackalblood said in moonlight: request for comments and testing:

                  However I did get the menu item to show with the scripts present by running this script after your embedded one.
                  [link text]https://github.com/TechWizTime/moonlight-retropie(link url)
                  This made the menu item appear and the scripts work perfectly although streaming performance sucked as I was away and using VPN.

                  Umm that's strange. Maybe you are using a custom es_systems.cfg that overrides the system one in /etc/emulationstation?

                  I would strongly advise you to re-install moonlight using this scriptmodule here because the TechWiz version uses an outdated pre-built Moonlight binary.

                  Thanks for testing and the positive feedback, much appreciated!

                  S 1 Reply Last reply Reply Quote 1
                  • H
                    hhromic
                    last edited by

                    Update

                    Recently, preliminary rumble support was added to Moonlight in upstream!
                    To give it a try, just re-build Moonlight from source using this scriptmodule :)

                    1 Reply Last reply Reply Quote 0
                    • S
                      Silent @hhromic
                      last edited by

                      @hhromic Thanks! Now scraping works well as usual :D
                      I even managed to scrape streamed PS2 games from screenscraper by giving them sha1 hashes manually, good stuff :)

                      H 1 Reply Last reply Reply Quote 1
                      • H
                        hhromic @Silent
                        last edited by

                        @Silent I'm glad it's finally working good for you and probably others too!
                        I think now is time to graduate the scriptmodule to the Official RP repo :)
                        Any other further issue you would like to report?

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

                          Seems all good now! I was unable to get rumble working with my DualShock 3 yet, but naturally that's nothing a scriptmodule can do :D

                          As far as I can tell, it should be good to be merged! I am able to use it both for "steam" and "ps2" platforms just fine myself. Time to say goodbye to limelight.

                          1 Reply Last reply Reply Quote 0
                          • WarC0zesW
                            WarC0zes
                            last edited by

                            Hi,
                            I can not start steam in big picture mode, it comes back in emulationstation.

                            my Steam.ml file:

                            config = /opt/retropie/configs/all/moonlight/global.conf
                            address = 192.168.1.3
                            

                            What's the problem?

                            RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              hhromic @WarC0zes
                              last edited by

                              @WarC0zes thanks for testing.

                              To further debug, can you please give the contents of the /dev/shm/runcommand.log file just after it goes back to emulationstation? It might be a long file so please use pastebin or similar.

                              1 Reply Last reply Reply Quote 0
                              • WarC0zesW
                                WarC0zes
                                last edited by WarC0zes

                                @hhromic

                                My runcommand.log :

                                Parameters: 
                                Executing: /opt/retropie/supplementary/moonlight/moonlight.sh stream -config "/home/pi/RetroPie/roms/steam/Steam.ml"
                                Can't open configuration file: /opt/retropie/configs/all/moonlight/global.conf
                                

                                my global.conf :

                                # global config file for moonlight
                                quitappafter = true
                                width = 1920
                                height = 1080
                                fps = 60
                                bitrate = 20000
                                

                                my global.conf file is in /opt/retropie/configs/all/moonlight/

                                RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                H 1 Reply Last reply Reply Quote 0
                                • H
                                  hhromic @WarC0zes
                                  last edited by

                                  @WarC0zes said in moonlight: request for comments and testing:

                                  Can't open configuration file

                                  That's very weird indeed. Can you please show the output of:

                                  ls -la /opt/retropie/configs/all/moonlight
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • WarC0zesW
                                    WarC0zes
                                    last edited by

                                    @hhromic

                                    pi@retropie:~ $ ls -la /opt/retropie/configs/all/moonlight
                                    total 32
                                    drwxr-xr-x 2 pi pi 4096 févr. 24 06:21 .
                                    drwxr-xr-x 5 pi pi 4096 févr. 24 04:50 ..
                                    -rw-r--r-- 1 pi pi 2430 févr. 20 16:57 client.p12
                                    -rw-r--r-- 1 pi pi 1082 févr. 20 16:57 client.pem
                                    -rw-r--r-- 1 pi pi  107 févr. 24 06:21 global.conf
                                    -rw-r--r-- 1 pi pi 1704 févr. 20 16:57 key.pem
                                    -rw-r--r-- 1 pi pi   35 févr. 20 16:56 scriptmodule.cfg
                                    -rw-r--r-- 1 pi pi   16 févr. 20 16:57 uniqueid.dat
                                    
                                    

                                    RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                    H 1 Reply Last reply Reply Quote 0
                                    • H
                                      hhromic @WarC0zes
                                      last edited by

                                      @WarC0zes umm.

                                      Can you try executing it from the console intead of EmulationStation typing this directly:

                                      /opt/retropie/supplementary/moonlight/moonlight.sh stream -config "/home/pi/RetroPie/roms/steam/Steam.ml"
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • WarC0zesW
                                        WarC0zes
                                        last edited by

                                        @hhromic

                                        pi@retropie:~ $ /opt/retropie/supplementary/moonlight/moonlight.sh stream -config "/home/pi/RetroPie/roms/steam/Steam.ml"
                                        Can't open configuration file: /opt/retropie/configs/all/moonlight/global.conf
                                        
                                        

                                        RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hhromic
                                          last edited by

                                          @WarC0zes very puzzling... let's try something more simple:

                                          /opt/retropie/supplementary/moonlight/moonlight.sh stream -config /opt/retropie/configs/all/moonlight/global.conf
                                          

                                          Can you also try typing it manually instead of copy/pasting, just in case?

                                          1 Reply Last reply Reply Quote 0
                                          • WarC0zesW
                                            WarC0zes
                                            last edited by

                                            @hhromic

                                            /opt/retropie/supplementary/moonlight/moonlight.sh stream -config /opt/retropie/configs/all/moonlight/global.conf
                                            

                                            it works like that ^^

                                            RetroPie v4.5.1 • RPi3 Model B • NorthPada 5V 3A • 128GB SanDisk Ultra Cat.10 microSDXC • 1 x Logitech Wireless Desktop MK250 • 1 x Qanba Q4RAF USB Arcade joysticks • 1 x PS4 Dualshock4 v2 controller • 1 x Mayflash Dolphinbar + Nintendo WiiMote.

                                            H 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.