Jump to content



Photo
- - - - -

script error im having


  • Please log in to reply
9 replies to this topic

#1 peepoo

peepoo

    Neophyte

  • Members
  • Pip
  • 5 posts

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

  • Favorite Pinball: south park

Posted 28 April 2024 - 12:23 AM

so i'm trying to play a table on the vpx but every time i try to play it there's a script error thing

 

With Controller
        .GameName = cGameName
        If Err Then MsgBox "Can't start Game " & cGameName & vbNewLine & Err.Description:Exit Sub
        .Games(cGameName).Settings.Value("rol") = 0
        .HandleKeyboard = 0
        .ShowTitle = 0
        .ShowDMDOnly = 1
        .ShowFrame = 0
        .HandleMechanics = 0
        .Hidden = 0
        '.SetDisplayPosition 0, 0, GetPlayerHWnd 'uncomment this line if you don't see the DMD
        On Error Resume Next
        .Run GetPlayerHWnd
        If Err Then MsgBox Err.Description
        On Error Goto 0
'        .Switch(22) = 1 'close coin door
'        .Switch(24) = 1 'and keep it close
        PinMAMETimer.Interval = PinMAMEInterval
        PinMAMETimer.Enabled = true
        vpmNudge.TiltSwitch = swTilt
        vpmNudge.Sensitivity = 2
 
that's the full script part but the part with the special font is what im confused about
if someone could help me that would be very helpful


#2 Emanoel299

Emanoel299

    Hobbyist

  • Members
  • PipPip
  • 47 posts

  • Flag: Brazil

  • Favorite Pinball: Black Knight, AFM, Creature Black Lagoon, Dr.Who

Posted 28 April 2024 - 02:28 AM

Hi

Take a look if the folder for all scripts tables (*.vbs) is in the same VpinballX.exe that you are using to play.

When VpinballX....zip is unzip the scripts folder with *.vbs files must be there.



#3 peepoo

peepoo

    Neophyte

  • Members
  • Pip
  • 5 posts

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

  • Favorite Pinball: south park

Posted 28 April 2024 - 10:16 PM

Hi

Take a look if the folder for all scripts tables (*.vbs) is in the same VpinballX.exe that you are using to play.

When VpinballX....zip is unzip the scripts folder with *.vbs files must be there.

i dont get it what do i do



#4 unclewilly

unclewilly

    sofa king.....

  • VIP
  • 5,084 posts
  • Location:Baltimore, Maryland

  • Flag: United States of America

  • Favorite Pinball: tz, tom, big hurt, who dunnit



Posted 29 April 2024 - 12:52 AM

You probably haven't loaded or installed pinmame.
With controller
.property name
.property name
Refers to the pinmame controller/display
What does the error message say. Much easier to tell you what is wrong if you could tell me the error message rather than the code you think is incorrect.
Because from a quick look the code you have doent have any errors unless pinme is not 9nstalled

"it will all be ok in the end, if it's not ok, it's not the end"
 
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx

uw2.gif


#5 Emanoel299

Emanoel299

    Hobbyist

  • Members
  • PipPip
  • 47 posts

  • Flag: Brazil

  • Favorite Pinball: Black Knight, AFM, Creature Black Lagoon, Dr.Who

Posted 29 April 2024 - 01:33 AM

i dont get it what do i do

 

When you download any VPinballX zip version there are inside the following folders:

 

Assets

Docs

Scripts

Tables

Users

 

Inside of Scripts foldes there are all scripts tables and the kind of controller.vbs

 

Other question is:

 

Which version of VPX are you using?

Which version of VpinMame are you Using?

 

Both versions must be close. Normally when you update your VPX sometimes needs to update your Vpinmame too. If not some bugs comes up.



#6 peepoo

peepoo

    Neophyte

  • Members
  • Pip
  • 5 posts

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

  • Favorite Pinball: south park

Posted 29 April 2024 - 10:27 PM

so the error thing says

Starting script7
 
Runtime error
-------------
Line: 70
Object required: 'Controller'
 
and also when i try installing vpinMAME with the setup it keeps giving a error "0x80070005" and it says for me to check if i have a valid vpinMAME.dll file but i have it so im also confuse about that

Edited by peepoo, 29 April 2024 - 10:35 PM.


#7 Emanoel299

Emanoel299

    Hobbyist

  • Members
  • PipPip
  • 47 posts

  • Flag: Brazil

  • Favorite Pinball: Black Knight, AFM, Creature Black Lagoon, Dr.Who

Posted 30 April 2024 - 12:03 AM

OK

I don´t know which version you are using. Some VPX version could be problem with old VpinMame version.

When I had problem similar as you., my problem was not compatible VPX version with VpinMame version

 

I will show what and work for me.

Try to update like me. Maybe you can fix your problem. It is my procedure.

 

I´m using VPX 10.80 - 1862 GL (32 or 64) bit

Make a new directory for unzip the new version VPX zip files.

 

I´m using VpinMame 3.6 - sc - 0822

I had sound issues with VpinMame 3.6 - sc - 0929

 

You can download both from Github

Normally I use to be download the following files VpinMame files:

 

VPinMAME-sc-3.6-822-66be20f-win-x86.zip

Unzip to your VpinMame directory only 3 files is enough - overight old files

Bass.dll

Setup.exe

VPinMAME.dll

 

VPinMAME-sc-3.6-822-66be20f-win-x64.zip

Unzip to your VpinMame directory only 3 files is enough - overight old files

Bass64.dll

Setup64.exe

VPinMAME64.dll

 

PinMAME32-sc-3.6-822-66be20f-win-x86.zip

Unzip to your VpinMame directory only 1 file is enough - overight old files

PinMAME32.exe

 

PinMAME32-sc-3.6-822-66be20f-win-x64.zip

Unzip to your VpinMame directory only 1 file is enough - overight old files

PinMAME32.exe

 

PinMAME-sc-3.6-822-66be20f-win-x86.zip

Unzip to your VpinMame directory only 1 file is enough - overight old files

PinMAME.exe

 

PinMAME-sc-3.6-822-66be20f-win-x64.zip

Unzip to your VpinMame directory only 1 file is enough - overight old files

PinMAME.exe

 

Run first

Setup.exe

Install VpinMame

Check on setup display if you using the correct directory for roms, nvam, etc.

 

Run

Setup64.exe

Install VpinMame

Check on setup display if you using the correct directory for roms, nvam, etc.

 

As I told you, I have no problem with that procedure.


Edited by Emanoel299, 30 April 2024 - 12:07 AM.


#8 peepoo

peepoo

    Neophyte

  • Members
  • Pip
  • 5 posts

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

  • Favorite Pinball: south park

Posted 30 April 2024 - 12:56 AM

so where the latest version of the pinMAME



#9 Emanoel299

Emanoel299

    Hobbyist

  • Members
  • PipPip
  • 47 posts

  • Flag: Brazil

  • Favorite Pinball: Black Knight, AFM, Creature Black Lagoon, Dr.Who

Posted 30 April 2024 - 02:56 AM

https://github.com/v...inmame/releases

 

As I told you, I´m using:

https://github.com/v...3.6-822-66be20f



#10 peepoo

peepoo

    Neophyte

  • Members
  • Pip
  • 5 posts

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

  • Favorite Pinball: south park

Posted 30 April 2024 - 10:12 PM

so like im trying to use latest version of vpinball (10.8)