Register    Login    Forum    FAQ    PinSimDB.org

Board index » Future Pinball » FAQ & Help




Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Please Help after years of being away,Constant Errors
 Post Posted: Thu Sep 19, 2019 1:31 pm 
Offline

Joined: Mon Mar 25, 2013 4:02 pm
Posts: 1001
bonoscot wrote:
...
All tables have severe sound effect rumbling/rattling when ball is in lane and awaiting plunger.

I just want let you know, that i'm working on that problem. This weekend i should have solution.

_________________
http://www.ravarcade.pl
Better Arcade Mode
current BAM version: v1.4-267, released: Nov 9, 2019


Top 
 Profile  
 
 Post subject: Re: Please Help after years of being away,Constant Errors
 Post Posted: Fri Sep 20, 2019 7:49 am 
Offline

Joined: Mon Mar 25, 2013 4:02 pm
Posts: 1001
bonoscot wrote:
...
All tables have severe sound effect rumbling/rattling when ball is in lane and awaiting plunger.

Here is BAM version with fix:
https://www.ravarcade.pl/beta/BAM.dll

Here is test table:
https://www.ravarcade.pl/beta/buzz-test.fpt

You may run this table with F9 for some debug info.
This table can be run also without BAM (but debug info is limited).

So, we have PlungerLaneTrigger with sound assigned to it.
It has also PlungerLaneTrigger_Hit subroutine.
Here is my code:
Code:
Dim hc
hc = 0
Sub PlungerLaneTrigger_Hit()
   hc = hc + 1
   If BAM_VERSION > 250 Then
      AddDebugText "plt-hit: " & hc & ", fc: " &xBAM.FrameCounter & ", pc: " & xBAM.NewtonCounter
   Else
      AddDebugText "plt-hit: " & hc
   End If

In this subroutine we count hit events (in hc) and we display in fp debug window
hc: numer of hit events
fc: number of drawed frames
pc: number of simulated physics frames

Bug in FP works this way:
If we draw frames very fast, we can draw 2 (or more) frames between 1 frame of physics simulation.
In that case we will detect "hit" multiple times... more, we will detect "hit" even if ball is not moving and is in constant contact.
This is real reason why on some time you here sound repeated many times (well, this may impact you score too).

Current solution is frame rate limiter. So, if you have fast graphics card we will wait some time for every frame. Limit is ~25-75 lower than current physics FPS.

_________________
http://www.ravarcade.pl
Better Arcade Mode
current BAM version: v1.4-267, released: Nov 9, 2019


Top 
 Profile  
 
 Post subject: Re: Please Help after years of being away,Constant Errors
 Post Posted: Fri Sep 20, 2019 11:37 am 
Offline

Joined: Thu Aug 16, 2012 11:12 pm
Posts: 2487
Location: Arkansas, USA
Rav,

I think you missed some of the subroutine:

Code:
Dim hc
hc = 0
Sub PlungerLaneTrigger_Hit()
   hc = hc + 1
   If BAM_VERSION > 250 Then
      AddDebugText "plt-hit: " & hc & ", fc: " &xBAM.FrameCounter & ", pc: " & xBAM.NewtonCounter
   Else
      AddDebugText "plt-hit: " & hc
   End If

   bBallInPlungerLane = TRUE

   ' remember last trigger hit by the ball
   set LastSwitchHit = PlungerLaneTrigger
End Sub


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

Board index » Future Pinball » FAQ & Help


Who is online

Users browsing this forum: No registered users and 4 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: