Jump to content



Photo
- - - - -

Ball Decals not removing via table script


  • Please log in to reply
4 replies to this topic

#1 Ltek

Ltek

    Enthusiast

  • Members
  • PipPipPip
  • 129 posts

  • Flag: United States of America

  • Favorite Pinball: Volkan, Bounty Hunter, IT, Tron Classic, Harry Potter, Iron Man, Avengers LE, Dragon's Lair

Posted 02 May 2024 - 03:20 AM

I'm using the OptionsMenu (F12) to change the ball decal... and it does change BUT if I try to set it to -no decal-, its not removing the decal.  On the table itself, decal is set to "none" and mode is turned off.

 

thx for the help!

 

code to set Decal...

 

Select Case BallDecal
Case 0: CustomBallLogoMode = False :CustomBallDecal = "" ' turn off logo mode 
Case 1: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_tron"
Case 2: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_stripe-v"
Case 3: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_stripe-h"
Case 4: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_watermelon"
Case 5: CustomBallLogoMode = True : CustomBallDecal = "ball_OrangeFuture"
Case 6: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_football2"
Case 7: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_fireball"
Case 8: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_fireball2"
Case 9: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_fireball3"
Case 10: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_Cricket"
Case 11: CustomBallLogoMode = True : CustomBallDecal = "ball_Black_shattered"
Case 12: CustomBallLogoMode = True : CustomBallDecal = "ball_Blue_water"
Case 13: CustomBallLogoMode = True : CustomBallDecal = "ball_Blue_fire"
End Select
 
 ** below Sub is called directly after the Select runs...
 
Sub CustomBall_Init  ' === define ball from User Settings ===
 
dim x
For each x in GetBalls
x.Image = CustomBallImage
x.FrontDecal = CustomBallDecal
x.DecalMode = CustomBallLogoMode
Next
 
table1.BallImage = CustomBallImage
table1.DefaultBulbIntensityScale = CustomBulbIntensity
table1.BallFrontDecal = CustomBallDecal
table1.BallDecalMode = CustomBallLogoMode
 
End Sub

 



#2 xenonph

xenonph

    I have Pinball Fever!

  • VIP
  • 3,930 posts
  • Location:Castle Rock, WA.

  • Flag: United States of America

  • Favorite Pinball: TRON Classic-Congo-Xenon-PINBOT-BOP-LOTR-A Real American Hero OPERATION PINBALL-Millionaire-Whirlwind-Krull-NFL-BlackKnight-FishTales

Contributor

Posted 02 May 2024 - 08:14 AM

I'm using the OptionsMenu (F12) to change the ball decal... and it does change BUT if I try to set it to -no decal-, its not removing the decal.  On the table itself, decal is set to "none" and mode is turned off.

 

thx for the help!

 

code to set Decal...

 

Select Case BallDecal
Case 0: CustomBallLogoMode = False :CustomBallDecal = "" ' turn off logo mode 
Case 1: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_tron"
Case 2: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_stripe-v"
Case 3: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_stripe-h"
Case 4: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_watermelon"
Case 5: CustomBallLogoMode = True : CustomBallDecal = "ball_OrangeFuture"
Case 6: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_football2"
Case 7: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_fireball"
Case 8: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_fireball2"
Case 9: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_fireball3"
Case 10: CustomBallLogoMode = True : CustomBallDecal = "ball_decal_Cricket"
Case 11: CustomBallLogoMode = True : CustomBallDecal = "ball_Black_shattered"
Case 12: CustomBallLogoMode = True : CustomBallDecal = "ball_Blue_water"
Case 13: CustomBallLogoMode = True : CustomBallDecal = "ball_Blue_fire"
End Select
 
 ** below Sub is called directly after the Select runs...
 
Sub CustomBall_Init  ' === define ball from User Settings ===
 
dim x
For each x in GetBalls
x.Image = CustomBallImage
x.FrontDecal = CustomBallDecal
x.DecalMode = CustomBallLogoMode
Next
 
table1.BallImage = CustomBallImage
table1.DefaultBulbIntensityScale = CustomBulbIntensity
table1.BallFrontDecal = CustomBallDecal
table1.BallDecalMode = CustomBallLogoMode
 
End Sub

 

Maybe try adding a named decal, and make it a fully transparent image. Then calling that decal in script should show ball with no decal?


CHECK OUT THIS TUTORIAL http://www.vpforums....howtopic=32515
TO USE DB2S BACKGLASS PROGRAM WITH DESKTOP TABLES ON 1 MONITOR

 


#3 Ltek

Ltek

    Enthusiast

  • Members
  • PipPipPip
  • 129 posts

  • Flag: United States of America

  • Favorite Pinball: Volkan, Bounty Hunter, IT, Tron Classic, Harry Potter, Iron Man, Avengers LE, Dragon's Lair

Posted 02 May 2024 - 02:30 PM

 

Maybe try adding a named decal, and make it a fully transparent image. Then calling that decal in script should show ball with no decal?

 

 

I'm trying to figure out if this is a bug or if I'm doing it wrong. While that workaround might work, if this is a bug it needs to be fixed. Also, the workaround renders an image on the ball at all times when its not necessary - I disable anything that is not necessary, for example, when timers are not needed they get disabled.



#4 Mike DA Spike

Mike DA Spike

    Pinball Fan

  • Platinum Supporter
  • 1,209 posts
  • Location:Hoofddorp

  • Flag: Netherlands

  • Favorite Pinball: Too many to mention

Posted 02 May 2024 - 02:42 PM

I don't know no much about VP scripting, but what's in variable CustomBallImage ?
Should that not be blank as well ?
Sorry if this is a stupid question

331ddabcc742f0ba74791e946eb0f791.gif Try PinballX Database manager as a replacement of PinballX's game list manager
With special thanks to Scutters 


#5 Ltek

Ltek

    Enthusiast

  • Members
  • PipPipPip
  • 129 posts

  • Flag: United States of America

  • Favorite Pinball: Volkan, Bounty Hunter, IT, Tron Classic, Harry Potter, Iron Man, Avengers LE, Dragon's Lair

Posted 02 May 2024 - 04:51 PM

I don't know no much about VP scripting, but what's in variable CustomBallImage ?
Should that not be blank as well ?
Sorry if this is a stupid question

that is a variable I set, not a native VPX method. and it that was blank, there would be no ball ;-)