[HOW-TO ] retrOSMCmk2: a RetroPie installer on the Vero4K

I finally figured it out. My Windows NAS has the following folder structure, with ‘Games’ being the top-level UNC share:

//192.168.1.180/Games/Emulator/lr-mame2003/
//192.168.1.180/Games/Emulator/lr-mame2003/mame-libretro (roms folder)
//192.168.1.180/Games/Emulator/lr-mame2003/samples (samples folder)

To get this to work, my fstab needed the following entries for the mounts to work and for lr-mame2003 to be able to use them:

//192.168.1.180/Games/Emulator/lr-mame2003/mame-libretro /home/osmc/RetroPie/roms/mame-libretro cifs vers=3.02,noserverino,x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0

//192.168.1.180/Games/Emulator/lr-mame2003/samples /home/osmc/RetroPie/BIOS/mame2003/samples cifs vers=3.02,noserverino,x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0

Got a question. I’ve installed with the installer on RPI3 with a newish April2024 osmc image. so far all games play, even ones that did not play a couple years ago.
My problem is that the USB controllers key mapping is weird. For example, playing a N64 game, on my Logitech rumble pad, start and select do not kill the game even though the hot key is set to select. and on a MS 360 game pad, same thing but if I got the left and right bottom shoulder buttons, it kills the game and takes you back to ES
I read something about xpad driver and new RetroPie build, but trying to install that is problematic because it needs some kernel header that is not available unless I enable an archive repo
The game controller is a DragonRise generic controller

I’ve been hit with this issue as well - the link to pyxbmct in this post is dead, and trying to install from GitHub - romanvm/script.module.pyxbmct: A GUI micro-framework for Kodi meidacenter addons give me an error about python versions:

2024-09-11 21:58:27.643 T:5781    error <general>: CAddonInstallJob[script.mo
dule.pyxbmct]: The dependency on xbmc.python version 2.25.0 could not be satisfied 

Which isn’t totally unexpected

osmc@osmclounge:~$ python -V
Python 3.9.2
osmc@osmclounge:~$

@hissingshark

So, went to the GitHub and followed all the instructions without any issues for console setup.
Rebooted OSMC, install addon from zip file, browsed to Home directory and found script.launch.retropie.zip (only zip there) and it causes a ‘failed to install dependency’ error.
I can post a log if that helps, but the error in log is failed to find dependency script.module.pyxbmct

The error seems to be related to Nathan’s pyxbmct dependency, I have tried it with your script version 1.3.2, with his own instructions version 1.1.4 and without a version variable in the required import section of addon.xml and all give same log error of failed to find script.module.pyxbmct

Any suggestions please?

Ok, so with the help of Nathan (pyxbmct author) I grabbed the module zip and manually installed it, retropie installed and running :slight_smile:
Now all I have to do is figure out how to setup a Xbox controller to work with a Vero and Retropie, fun times.

Depending on the version of Xbox controller you might need a line in rc.local, else you should be able to use MyOSMC/Bluetooth to pair the Xbox controller. And since it’s paired you should find it in RetrOSMCmk2. Been a while since I did it though.

if needed this is the line you need in /etc/rc.local:

echo 1 > /sys/module/bluetooth/parameters/disable_ertm

So I have an old xbox360 controller which I can’t find the windows adaptor for, even though I know I have one,
And I have my Xbox Series X controller which I think has Bluetooth, but might have to unpair it from console to put it on Vero

Besides that I did install the PlayStation DualShock driver and got that working, but all I got after configuration of controller was a Retropie screen (few options at bottom) and one option under the Retropie banner for configuration.
Not a clue how to launch one of the 3 test roms for mame I put in rims directory?.?

Have you used retropi before, know about the folder structure needed?

The 360 controller I would use only wired, the series controller should be easy to pair with the console again, with the pair button on the console.

Now I’m unsure, but more and more Bluetotth devices can have multiple hosts in their list, but just one connected at a time. Never worked with series controller myself, just the One S controllers that got “real Bluetooth” after a firmware update. but still needed the rc.local bit.

So no I don’t think I have but I am aware of a folder structure.
I have done all this setup to run MAME Roms of which I have a few :wink:
I put 3 (they are zip format and I believe are known as merged) in the /home/osmc/retropie/roms folder

Nope, don’t get it.
Looked at original Retropie for more info and moved my zips into
Retropie/roms/mame
Tried
Retropie/roms/arcade

Both times and with the roms in root roms directory I can’t get them to show up. Played with the scrapper and just get the 9 .py files scrapped.
There is a config somewhere I have missed to tell the setup to look in the right directory.

I wish I could be more help full, but it’s over two years since I fiddled with this, and I mostly did NES/SNES/Sega MS/Genesis. Have little to no experience with MAME in RetrOSMCmk2

Yeah that’s cool, you’ve already given me some clues.
For your platforms was it literally the game as a zip in the retropie/roms/snes (for example) directory or was there more stuff needed?

As i recall, some wmulators (most) supported zip files. But all that should be available on retropi site. Since RetrOSMCmk2 is on a version of that. @hissingshark would know more which version etc.

Ok thank you, I will wait until @hissingshark is next about and hope for some guidance :slight_smile:

As joaqim said, the Retropie site will always be the most up-to-date source of guidance regarding the setup, as this is just an installer for their project.

From my experience I’m pretty certain that MAME would accept zipped ROMs (not all do). The roms/mame path you were using looks like it should be okay too. Same as for other other cores, if you’ve proven them to work. The scraper is only for adding artwork. Emulation Station should scan and pick up the contents of the folders at startup. Not sure why it’s not detecting them for you.

The only gotcha is that it will only display ROMs for the emulators that have actually been installed. Do you definitely have MAME installed?


Regarding the XBOX 360 wireless controllers, I’ve only ever used them by connecting with an official USB wireless dongle. Not aware it can be done over Bluetooth.


The pyxbmct module keeps being a problem. I couldn’t understand why it was an issue in the first place and then seemed to work again. Apparently not now. It should just be picked up in the Kodi repository.

hello @hissingshark and welcome to my part of your thread (The 12 trials of TimboZero lol).
first off, thank you for the thread here and the info on your github that got me 90% of the way to where I wanted to be (MAME was and still is my principle reason for embarking on this voyage, though now its working I am sure to add a few of my old favourite Amiga game and maybe some Spectrum and C64 ones). Great work, and guide to using it.

Now to my corner of hell, I have so far installed originally the whole shooting match from core and main emulators but no optional ones. The guide install didnt seem to take but I later uninstalled virually all of them and redid the core and MAME ones, I am now as confident as I can be that they have worked as that time they made arcade and mame-libreto sub folders.
I had been using an old pack from my PC MAME days from the 0.178 set, this seems according to RetroPie guides to have been an error and 0.78 are the best match for mame-libreto, they have as I write this been added to the /home/osmc/RetroPie/roms/mame-libretro/mame2003/roms/ directory, I will update later today on if this has worked.

I gave up on the Xbox 360 controller ( just couldnt for the life of me remember where I left the usb dongle for it, I instead used the My OSMC networking subsection to enable bluetooth and pair my Xbox Series X controller which works perfectly (well in menus anyhow, havent managed to run a game yet lol).

As promised, an update.
The aforementioned romset in the aforementioned directory works perfectly.

For reference : romset mame 0.78 are the best match for mame-libreto, put them in
/home/osmc/RetroPie/roms/mame-libretro/mame2003/roms/ directory,
Thanks to @joakim_s and @hissingshark

1 Like

Amiga emulation worked straight out the box, well none of my games work (just get an Amiga CLI window a quarter screen size and a FAILAT error, but that’s a config thing not an emulator thing aka another rabbit hole lol).

@hissingshark it crossed my mind that my adventures might have some value to the OP as footnotes (if you thought they were worth it), such as which MAME roms and which directory from my MAME adventure. As I add and report back on other emulators maybe them as well.
I know a lot of this is in the Retropie wiki but as your project is an OSMC addon and so valid here that such footnotes in OP might be a good idea.

One last thing, your addon is a ‘script’ if I understand correctly? Is there a way to launch it from a skin menu/widget etc (example in Arctic Horizon 2 and I am sure many other customisable skins I can add Favourites as a menu item with ‘ActivateWindow(favouritesbrowser)’. Do you know if your Retrosmc mk2 can be run this way and if so what syntax for this type of script would be please?

The installer is a script.
One of the things it does, is put an addon in the home directory, which you can “install from zip”.
Then you launch from addons, as you might for anything else. Should be filed under “games” these days.
Not clear if you’ve followed that step. But once you have, I expect you’d point your favourite at the addon, not at the install script.

Sorry maybe I wasn’t clear. I can launch the emulator no problems (it’s in add-ons/game add-ons/standalone games/)
Launching it from there is easy, adding it to favourites is also easy (but I keep this category for my to do viewing list of films and shows).
Where I am struggling is to add it as a menu item.
As per previous post the skins that let you modify them use the mentioned syntax, and they generally don’t let you add (from offered options) anything that’s not a video/music/program addon, so not games.
So (and yeah it’s an unfair question as your addon is 100% fine and skins isn’t your thing but) do you happen to know how I’d add your addon to such a skin in said format?
Or anyone else reading this :slight_smile:

Curiously your add it to favourites led me to an avenue of fun.
I added it then looked at favourites.xml to see what its ‘code’ was.
RunAddon(“script.launch.retropie”)
Tried adding it to skin as a widget and failed but now I know how it is run I can ask the skinner :slight_smile:
Honestly I started this as a throwaway ‘might play some old games’ project to pass the time. It has turned into a really entertaining experience and learning process….and my twisted mind loves that.

1 Like