rodripeces
Inserted Coin
- Joined
- Aug 5, 2011
- Messages
- 9
- Reaction score
- 1
- Points
- 4
- Favorite Pinball Machine
- Lightning
It´s impossible for me to play any VPT using VP9.1.1.exe, for example, "Medusa VPT" or " Lightning VPT" ( Bally and Stern problems ) cause when I try to run it appears the message
"Unable to open Bally.vbs. - in the case of Medusa - Ensure that it is in the same folder as this table. Variable not defined"
I tried to resolve it ( the instruction to resolve the problem appears in the vbsdoc.html, that appears in the same
package with all the scripts files in the Table folder when I´ve download the Visual Install Package ) writting the following code on the top of the script:
Note = This code must to be written in the top of "Medusa VBScript or another one" ?; is this the right way?
'Load VPinMAME and *.VBS file, check versions ( I put the sign (') at the beginning of this line of code to override what is written on the line ( also, please tell me if "Load" is an instruction of the source code - I think that "Load" isn´t an instruction or command - ))
'LoadVPM "02000000", "S11.VBS", 2.4 ( I think the same that I ´ve already written in the previous line )
Sub LoadVPM(VPMver, VBSfile, VBSver)
On Error Resume Next
If ScriptEngineMajorVersion < 5 Then MsgBox "VB Script Engine 5.0 or higher required"
ExecuteGlobal GetTextFile(VBSfile, 1).ReadAll
If Err Then MsgBox "Unable to open " & VBSfile & ". Ensure that it is in the same folder as this table. " & vbNewLine & Err.Description
Set Controller = CreateObject("VPinMAME.Controller")
If Err Then MsgBox "Can't Load VPinMAME." & vbNewLine & Err.Description
If VPMver>"" Then If Controller.Version < VPMver Or Err Then MsgBox "VPinMAME ver " & VPMver & " required."
If VPinMAMEDriverVer < VBSver Or Err Then MsgBox VBSFile & " ver " & VBSver & " or higher required."
On Error Goto 0
End Sub
' (((( After all these lines of code starts the source code of "Medusa" (for example) ))))
.......... BUT STILL I CANNOT RUN ANY VPT FOR VP9.1.1 !!!!
"Unable to open Bally.vbs. - in the case of Medusa - Ensure that it is in the same folder as this table. Variable not defined"
I tried to resolve it ( the instruction to resolve the problem appears in the vbsdoc.html, that appears in the same
package with all the scripts files in the Table folder when I´ve download the Visual Install Package ) writting the following code on the top of the script:
Note = This code must to be written in the top of "Medusa VBScript or another one" ?; is this the right way?
'Load VPinMAME and *.VBS file, check versions ( I put the sign (') at the beginning of this line of code to override what is written on the line ( also, please tell me if "Load" is an instruction of the source code - I think that "Load" isn´t an instruction or command - ))
'LoadVPM "02000000", "S11.VBS", 2.4 ( I think the same that I ´ve already written in the previous line )
Sub LoadVPM(VPMver, VBSfile, VBSver)
On Error Resume Next
If ScriptEngineMajorVersion < 5 Then MsgBox "VB Script Engine 5.0 or higher required"
ExecuteGlobal GetTextFile(VBSfile, 1).ReadAll
If Err Then MsgBox "Unable to open " & VBSfile & ". Ensure that it is in the same folder as this table. " & vbNewLine & Err.Description
Set Controller = CreateObject("VPinMAME.Controller")
If Err Then MsgBox "Can't Load VPinMAME." & vbNewLine & Err.Description
If VPMver>"" Then If Controller.Version < VPMver Or Err Then MsgBox "VPinMAME ver " & VPMver & " required."
If VPinMAMEDriverVer < VBSver Or Err Then MsgBox VBSFile & " ver " & VBSver & " or higher required."
On Error Goto 0
End Sub
' (((( After all these lines of code starts the source code of "Medusa" (for example) ))))
.......... BUT STILL I CANNOT RUN ANY VPT FOR VP9.1.1 !!!!