Acorn BBC Micro Emulator (current?)
-
@phoenixdacat said in Acorn BBC Micro Emulator (current?):
@Folly upon doing what you suggested, trying to run the script from the CLI, the issue was apparent.
I'd used Git to clone your repo to my Win11 PC and then copied the files over to my Pi.
The line termination character is different between Win/Linux, so the script wasn't valid, even though to the eye it looked so.
Thanks for the info on how to do this from the CLI.
Aha,
I have heard of these differences in line-endings before but never knew it would make a script unusable.
Thanks, good to know. -
@Retrodade said in Acorn BBC Micro Emulator (current?):
@Folly also a side note, if one has Qjoy installed to retro pie desktop you can add qjoy to the emu
in
xbeem after the line "matchbox_key_shortcuts" add & qjoypad "bbcmicro" &
and in
xmaster after the line "matchbox_key_shortcuts" add & qjoypad "bbcmicroalt" &both emus work, seems BBC micro has mainly 2 keyboard mappings, so this gives u most game ability using a controller or joystick over just a keyboard
note in Qjoy make a controller mapping called bbcmicro and another called bbcmicroalt and map your controller to the games keyboard requirements, that way you won't need a keyboard for the games.
just tossing it out there
Ok, will have a look.
-
It's not the first time I've come across this.
If you add a .gitattributes file to the root of your repo, with this as the content
* text=auto *.sh text eol=lf
it should fix that issue for those who clone to Win systems.
-
I had a look to change it but I only use the web-browser to add stuff not the git command as I am much too inexperienced with that.
Seems I cannot change in the browser or can I ?
-
@phoenixdacat said in Acorn BBC Micro Emulator (current?):
It's not the first time I've come across this.
Probably because your
git
is configured to translate LF to CRLF automatically viacore.autocrlf
? Windows nowadays is better equiped to handle Unix line endings, you should turn off this option if you'd like to get rid of this problem. -
@Folly I can do a pull request to your repo with the file added it you like?
-
@mitu that would fix it for me, but others could face the same issue.
I'll add the .gitattributes file to my local clone, and do a pull request.
-
@phoenixdacat said in Acorn BBC Micro Emulator (current?):
@mitu that would fix it for me, but others could face the same issue.
Sure, if they use Windows, but most of the users that clone @Folly's repo are already using Linux.
-
@mitu Which is why I'd class it as a subtle issue.
I'm a Win developer by profession, and I like to clone repos to my main PC, so that I can learn from code. I did that with Folly's repo, and then copied it to my Pi. Once I found out how that script could be run via the CLI, it was obvious from the errors what the issue was, so I just hopped onto the Pi and cloned it there.
I can't imagine I'm the only one who would clone to Windows then copy over.
-
Ok, I merged it.
Should be good for windows user now then.
Thanks !Edit :
I see that the .gitattributes file is showing up in the browser.
So it can be edited via the browser if needed. -
@phoenixdacat said in Acorn BBC Micro Emulator (current?):
I'm a Win developer by profession, and I like to clone repos to my main PC, so that I can learn from code.
Just something to add if you want to review the code you can simply check it by function.
At least next works for these kinds of module-scripts.Remember this :
pi@raspberrypi:~/RetroPie-Setup $ sudo ./retropie_packages.sh|grep b-em-allegro4 b-em-allegro4 : Acorn BBC emulator : build configure depends install sources clean remove
If you want to do the depends only you do :
sudo ./retropie_packages.sh|grep b-em-allegro4 depends
etc.
Just use it in the proper order (seen in the module-script) and you can see what every function is doing step by step.clean
is to remove the source-code in Retropie-Setup/tmp/build/
remove
is to remove the emulator that is installed. -
@Folly here are the Qjoy controller mappings I use
after qjoypad is installed the folder for qjoy is in home, Pi as .qjoypad3 or .qjoypad
just drop my mappings in the folder, I'm pretty sure it would work as is, but you can change any you need
if you wanted to test mine i dumped the mappings here -->https://mega.nz/folder/6GZBATYR#wMK75OmJIgoGjHk6De_rcw -
Tested qjoypad and is a nice program indeed.
You can even load game-specific layouts, from the commandline or the script, if needed.I tried to implement it in the loader script so it can also be used if no desktop is used.
I could get that working however when you exit the emulator qjoypad will keep running and you cannot exit to emulationstation again.
Tried also with the option -T but then other thing don't work correctly.So sadly no implementation.
-
@Folly did u try my qjoy mapping? it brings me back to emulationstation ,so yours just sits on a black screen?
-
@Retrodade said in Acorn BBC Micro Emulator (current?):
@Folly did u try my qjoy mapping? it brings me back to emulationstation ,so yours just sits on a black screen?
I had to make my own mappings as my joystick is recognised very differently.
I am on holiday now will have a second look next week if I can. -
@Folly said in Acorn BBC Micro Emulator (current?):
Did you have look using my
b-em
3rd party scripts ?
https://github.com/FollyMaddy/RetroPie-Share/tree/main/00-scriptmodules-00/emulatorsThis worked like a charm for me today!
Any way to map the exit to SELECT + START on the controller?
-
Which emulator did you use ?
Good to hear that it works for you.
With these emulators you probably noticed that more software will work than using mame.I must admit that I didn't use these emulators for quite a while as I moved to a newer operating system which can't compile these older source-codes properly.
It might be possible to use binaries from older OSes on newer OSes but I never tried.
As this might be a solution to keep running these "good" old working emulators on newer OSes it is not ideal and will take quite some time to implement. That is mainly the reason I didn't update the scripts.As far as I remember exiting with a joystick is not directly possible as exiting is a bit hackish and only possible with the keyboard unless you use a program like qjoypad.
However qjoypad will only work if you use an operating system with desktop environment.
I you don't have that then you need to use an other similar solution. -
@Folly said in Acorn BBC Micro Emulator (current?):
Which emulator did you use ?
Good to hear that it works for you.
You probably noticed that more software will work, with these emulators, than using mame.I must admit that I didn't use these emulators for quite a while as I moved to a newer operating system which can't compile these older source-code properly
As far as I remember exiting with a joystick is not directly possible as exiting is a bit hackish and only possible with the keyboard unless you use a program like qjoypad.
However qjoypad will only work if you use an operating system with desktop environment.
I you don't have that then you need to use an other similar solution.I'm using b-em-allegro4.sh and so far it actually works... from what I can tell... PERFECT!
Games that support joystick work just fine.
The only thing I can't seem to get it to do is map keys to a joystick for those games that don't, but I'm almost thinking that this computer system was "keyboard heavy" anyway so I might just leave it as is...
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.