Jump to content



Photo
- - - - -

Sound Manager/Scripting help

script sound manager

  • Please log in to reply
9 replies to this topic

#1 leonard

leonard

    Hobbyist

  • Gold Supporter
  • 11 posts
  • Location:Chicago

  • Flag: ---------

  • Favorite Pinball: Doctor Who (Bally), Godzilla (Stern), Ultraman: Kaiju Rumble (Spooky)

Posted 17 August 2021 - 05:25 PM

This question is for a Rom table mod in VPX 10.6 I have been working on
I am trying to learn but can't seem to figure this out:
I would like to have a song play for attract mode (AttractSong.wav) until the start button is hit then 3 songs(song1.wav,song2.wav,song3.wav) play randomly or even one after another on repeat until the game ends then go back to the attract song until start is hit again, I have tried different ways that I thought would work, looked at other tables and read other posts on the subject but have given up. I am using the sound manager (playSound). As it stands I've only managed to turn of the rom sounds and just mixed the 3 songs together and put them on repeat using playSound "3song",-1. Does anybody know how to do this the right way? Thanks for any help


#2 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 17 August 2021 - 06:12 PM

need to know what ROM you are talking about before anyone can answer you

a lot hinges on if the ROM has a game over lamp or game on solenoid or some way of determining if the game is in play or not, because if none exists

that you will need another way of determining, such as a solenoid check or something.


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#3 leonard

leonard

    Hobbyist

  • Gold Supporter
  • 11 posts
  • Location:Chicago

  • Flag: ---------

  • Favorite Pinball: Doctor Who (Bally), Godzilla (Stern), Ultraman: Kaiju Rumble (Spooky)

Posted 17 August 2021 - 11:16 PM

It is Olympus, the table created by mfuegemann. thanks wiesshund, the script has Solenoid Assignment but I don't fully understand 



#4 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 17 August 2021 - 11:55 PM

It is Olympus, the table created by mfuegemann. thanks wiesshund, the script has Solenoid Assignment but I don't fully understand 

 

is it an LTD table?


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#5 leonard

leonard

    Hobbyist

  • Gold Supporter
  • 11 posts
  • Location:Chicago

  • Flag: ---------

  • Favorite Pinball: Doctor Who (Bally), Godzilla (Stern), Ultraman: Kaiju Rumble (Spooky)

Posted 18 August 2021 - 12:06 AM

Juegos Populares



#6 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 18 August 2021 - 12:12 AM

Juegos Populares

 

I am not familiar with them or what kind of controller they used etc
Does the backglass have a game over lamp?


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#7 leonard

leonard

    Hobbyist

  • Gold Supporter
  • 11 posts
  • Location:Chicago

  • Flag: ---------

  • Favorite Pinball: Doctor Who (Bally), Godzilla (Stern), Ultraman: Kaiju Rumble (Spooky)

Posted 18 August 2021 - 12:15 AM

yes it does, I could try activating/ deactivating attract song with that?



#8 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 18 August 2021 - 12:23 AM

yes it does, I could try activating/ deactivating attract song with that?

if you import the backglass into B2S editor, you can get the lamps ROM ID

 

 

then you can have a little timer run, does not need to run fast
100ms is fine
have it check for Controller.Lamp(##) , say lamp is 45

 

If Controller.Lamp(45) Then

Stop my game in play goodies

Do my attract mode stuff

Else

Stop my attract mode goodies
Do my game in play type stuff

End If

 

paraphrased coding obviously


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#9 leonard

leonard

    Hobbyist

  • Gold Supporter
  • 11 posts
  • Location:Chicago

  • Flag: ---------

  • Favorite Pinball: Doctor Who (Bally), Godzilla (Stern), Ultraman: Kaiju Rumble (Spooky)

Posted 18 August 2021 - 12:24 AM

thanks!



#10 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 18 August 2021 - 01:25 AM

thanks!

 

Dont thank me yet, you havent made it work yet :) 


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow






Also tagged with one or more of these keywords: script, sound manager