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 24.6k 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.
    • 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
                                    • F
                                      Folly @Lord Vek
                                      last edited by

                                      @Lord-Vek

                                      Thanks.

                                      1 Reply Last reply Reply Quote 0
                                      • duglorD
                                        duglor @Lord Vek
                                        last edited by

                                        @Lord-Vek Is there a very detailed step by step reading i can do from 1. obtaining the new emulator 2. installing the new emulator 3. using the new emulator?

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

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

                                          @Lord-Vek Is there a very detailed step by step reading i can do from 1. obtaining the new emulator 2. installing the new emulator 3. using the new emulator?

                                          Just download my repository and copy and paste the the ones you want in the appropriate directories.
                                          You can see how it's done over here with this module-script :
                                          https://retropie.org.uk/forum/topic/29682/development-of-module-script-generator-for-lr-mess-lr-mame-and-mame-standalone

                                          Here are the b-em ones :
                                          https://github.com/FollyMaddy/RetroPie-Share/tree/main/00-scriptmodules-00/emulators

                                          So paste them in this folder :
                                          /home/pi/RetroPie-Setup/scriptmodules/emulators
                                          or place them in :
                                          /home/pi/RetroPie-Setup/ext/RetroPie-Share/scriptmodules/emulators

                                          Run RetroPie-Setup and the should pop up in experimental packages.
                                          Then install and check the help for information.

                                          Remember, can be that not all module-script, in that directory, will still work,
                                          I am confident that both b-em module-scripts should work for you.

                                          duglorD 2 Replies Last reply Reply Quote 0
                                          • duglorD
                                            duglor @Folly
                                            last edited by

                                            Ok. thanks. I'll try in a day!

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

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

                                            @Lord-Vek Is there a very detailed step by step reading i can do from 1. obtaining the new emulator 2. installing the new emulator 3. using the new emulator?

                                            Just download my repository and copy and paste the the ones you want in the appropriate directories.
                                            You can see how it's done over here with this module-script :
                                            https://retropie.org.uk/forum/topic/29682/development-of-module-script-generator-for-lr-mess-lr-mame-and-mame-standalone

                                            Here are the b-em ones :
                                            https://github.com/FollyMaddy/RetroPie-Share/tree/main/00-scriptmodules-00/emulators

                                            So paste them in this folder :
                                            /home/pi/RetroPie-Setup/scriptmodules/emulators
                                            or place them in :
                                            /home/pi/RetroPie-Setup/ext/RetroPie-Share/scriptmodules/emulators

                                            Run RetroPie-Setup and the should pop up in experimental packages.
                                            Then install and check the help for information.

                                            Remember, can be that not all module-script, in that directory, will still work,
                                            I am confident that both b-em module-scripts should work for you.

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