Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: defender controls hack: 8 way joy/3 buttons (now with source patch)  (Read 8224 times)

0 Members and 1 Guest are viewing this topic.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
I discovered that at one point defender had a "cheat" that allowed an 8 way joystick to control thrust and reverse, eliminating the need for those buttons (I guess it's not a cheat in the cheat.dat sense, but I've seen it referred to as a cheat). It looks like Aaron Giles removed it back in the 0.80's some time. Do I understand this right? Are there any patches out there for adding it back in, much like the hiscore patch? Or any other way to accomplish this?

EDIT: I have created a patch file from examining mameuifx's source code. Here it is if anyone else is interested. I've only tried this with 0.126 and 0.127. If you attempt this with any other versions please report back what version and if it worked.
« Last Edit: August 23, 2008, 02:51:05 pm by TheShanMan »
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:Yesterday at 10:45:55 pm
  • Comanche, OK -- USA
Re: defender controls cheat?
« Reply #1 on: August 20, 2008, 05:40:14 pm »
Just map em. I was using a version of MAME at the time that used the older control setup, so I didn't realize the difference when answering.
« Last Edit: October 13, 2014, 09:58:17 pm by Ginsu Victim »

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: defender controls cheat?
« Reply #2 on: August 20, 2008, 06:00:14 pm »
Not possible. There is no "move left" and "move right" input. In the past I've mapped reverse to left and right on the joystick, and that is actually kind of confusing. Say you're moving right, and then you push the joystick to the right. Now you're moving left. You could probably get used to that, but I'm after a more intuitive interface, and my understanding of that old cheat is exactly what I'm after. I could push the joystick left a bunch of times and I wouldn't toggle back and forth between left and right.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

TOK

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3604
  • Last login:January 24, 2024, 05:14:24 pm
  • The Game Always Wins
Re: defender controls cheat?
« Reply #3 on: August 20, 2008, 08:37:20 pm »
This was eliminated in a version of MAME, though I can't remember which. I have my main horizontal cab running .84, and I'm pretty sure that supported joystick directions for reverse and thrust.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: defender controls cheat?
« Reply #4 on: August 20, 2008, 08:40:45 pm »
Well unless there's a patch for recent versions, maybe I'll revert to an old version just for defender. Or maybe I'll diff Aaron's changes so I can figure out what needs to be put back in for a patch to recent versions. Anyone interested in a patch?
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

jban4us

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:July 08, 2013, 12:06:49 pm
Re: defender controls cheat?
« Reply #5 on: August 20, 2008, 11:43:15 pm »
This might be sacrilege, and I know you have to give up the "arcade feel", but have you thought about trying the 2600 port of defender? I built a defender panel based off of the measurements in this thread, but before that I had never played defender in an arcade (before my time ;)). As a kid I played a 2600 at my grandparents house every time I was there; defender was my favorite game. I still find myself trying to use the stick to go left and right when playing in mame.

Tafoid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:February 12, 2025, 04:47:22 am
  • Emulation Devotee
    • MAMELOAD TNG (Front-End)
Re: defender controls cheat?
« Reply #6 on: August 21, 2008, 08:21:58 am »
Well unless there's a patch for recent versions, maybe I'll revert to an old version just for defender. Or maybe I'll diff Aaron's changes so I can figure out what needs to be put back in for a patch to recent versions. Anyone interested in a patch?

There is a build that put in this hacked control scheme .. MAMEUIFX.  I'm sure one could use the source from that for their private builds.

http://mame32fx.altervista.org/home.htm

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: defender controls cheat?
« Reply #7 on: August 21, 2008, 09:39:46 am »
Thanks Tafoid! I just diff'ed it with the official mame 0.127 source, and there is actually very little to it. I look forward to trying this out.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: defender controls cheat?
« Reply #8 on: August 21, 2008, 07:40:43 pm »
This might be sacrilege, and I know you have to give up the "arcade feel", but have you thought about trying the 2600 port of defender? I built a defender panel based off of the measurements in this thread, but before that I had never played defender in an arcade (before my time ;)). As a kid I played a 2600 at my grandparents house every time I was there; defender was my favorite game. I still find myself trying to use the stick to go left and right when playing in mame.

Sacrilegious!!!  ;D  I loved that game as a kid.  I killed at it; once my parents left to go shopping while I was playing, and said I had only one more game before I had to stop playing.  They returned over an hour latter and I was on the same game.  After that I rarely stopped by dieing; my parents would kick me off before I lost all my lives.

At the same age, the arcade version killed me in minute.  (<-- Notice no 's'  :-[)
Robin
Knowledge is Power

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: defender controls cheat?
« Reply #9 on: August 21, 2008, 07:52:56 pm »
Do I understand correctly that defender could then be played with an 8way stick and 3 buttons?  My god, that's exactly how many available controls I have on my machine...

If only that wasn't a horizontal game. :hissy:

This gets me thinking about how many other games can be faked like this.  I did asteroids with a joystick on my machine already.  any others?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: defender controls cheat?
« Reply #10 on: August 22, 2008, 10:27:15 am »
I created a diff file and added it to the first post if anyone is interested.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #11 on: August 23, 2008, 12:10:36 pm »
The 0.127 patch didn't work for 0.126, so I fixed that and uploaded a separate 0.126 patch. See first post.
« Last Edit: August 23, 2008, 02:51:26 pm by TheShanMan »
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

bent98

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 477
  • Last login:February 02, 2019, 03:35:00 pm
  • Hyperspin Moderator
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #12 on: August 24, 2008, 08:30:16 am »
Does that patch work with command line mame or just UI? I would like to try it out and if it requires a new .diff for mame command line can you make one as well for 127?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #13 on: August 24, 2008, 11:22:42 am »
Shouldn't make any difference which one you build. I built command line though.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

specfire

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 127
  • Last login:April 23, 2016, 10:39:09 pm
  • Shhh...
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #14 on: January 06, 2014, 11:29:45 pm »
Hello,

Sorry for reviving such an old thread, however, I am seeking help using this control hack.

Rather than recompile, I am just using MAME v.84, as that was the last release to include the hack (Aaron Giles removed it in v.84u6.)

I can't figure out how to set up the controls to use this hack?  Does anyone have any advice on how this hack is supposed to work?

Thanks!
Read to your kids, you'll all be better for it.

specfire

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 127
  • Last login:April 23, 2016, 10:39:09 pm
  • Shhh...
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #15 on: January 09, 2014, 09:18:05 pm »
Just a quick update. 

I compiled mame version 127 using the diff and it all seemed to work without errors.  The TAB listing for Input (this game) is the same as the normal build but adds P1 Left and P1 Right, currently mapped to the cursor left and right keys but they don't do anything in the game.

 :-[

Does anyone know what I am doing wrong or what I should be doing?

Thanks!
« Last Edit: January 09, 2014, 09:46:20 pm by specfire »
Read to your kids, you'll all be better for it.

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #16 on: January 09, 2014, 09:35:33 pm »
if u get stuck perhaps see here:
(ps. last post in the thread contains patch for current mame versions)
http://forum.arcadecontrols.com/index.php/topic,108813.msg1155082.html

specfire

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 127
  • Last login:April 23, 2016, 10:39:09 pm
  • Shhh...
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #17 on: January 09, 2014, 09:50:14 pm »
Thank you very much for that link!  I'm only now getting back into mame from over 6 years ago, so I have missed quite a bit.

edit.  I can't get Derrick's patch to work on v.141 without errors, however, frl's edit of Derrick's patch for v.151 worked perfectly. 

« Last Edit: January 11, 2014, 11:25:17 pm by specfire »
Read to your kids, you'll all be better for it.

D_BIZZZZ

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:August 16, 2015, 05:51:29 am
  • I want to build my own arcade controls!
Re: defender controls hack: 8 way joy/3 buttons (now with source patch)
« Reply #18 on: October 11, 2014, 06:33:58 am »
Apologies for messaging on a very old topic, but I love this patch and oddly have only just discovered it,
I can finally play one of my favorites on my 3 button and also get my kids involved how to play it.

Unfortunately on my arcade cab I run MAME 0.124 ,, but none of the patches here work.
I don't want to use mame version over 0.124 because that knocks out the resolution for games like frogger

Would anyone care to share a 0.124 patch for defender controls, or could you tell me what I would need to do to get it to work on 0.124
is it just a case of modifying a couple of lines on the williams.c

any help is most appreciated

Thanks
DB