- View New Content
-
Getting Started
-
Tutorials
Tutorial Categories
Tutorials Main Page Installation and Setup Downloadable TutorialsROM Adjustments
Number of Balls Adjustments Volume Adjustments
-
Visual Pinball Tables
VP 8 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP 9 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP9 Cabinet Tables
All Full Screen Cabinet Full Screen B2S Cabinet Spanned Cabinet Tables Media Packs ROMsVPX Tables
All VPinMAME Recreations VPX- - /VPinMAME - MOD Tables VPX Recreations VPX Originals Media Packs ROMs VR
-
Frontend Media & Backglass
Media Packs
Complete Media Packs Wheel Logos VideosBackglasses
dB2S Animated Backglasses UVP Animated Backglasses Topper Images
- Future Pinball Tables
-
Design Resources
Main Resources
Table Templates Playfield Images Image Library Sound Library Key CodesVP Guides
VP8 Guide - English VP8 Guide - Deutsch VP9 Guide - English VP9.1.x Guide - English VP Object Guide VPM DocumentationFuture Pinball Resources
Playfield Images 3D Model LibraryFuture Pinball Guides
FP Script Guide Big Draco Script Guide FP Table Design Guide FP DMD Guide
- Other Features
- Bug Tracker
- Image Gallery
- Blogs
-
More
9 replies to this topic
#1
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
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
#4
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
#8
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
Also tagged with one or more of these keywords: script, sound manager
Visual Pinball →
Visual Pinball →
Detecting Uninitialized UserValueStarted by Two , 08 May 2025 |
|
||
Visual Pinball →
Visual Pinball →
Set DOF Intensity using Table Script?Started by Ltek , 04 Jun 2024 |
|
||
Visual Pinball →
Visual Pinball →
Let's fix PizzaTime!Started by gamerplayer861 , 13 Mar 2024 |
|
||
Visual Pinball →
VP Help Center →
How to change a drop targets state in scriptStarted by Jackmc7r , 12 Mar 2024 |
|
||
Visual Pinball →
VP Help Center →
How to Make new audio? (re-skin)Started by lastbornwolf , 07 Mar 2024 |
|


Top










are all trademarks of VPFORUMS.