Jump to content

Setting To Monochome Mode/palette For Stern Tables


Recommended Posts

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.

 

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 **************

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Content Provider

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Content Provider

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Archived

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

×
  • Create New...