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.
    • muldjordM
      muldjord
      last edited by muldjord

      Tried this yesterday and it worked pretty well - great work! I had a bit of trouble with the config generation and I had to re-pair once for the streaming to start working (no idea why, it just didn't work the first time around even though it paired just fine with the pin).

      Concerning the script generation, It worked well the first time I initiated it. But when I tried to regenerate them, it just froze and I had to ctrl+c it to get back to the menu. I then had to reboot the system, then remove the pairing and redo the pairing in order to be able to regenerate them again it seemed. Or maybe it just needed to be rebooted (I did both since I couldn't get it to start anything, just got a blank screen). I had trouble getting things to start on my Steam computer. It wasn't until I paired it for the second time it would launch Steam for me when I chose the Steam ml script.

      Another note: Skyscraper now supports the steam platform and the *.ml for all platforms in case people want to scrape these scripts. It's in Skyscraper 3.1.2.

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

        Hey,

        it's been a while but the DualShock 3 issue I reported a long while ago was now solved in SDL2 itself:
        https://github.com/gabomdq/SDL_GameControllerDB/issues/247#issuecomment-473724813

        So do you think using this database as a source of gamecontrollerdb.txt instead of having one included in the scriptmodule can work? Last time you said it's an OK idea.

        M 1 Reply Last reply Reply Quote 0
        • M
          MightyHandy @Silent
          last edited by

          @Silent to do that wouldn’t you have to modify moonlight-embedded?
          https://github.com/irtimmer/moonlight-embedded/blob/master/gamecontrollerdb.txt

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

            Not sure how legit it is, but yesterday this message showed up on Moonlight Discord in #embed-dev:

            b8bd3037-e617-4e8f-8b05-d597a77c2c6a-image.png

            EDIT:
            Seems to be legitimate, since repository is now archived.

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

              Hey all ! sorry for the long delay replying in this topic. I've been a bit busy nowadays :(

              @MightyHandy thanks for the congrats on going live! Hope we can keep improving the scriptmodule with your feedback.

              @muldjord thanks for testing the scriptmodule!
              When regenerating the game files you should not need to reboot the device in any case. However, it depends on Moonlight connecting to your remote computer to get the list of available games. So what you were experiencing might be some connectivity issue or perhaps an NVIDIA GeForce Experience issue in your host. GFE is notorious for breaking things between updates :/
              Thanks for adding support for the .mlfiles in Skyscraper! Appreciated.

              @Silent great to hear you persevered until you got the controller mapping merged upstream!
              I do think that sourcing a fresh copy of gamecontrollerdb.txt is a good idea. I even think it would be more beneficial if it could be handled by RetroPie (for example as a supplementary module) for this and other scriptmodules using SDL game controller databases to have a common file. However this would be needed to be discussed with @BuZz.

              Regarding the recent news, I also just read in Discord that irtimmer abandoned the moonlight embedded repository and seems to be for real :/. Sad news indeed as this project is very practical in my opinion. I like that moonlight embedded is pretty small and lightweight, no Xorg stuff required.

              I think this could be a good opportunity for the main/larger moonlight-stream project to adopt it and support it more officially. Let's see what happens.

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

                Update

                So, irtimmer reconsidered and restored the moonlight repository now. He won't be doing major changes himself and instead he encourages others to contribute fixes and enhancements. This is good news for moonlight embedded as the project (for the moment) won't be strictly dead.

                Recently, a github user fixed the initial rumble implementation and should be working now! I haven't tested it myself yet, but if you give it a try and report, that would be nice. Rumble works automatically, just launch a game that supports rumble and you should get your controller vibrating via moonlight.

                L 1 Reply Last reply Reply Quote 1
                • L
                  LeSabotageur @hhromic
                  last edited by LeSabotageur

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

                  Update

                  Recently, a github user fixed the initial rumble implementation and should be working now! I haven't tested it myself yet, but if you give it a try and report, that would be nice. Rumble works automatically, just launch a game that supports rumble and you should get your controller vibrating via moonlight.

                  Great news ! I'll try to test this when I'm in the mood for potentially breaking my functioning setup (which won't be for a few days at least :D )

                  In my craziest dreams moonlight supports impulse triggers on Xbox One controllers, but seeing as it's not officially supported in windows (while being a Microsoft API...), it'll most probably always stay a dream.

                  1 Reply Last reply Reply Quote 1
                  • L
                    llamadestroyer
                    last edited by llamadestroyer

                    @hhromic recently i wiped my raspi and tried install moonlight again but it seems the scrpit is isnt works any more. it says no moonlight packages for rp3 or something. can u check it? it was a wonderfull thing for me... thanks!

                    edit:i uploaded image

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

                      @llamadestroyer hi !
                      The moonlight scriptmodule is now merged officially in RetroPie. Therefore, you should not try to patch it from my branch anymore (the branch doesn't even exist now). I realised that I forgot to update the OP with this piece of information so I apologise for the confusion caused!

                      So to install Moonlight, you should just make sure that you are using the latest RetroPie Setup script and then you should find Moonlight under the Experimental modules.

                      Let me know if you still can't find it!

                      L 1 Reply Last reply Reply Quote 1
                      • L
                        llamadestroyer @hhromic
                        last edited by

                        @hhromic it works again. thanks so much!

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

                          @llamadestroyer glad you sorted it !

                          Recently Moonlight gained basic rumble support, so feel free to test and report any issues.
                          Good luck!

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            llamadestroyer @hhromic
                            last edited by

                            @hhromic how can i say, i literally feel that rumble thing in my hands. this is so awesome man. im a student i cant afford a xbox one or ps4 but i had so much better now thanks to you!

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

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

                              @hhromic how can i say, i literally feel that rumble thing in my hands. this is so awesome man. im a student i cant afford a xbox one or ps4 but i had so much better now thanks to you!

                              Thanks! But I'm not the author of the rumble fix, just the scriptmodule in RetroPie :) However I will pass your comment to the author! Glad you are enjoying Moonlight.

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

                                Update

                                Moonlight learned a new parameter upstream: viewonly

                                https://github.com/irtimmer/moonlight-embedded/pull/764

                                This PR adds a new option to enable a "view-only" mode, that is, for Moonlight embedded to not send any input back to the host computer and just act as a remote viewer.

                                This feature is specially useful in conjunction with VirtualHere.

                                To use it, simply add viewonly = true to any of your configuration files.

                                1 Reply Last reply Reply Quote 1
                                • M
                                  MightyHandy
                                  last edited by

                                  Hey guys, realize its been a while since changes were made to this. But, noticed that:
                                  -when I run games launched from moonlight lately, its no longer is detecting when the game closes
                                  -I can no longer launch steam from moonlight
                                  I'm wondering if steam or nvidia launched an update that is making this not work the same way.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Machtroid
                                    last edited by

                                    Is there a way to change the button combination to quit moonlight streaming from Start + Select + L + R to a custom set of buttons? I can't find where I'd be able to set that in any of the configs.

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

                                      @Machtroid at the moment that is not configurable without recompiling moonlight unfortunately.

                                      If you are up to that, the combination is defined:

                                      • Here for joypads: https://github.com/irtimmer/moonlight-embedded/blob/master/src/input/evdev.c#L101
                                      • Here for (console) keyboards: https://github.com/irtimmer/moonlight-embedded/blob/master/src/input/evdev.c#L99-L100
                                      • Here for (X11) keyboards: https://github.com/irtimmer/moonlight-embedded/blob/master/src/input/x11.c#L34-L35
                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        Machtroid @hhromic
                                        last edited by

                                        @hhromic Thanks for the info! Obviously not a big deal I was just kind of curious. Might give it a shot the next time I do a build.

                                        1 Reply Last reply Reply Quote 1
                                        • ?
                                          A Former User
                                          last edited by

                                          @hhromic Thanks for all of the continued effort on this project! It's really been awesome to see it continued to be worked on, and really makes it simple to set up game streaming!

                                          Random question for you -- I'm fairly confident it's an upstream moonlight issue, but figured you'd might have some insight. I've recently added some XBOX Game Pass games to be streamed via moonlight. I did this by creating a Desktop shortcut to the game, and then manually adding that to GFE under the Shield tab. This part works great!

                                          What doesn't work great though, is that it doesn't then force a resolution change on my PC (I'm running 21:9 1440p natively) to 1080p (like steam games / autodetected games do), resulting in a letterboxed experience, even if I set the in game resolution to 1080p.

                                          Any ideas by chance?

                                          1 Reply Last reply Reply Quote 0
                                          • V
                                            Vegz78
                                            last edited by

                                            Hi @hhromic, @Zangdaarr and/or @mitu,

                                            I’ve been following this project with great interest, since I also really appreciate streaming newer (retro)games from within RetroPie on the RPi together with all the natively running retro game emulators. Great work, @hhromic!

                                            At the moment I am working on a solution for playing MakeCode Arcade games directly in RetroPie.

                                            What would be the process and requirements for getting this added to the retropie_setup.sh script for installation from within RetroPie in future releases, if my project at some point reaches sufficient maturity/stability/demand?

                                            Br,
                                            Vegard

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