Jump to content



Photo

Debugging a table/ROM


  • Please log in to reply
2 replies to this topic

#1 MrGrynch

MrGrynch

    Enthusiast

  • Members
  • PipPipPip
  • 127 posts

  • Flag: United States of America

  • Favorite Pinball: Blood Machines, Fish Tales, Attack from Mars

Posted 28 April 2023 - 08:14 PM

Hello

 

I am debugging a sound issue on a table that uses a ROM.  The table defines "sw41" which is a switch.  When it's hit, it activates "Controller.switch(41).  Is there a way I can figure out what sound the ROM plays (if any) when it receives that signal?

 

What is VPinMAME.html for?  It brings up something that looks interesting, like a testing interface

I see a text file named SImulator.txt.  I can tell what its for, but how exactly is it used?  Do I have to create a table for it?

 



#2 xenonph

xenonph

    I have Pinball Fever!

  • VIP
  • 4,115 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 28 April 2023 - 08:45 PM

Hello

 

I am debugging a sound issue on a table that uses a ROM.  The table defines "sw41" which is a switch.  When it's hit, it activates "Controller.switch(41).  Is there a way I can figure out what sound the ROM plays (if any) when it receives that signal?

 

Try adding the switch hit to keydown sub.

 

For example,

 

Add this to the KeyDown Sub in table script

 

    If keycode = RightMagnaSave Then Controller.switch(41) = 1

 

Then on the KeyUp Sub turn the switch off.

 

    If keycode = RightMagnaSave Then Controller.switch(41) = 0

 

Now when you press down Right Magna-Save key, the switch is activated.

Releasing the Magna-Save key shuts the switch off again.

 

This should let you hear what sound is played by the rom, when that switch is activated.


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

#3 MrGrynch

MrGrynch

    Enthusiast

  • Members
  • PipPipPip
  • 127 posts

  • Flag: United States of America

  • Favorite Pinball: Blood Machines, Fish Tales, Attack from Mars

Posted 29 April 2023 - 01:39 AM

Try adding the switch hit to keydown sub.

 

For example,

 

Add this to the KeyDown Sub in table script

 

    If keycode = RightMagnaSave Then Controller.switch(41) = 1

 

Then on the KeyUp Sub turn the switch off.

 

    If keycode = RightMagnaSave Then Controller.switch(41) = 0

 

Now when you press down Right Magna-Save key, the switch is activated.

Releasing the Magna-Save key shuts the switch off again.

 

This should let you hear what sound is played by the rom, when that switch is activated.

 

 

Thank you!