Jump to content

Setting To Monochome Mode/palette For Stern Tables


Recommended Posts

Posted

Im attempting to get my pin2dmd to swap palettes and modes on a per table basis when loading into stern tables in vpinmame.

From what I have read I should be able to do this without the use of a palette, as there are the inbuilt palettes that can be switched to. I am able to do this using the Pin2DMD.exe, but cant seem to do it programmatically on table load.

what paramaters do I need to pass to pin2dmd on the command line to swap to monochromatic and inbuilt palette 5 as an example?

 

I thought it would be pin2.dmd.exe /p5 or similar. how do you switch to the inbuilt palettes on command line and throw it into monochromatic mode?

 

once I have this I can then do it in visual pinball tables on load.

 

 

Posted

thats what i have been trying, but it doesn't seem to work. always fires up with the palette set to multicolour default.

it doesn't seem to be swapping the default palette for me either via the command line or when called through vp script. 

Note Pin2DMDDIR needs to be set to the correct location of your PIN2DMD.exe

Const PIN2DMD = True
Const PIN2DMDDIR = "C:\PIN2DMD-master\tools\vb6\Binary"

Dim oShell
Dim WScript
Dim ORIGDIR
Set oShell = CreateObject("WScript.Shell")
ORIGDIR = oShell.CurrentDirectory
oShell.CurrentDirectory = PIN2DMDDIR
If PIN2DMD = True then oShell.run "pin2dmd.exe /p5",,TRUE
oShell.CurrentDirectory = ORIGDIR
Set oShell = Nothing

Dim DelayTime, StartTime
DelayTime = 0
StartTime = Timer
Do While DelayTime < 1
    DelayTime = Timer - StartTime
Loop
  • Content Provider
Posted

Add the extra space as shown in my post.  That script you have works for me with the extra space

Posted

with the extra space it works via the command line for me to load a palette and then fire up vp. loading it via the script within vp itself doesn't change the palette

Posted

Looking at the code above I can see \\ outside my quotes for the path. That is likely a problem

Actually they are escape characters for the code quoting

Sent from my iPhone using Tapatalk

Posted

at the beginning of the script place this after randomize line

Quote

 

'************ BEGIN PIN2DMD PALETTE LOADING **************
'************* thanks to Rascal and gtxjoe ***************
Const PIN2DMD = True
Const PIN2DMDDIR = "C:\PIN2DMD-master\tools\vb6\Binary"

Dim oShell
Dim WScript
Dim ORIGDIR
Set oShell = CreateObject("WScript.Shell")
ORIGDIR = oShell.CurrentDirectory
oShell.CurrentDirectory = PIN2DMDDIR
If PIN2DMD = True then oShell.run "pin2dmd.exe /p 5",,TRUE
oShell.CurrentDirectory = ORIGDIR
Set oShell = Nothing

Dim DelayTime, StartTime
DelayTime = 0
StartTime = Timer
Do While DelayTime < 1
    DelayTime = Timer - StartTime
Loop
'************* END PIN2DMD PALETTE LOADING ***************

 

and this at the end of the script

Quote

 

'************ BEGIN PIN2DMD PALETTE RESET **************
Sub ResetPalette
Dim rShell
Dim WScript
Set rShell = CreateObject("WScript.Shell")
rShell.CurrentDirectory = PIN2DMDDIR
If PIN2DMD = True then rShell.run "pin2dmd.exe /c",,TRUE
Set rShell = Nothing
End Sub

Sub table1_exit():Controller.Stop:ResetPalette:End Sub

'************ thanks to Rascal and gtxjoe **************

Posted

I'm running the 2.12 firmware for this. do I need the 2.32 for the palette switching on SAM tables? or does that only apply when on an actual pinball machine rather than virtual?

Posted

I just updated my firmware. no change. command line or via visual pinball script doesn't load the palette. I notice I have no palette_option_p.txt file in the pinb2dmd directory. is this required? I thought using the p function used the inbuilt palettes available within the UI?

all dlls in the pin2dmd master directory are unblocked.

  • Content Provider
Posted

I am using PIN2DMD firmware v2.07 and it works.  

You stated earlier that palette switching worked via command line, so the PIN2DMD firmware setup is fine

 

Post the path to the pin2dmd.exe

Post the path to visual pinball (did you try running this as admin?)

Provide a link to one of your modified .vpt/vpx files so we can try it

Posted

Switching is not working via command line. I was incorrect, pinmame colourisation was loading.

Upon using pin2dmd via command line with the /p function, a cmd window appears and closes, palette is not swapped and launching any app that uses the display the default palette is used.

Setting the palette via pin2dmd.exe gui, the palette swaps successfully.

Sent from my iPhone using Tapatalk

  • Content Provider
Posted

Upon using pin2dmd via command line with the /p function, a cmd window appears and closes, palette is not swapped and launching any app that uses the display the default palette is used.

 

Are you entering your command line in a cmd window ? You should open a window by entering cmd und the "run" field, change to the pin2dmd.exe directory and start pin2dmd.exe there with the option /p 5

Posted

Yes, passing it in a command line window. Have tried from pin2dmd directory or fully qualifying path and parameter
fcca014ab9caccded9198d03c75a4a98.jpg
Nothing happens. Loading visual pinball, default palette loaded

 

Update: verified latest .Net framework and Visual C++ redistributable are installed
Sent from my iPhone using Tapatalk

  • 2 weeks later...
Posted

Yes drivers are correct. Panel works with pinmame and ultra dmd. Using the pin2dmd Exe gui swaps the palette. Doesn't work via command line parameter or script

Sent from my iPhone using Tapatalk

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...