MPF Distribution
Through my long and perilous journey to get MPF into a fit state to run a pinball machine, I learnt a few things. Many of them specific to the time and versions I used, but in general the types of things to look out for are same. And please note, you can just as easily be lucky and have everything work first time – that’s what the developers aim for, and it does happen.
I had a tremendous amount of frustration getting MPF running properly, or at all.
– me.
First choice – Windows or Linux
This is a no-brainer for me. I want more control, not less, so Linux. I also set up a Windows system, as my main work machine is Windows by necessity, since Adobe won’t make their software run on my preferred operating system.
Which Linux?
I wanted to fit my distribution on a small machine. I thought I’d just go with lightweight Linux distribution and iron out any problems that popped up. A fortnight later I gave up. Sometimes, with some distributions and software packages, you end up going around and around in circles, solving one problem after another. At some time you should cut your losses. Yes you can get it to work, but is it worth it? Maybe? If you want to use a particular distribution, I recommend giving it a go, and abandoning it rapidly after a few failures. I went as far as compiling Python to to overcome hurdles. That’s a step too far I think. I eventually took a server install for one of the recommended environments, and built it up to have everything it needed, except that didn’t give me a reliable MPF system. So I took a desktop install, used the text installer and removed almost everything – nice and small, and reliable. The motto is:
It Stopped Working after an Update!
Many people have experienced an MPF installation fail after an update, and the difficulty in getting it to work again can be significant. I use Virtual Machines to test different MPF installs on different operating systems. It’s an extra burden, but has saved me many times. I can test updates to MPF, the operating system, and even hardware changes, and when it fails, I can simply roll-back. When it works and tests Ok, I can make the same changes to the production machine. I happen to use VirtualBox, but lots will work.
I edited a file and now nothing works
- Don’t check in huge media files – GIT will take an age looking for differences unless you tell it not too.
- You can use GIT to back up your project.
- Or you can just backup your GIT repo.
I’m going to Run MPF on this Hardware Platform I like
That’s great, and if it meets the requirements the MPF people build on, then it will probably work a treat. Probably. The Media Controller MC is the most fussy part of MPF. If you have offloaded that to another computer, you probably won’t have any problems at all. If you are using MC, then things like codecs in software and hardware that can trick you, differing audio hardware may or may not work so well.
Time to Upgrade
There are lots more gotchas – but these few tips would have saved me weeks.