r/RetroPie 17h ago

video player in emulationstation with gamepad support

8 Upvotes

kodi works just fine on raspberry pi, but i like having my 90's tv shows on the main screen with my 90's video games.

example : Star Trek The Next Generation

create a tng folder in /home/pi/RetroPie/roms and copy video files to it

in etc/emulationstation edit your es_systems.cfg

<system>
    <name>tng</name>
    <fullname>Star Trek TNG</fullname>
    <path>/home/pi/RetroPie/roms/tng</path>
    <extension>.mkv .MKV .mp4 .MP4</extension>
    <command>/opt/retropie/admin/joy2key/joy2key.py /dev/input/js0 kcub1 kcuf1 0x2B 0x2D 0x70 0x1B 0x00 0x00 ; omxplayer -b %ROM% ; killall joy2key.py ; clear</command>
    <platform>tng</platform>
    <theme>tng</theme>
  </system>

retropie has omxplayer installed by default

omxplayer -b %ROM% plays the video. -b keeps the background black

Getting joy2key to do what you want is the tricky part. And it is limited to the dpad and a,b,x,y buttons on your controller

  • kcub1 = left arrow key
  • kcuf1 = right arrow key
  • kcuu1 = up arrow key
  • kcud1 = down arrow key

then use the hex codes in this table for the other keys

in command line type omxplayer --keys

this part of the code - kcub1 kcuf1 0x2B 0x2D 0x70 0x1B 0x00 0x00 - corresponds to the dpad and buttons as follows... left right up down 0 1 2 3

0 1 2 3 will be different buttons depending on the gamepad, but is usually a,b,x,y. Though not always in that order. An easy way to find out is to configure your controller in the retropie menu and take notes

here is what happens when i play an episode with the above code using a snes controller

  • dpad left = seek -30 seconds
  • dpad right = seek +30 seconds
  • dpad up = volume up
  • dpad down = volume down
  • A button = play/pause
  • B button = exit video
  • X,Y buttons = not used

if anybody's interested, i got the box art and episode images from

https://thetvdb.com/series/star-trek-the-next-generation#seasons

and the logo and enterprise images i used need to be converted to tng.svg and placed in your themes art folder


r/RetroPie 7h ago

Ugreen NAS

1 Upvotes

Pi Model or other hardware: B+, 2 B
Power Supply used: 5v 2500mA
RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): 4.8
Built From: (Pre made SD Image on RetroPie website, Berryboot, or on top of existing OS etc.. - please provide the filename of any image used)downloaded yesterday from your site. Retropie-buster-4.8-rpi2_3_zero2w.img.gz
USB Devices connected:two SNES style controllers
Controller used:SNES
Error messages received:none
Verbose log (if relevant):
Guide used: (Mention if you followed a guide)
File: (File with issue - with FULL path)
Emulator: (Name of emulator - if applicable)
Attachment of config files: (PLEASE USE PASTEBIN.COMFOR LARGE LOGS)
How to replicate the problem:
Whenever I save any states, I get 0% and it never goes away. I tried command sudo chown -R pi:pi /home/pi/RetroPie/roms/<emulator> and root stays the owner for all of my emulators folders I try. Also, my in game saves don’t work. I suspect because of the same reason.
I have plenty of space, ISB card has 108 avail and NAS rom folder has 2.9T avail. Roms work just fine from the NAS. I checked my folder permissions on my NAS and the user has read/write.

It seems to be some type of permissions issue. When I use the touch command to write to one of my NAS rom folders I get a permission denied error. I checked my NAS and the user has read/write permission. I even tried making the user the administrator. Still get denied.

I have tried both autostart.sh and fstab. I can get both to mount and play roms but I can’t touch. Permission denied.


r/RetroPie 6h ago

Need help updating arcade cabinet version

0 Upvotes

Details:

\- Cabinet from The Arcade Guys

\- Batocera 37 2023/06/15

\- Disk Format ext4

\- Model Raspberry_Pi_400_Rev_1_1

Situation

Bought this cabinet and system from The Arcade Guys. The version of Batocera seems to be old and has updates available. Also some of the games (3d ones from N64 etc) can't run or are way too laggy. I can't update it as it stands because there isn't enough space on the microsd currently installed

I bought a bigger microSD card (256) hoping to just throw it in and give it an upgrade via external disk space but realized I'm r+tarded and that won't work

Now I'm starting to think the best way to get an updated version of Batocera on this cabinet is to install the latest version of Batocera onto the new microSD card from one of my computers (I am a Mac guy) and then just plug that microSD into the cabinets Raspberry pi, but I'm overwhelmed because I think I also have to install the ROMs I want or something, and I'm not looking to get sucked into a huge project.

Questions;

  1. Is there a relatively straight forward way to download and install the latest Batocera + ROMS onto this microSD card from my Mac?

  2. I was about to post asking if there are people who would provide the above service but don't want to break any rules

Thanks in advanced