freezy / dmd-extensions

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

Cmd command does not recognize Real DMD (fx2) #47

Closed tcharlie84 closed 7 years ago

tcharlie84 commented 7 years ago

Hello freeze, sorry to bother you again! = /

I decided to write here because I think it would be my most appropriate to try to solve my problem and if other people have the same problem can see this topic. I apologize again for the inconvenience but I am relentlessly trying to configure the current dmd vishay with pindmdv2 with the pinballx and pinballx emulator but unfortunately I am not getting it. I ran new tests and still did not succeed.

1) I have created a path in my path C: / Pinball Fx2. Location where my emulator is and the executable dmdext; 2) I ran the cmd command in C: / Pinball Fx2 and it recognizes my dmd. Both the virtual image and the image appear in my real dmd. 3) After configuring dmd in cabinet mode in pinballx 2 to 0 0 1040 272 and executing the command in cmd dmdext mirror --source = pinballfx2 --no-virtual, my real dmd disappears the "dmdext" image and stays with the Black screen and the virtual dmd remains with this image. 4) When starting a table, the actual dmd screen is still black and the virtual dmd is with the dmdext still image.

Cmd command below:

C:\Users\Thiago>dmdext test [1] 2017/04/04 22:50:56.312 INFO | Launching console tool. [1] 2017/04/04 22:50:56.344 DEBUG | PinDMDv1 device not found. [1] 2017/04/04 22:50:56.375 INFO | Found PinDMDv2 device. [1] 2017/04/04 22:50:56.375 DEBUG | Manufacturer: pinDMD [1] 2017/04/04 22:50:56.375 DEBUG | Product: pinDMD V2 [1] 2017/04/04 22:50:56.375 DEBUG | Serial: 00000000050C [1] 2017/04/04 22:50:56.375 DEBUG | Language ID: 1035 [1] 2017/04/04 22:50:56.391 DEBUG | Checking port COM1 for PinDMDv3... [1] 2017/04/04 22:50:56.484 DEBUG | Error: Parâmetro incorreto. [1] 2017/04/04 22:50:56.484 DEBUG | PinDMDv3 device not found. [1] 2017/04/04 22:50:56.500 DEBUG | Device found but it's not a *** device (pinDMD V2). [1] 2017/04/04 22:50:56.656 INFO | Added PinDMDv2 renderer. [1] 2017/04/04 22:50:56.719 INFO | Added VirtualDMD renderer. [1] 2017/04/04 22:50:56.734 DEBUG | Resizing virtual DMD to 128x32 [1] 2017/04/04 22:50:56.734 INFO | Setting up Render Graph for 2 destination(s) [1] 2017/04/04 22:50:56.750 INFO | Connecting Image Source to PinDMD v2 (Bitmap => Gray4) [1] 2017/04/04 22:50:56.781 INFO | Connecting Image Source to Dmd (Bitmap => Bitmap) [1] 2017/04/04 22:50:56.797 INFO | Press CTRL+C to close. [5] 2017/04/04 23:03:19.463 INFO | Source for 2 renderer(s) stopped. [5] 2017/04/04 23:03:19.463 DEBUG | Disposing render graph.

C:\Users\Thiago>dmdext mirror --source=pinballfx2 --no-virtual [1] 2017/04/04 22:52:24.852 INFO | Launching console tool. [1] 2017/04/04 22:52:24.886 DEBUG | PinDMDv1 device not found. [1] 2017/04/04 22:52:24.918 INFO | Found PinDMDv2 device. [1] 2017/04/04 22:52:24.919 DEBUG | Manufacturer: pinDMD [1] 2017/04/04 22:52:24.919 DEBUG | Product: pinDMD V2 [1] 2017/04/04 22:52:24.919 DEBUG | Serial: 00000000050C [1] 2017/04/04 22:52:24.919 DEBUG | Language ID: 1035 [1] 2017/04/04 22:52:24.919 DEBUG | Checking port COM1 for PinDMDv3... [1] 2017/04/04 22:52:25.003 DEBUG | Error: Parâmetro incorreto. [1] 2017/04/04 22:52:25.003 DEBUG | PinDMDv3 device not found. [1] 2017/04/04 22:52:25.020 DEBUG | Device found but it's not a *** device (pinDMD V2). [1] 2017/04/04 22:52:25.144 INFO | Added PinDMDv2 renderer. [1] 2017/04/04 22:52:25.144 DEBUG | VirtualDMD disabled. [1] 2017/04/04 22:52:25.167 INFO | Setting up Render Graph for 1 destination(s) [1] 2017/04/04 22:52:25.173 INFO | Press CTRL+C to close.

You said in another forum that my fx2 pinball is not being recognized. But I can not say why this is happening, because I am following your step by step and unfortunately I am not succeeding.

I really do not know why when I run the command "Dmdext mirror --source = pinballfx2 --no-virtual" the pinball fx2 does not recognize in the cmd command and when I run the pinball fx2 the virtual dmd remains in the "dmdext" image and the real dmd the screen turns black.

What do you think it could be? Any dll problem? Any inappropriate folder?

I did the tests by executing only the commands

Dmdext mirror --source = pinballfx2

Without putting the option --no-virtual And I recognized the Pinball fx2 in the cmd command, also opened the virtual dmd in my playfield with the dmd of the tables of the pinball game fx2, but the real dmd still continues with black screen.

In the same way when I execute the command

Dmdext.exe mirror -s PINBALLFX2 - 0 0 128 32-d pindmd

The following log appears

C: \ Pinball FX2> dmdext.exe mirror -s PINBALLFX2 - 0 0 128 32-d pindmd  [1] 2017/04/08 16: 33: 52.480 INFO | Launching console tool.  [1] 2017/04/08 16: 33: 52.517 DEBUG | PinDMDv1 device not found.  [1] 2017/04/08 16: 33: 52.551 INFO | Found PinDMDv2 Device.  [1] 2017/04/08 16: 33: 52.551 DEBUG | Manufacturer: pinDMD  [1] 2017/04/08 16: 33: 52.551 DEBUG | Product: pinDMD V2  [1] 2017/04/08 16: 33: 52.551 DEBUG | Serial: 00000000050C  [1] 2017/04/08 16: 33: 52.551 DEBUG | Language ID: 1035  [1] 2017/04/08 16: 33: 52.551 DEBUG | Checking port COM1 for PinDMDv3 ...  [1] 2017/04/08 16: 33: 52.637 DEBUG | Error: Incorrect parameter.  [1] 2017/04/08 16: 33: 52.637 DEBUG | PinDMDv3 device not found.  [1] 2017/04/08 16: 33: 52.645 DEBUG | Device found but it's not a PIN2DMD device (pinDMD V2).  [1] 2017/04/08 16: 33: 52.769 INFO | Added PinDMDv2 renderer.  [1] 2017/04/08 16: 33: 52.850 INFO | Added VirtualDMD renderer.  [1] 2017/04/08 16: 33: 52,850 DEBUG | Resizing virtual DMD to 128x32  [1] 2017/04/08 16: 33: 52.861 INFO | Setting up Render Graph for 2 destination (s)  [1] 2017/04/08 16: 33: 52.874 INFO | Connecting Pinball FX2 to Dmd (ColoredGray2 => Rgb24)  [1] 2017/04/08 16: 33: 52.874 INFO | Capturing at 25 frames per second ...  [1] 2017/04/08 16: 33: 52.890 INFO | Waiting for Pinball FX2 to spawn ...  [1] 2017/04/08 16: 33: 52.911 INFO | Press CTRL + C to close.  [4] 2017/04/08 16: 33: 52.911 INFO | Frames coming in from Pinball FX2.

When I run the "screen" command the current dmd works more in a cluttered way. It is not enough to understand what is happening in the real dmd. Just the sign in your rgb's

What could be that it is getting black screen in my real dmd or when I put the command "--no-virtual" it does not recognize the current dmd. What could it be?

Would I have some command or something I'm not doing so I can work with my real dmd along with the fx2 pinball?

I apologize for the inconvenience. Whatever you can help me, I thank you very much!

freezy commented 7 years ago

Well, it seems that your PinDMD2 is working and grabbing frames from PinballFX2 is working. The command you're using here doesn't make much sense

dmdext.exe mirror -s PINBALLFX2 - 0 0 128 32-d pindmd

In general, if you see Waiting for Pinball FX2 to spawn that means the source is set up correctly. If you see Found PinDMDv2 Device that means your display was recognized. If you don't have both of these then your command is probably wrong.

Just dmdext mirror -s pinballfx2 doesn't work?

tcharlie84 commented 7 years ago

When I execute the commands

Dmdext.exe mirror -s PINBALLFX2 - 0 0 128 32-d pindmd Or just Dmdext mirror -s pinballfx2

Only the virtual dmd appears with the pinballx tables display. But the actual dmd the screen remains black. I tried to position the virtual dmd in all corners of the playfield or backbox, or even in a "blind spot" of the image but the actual dmd persisted on the black screen.

I did the test also putting the command

Dmdext -s screen

In this command the actual dmd is fired and it captures an image of my playfield in the upper right corner and gets caught in that playfield image.

But when I type some command with respect to the end of the command --no-virtual it seems to me that it does not trigger the pinballx frames in cmd and the real dmd is black screen.

What could I be doing wrong? Do you think it could be some dll or something of the genre? I did not find any local solution on that.

please, could you help me? I really need your help.

Thank you freezy

kiwiBri commented 7 years ago

have you tried to send a static image to the DMD from the command line?

freezy commented 7 years ago

Please post the log of dmdext mirror -s pinballfx2.

tcharlie84 commented 7 years ago

When I type in cmd the command Dmdext mirror -s pinballfx2 Appears in my playfield virtual dmd of the pinball table fx2 but my dmd the screen remains without any image. Below, I forward the log

C:\Users\Thiago>dmdext mirror -s pinballfx2 [1] 2017/04/12 20:56:54.876 INFO | Launching console tool. [1] 2017/04/12 20:56:54.913 DEBUG | PinDMDv1 device not found. [1] 2017/04/12 20:56:54.946 INFO | Found PinDMDv2 device. [1] 2017/04/12 20:56:54.946 DEBUG | Manufacturer: pinDMD [1] 2017/04/12 20:56:54.946 DEBUG | Product: pinDMD V2 [1] 2017/04/12 20:56:54.946 DEBUG | Serial: 00000000050C [1] 2017/04/12 20:56:54.946 DEBUG | Language ID: 1035 [1] 2017/04/12 20:56:54.954 DEBUG | Checking port COM1 for PinDMDv3... [1] 2017/04/12 20:56:55.032 DEBUG | Error: Parâmetro incorreto. [1] 2017/04/12 20:56:55.032 DEBUG | PinDMDv3 device not found. [1] 2017/04/12 20:56:55.032 DEBUG | Device found but it's not a PIN2DMD device (pinDMD V2). [1] 2017/04/12 20:56:55.156 INFO | Added PinDMDv2 renderer. [1] 2017/04/12 20:56:55.197 INFO | Added VirtualDMD renderer. [1] 2017/04/12 20:56:55.197 DEBUG | Resizing virtual DMD to 128x32 [1] 2017/04/12 20:56:55.206 INFO | Setting up Render Graph for 2 destination(s) [1] 2017/04/12 20:56:55.206 INFO | Connecting Pinball FX2 to Dmd (ColoredGray2 => Rgb24) [1] 2017/04/12 20:56:55.219 INFO | Capturing at 25 frames per second... [1] 2017/04/12 20:56:55.233 INFO | Waiting for Pinball FX2 to spawn... [1] 2017/04/12 20:56:55.255 INFO | Press CTRL+C to close. [4] 2017/04/12 20:56:55.255 INFO | Frames coming in from Pinball FX2.

Do you have any idea of ​​any more command I need to do to appear in my real dmd? Obeyed once again freeze. But I'm trying tirelessly =(

tcharlie84 commented 7 years ago

I did some more tests and I noticed that when I exit the pinball emulator fx2, the cmd command screen shows "but dmd not". And the virtual dmd gets the black screen. When I return to the emulator and trigger a table to play the virtual dmd resumes the virtual dmd of the game, but the real dmd does not give any signal. I sent you down the cmd log

C:\Users\Thiago>dmdext mirror -s pinballfx2
 [1] 2017/04/12 21:39:13.760  INFO | Launching console tool.
 [1] 2017/04/12 21:39:13.807 DEBUG | PinDMDv1 device not found.
 [1] 2017/04/12 21:39:13.838  INFO | Found PinDMDv2 device.
 [1] 2017/04/12 21:39:13.838 DEBUG |    Manufacturer: pinDMD
 [1] 2017/04/12 21:39:13.838 DEBUG |    Product:      pinDMD V2
 [1] 2017/04/12 21:39:13.838 DEBUG |    Serial:       00000000050C
 [1] 2017/04/12 21:39:13.838 DEBUG |    Language ID:  1035
 [1] 2017/04/12 21:39:13.838 DEBUG | Checking port COM1 for PinDMDv3...
 [1] 2017/04/12 21:39:13.932 DEBUG | Error: Parâmetro incorreto.
 [1] 2017/04/12 21:39:13.932 DEBUG | PinDMDv3 device not found.
 [1] 2017/04/12 21:39:13.947 DEBUG | Device found but it's not a PIN2DMD device (pinDMD V2).
 [1] 2017/04/12 21:39:14.104  INFO | Added PinDMDv2 renderer.
 [1] 2017/04/12 21:39:14.166  INFO | Added VirtualDMD renderer.
 [1] 2017/04/12 21:39:14.166 DEBUG | Resizing virtual DMD to 128x32
 [1] 2017/04/12 21:39:14.182  INFO | Setting up Render Graph for 2 destination(s)
 [1] 2017/04/12 21:39:14.197  INFO | Connecting Pinball FX2 to Dmd (ColoredGray2 => Rgb24)
 [1] 2017/04/12 21:39:14.197  INFO | Capturing at 25 frames per second...
 [1] 2017/04/12 21:39:14.213  INFO | Waiting for Pinball FX2 to spawn...
 [1] 2017/04/12 21:39:14.229  INFO | Press CTRL+C to close.
 [3] 2017/04/12 21:39:34.265  INFO | Frames coming in from Pinball FX2.
 [5] 2017/04/12 21:40:50.799 DEBUG | Handle lost, stopping capture.
 [5] 2017/04/12 21:40:50.799  INFO | Frames stopped from Pinball FX2.
 [5] 2017/04/12 21:40:50.799  INFO | Waiting for Pinball FX2 to spawn...
 [3] 2017/04/12 21:40:50.799  WARN | Pinball FX2 process found (pid 5752) but DMD not. No game running?
 [5] 2017/04/12 21:45:00.956  INFO | Frames coming in from Pinball FX2.
[10] 2017/04/12 21:50:07.236 DEBUG | Handle lost, stopping capture.
[10] 2017/04/12 21:50:07.236  INFO | Frames stopped from Pinball FX2.
[10] 2017/04/12 21:50:07.236  INFO | Waiting for Pinball FX2 to spawn...
 [5] 2017/04/12 21:50:07.236  WARN | Pinball FX2 process found (pid 5988) but DMD not. No game running?`
freezy commented 7 years ago

Okay we're getting somewhere. What happens when running:

dmdext mirror -s pinballfx2 -d pindmdv2
freezy commented 7 years ago

I think I've fixed it. Can you try this build please?

dmdext-47.zip

tcharlie84 commented 7 years ago

Uallll Freeze! I do not even know how to thank you! =D I am happy with this I did the test directly by the emulator pinball fx2 and it worked !!! You do not know the happiness that I am and how I need to thank you and a lot for that! I spent countless days and nights trying to make it work. Now I'm going to set it up by pinballx to see if it will go well! I just noticed one detail. Some dmd images do not get so sharp. Would there be any cmd commands I can do to improve rendering quality? This version that you told me can I use for TPA too? For now I want to configure TPA with dmdext. I thank you immensely for your help! I wish you double success! Thank you very much!

freezy commented 7 years ago

Cool! About the sharpness, do you mean an issue like #48?

Yes, TPA should work as well.

tcharlie84 commented 7 years ago

I think that's basically it. I have pindmd.exe. If I'm not mistaken, it regulates luminosity. My real dmd is red. I'll see if this can make an improvement. But just working on my pinballfx2 I'm already very happy. You can not imagine how happy I am. I owe it all to you for your help. thank you so much!

freezy commented 7 years ago

You're welcome!