mrmul8r Posted August 19, 2020 Posted August 19, 2020 When I leave exit emulator configured as "Esc", only VPX closes and not PinUp Player/DMD? However, when I re-configure exit emulator to something else ("E" for example) and then press & HOLD "Esc" both PinUp Player/DMD & VPX exit as they should back to PinballX. Only does this for PinUp enabled tables like Stranger Things & GOTG. Regular VPX tables exit like they should. Any suggestions please?
Draco1962 Posted August 19, 2020 Posted August 19, 2020 Please attach copies of your pinballx.ini and log.txt files right after launching and exiting one of the tables you mention. I do not run PinUp Player and it may be something simple, but plenty of our member pros do and may have a solution. Thanks.
PcTeknic Posted August 19, 2020 Posted August 19, 2020 I use this script.bat as Launch After to make sure any external process is clossed The script contains this: powershell -Command "Start-Process 'taskkill' '/IM UltraVPServer.exe /T /F' -WindowStyle hidden -Verb runAs" powershell -Command "Start-Process 'taskkill' '/IM B2SBackglassServerEXE.exe /T /F' -WindowStyle hidden -Verb runAs" powershell -Command "Start-Process 'taskkill' '/IM UltraDMD.exe /T /F' -WindowStyle hidden -Verb runAs" powershell -Command "Start-Process 'taskkill' '/IM pinupplayer.exe /T /F' -WindowStyle hidden -Verb runAs" How can you force to close the old VPserver B2S, although I no longer use any of these. It also forces the Direct B2S to close, although these do not usually cause problems. It also forces Ultra DMD and PinUp Player to close. Kill.bat 1 1
BrandonLaw Posted August 19, 2020 Posted August 19, 2020 You have to remove all Admin privileges from PinUp Player exe's otherwise PBX can't tell it to close.
Mike_da_Spike Posted August 19, 2020 Posted August 19, 2020 1 hour ago, BrandonLaw said: You have to remove all Admin privileges from PinUp Player exe's otherwise PBX can't tell it to close. Or run pinballx as admin (what I prefer)
mrmul8r Posted August 19, 2020 Author Posted August 19, 2020 Tried removing all admin privileges from absolutely everything other than PinballX. Still won't close PinUp Player. Will try Kill.bat now. Weird thing is that it's only recently started doing this??? *EDIT* Thanks PcTeknic your .bat file worked a treat! Quick question... How do I add a .exe to the batch file to also run on exit (for shutting down my Ultimarc device to kill solenoids in case they get stuck on and overheat)? 1
Mike_da_Spike Posted August 20, 2020 Posted August 20, 2020 9 hours ago, mrmul8r said: Quick question... How do I add a .exe to the batch file to also run on exit (for shutting down my Ultimarc device to kill solenoids in case they get stuck on and overheat)? If you want to run a program, you can do someting like: Cmd /c c:\path\program.exe @PcTeknic. Althought your batch file is working, (good job), its a bit overkill to launch powershell for taskkill (as taskill is a command line command and not a ps cmdlet) Your command powershell -Command "Start-Process 'taskkill' '/IM UltraVPServer.exe /T /F' -WindowStyle hidden -Verb runAs" can be reduced to taskkill /IM UltraVPServer.exe /T /F
joyrider3774 Posted August 20, 2020 Posted August 20, 2020 8 hours ago, Mike_da_Spike said: If you want to run a program, you can do someting like: Cmd /c c:\path\program.exe @PcTeknic. Althought your batch file is working, (good job), its a bit overkill to launch powershell for taskkill (as taskill is a command line command and not a ps cmdlet) Your command powershell -Command "Start-Process 'taskkill' '/IM UltraVPServer.exe /T /F' -WindowStyle hidden -Verb runAs" can be reduced to taskkill /IM UltraVPServer.exe /T /F your missing the -Verb runAs part. it will run with elevated rights if needed in pcteknic version hence powershell you can not do that with normal batch commands as far as i'm aware. if you got UAC prompting disabled it will not display it and execute the command under admin priveledges (like right clicking run as admin) 1
PcTeknic Posted August 20, 2020 Posted August 20, 2020 It works fine for me. Can it be done in other ways? Sure, but I've been doing it like this for years and it has never given me any problems. 1
insert58815 Posted October 1, 2020 Posted October 1, 2020 On 2020/8/20 at PM9點37分, PcTeknic said: 這對我來說可以。可以通過其他方式完成嗎?當然可以,但是多年來我一直在這樣做,它從未給我帶來任何問題。 I have the same question. Where do I put the KILL.bat file
Mike_da_Spike Posted October 2, 2020 Posted October 2, 2020 10 hours ago, insert58815 said: I have the same question. Where do I put the KILL.bat file I never knew that @PcTeknic could also write Chinese (See previous quote) The batch file should be in the after script where you define your Visual Pinball system in settings.exe : Something like this (change the path to your location where the batch file is located)
insert58815 Posted October 2, 2020 Posted October 2, 2020 2 hours ago, Mike_da_Spike said: 我從來不知道 @PcTeknic 也可以寫中文 (請參閱前面的引號)批處理文件應該位於after腳本中,您可以在settings.exe中定義Visual Pinball系統:類似這樣(將路徑更改為批處理文件所在的位置) Hide Mike_da_Spike's signature Hide all signatures 也可以嘗試使用 PinballX數據庫管理器 作為Gamemanger的替代方法 I haven’t seen your reply before I put it in the main folder of VPX and it’s also effective, but I don’t know what will be the problem. Thank you for your reply Because i use google to translate i come from taiwan
scutters Posted October 2, 2020 Posted October 2, 2020 10 minutes ago, insert58815 said: I haven’t seen your reply before I put it in the main folder of VPX and it’s also effective, but I don’t know what will be the problem. Thank you for your reply Please attach a copies of your pinballx.ini and log.txt files so we can check your settings.
insert58815 Posted October 2, 2020 Posted October 2, 2020 6 hours ago, scutters said: Please attach a copies of your pinballx.ini and log.txt files so we can check your settings. I can shut down normally according to Mike_da_Spike's setting, thank you
Mike_da_Spike Posted October 2, 2020 Posted October 2, 2020 1 hour ago, insert58815 said: I can shut down normally according to Mike_da_Spike's setting, thank you Good to known thanks ! And no problem if you use google translate. As long as your issue get fixed
insert58815 Posted October 2, 2020 Posted October 2, 2020 1 hour ago, Mike_da_Spike said: Good to known thanks ! And no problem if you use google translate. As long as your issue get fixed Hide Mike_da_Spike's signature Hide all signatures Also try PinballX Database manager as an alternative way for gamemanger Thank you very much 1
PcTeknic Posted October 3, 2020 Posted October 3, 2020 On 10/1/2020 at 8:03 PM, insert58815 said: I have the same question. Where do I put the KILL.bat file I put it in C: / Visual Pinball, but it is the same where you put it, in PinballX you are going to configure it as Launch After, specifying the path to the file.
Recommended Posts