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: Forgotten worlds and auto-fire  (Read 3444 times)

0 Members and 1 Guest are viewing this topic.

jlfreund

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 187
  • Last login:June 12, 2025, 02:25:33 pm
    • My project's blog
Forgotten worlds and auto-fire
« on: November 20, 2006, 01:54:50 pm »
I've got a cab with a spinner, but alas, it's not a "push" spinner, needed for Forgotten Worlds. 

You can play by mapping the "push" part of the spinner to a separate button, but then you have to stretch your hands all over the control panel.  It would be nice if there was an auto-fire mechanism in Mame so that you just need one hand on the joystick and one on the spinner.  I don't see a reason to ever not be firing in that game.

The game internally already supports auto-fire (that is holding down the button generates a continuous stream of bullets) so an auto-repeating circuit wouldn't be needed.

Is there a way to get Mame to do the auto firing?  If not, that would be a nice thing to add.  Otherwise, I have to use some kind of weight to sit on the button :)

Jason

lordtodd75

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 364
  • Last login:July 21, 2020, 01:42:37 am
  • I especially hate punks!
Re: Forgotten worlds and auto-fire
« Reply #1 on: November 20, 2006, 04:13:15 pm »
Couldn't you wire a cherry switch that is always closed to your encoder and then set mame config so that it uses that switch as "fire", in essence giving yourself an auto fire button. It would be the same as if you just held the fire button down. Although I am not sure how that would affect things if you weren't using that "auto fire", ie repeated keyboard presses when booting into windows, in other game, etc.

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: Forgotten worlds and auto-fire
« Reply #2 on: November 20, 2006, 04:48:08 pm »
... Forgotten Worlds.  ...

I don't see a reason to ever not be firing in that game.

To move your pod in front / in back.  For blocking and getting around/through walls/floors/obstacles.  That blocking really helps.

Quote
The game internally already supports auto-fire (that is holding down the button generates a continuous stream of bullets) so an auto-repeating circuit wouldn't be needed.

Right, so you don't want "auto-fire".  You want "continuous button press".  "Auto-fire" is something different, and there are strong feelings on it; readers might get confused and give you views on the unrelated auto-fire instead of what you want.

Quote
Is there a way to get Mame to do the auto firing [continuous press]?

AFAIK, not without editing the code.  For FW and what you want, I'd change the IPT_BUTTON1 to IP_ACTIVE_HIGH (from IP_ACTIVE_LOW, line 674 in mame 0.110u2) and recompile.  This would make it so you would fire unless you press the button, without effecting other games.  It's a hack, though, and will not be accepted in official mame.  Just like auto-fire.
Robin
Knowledge is Power

torez

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 276
  • Last login:December 20, 2009, 09:40:12 pm
Re: Forgotten worlds and auto-fire
« Reply #3 on: November 21, 2006, 01:38:22 am »
For autofire you can use Mame32FX:
http://mame32fx.altervista.org/home.htm

Click Features to see other things it supports in addition to normal Mame32.  You can always extract it to the same Mame folder and use this or other version, as desired.
Official Omega Race WR Holder:
1 credit:  3,847,350
2 credit:  4,823,750

liveplaylearn

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:April 02, 2015, 06:47:14 pm
  • I want to build my own arcade controls!
Re: Forgotten worlds and auto-fire
« Reply #4 on: August 20, 2013, 12:19:32 am »
I had this same thought about somehow enabling autofire / continuous button press for Forgotten Worlds.  u_rebelscum, thanks for the hint... I never would have figured this out without it.

In case someone else wants to attempt this, here is where I made the change.  The version of MAME I modified is v0145.

The relevant file is:
     src/mame/drivers/cps1.c

This comment identifies the relevant block:
     /* CPS1 games with 2 players and 3 buttons each */

Before changing:
     PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)

After changing:
     PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)

It seems to have done the trick!

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:May 18, 2024, 04:28:42 pm
  • I want to build my own arcade controls!
Re: Forgotten worlds and auto-fire
« Reply #5 on: August 20, 2013, 03:22:31 am »
I really need to learn how to compile my own version of mame :(

Sent from Amstrad CPC464

    

DaveMMR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3244
  • Last login:April 28, 2025, 11:33:13 am
Re: Forgotten worlds and auto-fire
« Reply #6 on: August 21, 2013, 08:09:22 am »
I really need to learn how to compile my own version of mame :(

Sent from Amstrad CPC464

http://mrdo.mameworld.info/compile.php  ;)

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:May 18, 2024, 04:28:42 pm
  • I want to build my own arcade controls!
Re: Forgotten worlds and auto-fire
« Reply #7 on: September 27, 2013, 06:24:02 pm »
How could I achieve this using AHK? The script could be launched when the rom is loaded but I've no idea what to put in the script.

Sent from Amstrad CPC464