MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

bgoodr
MAME Fan
Reged: 10/31/08
Posts: 7
Send PM
Re: Food Fight Rev 3 looking or walking to the right when not touching joystick
11/01/08 08:06 AM


Thanks MAMEBase!


Quote:


Detailed drawings are available as part of te Operations
Manual (available at
http://www.tamdb.net/index.php?page=Manuals&lettre=F)




That does help a bit. I noticed the following on PDF page 18 (physical page 2-3) of the second printing of the Food Fight Operators Manual:


Quote:


Food Fight is equipped with a self-calibrating joystick, which
checks its maximum and minimum values while the game is being
played. Initial values are set at the factory and stored in
NVRAM. When Food Fight is turned off, the NVRAM values are
updated. Each time Food Fight is turned on, the current values are
read out of NVRAM. If NVRAM fails (see the description under Automatic
Self-Test), then the joystick is recalibrated as the game is being
played. In this case, the control will be sluggish for the first game
or two aafter the game is turned on.




That may explain the changing behavior over time. I suspect if I do not remove the Food Fight NVRAM file each and every time I run, then the behavior will start out initially in running-to-the-right-when-joystick-is-let-go mode of behavior, but eventually switch over into the less severe looking-to-the-right-when-joystick-is-let-go mode of behavior (this is actually what I verified happens; see test run below).

So, to prove this is happening, I ran a few experiments as follows:


  1. Game #1: No .nv file: Moved to the left, let go, and the character moved to the right. I moved up/left and then down/left to avoid touching the other characters and then let go, and then the character stopped and looked right but did not move to the right. I then died. Upon the second sequence (same game) I tried moving out to the left and it became sluggish and it seemed as if the left joystick would not even move to the left, and I died again. On the third frame after dieing, I saw the beginnings of the same behavior where I could not move to the left but then kept at it, moving around in a wide circle and then the ability to move left came back again. I went to the next level and was seemingly able to move around without harm, but then forgot that I didn't have a throw button configured on the joystick buttons and promptly died again.
  2. Game #2: Same MAME process: A new game started, same MAME process. I moved up and around and then let go of the joystick. The character looked down this time. I moved around a bit more and died. Upon the second play, I tried moving around in random directions, avoiding the persistent Chefs, and stopped frequently, and this time consistently saw the looking-to-the-right-when-still behavior.
  3. Game #3: Same MAME process: Started new game, same MAME session. Moved to the left and let go, and the character looked to the right. Repeated that same maneuver again, and again the character looked to the right. Had to avoid a Chef, so moved straight up and then let go and this time he looked downward and to the right, but not straight right. And then the Chef caught up to me and I died. On the next screen of this same game, the character started out looking downward and to the right. I moved the joystick and let go, and same thing: looking downward and to the right. and then I died. Upon the next screen, I tried again, and got the same thing, then moved up, then up/left, then left, and then left/down, and then let go of the joystick, and then the character looked right (not down/right this time). I then exited the MAME process entirely.
  4. Game #4: New MAME process, same .nv file as previous games above: This time I tried moving in all sorts of directions, but every single time when I stopped, the character consistently looked to the right.


I think that pretty much proves that the NVRAM file is recording calibration state. Now, could that calibration state that is stored in the NVRAM somehow dictate that the character end up always looking to the right when stopped? I don't think so, but I don't have any hard facts to back up that claim.


My name is ${SLICK_TALKING_POLITICIAN}, and I endorsed this message.







Entire thread
Subject Posted by Posted on
* Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr 10/31/08 06:12 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick MAMEBase  11/01/08 02:51 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/01/08 08:06 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  10/31/08 09:16 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/01/08 09:00 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/04/08 01:45 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/04/08 07:10 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick StilettoAdministrator  11/04/08 07:51 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/04/08 09:45 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Canim  11/04/08 08:39 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/04/08 10:13 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Canim  11/04/08 10:59 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick uRebelScum  11/08/08 02:24 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Canim  11/08/08 08:51 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick MAMEBase  11/03/08 11:18 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/04/08 07:14 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick Anonymous  11/08/08 11:53 PM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/10/08 05:05 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick MAMEBase  11/27/08 03:24 AM
. * Re: Food Fight Rev 3 looking or walking to the right when not touching joystick bgoodr  11/27/08 09:44 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 33 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 7427