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: Food fight and analog sticks  (Read 5666 times)

0 Members and 1 Guest are viewing this topic.

PkingRoch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:June 08, 2020, 02:12:47 pm
  • This is supposed to be fun...
    • Paul & Brian's Arcade Adventure
Food fight and analog sticks
« on: August 28, 2003, 09:50:10 am »
One of our favs is food fight, however, we can't seem to figure out how to make the controls work properly.  I remember being able to stop and any of the food piles and just chuck food in any direction, but my setup (SlikStik classic) doesn't allow this to happen; I can't stop and chuck food, I keep moving while I'm chucking.  I did a search and saw a reference to using an analog stick, but I'm not sure if that's a wise decision.  Has anyone ever tried an analog stick with this game?  How did you interface it?

Thanks!
Paul

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:Food fight and analog sticks
« Reply #1 on: August 28, 2003, 10:07:14 am »
This game used an analog stick in the arcades - from KLOV:

This game uses a special analog joystick that is comprised of a centering-bellows and two potentiometers.

I don't think I've ever played the game in MAME with an analog stick, but a PC analog stick should give you the same 'feel' more or less...

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re:Food fight and analog sticks
« Reply #2 on: August 28, 2003, 01:36:18 pm »
Didn't it have a restrictor spider rubber band thingy on the bottom similar to sinistar?

jerryjanis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:February 02, 2023, 01:56:44 am
  • Skate or Die!!!
    • Jake's Joystick
Re:Food fight and analog sticks
« Reply #3 on: August 28, 2003, 02:16:51 pm »
I just tested it with an analog controller...  As long as you are moving in a direction it works right, but when it's centered, I keep moving like you describe.

Sure seems like a Mame bug...   ???

telengard

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 784
  • Last login:July 23, 2025, 10:56:55 am
  • Yeah, it's a classic! 21+ on BYOAC and still goin
    • S T U R C A D E
Re:Food fight and analog sticks
« Reply #4 on: August 28, 2003, 03:21:58 pm »
Didn't it have a restrictor spider rubber band thingy on the bottom similar to sinistar?

I don't believe so.  IIRC it as a "hall effect" joystick.
Road Runner used the same one, and maybe I, Robot.
S T U R C A D E     M.A.M.E. Cabinet
http://www.briansturk.com/mame.html

Aceldamor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 878
  • Last login:October 25, 2019, 05:10:51 pm
  • You know you hear the music in your head...
Re:Food fight and analog sticks
« Reply #5 on: August 28, 2003, 04:22:01 pm »
I just tested it with an analog controller...  As long as you are moving in a direction it works right, but when it's centered, I keep moving like you describe.

Sure seems like a Mame bug...   ???

I thought i remembered another thread where u_rebelscum told everyone how to fix it so you can use an analog stick and have it stop when the stick is centered
Fuzzy Wuzzy was a woman!

GamingGreg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 304
  • Last login:August 05, 2018, 06:04:30 pm
Re:Food fight and analog sticks
« Reply #6 on: August 28, 2003, 08:05:11 pm »
I believe it was a matter of callibrating your joystick and maybe using a bigger "analog joystick deadzone" setting in MAME.

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:Food fight and analog sticks
« Reply #7 on: August 28, 2003, 08:50:01 pm »
I just tested it with an analog controller...  As long as you are moving in a direction it works right, but when it's centered, I keep moving like you describe.

Sure seems like a Mame bug...   ???

I thought i remembered another thread where u_rebelscum told everyone how to fix it so you can use an analog stick and have it stop when the stick is centered

Hmm, I don't remember that thread, but writing this post seems familiar...

I'm able to play with the analog stick on my gamepad, stand-n-throw and all (mostly).  In my case, I had to increase the X axis sensitivity to 125% so I could move straight left.  And to stand-n-throw, I need to be pushing a little in the direction I want to throw or else I face right.  Either I need to re-calibrate the gamepad in windows, or the default "center" in mame is a little to the right of what the game thinks is center.

To stand-n-throw, you need an analog stick.  Pushing a little in a direction makes you face (and throw) that way; pushing more makes you run that way.

If you have to play with a digital stick and want to be able to stop when the stick is centered, you can edit the source (src/drivers/foodf.c) and add the "IPF_CENTER" flag to the input type (lines 249, 252, 255 & 258, as of mame 0.72u2):
PORT_ANALOG( 0xff, 0x7f, IPT_AD_STICK_X | IPF_PLAYER1 | IPF_REVERSE | IPF_CENTER, 100, 10, 0, 255 )
However, standing and changing the direction you face without moving will be hard if not impossible.  Plus then you can't really throw in any direction but the 8-ways.
Robin
Knowledge is Power

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:Food fight and analog sticks
« Reply #8 on: August 28, 2003, 09:01:42 pm »
I believe it was a matter of callibrating your joystick and maybe using a bigger "analog joystick deadzone" setting in MAME.

"analog joystick deadzone" is only used when converting analog joystick device inputs to game digital inputs; ie: analog joystick to play pacman.  Since the FoodFight game input is analog too, mame does not use this setting.
Robin
Knowledge is Power