freezy / dmd-extensions

A toolbox for virtual pinball dot matrix displays.
GNU General Public License v2.0
128 stars 54 forks source link

Errors when running arguments on latest commit. Have arguments changed? #160

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello,

Thank you for all the wonderful work you have done on DMDExt!

I compiled the the eabae2b release from December 20th which addressed issues in PBFX3. This was working perfectly, as long as it was launched after PBFX3 was already running.

This weekend I compiled the f78b08e release from January 11th which also included the January 10th fixes to address those launching issues.

The compile was successful, and the .exe runs without issue, but I can no longer run my old .bat files which used to work. It now produces an error saying that there are issues with the arguments I am putting in.

Have the arguments changed at all? Mine is quite basic. Virtual DMD looking for PBFX3 and set to a specific location on start.

I rolled back to the previous version (eabae2b build), and it was back up and running again with the same .bat file.

Any help is greatly appreciated!

Any news on when we will see a new, full, pre-compiled release?

freezy commented 5 years ago

Hi, any chance of a log that includes the provided params and the error?

No news about the next release yet, I wanted to put in the new DMD renderer, but performance issues have calmed my motivation a bit.. Most probably scenario is a release with the current code base, but I'll have to do some cleanup first.

ghost commented 5 years ago

Thank you for the quick reply. Will get everything together for you this evening!

TheTrainGoes commented 5 years ago

Here is the information as I could gather it.

This is the .bat file that I run on setup with PBFX3: dmdext mirror --source=pinballfx3 --virtual-dotsize .8 --virtual-hide-grip true --virtual-position 3930 190 1700

This has worked for quite a while, and has worked on the eabae2b release.

Once I built f78b08e it still produces a DMD window, but does not place it in the designated location as per the .bat file (same behaviour when running directly from the command line)

Here is what runs when the .bat file triggers:

C:\Program Files (x86)\Steam\steamapps\common\DMDExt\dmd-extensions-master\Console\bin\x64\Debug>dmdext mirror --source=pinballfx3 --virtual-dotsize .8 --virtual-hide-grip true --virtual-position 3930 190 1700
 [1] 2019/01/21 19:52:53.603  INFO | Launching console tool.
 [1] 2019/01/21 19:52:53.650  INFO | PinDMDv1 device not found.
 [1] 2019/01/21 19:52:53.650  WARN | Device PinDMDv1 is not available.
 [1] 2019/01/21 19:52:53.681  INFO | PinDMDv2 device not found.
 [1] 2019/01/21 19:52:53.681  WARN | Device PinDMDv2 is not available.
 [1] 2019/01/21 19:52:53.681  INFO | Checking port COM1 for PinDMDv3...
 [1] 2019/01/21 19:52:53.775 ERROR | Error: The parameter is incorrect.
 [1] 2019/01/21 19:52:53.775  INFO | Checking port COM3 for PinDMDv3...
 [1] 2019/01/21 19:52:53.916 ERROR | Error: The parameter is incorrect.
 [1] 2019/01/21 19:52:53.916  INFO | PinDMDv3 device not found.
 [1] 2019/01/21 19:52:53.916  WARN | Device PinDMDv3 is not available.
 [1] 2019/01/21 19:52:53.916 DEBUG | PIN2DMD device not found.
 [1] 2019/01/21 19:52:53.916  WARN | Device PIN2DMD is not available.
 [1] 2019/01/21 19:52:54.009  INFO | Added virtual DMD renderer.
 [1] 2019/01/21 19:52:54.041  INFO | Loading alphanumeric SVGs...
 [1] 2019/01/21 19:52:54.088  INFO | Loading alphanumeric SVGs...
 [1] 2019/01/21 19:52:54.088  INFO | Loading numeric (8) SVGs...
 [1] 2019/01/21 19:52:54.088  INFO | Loading numeric (8) SVGs...
 [1] 2019/01/21 19:52:54.088  INFO | Loading numeric (10) SVGs...
 [1] 2019/01/21 19:52:54.103  INFO | Loading numeric (10) SVGs...
 [1] 2019/01/21 19:52:54.103  INFO | All SVGs loaded.
 [1] 2019/01/21 19:52:54.103  INFO | Added virtual Alphanumeric renderer.
 [1] 2019/01/21 19:52:54.103  INFO | Resizing virtual DMD to 128x32
 [1] 2019/01/21 19:52:54.119  INFO | Setting up Render Graph for 2 destination(s)
 [1] 2019/01/21 19:52:54.119  INFO | Connecting Pinball FX3 to Dmd (ColoredGray2 => Rgb24)
 [1] 2019/01/21 19:52:54.150  INFO | Waiting for Pinball FX3 process to start...
 [1] 2019/01/21 19:52:54.181  INFO | Press CTRL+C to close.

Here is a test run:

C:\Program Files (x86)\Steam\steamapps\common\DMDExt\dmd-extensions-master\Console\bin\x64\Debug>dmdext test
 [1] 2019/01/21 19:55:47.005  INFO | Launching console tool.
 [1] 2019/01/21 19:55:47.036  INFO | PinDMDv1 device not found.
 [1] 2019/01/21 19:55:47.036  WARN | Device PinDMDv1 is not available.
 [1] 2019/01/21 19:55:47.068  INFO | PinDMDv2 device not found.
 [1] 2019/01/21 19:55:47.068  WARN | Device PinDMDv2 is not available.
 [1] 2019/01/21 19:55:47.068  INFO | Checking port COM1 for PinDMDv3...
 [1] 2019/01/21 19:55:47.162 ERROR | Error: The parameter is incorrect.
 [1] 2019/01/21 19:55:47.162  INFO | Checking port COM3 for PinDMDv3...
 [1] 2019/01/21 19:55:47.318 ERROR | Error: The parameter is incorrect.
 [1] 2019/01/21 19:55:47.318  INFO | PinDMDv3 device not found.
 [1] 2019/01/21 19:55:47.318  WARN | Device PinDMDv3 is not available.
 [1] 2019/01/21 19:55:47.349 DEBUG | PIN2DMD device not found.
 [1] 2019/01/21 19:55:47.349  WARN | Device PIN2DMD is not available.
 [1] 2019/01/21 19:55:47.443  INFO | Added virtual DMD renderer.
 [1] 2019/01/21 19:55:47.458  INFO | Loading alphanumeric SVGs...
 [1] 2019/01/21 19:55:47.505  INFO | Loading alphanumeric SVGs...
 [1] 2019/01/21 19:55:47.505  INFO | Loading numeric (8) SVGs...
 [1] 2019/01/21 19:55:47.505  INFO | Loading numeric (8) SVGs...
 [1] 2019/01/21 19:55:47.521  INFO | Loading numeric (10) SVGs...
 [1] 2019/01/21 19:55:47.521  INFO | Loading numeric (10) SVGs...
 [1] 2019/01/21 19:55:47.521  INFO | All SVGs loaded.
 [1] 2019/01/21 19:55:47.521  INFO | Added virtual Alphanumeric renderer.
 [1] 2019/01/21 19:55:47.536  INFO | Resizing virtual DMD to 128x32
 [1] 2019/01/21 19:55:47.536  INFO | Setting up Render Graph for 2 destination(s)
 [1] 2019/01/21 19:55:47.552  INFO | Connecting VPM Alpha Numeric Source to Virtual Alphanumeric Renderer (AlphaNumeric => AlphaNumeric)
 [1] 2019/01/21 19:55:47.583  INFO | Press CTRL+C to close.
 [8] 2019/01/21 19:55:47.786 DEBUG | Sending data to display 0...
 [8] 2019/01/21 19:55:47.801 DEBUG | new data: [ 0,10767,2167,8719,0,2109,8713,6259,56,2157,0,4957,0,8719,62,8719,121,2157,0,0 ]
 [1] 2019/01/21 19:55:47.801 DEBUG | Creating image...
 [8] 2019/01/21 19:55:47.806 DEBUG | Sending data to display 1...
 [8] 2019/01/21 19:55:47.806 DEBUG | new data: [ 0,0,5120,8704,16640,0,0,0,0,2112,0,0,0,0,0,0,0,0,0,0 ]
 [1] 2019/01/21 19:55:47.828 DEBUG | Creating image...
 [1] 2019/01/21 19:55:48.062  INFO | Rasterization done.
 [1] 2019/01/21 19:55:48.097 DEBUG | Creating image...
 [1] 2019/01/21 19:55:48.108 DEBUG | Creating image...
 [1] 2019/01/21 19:55:48.108  INFO | Already rasterized Alphanumeric, aborting.
xantari commented 5 years ago

@freezy What performance issues are you referring to with the dmd2 branch?

freezy commented 5 years ago

Thanks, I'll take a look at it!

@xantari: People at VPF are reporting slow frame rates when lots of dots are drawn on the DMD.