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

    Acorn BBC Micro Emulator (current?)

    Scheduled Pinned Locked Moved Help and Support
    acorn bbc
    116 Posts 12 Posters 26.7k 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.
    • F
      Folly @Lord Vek
      last edited by Folly

      @Lord-Vek

      Have a look at :
      /opt/retropie/emulators/b-em-allegro4/b-em-allegro4-multiload.sh

      You would only have to add "alt+enter" before loading the software.
      ( https://gitlab.com/cunidev/gestures/-/wikis/xdotool-list-of-key-codes )

      When quitting however you would probably have to do it manually.

      The code would probably be something like this :

      xdotool sleep 1.5 keydown Alt+Return sleep 1 keyup Alt+Return
      

      (code is working !)

      For example you can test it by editing line 12 in b-em-allegro4-multiload.sh for the disc load commandline into this :

      /opt/retropie/emulators/b-em-allegro4/b-em $1 -disc "$2" | xdotool sleep 1.5 keydown Alt+Return sleep 1 keyup Alt+Return sleep 1.5 keydown Shift_L+F12 sleep 1 keyup Shift_L+F12
      

      (tested and it looks like it's working ok)

      Lord VekL 1 Reply Last reply Reply Quote 0
      • Lord VekL
        Lord Vek
        last edited by

        Yep! It worked! Thanks again, my friend!

        F 1 Reply Last reply Reply Quote 0
        • F
          Folly @Lord Vek
          last edited by Folly

          @Lord-Vek @MrNoHolster

          For quitting the emulator from fullscreen and with keyboard or joystick I will have a look later if I have the time.
          Just to see if I can extract key-presses and joystick-presses while the emulator is running and break the script so the emulator will stop and exit.

          I think the "Alt+Return" fix has to be implemented in the module-script together with an exit fix once I found that.

          Lord VekL M 2 Replies Last reply Reply Quote 0
          • Lord VekL
            Lord Vek @Folly
            last edited by

            @Folly It would be nice if the B-em was to be even better!

            1 Reply Last reply Reply Quote 0
            • M
              MrNoHolster @Folly
              last edited by

              @Folly Thanks for your hard work on this! So much love for this emulator that it'd be a superb addition to Retropie gaming.

              1 Reply Last reply Reply Quote 1
              • Lord VekL
                Lord Vek @Folly
                last edited by

                @Folly said in Acorn BBC Micro Emulator (current?):

                For example you can test it by editing line 12 in b-em-allegro4-multiload.sh for the disc load commandline into this :

                /opt/retropie/emulators/b-em-allegro4/b-em $1 -disc "$2" | xdotool sleep 1.5 keydown Alt+Return sleep 1 keyup Alt+Return sleep 1.5 keydown Shift_L+F12 sleep 1 keyup Shift_L+F12
                (tested and it looks like it's working ok)

                Hello,

                I discovered that, when I make this change, it is changing back, probably after an update. What I should do to make this change permanent?

                F 2 Replies Last reply Reply Quote 0
                • F
                  Folly @Lord Vek
                  last edited by

                  @Lord-Vek

                  Hmmm...
                  If you update my scripts than yes it's overwritten.

                  Perhaps I can add it to my module-script, though I have to add a message on how to quit before the emulator is loading.
                  Will have to think about it.

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

                    @Folly said in Acorn BBC Micro Emulator (current?):

                    If you update my scripts than yes it's overwritten.

                    Own/user 'emulator' lines in emulators.cfg won't be overwritten by updates.

                    Lord VekL 1 Reply Last reply Reply Quote 0
                    • F
                      Folly @Lord Vek
                      last edited by

                      @Lord-Vek

                      As @mitu said the own/user 'emulator' lines in emulators.cfg won't be overwritten by updates unless you install it again.
                      Did you do that too ?

                      1 Reply Last reply Reply Quote 0
                      • Lord VekL
                        Lord Vek @mitu
                        last edited by Lord Vek

                        @mitu No, I didn't. So, should I edit \retropie\root\opt\retropie\configs\bbcmicro\emulators.cfg? And what lines should I change into what?

                        mituM F 2 Replies Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator @Lord Vek
                          last edited by mitu

                          @Lord-Vek You should duplicate the line that was overwritten by the update/upgrade and save it with a custom name. I.e. if the emulator start looks like:

                          ..
                          emulator1=/opt/retropie/emulators/b-em-allegro4/b-em $1 -disc "$2" | xdotool sleep 1.5 keydown Alt+Return sleep 1 keyup Alt+Return sleep 1.5 keydown Shift_L+F12 sleep 1 keyup Shift_L+F12
                          ..
                          

                          just add a similar line, but name the emulator entry differently:

                          ...
                          emulator1-custom=/opt/retropie/emulators/b-em-allegro4/b-em $1 -disc "$2" | xdotool sleep 1.5 keydown Alt+Return sleep 1 keyup Alt+Return sleep 1.5 keydown Shift_L+F12 sleep 1 keyup Shift_L+F12
                          ...
                          

                          You can then use the runcommand launch menu to choose this custom emulator to run games.
                          Since this is a custom emulator (using @Folly's scripts) I don't know what the defaults are and what is the emulators.cfg looks like.

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            Folly @mitu
                            last edited by Folly

                            @mitu

                            Thanks for the help.

                            Though the structure of the loading the emulator is a bit different.
                            The runcommand loads a script that will detect if the media is tape or disk and with what system to load and loads b-em with the appropriate options..
                            So the part @Lord-Vek is asking about is the part of simulating Alt+Return implementation in that script.
                            So if he changed the loading script and then reinstalled it with my module-script the loading script will be overwritten and the key simulation presses of getting full-screen are gone again.
                            That is because the solution hasn't been implemented in my module-script.

                            So the solution for him is to change the loading script again like suggested in post 42.
                            Note : editing has to be done as root (super user) otherwise changes in the file /opt/retropie/emulators/b-em-allegro4/b-em-allegro4-multiload.sh will not be saved.

                            Or I have to change my module-script and add that solution so in the future the key simulation presses of getting full-screen is added from the install and not by manual editing.
                            I will have a look at this solution when I can, seems the best one.

                            1 Reply Last reply Reply Quote 0
                            • F Folly referenced this topic on
                            • F
                              Folly @Lord Vek
                              last edited by Folly

                              @Lord-Vek

                              I have updated the script :
                              https://github.com/FollyMaddy/RetroPie-Share/commit/893fc7dc4259ded92f827f604c9cd366843eda71

                              Replace your old module-script with the new one and re-install it.

                              Optional :
                              Or if you don't want to compile the b-em emulator, if it is already there, then do the following commands to only configure and save the loader script :

                              cd RetroPie-Setup
                              sudo ./retropie_packages.sh b-em-allegro4 configure
                              
                              Lord VekL 1 Reply Last reply Reply Quote 0
                              • Lord VekL
                                Lord Vek @Folly
                                last edited by

                                @Folly I replaced the b-em-allegro4.sh with the new one, then from Retropie's setup I uninstalled the b-em allegro emulator, then installed it again from source. But now the emulator is hanging up, it doesn't even return back to game selection.

                                F 3 Replies Last reply Reply Quote 0
                                • F
                                  Folly @Lord Vek
                                  last edited by Folly

                                  @Lord-Vek

                                  I have that same issue.
                                  I seems you have to press Alt+Return fist before you exit.
                                  This prevents a crash.
                                  I think that issue was there all along you probably forgot.
                                  I updated my script again to fix some more.
                                  I added a message about quitting before the emulator starts so we don't forget.
                                  https://github.com/FollyMaddy/RetroPie-Share/commit/0600e67d96004925bd1b35c9e16417aa06620f57

                                  Sadly not all perfect solutions.

                                  Edit :
                                  Found that the dialog msgbox creates the issue of hanging totally when not using linux desktop.
                                  Will test some other stuff or just remove it.

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    Folly @Lord Vek
                                    last edited by Folly

                                    @Lord-Vek

                                    Sadly I didn't expect my changes to have an impact on the crashing before even loading the emulator.
                                    But it seems I had so, I have removed the dialog message.

                                    I think everything is good now :
                                    https://github.com/FollyMaddy/RetroPie-Share/commit/6b36f162832696ad5d7db0925c4dc707ca5f7c2c
                                    (remove and install it again)
                                    Let me know if it works for you ;-)

                                    As a reminder here, I added this to the help :
                                    QUIT information:

                                    Press ALT + RETURN to quit full-screen.
                                    (use above to prevent a crash when quitting)

                                    Press F11 to go into the menu.
                                    Then use the mouse or press ALT + F and press E to exit.
                                    Or use ctrl+c instead !

                                    Supported ROMS/MEDIA : .uef .ssd
                                    ROMS/MEDIA have to be in $romdir/bbcmicro

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      Folly @Lord Vek
                                      last edited by

                                      @Lord-Vek

                                      Some latest news :
                                      I took a look again at the b-em source code.
                                      To my surprise I was able to implement :

                                      • booting in full-screen
                                      • adding a hotkey to exit (with leaving full-screen first so the resolution is still good after quitting)

                                      I choose the hotkey to be Alt + Esc so we still can use the Esc key.
                                      I also found that there is an autoboot option for loading discs.
                                      This means I can remove simulating the autoboot key presses.
                                      Will have to see how I can implement it.
                                      I also have to do some tests first.

                                      Lord VekL 1 Reply Last reply Reply Quote 0
                                      • Lord VekL
                                        Lord Vek @Folly
                                        last edited by

                                        @Folly Yes, it is working OK now. Thanks a lot to you and mitu and be well!

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          Folly @Lord Vek
                                          last edited by Folly

                                          @Lord-Vek

                                          I have implemented all source code patches and I am very happy with it.
                                          It's quite an improvement.

                                          Can you test this update for me ?

                                          https://github.com/FollyMaddy/RetroPie-Share/commit/757790da4a5c05b8dc61631c69a90c4cc4fce8fc

                                          Lord VekL 1 Reply Last reply Reply Quote 0
                                          • Lord VekL
                                            Lord Vek @Folly
                                            last edited by

                                            @Folly Sorry I didn't see your post in time.
                                            Yes, the new version is working well. The start in fulscreen part, and the Alt+Esc shortcut are also OK. Thanks again!

                                            F duglorD 2 Replies 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.