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: button config for Escape from the Planet of Robot Monsters?  (Read 1340 times)

0 Members and 1 Guest are viewing this topic.

hulkster

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2382
  • Last login:September 05, 2021, 04:27:59 pm
  • HulkaMAMEia is runnin' wild!
i used to play this game all the time, anybody else?  well i played it with a keyboard and it worked fine.  it stills "works" on my cab, but the movements arent right.  like, if i dont push anything, the guy will just keep walking and walking, and in order to make him stop i have to push the attack (fire) button, then when i quit firing, he keeps on walking.  anyone else have this problem?  i want to make it so that when i quit pushing ont he joystick, he stops (duh)....anybody help here?

Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Re:button config for Escape from the Planet of Robot Monsters?
« Reply #1 on: July 28, 2003, 06:51:46 pm »
Escape for the Planet of Robot Monsters uses an analog joystick for input.  Your 8-way stick cannot control it very well.  Try hooking a regular PC joystick up to your computer and try it.

Rocky

hulkster

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2382
  • Last login:September 05, 2021, 04:27:59 pm
  • HulkaMAMEia is runnin' wild!
Re:button config for Escape from the Planet of Robot Monsters?
« Reply #2 on: July 29, 2003, 01:12:50 am »
hmm, is there another way?  just seems like the problem is, the guy wont stop walking.  anybody know?

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:button config for Escape from the Planet of Robot Monsters?
« Reply #3 on: July 29, 2003, 02:55:16 am »
Either use an analog joystick or edit four lines in the source code.

The best is to use an analog stick.  The original machine used them*, and for the most realistic game play you should use them too.  With digital sticks/keyboard, it's very hard to shoot the "22.5o" angles (half way between the cardinals and the diags).

If you must use digital inputs, you can edit src/drivers/eprom.c, lines 249, 253, 257, & 261 by adding the IPF_CENTER flag (ie add "| IPF_CENTER") and recompile.  There are problems with this though, as you will find out: shooting the "22.5o"s will be even harder than before, and facing a certain direction without shooting will be harder, too.  Here's the code
Code: [Select]
PORT_START   /* ADC0 @ 0x260020 */
PORT_ANALOG( 0x00ff, 0x0080, IPT_AD_STICK_Y | IPF_PLAYER1 | IPF_CENTER, 100, 10, 0x10, 0xf0 )
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )

PORT_START   /* ADC1 @ 0x260022 */
PORT_ANALOG( 0x00ff, 0x0080, IPT_AD_STICK_X | IPF_REVERSE | IPF_PLAYER1 | IPF_CENTER, 100, 10, 0x10, 0xf0 )
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )

PORT_START   /* ADC0 @ 0x260024 */
PORT_ANALOG( 0x00ff, 0x0080, IPT_AD_STICK_Y | IPF_PLAYER2 | IPF_CENTER, 100, 10, 0x10, 0xf0 )
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )

PORT_START   /* ADC1 @ 0x260026 */
PORT_ANALOG( 0x00ff, 0x0080, IPT_AD_STICK_X | IPF_REVERSE | IPF_PLAYER2 | IPF_CENTER, 100, 10, 0x10, 0xf0 )


*Yes, the machines used "Hall Effect" joysticks, but this is just a type of analog joystick; two other types are "POT" (most common) and "optical" (optical is a type of digital stick, too).  (FWIW, the three types of digital sticks: (leaf, microswitch, and optical), and the two types of mice: (optical and encoder wheel).
Robin
Knowledge is Power

hulkster

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2382
  • Last login:September 05, 2021, 04:27:59 pm
  • HulkaMAMEia is runnin' wild!
Re:button config for Escape from the Planet of Robot Monsters?
« Reply #4 on: July 29, 2003, 10:20:27 am »
thanks for that!