Interfacing MAME to a motion sim rig (and other stuff)

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
4,979CR
So a friend (Slot-AAA) asked if I could help get a G-LOC shell moving again using a PC. He'd done his own motor drive interfaces, but needed a hand with the MAME bit.
Then, via chatting to a UKAC friend with a sim rig, I gradually wound-up here:


It's basically an (unofficial) fork of MAME where, (via an external Pi Pico 2 - £4), Deluxe motion games will move a virtual joystick.
You then feed this joystick into your simulator control software (I believe a few setups accept motion targets via a joystick).

I modified MAME to rework some of the motion support and add it for a fair few other games.
The games are fooled via basic motor simulators (in MAME) which move like the real rig would and keeps all the self-tests (potentiometers, limit switches) happy. The sim rig then just follows this position.

The Pico is needed as it was the easiest way to take a MAME output and make a virtual joystick from it. Just buy one and plug it in, then leave it hanging there. It does provide some bonus features though - A 3-axis homebrew joystick with 8 buttons, plus some servo outputs (see the video :D) .

There's an interface program that takes (motion)MAME outputs and sends them to the Pico2 (over USB). A bit like Mamehooker, I belive.

The code is on GitHub (and I'll keep updating it).
Happy to help anyone who wants to have a play with it in any shape or form. I'll put the Pico code and the PC interface tool up there later, just need to check my cut-and-paste antics are all above-board.

And the zipped files to simply run it (includes .pdf)
(no ROMs included, but they're easy enough to find - the zip is already big enough)

At the moment, it's NOT a way to put a PC in an old machine, but that could come next. It would be a case of removing the motor simulators and instead interfacing the pico to the real machine potentiometers and motor drive PCBs. Of course, you'd have to make sure the rig moved in a way to keep the game PCB happy to avoid setting lots of faults.
Sadly some games won't be able to support this easily, particularly those with complex interfaces and undumped drive boards (Galaxy Force, Metal Hawk)

Might be of interest anyway.

Use with caution - it's a WIP and have your hand near the emergency stop if you're being flung around your room on a sim rig.

I doubt you'll kill yourself with the Lego option though.

There's a list of games in the video. Some are less WIP than others (I'm still working on Galaxy Force 2).
At some point, I'll look at:
Rad Mobile
Winning Run
Taito WGP
Top Landing
Top Speed (did work, but I deleted the code - oops)

If there's other motion games of that era you can think of, let me know.
 
Last edited:

Fantazia2

Active member
vacBacker
Feedback
13 (100%)
Credits
2,181CR
Amazing work.

Just had a look and Sim Racing Studio has the map joystick to movement option so looks like it's should be fairly simple to setup on a SIM rig.
 

gferreiro

Newbie
Credits
0CR
I would love some help with this. I have 3 motion rigs right now (2 of them working). g-loc and starwing paradox in working condition, and a motionsim 4dof rig i have not been abke to get to work. Any guidance to get it going would be appreciated!
 

Retroman839

Senior Member
vacBacker
Feedback
12 (100%)
Credits
7,160CR
yeh having it work off mame
Is Awsome. Greet stuff for all that era type game that has motorised cockpit.
I would love to play galaxy force 1&2 again. Plan is to make some space!
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
4,979CR
I would love some help with this. I have 3 motion rigs right now (2 of them working). g-loc and starwing paradox in working condition, and a motionsim 4dof rig i have not been abke to get to work. Any guidance to get it going would be appreciated!
The motion 4DOF rig sounds well suited to this - I was tempted with a 3DOF but didn't want to blow £3000 and I've no room. Maybe one day I might as it would make it easier to develop than asking others to test my stuff (and I've no idea about how you setup a sim rig to take in joystick inputs - I think flyptmover is the tool you use which will take in joystick inputs.).
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
4,979CR
Sweet
I’ll have to give it a try.
I’ve got a simxperience g-seat and g-belt on my rig,. So I think with some tinkering this could work on these devices
please let me know how you get on - all feedback can help refine things as it’s a bit rough at the moment.
I’ve zero instructions on the sim rig side of it at the moment too - my notes stop at the moving virtual joystick
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
4,979CR
Great work!
I immediately tried it out with my motion seat. I think it's working nicely.
Oh, that's excellent. Great to see it's getting some use out there. Hopefully the output motion of the pico/virtual joystick is as fast as the real machine.

I've been working a bit on Chase HQ to emulate that properly as it's very hacky at the moment - I've almost got the motor CPU emulated properly now.
I'll have to do a version 2 update at some point soon.
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
4,979CR
Great work!
I immediately tried it out with my motion seat. I think it's working nicely.
Watching the video slowly, have you got your sim rig set to a slow profile - it looks like it’s lagging the game motion a bit more than I’d expect?
Afterburner is quite brutal if you watch the movement of the virtual joystick (or a real cabinet).
 

Bods

Senior Member
vacBacker
Feedback
3 (100%)
Credits
4,525CR
So a friend (Slot-AAA) asked if I could help get a G-LOC shell moving again using a PC. He'd done his own motor drive interfaces, but needed a hand with the MAME bit.
Then, via chatting to a UKAC friend with a sim rig, I gradually wound-up here:


It's basically an (unofficial) fork of MAME where, (via an external Pi Pico 2 - £4), Deluxe motion games will move a virtual joystick.
You then feed this joystick into your simulator control software (I believe a few setups accept motion targets via a joystick).

I modified MAME to rework some of the motion support and add it for a fair few other games.
The games are fooled via basic motor simulators (in MAME) which move like the real rig would and keeps all the self-tests (potentiometers, limit switches) happy. The sim rig then just follows this position.

The Pico is needed as it was the easiest way to take a MAME output and make a virtual joystick from it. Just buy one and plug it in, then leave it hanging there. It does provide some bonus features though - A 3-axis homebrew joystick with 8 buttons, plus some servo outputs (see the video :D) .

There's an interface program that takes (motion)MAME outputs and sends them to the Pico2 (over USB). A bit like Mamehooker, I belive.

The code is on GitHub (and I'll keep updating it).
Happy to help anyone who wants to have a play with it in any shape or form. I'll put the Pico code and the PC interface tool up there later, just need to check my cut-and-paste antics are all above-board.

And the zipped files to simply run it (includes .pdf)
(no ROMs included, but they're easy enough to find - the zip is already big enough)

At the moment, it's NOT a way to put a PC in an old machine, but that could come next. It would be a case of removing the motor simulators and instead interfacing the pico to the real machine potentiometers and motor drive PCBs. Of course, you'd have to make sure the rig moved in a way to keep the game PCB happy to avoid setting lots of faults.
Sadly some games won't be able to support this easily, particularly those with complex interfaces and undumped drive boards (Galaxy Force, Metal Hawk)

Might be of interest anyway.

Use with caution - it's a WIP and have your hand near the emergency stop if you're being flung around your room on a sim rig.

I doubt you'll kill yourself with the Lego option though.

There's a list of games in the video. Some are less WIP than others (I'm still working on Galaxy Force 2).
At some point, I'll look at:
Rad Mobile
Winning Run
Taito WGP
Top Landing
Top Speed (did work, but I deleted the code - oops)

If there's other motion games of that era you can think of, let me know.

More Motion cabs
1777975133911.jpeg

Moving Seat on Cisco Heat I think

1777975174918.jpeg
Wild Pilot

1777975252190.jpeg
1777976575140.jpeg
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
4,979CR
Cool, I'll have to look at a couple of those.
Cisco Heat and Big Run are actually in MotionMAME already. How they move compared to a real machine, I'm not quite sure.
Cisco Heat is left/right up/down, whereas Big Run is just up/down.
 
Top