Pablo Smiraglia Posted May 19, 2018 Posted May 19, 2018 Tom, is it possible to pass [DESCRIPTION] as a parameter to a launch before script? the help tip in the settings tool suggests i should be able to, but it does not seem to be implemented. this is what i'm trying to implement: REM add dmd image. if not dmd table try image or default IF NOT exist "c:\Pinball\PinballX\Media\Visual Pinball\Real Color DMD Videos\%2.mp4" ( start "" dmdext play -f "C:\Pinball\PinballX\Media\Visual Pinball\Default Images\No Real Color DMD.png" -d pindmdv3 -p com3 --no-virtual ) thanks!
Tom Speirs Posted May 20, 2018 Posted May 20, 2018 It should be implemented. I can't see why it wouldn't work from looking at the code.
Pablo Smiraglia Posted May 20, 2018 Author Posted May 20, 2018 maybe a misspelling of the variable on mine or your side ? See the output from the script at runtime...
Pablo Smiraglia Posted May 21, 2018 Author Posted May 21, 2018 Btw, I am now away form the cab so I cannot test, but I wonder if the issue is with passing 2 parameters (eg would passing just DESCRIPTION work?) I know that was never able to pass anything other than tablefile in the past (I tried with type and manuf). I can test this in a couple of days. Txs.
Pablo Smiraglia Posted May 21, 2018 Author Posted May 21, 2018 The log shows PBX passing the parameter correctly, though you can see form the cmd output that it is passing the variable name instead (CMD has no knowledge of the variable name, so it is clear that PBX is passing it... I don‘t think there is a quotes issue on the cmd side. maybe a quotes issue in my settings? log.txt
Tom Speirs Posted May 21, 2018 Posted May 21, 2018 The log shows exactly what process.startinfo.arguments is set to.
Pablo Smiraglia Posted May 21, 2018 Author Posted May 21, 2018 How could cmd get “[DESCRIPTION]” as a parameter? I will try passing DESCRIPTION as %1 and see if that makes a difference... will let you know
Pablo Smiraglia Posted May 21, 2018 Author Posted May 21, 2018 Tom, one more test. If I reverse the parameters, I still get the DESCRIPTION variable name rather than the value.
Tom Speirs Posted May 21, 2018 Posted May 21, 2018 I'm not saying its not happening. I just can't see how. Maybe a .net framework bug.
Pablo Smiraglia Posted May 21, 2018 Author Posted May 21, 2018 I get it... just trying to do a few different tests to help you troubleshoot...
Pablo Smiraglia Posted May 26, 2018 Author Posted May 26, 2018 Tom, is this something you may look into further? thanks
Pablo Smiraglia Posted May 27, 2018 Author Posted May 27, 2018 Which files would help you ? The issue seems for PBX toproperly pass DESCRIPTION, YEAR, MANUT, TYPE as parameters, just like TABLEFILE which seems to be the only parameter that works. Attaching DBs, config and start-before script... Databases.rar PinballX.ini start-VPall.bat
Pablo Smiraglia Posted June 6, 2018 Author Posted June 6, 2018 FWIW, the use case I had for this feature is satisfied with 3.04's introduction of Real DMD images/videos during game play so, technically, I don't need this any longer. It would be cool to have this working though... If you decide to address this, I would still help test. thanks again, pablo.
Adultery Posted June 6, 2018 Posted June 6, 2018 This does that, unless it's broken for some reason...
Recommended Posts