Apple2e: AppleWin Libretro
-
For testing I now have this in the apple2 retroarch.cfg
input_auto_game_focus = "0" input_game_focus_toggle = "scroll_lock" input_game_focus_toggle_axis = "nul" input_game_focus_toggle_btn = "nul" input_game_focus_toggle_mbtn = "nul"
input_auto_game_focus = "0" (or nothing in retroarch.cfg) will NOT set the game focus on at startup.
input_auto_game_focus = "2" will set the game focus on at startup.When game focus is on and using the keyboard as joystick it will disable the joystick.
So for me it's better to disable game focus at startup and enable it when I have to.
A good game example, not needing game-focus, is : test-drive.I added the toggle lines so I can change the toggle button as my mac doesn't have "scroll_lock" I can change it now into "shift", for example.
If not added in the apple2 retroarch.cfg the game focus toggle button is always "scroll_lock".
A good example, needing toggling game focus, is : bruce_lee.
without game focus : setting the joystick keys
with game focus : starting player 1
without game focus : playing the game -
@Lolonois Thank you for looking into this. i installed with the updated script and it starts perfectly.
@Lolonois, @Folly
i think we should change theinput_auto_game_focus
to0
just so people are not surprised when they get locked out from exiting the game if they dont have a controller programed with button
3
like people that might be just using a keyboard.
what you guys think? or pick a different key/button
we can always add more detail in the
help
about the game focus -
@ExarKunIv said in Apple2e: AppleWin Libretro:
what you guys think?
I agree.
People can always use game-focus just like with other cores.
A good thing, with this core, is that it will remind you of the game-focus option at the startup.I would like to have the toggle lines in there too so people don't have to search for the config toggle lines because you can't find them in the normal all/retroarch.cfg.
@Lolonois @ExarKunIv
What do you both think ?The package libslirp stays in the folder /home/pi/RetroPie-Setup/tmp/build/libslirp after install.
Shouldn't it be moved to the opt directory when installing ? -
@Folly said in Apple2e: AppleWin Libretro:
I would like to have the toggle lines in there too so people don't have to search for the config toggle lines because you can't find them in the normal all/retroarch.cfg.
good idea.
-
Valid aspects, you two.
Some changes I did:
- Game focus is off by default.
- Added to the Readme/Help to closely review the game focus toggle button
- Removed
libslirp
build artefacts. At the moment they are installed at/usr/local/lib/arm-linux-gnueabihf
. Maybe I change it over time, but for now (experimental scriptmodul still) I will leave it like that.
-
@Lolonois looks good to me. Thanks again for all your work on this
-
There are a lot of .gz zipped dsk and po files in the apple-ii-disk-collection rom pack.
I think we should add the .gz extension too. -
@Folly The information in the
rp_help
in this scriptmodule is only informational. Normative authority ises_systems.cfg
: Enabling.gz
can be done in the~/.emulationstation/es_systems.cfg
by the user. This core supports.gz
but I can not tell for other emulators like Linapple. -
That's ok, I get it.
-
@ExarKunIv how do i get the "working version"? i installed from extras and it's booting back so i found this thread and figured I have something a miss?
thanks
-
@Retrodade as far as i now its still working,
when you start the game you need to press a and then launch it with Verbose loghttps://retropie.org.uk/docs/Runcommand/#launch-with-verbose-logging
that way it will make a log file that you can post here and we can see what is going on
also what are you running it on
-
@ExarKunIv pi4
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-applewin/applewin_libretro.so --config /opt/retropie/configs/apple2/retroarch.cfg "/home/pi/RetroPie/roms/apple2/Pac-Man (Atari) (USA).dsk" --verbose --appendconfig /dev/shm/retroarch.cfg
[INFO] RetroArch 1.8.5 (Git 8bcd74b)
[INFO] Redirecting save file to "/home/pi/RetroPie/roms/apple2/Pac-Man (Atari) (USA).srm".
[INFO] Redirecting savestate to "/home/pi/RetroPie/roms/apple2/Pac-Man (Atari) (USA).state".
[INFO] === Build =======================================
[INFO] Capabilities: NEON VFPv3 VFPv4
[INFO] Built: Apr 20 2020
[INFO] Version: 1.8.5
[INFO] Git: 8bcd74b
[INFO] =================================================
[INFO] Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-applewin/applewin_libretro.so"
[ERROR] Failed to open libretro core: "/opt/retropie/libretrocores/lr-applewin/applewin_libretro.so"
Error(s): libslirp.so.0: cannot open shared object file: No such file or directory
[INFO] Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] Unloading game..
[INFO] Unloading core..
[INFO] Unloading core symbols.. -
@Retrodade said in Apple2e: AppleWin Libretro:
Error(s): libslirp.so.0: cannot open shared object file: No such file or directory
You are missing a dependency.
Try to install it manually from the cli and see if it works :sudo apt install libslirp-dev
Or add it to the modulescript in lr-applewin.sh in the function depends and reinstall the core again.
-
@Folly its odd that its missing
the script builds it from sourcegitPullOrClone $md_build/../libslirp https://gitlab.freedesktop.org/slirp/libslirp.git
UPDATE
yes something it broken, not sure where, yet
the script does buildlibslirp
from source and does install it
i can do a file search and its there,libslirp.so.0
i dont know why its not being found maybe @Lolonois can shed some light on this one
im trying a older commit to see if the dev changed something -
@ExarKunIv ok great i did try the 2 methods above and it wouldn't add it
first I tried this way.
pi@retropie:~ $ sudo apt install libslirp-dev
Reading package lists... DoneBuilding dependency tree
Reading state information... Done
E: Unable to locate package libslirp-dev
then I tried adding it in the sh
Installing dependencies for 'Ir-applewin' : AppleZe emulator: AppleWin (current) port fox
Did not find needed dependencies: libslirp-deu. Trying to install them now.
Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [400 kB]
Fetched 13.5 MB in 8s (1,677 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libsl irp-deu
Could not install package(s): libsl irp-deu. -
@Retrodade said in Apple2e: AppleWin Libretro:
[INFO] RetroArch 1.8.5 (Git 8bcd74b)
As I mentioned already in another thread: With this outdated version you are on your own (v1.8.5 was added at 2020-04-17 to RetroPie).
Currently RetroPie is on retroarch v1.16.0, I tested lr-applewin with retroarch v1.12 onwards.
-
@Folly on RetroPie on RaspiOS Buster this lib is not available as package. There is a reason I added the source build ;-) Please avoid hinting less experienced users in the wrong direction.
-
@ExarKunIv I'd like to challenge that the scriptmodule is wrong/outdated.
I had no luck to reproduce the missing libslirp dependency.
I have tested with RP 4.8.6 (commit
656a478e
):- Explicitly deleted the libslirp installation from
/usr/local/lib/arm-linux-gnueabihf/
and/usr/local/lib/arm-linux-gnueabihf/pkgconfig
- I have taken the scriptmodule as in the latest revision in the gist
- I tried with the dialog basesd
retropie-setup.sh
and as well withretropie-packages.sh lr-applewin
No issues.
Can you provide a build log of lr-applewin from
~/RetroPie-Setup/logs/rps...gz
via pastebin or similar?Do you have the
*.so
files and symlinks in/usr/local/lib/arm-linux-gnueabihf/
after the scriptmodule did run?Does ldd find libslirp? Issue:
ldd /opt/retropie/libretrocores/lr-applewin/applewin_libretro.so | grep slirp
, it should give you one match.If there is no match. What is the content of the file/is this file below present?
$ cat /etc/ld.so.conf.d/arm-linux-gnueabihf.conf # Multiarch support /usr/local/lib/arm-linux-gnueabihf # <--- this must be there /lib/arm-linux-gnueabihf /usr/lib/arm-linux-gnueabihf
If it (=the marked line above) is there, do update the library dependency cache with
sudo ldconfig -v | grep slirp
. You should see a line like[...] libslirp.so.0 -> libslirp.so.0.4.0 [...]
Then check again: Does ldd find libslirp? (see above)
- Explicitly deleted the libslirp installation from
-
@Lolonois said in Apple2e: AppleWin Libretro:
Please avoid hinting less experienced users in the wrong direction.
With the information I had it was the most obvious hint.
-
@Lolonois said in Apple2e: AppleWin Libretro:
Do you have the *.so files and symlinks in /usr/local/lib/arm-linux-gnueabihf/ after the scriptmodule did run?
I know it installed that just fine for me on my test setup. I'll have to check the symlinks
But it end up giving the same error as reteodade
I already have it working on my main system. But that was done awhile ago. But I'm going to compare that with my test setup on Monday
I find it odd that a few other people are having issues. But you aren't. And I have 1 system that's fine and 1 that's not working
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.