- 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
Tron (WIP)
Started By
PainkillerAlice
, Jun 18 2010 04:42 PM
244 replies to this topic
#182
Posted 24 June 2011 - 10:35 PM
Successfully got an mp3 file scripted in where it played. On the codeword 'EndMusic', does it end all audio currently playing at a given moment? And on the same note, does the audio file end if it completely plays through once, with the exception of scripting it to loop?
Edited by Practicedummy, 24 June 2011 - 10:37 PM.
I could have been smart, but I never learned anything by being smart!
#183
Posted 24 June 2011 - 10:57 PM
EndMusic stops all (only) mp3 files playing
mp3's will play all of the way through if you don't stop them with EndMusic or loop them.
There is a Sub _MusicDone()(Script) when mp3 file is finished, procedures are carried out. (I took this from the VP manual located at the top of every page under Design Resources/Visual Pinball Guides/VP9.1.1+ Guide -English)
Trial and error works well too.
mp3's will play all of the way through if you don't stop them with EndMusic or loop them.
There is a Sub _MusicDone()(Script) when mp3 file is finished, procedures are carried out. (I took this from the VP manual located at the top of every page under Design Resources/Visual Pinball Guides/VP9.1.1+ Guide -English)
Trial and error works well too.

You have discovered an Easter egg. Pat yourself on the back.
#184
Posted 24 June 2011 - 11:05 PM
I know about the trial and error part hehe. A lot of what I learned about scripting tables came from other author's tables and some from asking questions. Thanks to this site and the VP veterans here, I feel blessed from the knowledge I gained to create tables of my own and to make them as fun as I possibly can.
I could have been smart, but I never learned anything by being smart!
#185
Posted 25 June 2011 - 01:40 AM
With my new CPU installed, I can do fullscreen again and since I am back on fullscreen, I went ahead and did the adjustments for the textboxes to where they are seated correctly. Also did away with the scoop decals and replaced them with a decal for the 'hole' look and a ramp with a chrome image for the top part of the scoops.
I could have been smart, but I never learned anything by being smart!
#187
Posted 25 June 2011 - 12:51 PM
Looked through the tutorials and did searching and also tried looking at Bob5453's Beatles table first but couldn't find anything relevant to the following question:
How do I loop audio? Both wav and mp3 audio. I am using both on my table.
I apologize for asking this question, I know this has been answered in threads but couldn't find them in search ( I probably didn't enter in the right keywords).
How do I loop audio? Both wav and mp3 audio. I am using both on my table.
I apologize for asking this question, I know this has been answered in threads but couldn't find them in search ( I probably didn't enter in the right keywords).
Edited by Practicedummy, 25 June 2011 - 12:52 PM.
I could have been smart, but I never learned anything by being smart!
#188
Posted 25 June 2011 - 02:53 PM
For a wave....
PlaySound "Beatles_IINS", -1
For an mp3.... You play it, then when it is over, you do something, in the case below, you play the mp3 again.
PlayMusic "supergirl-movie.mp3"
Sub Table1_MusicDone()
PlayMusic "supergirl-movie.mp3"
End Sub
PlaySound "Beatles_IINS", -1
For an mp3.... You play it, then when it is over, you do something, in the case below, you play the mp3 again.
PlayMusic "supergirl-movie.mp3"
Sub Table1_MusicDone()
PlayMusic "supergirl-movie.mp3"
End Sub

You have discovered an Easter egg. Pat yourself on the back.
#191
Posted 26 June 2011 - 01:42 AM
also for wav files you can have the command:
Silence
stopsound "your first sound here"
stopsound "your second sound here"
stopsound" and so on and so on"
End Sub
this way you can have numerous songs and such and all of them will stop if you use that command
Silence
stopsound "your first sound here"
stopsound "your second sound here"
stopsound" and so on and so on"
End Sub
this way you can have numerous songs and such and all of them will stop if you use that command
"Don’t let the noise of others’ opinions drown out your own inner voice.
And most important, have the courage to follow your heart and intuition.”
----Steve Jobs
And most important, have the courage to follow your heart and intuition.”
----Steve Jobs
#192
Posted 26 June 2011 - 02:19 AM
QUOTE (faralos @ Jun 25 2011, 09:42 PM) <{POST_SNAPBACK}>
also for wav files you can have the command:
Silence
stopsound "your first sound here"
stopsound "your second sound here"
stopsound" and so on and so on"
End Sub
this way you can have numerous songs and such and all of them will stop if you use that command
Silence
stopsound "your first sound here"
stopsound "your second sound here"
stopsound" and so on and so on"
End Sub
this way you can have numerous songs and such and all of them will stop if you use that command
That's not a command and it won't work the way you have it there. It needs to be a subroutine..... Hence the End Sub you use, but you forgot the Sub.
Sub Silence
stopsound "your first sound here"
stopsound "your second sound here"
stopsound" and so on and so on"
End Sub

You have discovered an Easter egg. Pat yourself on the back.
#194
Posted 26 June 2011 - 01:16 PM
Solved the problem of getting the table to play different music depending on the event but ended up with the error 'expected if' And the End Sub at the end of the block of code is highlighted in red.
Sub Tron_MusicDone()
If MCPBattleActivated = True Then
PlayMusic "Tron Tower Music - Let Us Pray.mp3"
Else If MCPJackpotActivated = True Then
PlayMusic "Tron The Light Sailer.mp3"
Else If MultiBallActivated = True Then
PlayMusic "Tron Break In.mp3"
Else If MultiBallReadyActivated = True Then
PlayMusic "Ring Game and Escape.mp3"
Else PlayMusic "Tron Water, Music, And Tronaction.mp3"
End If
End Sub
I thought I got everything right on this and at the moment am trying to figure out what I did wrong.
Sub Tron_MusicDone()
If MCPBattleActivated = True Then
PlayMusic "Tron Tower Music - Let Us Pray.mp3"
Else If MCPJackpotActivated = True Then
PlayMusic "Tron The Light Sailer.mp3"
Else If MultiBallActivated = True Then
PlayMusic "Tron Break In.mp3"
Else If MultiBallReadyActivated = True Then
PlayMusic "Ring Game and Escape.mp3"
Else PlayMusic "Tron Water, Music, And Tronaction.mp3"
End If
End Sub
I thought I got everything right on this and at the moment am trying to figure out what I did wrong.
I could have been smart, but I never learned anything by being smart!
#197
Posted 28 June 2011 - 04:14 PM
Current update:
Fixed the Simulator playfield so that the shot is more consistent (although not much easier hehe), and added a couple of lights to simulate the Simulator's light beam it travels on.
Also been working and reworking the scripting of the audio I have in the table so far. Had to fix some of it due to discrepancies in the gameplay. For example: on multiball, I shot two balls up the left ramp into the MCP playfield and had two Giant Sarks playing goalie.
Fixed the Simulator playfield so that the shot is more consistent (although not much easier hehe), and added a couple of lights to simulate the Simulator's light beam it travels on.
Also been working and reworking the scripting of the audio I have in the table so far. Had to fix some of it due to discrepancies in the gameplay. For example: on multiball, I shot two balls up the left ramp into the MCP playfield and had two Giant Sarks playing goalie.
I could have been smart, but I never learned anything by being smart!
#199
Posted 04 July 2011 - 02:51 AM
QUOTE (dokworm @ Jul 3 2011, 08:54 PM) <{POST_SNAPBACK}>
I'm a massive Tron fan and have multiple copies of just about every release of the movie as well as a lot of other items.
What sound effects do you want? I can probably help you out with them.
What sound effects do you want? I can probably help you out with them.
I have about all the sound effects I need thank you. Your offer is appreciated though, and it tells me that I have a lot of fans for this themed table!
I could have been smart, but I never learned anything by being smart!


Top














are all trademarks of VPFORUMS.