-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flipper issues on WOF (was: Lamps above 400 on Wheel of Fortune) #196
Comments
This is intended and is only for WOF and WPT. It happens that these tables have LED matrices which seem to be PWMed so I added them as such. |
Ok, I guess it's then up to the table writers to account for these new lamps. For reference the required diff to fix this (along with some other standalone fixes) --- "Wheel of Fortune (Stern 2007) 1.0.vbs.original.tmp" 2024-01-19 10:24:05.222749595 +0100
+++ "Wheel of Fortune (Stern 2007) 1.0.vbs" 2024-01-19 10:23:58.334543589 +0100
@@ -10,6 +10,8 @@
If Err Then MsgBox "You need the controller.vbs in order to run this table, available in the vp10 package"
On Error Goto 0
+Const cGameName = "wof_500"
+
Const Ballsize = 52
Const BallMass = 1.5
@@ -43,8 +45,6 @@
' INIT TABLE
'************************************************************************
-Const cGameName = "wof_500"
-
Dim bsTrough, PlungerIM, DTBank
Sub Table1_Init
@@ -567,8 +567,8 @@
' SetLamp 1 is On
' fading for non opacity objects is 4 steps
'***************************************************
-Dim LampState(400), FadingLevel(400)
-Dim FlashSpeedUp(400), FlashSpeedDown(400), FlashMin(400), FlashMax(400), FlashLevel(400)
+Dim LampState(610), FadingLevel(610)
+Dim FlashSpeedUp(610), FlashSpeedDown(610), FlashMin(610), FlashMax(610), FlashLevel(610)
InitLamps() ' turn off the lights and flashers and reset them to the default parameters
LampTimer.Interval = 10 'lamp fading speed
@@ -913,7 +913,7 @@
Function Vol(ball) ' Calculates the Volume of the sound based on the ball speed
Vol = Csng(BallVel(ball) ^2 / 5000)
- Debug.Print Vol
+ 'Debug.Print Vol
End Function
Function Pan(ball) ' Calculates the pan for a ball based on the X position on the table. "table1" is the name of the table
|
@vbousquet Is this something that should also be added to the whatsnew? |
Sidenote: As mentioned above, a similar patch is needed for WPT. |
@vbousquet I also have issues with the flippers on WOF, sometimes they don't react or are stuck in the up position. Looks like some events get lost. Does that ring a bell? |
Is this with 10.8.0 or 10.8.1? |
For now I can only reproduce it on standalone branch or 10.8.1 standalone, works fine on windows. And only for this table which is strange. |
Your windows pinmame is on the absolute latest? |
Latest pre-release vpinmame downloaded yesterday. |
Can I test this in xpinmame without table? |
I'm at a loss, as to why this only a standalone issue. libpinmame is not doing anything to the data. (it was previously to support RGBs with VPE, but all that was reverted). Its running through all the same code as the win32com. Maybe I missed a Maybe a second set of eyes could compare: pinmame/src/libpinmame/libpinmame.cpp Lines 1008 to 1189 in 699fabc
to pinmame/src/win32com/Controller.cpp Lines 1459 to 1733 in 699fabc
|
Can you reproduce the issue on mac? Haven't tried that yet. |
I think that we still have some issues/regressions here and there with 10.8.1, compared to 10.8.0, so maybe this is related?? |
@vbousquet Any idea maybe?? |
Made some progress as to find the cause of the issue Commenting out |
Should I move this over to a new issue? |
WOF -Table lighting/ lamps do not work or flash at all in vpinmame latest builds. Flippers erratic/get stuck - cannot isolate. Tested with 10.73 x86 final and 10.8 rc1 with same results...intermittant script errors:
|
That specific issue is fixed by changing the array declarations from capacity 400 to 610 in the script. |
Flipper issues could be fixed now, please test @francisdb |
Doesn't work for me yet, so far, so reopening. @vbousquet for vis |
Probably stupid question: what do you mean with "for vis"? |
I'm never 100% sure if Vince gets the PinMAME issue mails, so pinging him explicitly for stuff that is related to his changes. |
I keep an eye on Github only (I also have a look from time to time to discord / VPF but the feedback is usually too largely spread and not enough cleanly reported to be usable) but I miss things. There are just too much. So no problem. Regarding the SAM emulation issues. I have just pushed a new PR for these bugs which improves flipper emulation (lower latency, hack designed around IJ4 emulation bug only). The original implementation also used some nasty hacks to keep things running so it is a bit difficult to identify what should be removed since some hacks were only needed due to the lack of PWM support, other are needed due to emulation issue (like IJ4). For WOF, I was not able to reproduce the issue (on the latest with teh latest fix), so I would need some more hints to have a look. |
Simpler.. _vis_ibility |
WOF flippers now seem to consistently work with the latest commit 544085b, @francisdb please also verify |
Issue still there for me with latest pinmame on standalone linux 10.8.1 and 7b0aafb
|
@toxieainc why can't I reopen this issue? |
No clue, reopening |
This is the latest issue (beside improving filtering) following the PWM changes but I still can't reproduce it.
@francisdb could you confirm if the bug is still there for you ? If so, could you provide a link to the offending table (to check if it is maybe a table script bug) ? |
https://vpuniverse.com/files/file/5501-wheel-of-fortune-stern-2007/ With patched script from https://github.com/jsm174/vpx-standalone-scripts/tree/master/Wheel%20of%20Fortune%20(Stern%202007)%201.0 (increased array sizes) Still have flippers not always reacting or being stuck in up position with latest 10.8.1 branch but happens less often than before. Not calling @jsm174 can you reproduce this one on mac/linux? |
@francisdb Can you please test again with the latest build? |
Issue persists with b06d8d4 |
As previous user say lastest vpx 10.8 build on windows with the lastest vpinmame build from yesterday. |
Confirming this is fixed. Thanks @vbousquet ! |
First, is there a better place to ask these questions?
This table used to play without issues but
Controller.ChangedLamps
now seems to return lamps over 400 where the table code has only 400 entries in the arrays. Is this expected as it might break more tables?PINMAME_SHA beec0c3
The text was updated successfully, but these errors were encountered: