Well here we go. I’m following the instructions on the How To: Migrate from MPF 0.21 to MPF 0.30. I can skip on down to instruction 2A because that is where the real fun starts. I’m on a Windows 10 (yes, I was one of those lucky souls that Microsoft updated automatically even though I said I wanted to update later. Grrr). This machine was previously running MPF 0.21 so Python 2.7 is currently installed on the machine.
In a command prompt I did the “echo %PROCESSOR_ARCHITECTURE%” and found that I have an AMD64. That means I need to use the 64-bit installer and proves that I’m a cheapskate because I don’t buy the more expensive Intel processors. I went ahead and downloaded the 64bit installer file as described.
I dislike installing Python in my path, so the commands that I type out will give the full path to start the Python executable. After install Python 3.4.4 I went ahead and checked the version which the command is “c:\Python34\python –version” and it reports back that Python 3.4.4 is running. Yeah!
To install MPF, I typed “c:\Python34\python -m pip install mpf-mc” or alternately I could have typed “c:\Python34\Scripts\pip install mpf-mc”. It warned me that I’m using an older version of pip but, I don’t believe that I care.
I have a special font that I use, but we will see what happens without trying to install the default MPF fonts. Who knows if it will work.
I already have Git GUI installed, but if you don’t you can grab Git GUI here. Git GUI allowas you to easily download Git code repositories. The nice part is that you can right click and create a repository folder without going through the command prompt. (You may need to reboot to get the right click context menus, but I don’t remember that being necessary).
Okay, now lets grab the git examples repository. So all of MPF files are located in the Desktop\Pinball folder. The Desktop folder on Windows 10 is located at \Users\YourUserName\Desktop. This includes the Desktop\Pinball\mpf-docs folder which includes the current MPF 0.30 documentation that I need to do a couple updates for the OPP configuration information. Now I need to create the Desktop\Pinball\mpf-examples folder that has all the example code. To do that, I right clicked in the Desktop\Pinball folder, and chose the Git GUI menu item. That opens up the Git GUI. Next I clicked Clone Existing Repository in the Git GUI program. The source location is https://github.com/missionpinball/mpf-examples, and for the target directory, I browse to Desktop/pinball and add “/mpf-examples” to the directory name. Note: The folder does not exist and Git GUI feels it must create it by itself. The target directory should have something C:/Users/YourUserName/Desktop/Pinball/mpf-examples in it. Now press the clone button. That will take a minute to finish. I used to have to move the Git to the dev branch, but looking at the repository, it seems like the configuration files for demo man on the trunk are currently for 0.30 version of MPF.
Let’s try and get it running. So now open up two command prompt windows. (I still have one open from doing the original install, so I only have to open one.) Run the “cd C:/Users/YourUserName/Desktop/Pinball/mpf-examples/demo_man” in each of the windows to get to the correct directory. In the first window, I type “C:\Python34\python.exe -m mpf mc”. Hey! It says “Loading Assets: 100%” on the fake DMD window that it creates. That sounds good. In the second command window, I type “C:\Python34\python.exe -m mpf -x”. The extra “-x” says that you don’t have any real hardware. (I’m sure most people running MPF don’t actually have a Demo Man pinball machine sitting next to them.) You should hear some fan fare play. With the created “Mission Pinball Framework” as the active window, you can press ‘s’ to start a game. ‘x’ gives you some points. Hitting ‘b’ crashes it, and hitting ‘t’ sends it into tilt mode where I can’t figure out how to make it recover. The only thing that really matters is that it is working. You can close out the program by closing the “Mission Pinball Framework” window.
That seemed to be even a little easier than the last time I installed MPF. Next up will be trying to move the little bit of SS3 MPF 0.21 script files that I have over to MPF 0.30. That should show the SS3 attract mode which would be a nice next step.