Jump to content



Photo
- - - - -

Script Error - Windows 11

VPX Electro-Mechanical High Score Permission Denied Post-it Note Windows 11

  • Please log in to reply
6 replies to this topic

#1 Bruceee

Bruceee

    Neophyte

  • Platinum Supporter
  • 4 posts

  • Flag: United States of America

  • Favorite Pinball: Mayfair

Posted 18 December 2021 - 11:29 PM

Hello!

 

Pardon me if this breaks protocol as this is my first time posting. I've recently reinstalled VPX on my machine since upgrading to Windows 11. I went to load and play "Hot Shot 1.4.vpx, it loaded in and I received a Permission denied error in VPX v10.6.  Thie below line is the error.

Set ScoreFile=FileObj.CreateTextFile(UserDirectory & HighScoreFilename,True)

If I run as admin I can play the game, but if I get a high score, it craps out on the above line.  How do I either REM out all the offending high score-related code, or correct this line, or properly give write rights to the script?  I used the install scripts from this website.



#2 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,859 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 19 December 2021 - 04:48 AM

Hello!

 

Pardon me if this breaks protocol as this is my first time posting. I've recently reinstalled VPX on my machine since upgrading to Windows 11. I went to load and play "Hot Shot 1.4.vpx, it loaded in and I received a Permission denied error in VPX v10.6.  Thie below line is the error.

Set ScoreFile=FileObj.CreateTextFile(UserDirectory & HighScoreFilename,True)

If I run as admin I can play the game, but if I get a high score, it craps out on the above line.  How do I either REM out all the offending high score-related code, or correct this line, or properly give write rights to the script?  I used the install scripts from this website.

 

Did you install to a protected folder?
I would sugest a user owned folder like c:\visual pinball or c:\vpx

 

You are getting a permission denied to create/modify a file, which means you dont own the folder vpx is in

c:\program files is a no go

 

Dont dont have to reinstall

just cut vpx from the non you owned folder it is in, the entire vpx folder

paste it into c:\ so it should wind up being c:\visual pinball

 

once it has moved, go into the folder, go into the vpinmame folder

run setup.exe, and puch the install button, to update pinmame's path, and then you should be good


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


#3 Bruceee

Bruceee

    Neophyte

  • Platinum Supporter
  • 4 posts

  • Flag: United States of America

  • Favorite Pinball: Mayfair

Posted 19 December 2021 - 01:49 PM

 

Hello!

 

Pardon me if this breaks protocol as this is my first time posting. I've recently reinstalled VPX on my machine since upgrading to Windows 11. I went to load and play "Hot Shot 1.4.vpx, it loaded in and I received a Permission denied error in VPX v10.6.  Thie below line is the error.

Set ScoreFile=FileObj.CreateTextFile(UserDirectory & HighScoreFilename,True)

If I run as admin I can play the game, but if I get a high score, it craps out on the above line.  How do I either REM out all the offending high score-related code, or correct this line, or properly give write rights to the script?  I used the install scripts from this website.

 

Did you install to a protected folder?
I would sugest a user owned folder like c:\visual pinball or c:\vpx

 

You are getting a permission denied to create/modify a file, which means you dont own the folder vpx is in

c:\program files is a no go

 

Dont dont have to reinstall

just cut vpx from the non you owned folder it is in, the entire vpx folder

paste it into c:\ so it should wind up being c:\visual pinball

 

once it has moved, go into the folder, go into the vpinmame folder

run setup.exe, and puch the install button, to update pinmame's path, and then you should be good

 

The folder is and has been located at C:\Visual Pinball.  I've also run Pinmame setup, prior to this error. So maybe it's Windows 11. That's really the only variable that has changed. Also, this only affects games that have post-it note type style high scores. 
 



#4 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,151 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 19 December 2021 - 02:10 PM

Check to make sure there is a Visual Pinball/User folder

#5 Bruceee

Bruceee

    Neophyte

  • Platinum Supporter
  • 4 posts

  • Flag: United States of America

  • Favorite Pinball: Mayfair

Posted 19 December 2021 - 03:32 PM

Check to make sure there is a Visual Pinball/User folder

There is some serious weirdness going on, on my computer. Yes, there is a User folder.  I open properties and it's set to read-only.  I've unchecked the attribute and hit apply, close properties, open the properties and read-only is again checked. I go up to the VIsual pinball folder, and it's set to read-only. I've unchecked the attribute and hit apply, confirm apply to folder contents, close properties, open the properties, and read-only is again checked.



#6 Bruceee

Bruceee

    Neophyte

  • Platinum Supporter
  • 4 posts

  • Flag: United States of America

  • Favorite Pinball: Mayfair

Posted 19 December 2021 - 06:49 PM

Mark as resolved. I uninstalled the and reinstalled on a different hard drive.



#7 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,859 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 19 December 2021 - 11:47 PM

Mark as resolved. I uninstalled the and reinstalled on a different hard drive.

Something must have happened to the permissions flags on the folder

 

You probably could have created a folder names whatever

deleted the users folder, renamed whatever to users and also solved it, maybe


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: VPX, Electro-Mechanical, High Score, Permission Denied, Post-it Note, Windows 11