gtxjoe

Pin2Dmd - Pinball Logo Images (Ppm Format) And How To Load Them

40 posts in this topic

Pinballx has to give up control of the PIN2DMD at some point, so vpinMame can take over for DMD roms.  What if you delay sending the pin2dmd.exe /i picture.ppm a little.  This might allow you to use the regular PinballX dll.  

 

This autohotkey script, save it to a ahk file and call it instead of pin2dmd.exe.  It should wait for the Visual Pinball Player to start (it will wait up to 20 seconds) then delay for 2 more seconds and then send the pin2DMD command.  I havent tried it but that's the basic approach.  Delete the line with Msgbox - its just a check to see what it gets from pinballx

TableName = %1%
Msgbox %TableName%
WinWaitActive, Visual Pinball Player, , 20
Sleep, 2000
Run, pin2dmd.exe /i "%TableName%.ppm",,UseErrorLevel

Share this post


Link to post
Share on other sites

File open error... I assume the AHK goes in the pin2dmd folder? Or did I screw something up - it seems to wait the full time before giving up though

Share this post


Link to post
Share on other sites

Added a lot more table logos to dropbox... pbx needs to hurry up and add support!

Here's a sample

 

irBrAZe.png

Share this post


Link to post
Share on other sites

Its the weekend, had time to look at this.  Got the autohotkey load logo to work by waiting until PinballX released the DMD control (no custom xdmd.dll), so at least while browsing tables you still have something on the dmd.  I have the DMD palette set to red and using the "Real DMD videos" on the Pinballx forums

 

Here is the script assuming you have the ppm files in the pin2dmd folder.  Save it as pin2dmdloadimage.ahk

TableName = %1%
WinWaitActive, Visual Pinball Player, , 20
Run, pin2dmd.exe /i "%TableName%.ppm",,UseErrorLevel

Here is the required Pinballx settings

1453560925.png

 

and the video

Share this post


Link to post
Share on other sites

I like your loading gif gtxjoe! lol

 

did you goof on loading 24? the score display never came up! 

Share this post


Link to post
Share on other sites

It was just a demo video using two of your color ppm imges.  I guess that 24 ppm is not useful until we can load them while browsing tables ;)

Share this post


Link to post
Share on other sites

Two things don't work:

1) your link

2) what you described

 

yes an image appears on the dmd, and yes it has color, but it absolutely does not have the colors defined in the PPM image.

 

If I wanted psychadelic colored dots on my DMD I could just load up any Real DMD Videos I used to use, which work in the same way that your PNGs work.... it's not ideal

 

Pinballx can show pictures on dmd..

I converted all the images from freneticamnesic from ppm to png and putted them in a folder called "Real DMD Images" in my medias folders and it works while browsing tables.  ;)

https://dl.dropboxusercontent.com/u/98865673/Real%20DMD%20Images.rar

Share this post


Link to post
Share on other sites

I'll fix the link as soon as I get home.. I'm at work.

There is no hurry anyway as it doesn't works as expected.. 

Nevermind ... I would have tried... ;)

Share this post


Link to post
Share on other sites

I tried to convert some pics to the ppm format use  gimp scaled the picture to 128 x 32 and exported to ppm  there are two Options ascii or bianery none of the picture will be displayed.  Error Wrong file format, so what to do get this working?

Greetings

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now