Why is there a scripts folder?

Solution
Believe it or not, the Scripts folder is only there for extra custom scripts that may be included with the various Tables, depending on a Table Author's preferences.

The .vbs script files for VPinMame have never been assigned to the Scripts folder, only the Tables folder. This is because the Tables folder is where VPinMame looks for the .vbs script files based on how VPinMame is written or based on the settings.
Not sure if the VPinMame .vpt Scripts PATH can be changed or not. I've never thought to try it.

Now about the custom scripts by authors. These scripts in practice can be placed in any folder on the hard drive, as long as the Table.vpt script has the correct PATH to find it. A PATH is the address (the directions to find the...
Believe it or not, the Scripts folder is only there for extra custom scripts that may be included with the various Tables, depending on a Table Author's preferences.

The .vbs script files for VPinMame have never been assigned to the Scripts folder, only the Tables folder. This is because the Tables folder is where VPinMame looks for the .vbs script files based on how VPinMame is written or based on the settings.
Not sure if the VPinMame .vpt Scripts PATH can be changed or not. I've never thought to try it.

Now about the custom scripts by authors. These scripts in practice can be placed in any folder on the hard drive, as long as the Table.vpt script has the correct PATH to find it. A PATH is the address (the directions to find the location) of a file, script, etc. on a hard drive.

So the Scripts folder was included long ago to make it easy for users to know where to place any additional custom author scripts that are found in the download.zip for a table, with the understanding that the authors could write the PATH to the Scripts folder (written in the NameOfTable.vpt internal script) to enable the Visual Pinball program to find and use their custom scripts when playing the Table, so that everything would be easy for the users.

But, with the .vbs scripts by design placed in the Tables folder, and the reality of most users simply unzipping the Table.zip contents to the Tables folder without checking the contents, most authors then decided to simply put their custom scripts in the Tables folder also, and write the PATH to it.

Because most new users simply unzip the Table.zip contents to the Tables folder without checking the contents, it turns out to be the easiest choice.

Years ago when most users were on slow dial-up Internet service, authors would sometimes write the internal script for their Table as an external file.
This was done so that, if there was a bug in the script, the user only needed to download the smaller replacement script instead of the much larger whole table.vpt file.
This was one use for the Scripts folder, but as stated, a script can be placed anywhere, as long as the PATH (in the internal Table.vpt file) points to its correct location on the hard drive.
 
Last edited:
Solution
I thought this was a pretty great explanation by Sleepy, and could answer future Q's in this area. Stickied.
 
I didn't know the history either. Thanks Sleepy. The reason some table developers use vbs files today is to easily apply the same script to many tables. Of course, you have to add code to the table to run the vbs. It can turn into a bit of a mess if the author does not have has good version control.
 
General chit-chat
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
  • Chat Bot Mibs Chat Bot Mibs:
    BL2K has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Chilldog has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    rodneyfitz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    ace19120 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tomasaco has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Greek_Jedi has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Beermano has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    02browns has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    nitram1864 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    aeponce has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    JEAN LUC has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    lorenzom has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    maxangelo19 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Dragonslapper has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    royaljet has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tyfox has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Goldtopboy has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    slick267 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    dabreeze has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Spike has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tofa has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Atropine has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    bongo2k5 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Bouly has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Felipefx3 has left the room.
      Chat Bot Mibs Chat Bot Mibs: Felipefx3 has left the room.
      Back
      Top