Jump to content



Photo
- - - - -

How to rotate the DMD in 16:9 FS tables?


  • Please log in to reply
185 replies to this topic

#1 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 20 April 2010 - 08:08 PM

How to rotate the DMD in 16:9 FS tables on a single 16:9 display, which is (hardware) rotated vertically?

I know this has been discussed in several threads before, but I think it's hard to find, still not described well enough and not that easy to follow. Here I just want to try to give some help, because I just run the problem on my new monitor. I use Megapin_Williams_Medieval_Madnees_V1.33FS as example. You want to have it like this, but the DMD isn't shown like in the screenshot, but upright?

There are two possibilities to rotate the DMD.

1. Change the table script.

2. Change the Windows registry.

About the methods (!!! If you use method 2, be sure what you do. Not exactly recommended for beginners/novices. You can destroy your system setup, if you do wrong! !!!). I don't take any responsibility for anything you do!:

1. As I absolutely don't understand the script language, I can't help here much. It's recommended to search for the DMD settings in the table script and change the entries. Else it's recommended to add them. As I didn't find these DMD settings in the table script of the example table (probably still not available) and as I don't know, where exactly to add them in the table script, I chosed to use method 2. Any help is requested. So if you can give clear instructions how/where to add the needed line/-s to the table script, please feel free to post here.

I abstain from posting possible script additions because I didn't try them by myself, so I'm not sure about the results.

2. I started the Windows registry editor by using the command "regedit" in the Windows 7 Start menu. Just type "regedit" (without the quotes) in the programs/files search box in the Start menu and then chose it from the search results.

On the left navigate to HKEY_CURRENT_USER\Software\Freeware\Visual PinMame. If still not shown, open the tree structure of Visual PinMame on the left. Then also on the left once click onto the rom name of the table you want to rotate the DMD. In this example it's mm_109c. Then on the right you get shown a bunch of single settings. Scroll down to find rol and/or ror (rotate left and rotate right). Right mouse click onto rol or ror to change the value from 0 to 1 or backwards. Depends on in which direction you rotated your monitor. As I rotated it clockwise, I chosed to rotate the DMD counterclockwise (rotate left/rol) and changed the value from 0 to 1 and confirmed with Ok. Then close the Windows registry editor and try. Result is what you see in the screenshot.

If you still didn't play the table before, there's still no entry of the rom name of the table you want to rotate the DMD in the registry in the tree structure of Visual PinMame on the left. If that's the case I suggest to start/play the table once before you try to change the settings/registry value.


Please feel free to give some better explanations. I did my best, but I know my English capabilities are low/bad.

Attached Files


Click the picture frame to visit the pinball people gallery.

#2 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 20 April 2010 - 08:24 PM

Look for this part of the script... (The Table_init)

Sub mm_Init
With Controller
.GameName = cGameName
If Err Then MsgBox "Can't start Game" & cGameName & vbNewLine & Err.Description:Exit Sub
.SplashInfoLine = "" & vbNewLine & ""
.HandleKeyboard = 0
.ShowTitle = 0
.ShowDMDOnly = 1
.ShowFrame = 0
.HandleMechanics = 0
.Hidden = 0
On Error Resume Next
.Run GetPlayerHWnd
If Err Then MsgBox Err.Description
End With
On Error Goto 0



Add this line: (somewhere between 'With' and 'End With"

.Games(cGameName).Settings.Value("rol") = 1



Sub mm_Init
With Controller
.GameName = cGameName
If Err Then MsgBox "Can't start Game" & cGameName & vbNewLine & Err.Description:Exit Sub
.SplashInfoLine = "" & vbNewLine & ""
.HandleKeyboard = 0
.ShowTitle = 0
.ShowDMDOnly = 1
.ShowFrame = 0
.HandleMechanics = 0
.Hidden = 0
.Games(cGameName).Settings.Value("rol") = 1
On Error Resume Next
.Run GetPlayerHWnd
If Err Then MsgBox Err.Description
End With
On Error Goto 0


All table scripts will have an area like that. Some already have the line, and you just need to change the "rol= 0" to "rol= 1"


 


#3 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 20 April 2010 - 09:50 PM

Please understand that I'm absolutely clueless about vbs/table scripts. I'm lost there. I just only wanted to try to start any help about the topic, as I thought it could be from some general use.

I just checked the MM table script and I found the place you mentioned. I will try to test your solution soon, maybe tomorrow. Thank you very much!
Click the picture frame to visit the pinball people gallery.

#4 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 24 April 2010 - 01:44 PM

Ok, works. Thank you!

In other tables the script is written different. What do I have to add/change here, if the script reads like this:

Sub table1_Init()
Randomize
StartShake
For Each oWall in FLWalls
oWall.IsDropped=1
Next
RCard.IsDropped=1
LCard.IsDropped=1
DiverterOpen.IsDropped=1
DiverterClosed.IsDropped=0
Ramp766.Collidable=False
Controller.GameName="gw_l5"
Controller.SplashInfoLine="The Getaway - Highspeed 2 (Williams 1992)" & vbNewLine &_
"VPM Table By Noah Fentz & Uncle Reamus"
Controller.HandleKeyboard=0
Controller.ShowDMDOnly=1
Controller.ShowTitle=0
Controller.ShowFrame=0
On Error Resume Next
Controller.Run
If Err Then MsgBox Err.Description
On Error Goto 0
Click the picture frame to visit the pinball people gallery.

#5 Shooby Doo

Shooby Doo

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,347 posts
  • Location:ATL

  • Flag: United States of America

  • Favorite Pinball: Fathom

Posted 24 April 2010 - 03:04 PM

What about a table like Sharkey's Shootout? No matter what I try I can only make the DMD sideways or upside down. All other FS DMD's seem to rotate ok.

Yogi - I'm pretty sure in that case you would use this:

Controller.Games("gw_l5").Settings.Value("rol") = 1

Edited by Shooby Doo, 24 April 2010 - 03:10 PM.


#6 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 24 April 2010 - 07:02 PM

I added exactly that line here and it works. Thanks.


...
Controller.ShowFrame=0
Controller.Games("gw_l5").Settings.Value("rol") = 1
On Error Resume Next
...


Please understand that this thread is not only for my own pleasure, but to help people and to avoid unnecessary requests by collecting the needed script additions/changings in one single thread. If all fails, I think the above mentioned registry method is recommended. I will try Sharkey's Shootout next.
Click the picture frame to visit the pinball people gallery.

#7 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 24 April 2010 - 07:12 PM

QUOTE (yogiholzer @ Apr 24 2010, 01:02 PM) <{POST_SNAPBACK}>
I added exactly that line here and it works. Thanks.


...
Controller.ShowFrame=0
Controller.Games("gw_l5").Settings.Value("rol") = 1
On Error Resume Next
...


Please understand that this thread is not only for my own pleasure, but to help people and to avoid unnecessary requests by collecting the needed script additions/changings in one single thread. If all fails, I think the above mentioned registry method is recommended. I will try Sharkey's Shootout next.


Yes, before I had ever opened a script, I had no idea as well. I still just kind of guess.

I have only run into maybe 10 tables out of my 240 where this is a problem though.



 


#8 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 24 April 2010 - 07:20 PM

Sharkey's Shootouts script contains this line:

Controller.Games("shrkysht").Settings.Value("rol")=1

I removed it and added

Controller.Games("shrkysht").Settings.Value("rol") = 1

so it looks this way:

LoopPost.IsDropped=1
table1.Yieldtime=1
Controller.GameName="shrkysht"
Controller.SplashInfoLine="Sharkey's Shootout - Stern 2000" & vbnewline & "Table by Destruk and TAB"
Controller.ShowTitle=0
Controller.ShowDMDOnly=1
Controller.ShowFrame=0
Controller.HandleMechanics=0
Controller.HandleKeyboard=0

Controller.Games("shrkysht").Settings.Value("rol") = 1

I had to change both settings (rol and ror) to 0 in the registry before it worked fine.

Here's a screenshot with large DMD.

Attached Files


Click the picture frame to visit the pinball people gallery.

#9 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 24 April 2010 - 07:23 PM

All three of your posted lines are the same. And I don't see hopw Yieldtime got in there, but if it works for you, great. smile.gif

Build a fire, vipers love the heat.


#10 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 24 April 2010 - 07:37 PM

Ok, sorry, I guess I made an error at posting here by myself. When I wrote: Sharkey's Shootouts script contains this line:

Controller.Games("shrkysht").Settings.Value("rol")=1

I meant:

Controller.Games("shrkysht").Settings.Value("ror")=1


And I don't know if it makes a difference if it's ("rol")=1 or ("rol") = 1. I didn't try out.

The yieldtime line was already there and I didn't change it.


Please don't involve me into detailed discussions about table scripts. I don't have any clue about. I just only try to help anyway.


Click the picture frame to visit the pinball people gallery.

#11 Mikikiki

Mikikiki

    Neophyte

  • Banned
  • Pip
  • 8 posts

  • Flag: ---------

  • Favorite Pinball: kokola

Posted 25 April 2010 - 03:39 PM

QUOTE (Rawd @ Apr 20 2010, 09:24 PM) <{POST_SNAPBACK}>
Look for this part of the script... (The Table_init)

Sub mm_Init
With Controller
.GameName = cGameName
If Err Then MsgBox "Can't start Game" & cGameName & vbNewLine & Err.Description:Exit Sub
.SplashInfoLine = "" & vbNewLine & ""
.HandleKeyboard = 0
.ShowTitle = 0
.ShowDMDOnly = 1
.ShowFrame = 0
.HandleMechanics = 0
.Hidden = 0
On Error Resume Next
.Run GetPlayerHWnd
If Err Then MsgBox Err.Description
End With
On Error Goto 0



Add this line: (somewhere between 'With' and 'End With"

.Games(cGameName).Settings.Value("rol") = 1



Sub mm_Init
With Controller
.GameName = cGameName
If Err Then MsgBox "Can't start Game" & cGameName & vbNewLine & Err.Description:Exit Sub
.SplashInfoLine = "" & vbNewLine & ""
.HandleKeyboard = 0
.ShowTitle = 0
.ShowDMDOnly = 1
.ShowFrame = 0
.HandleMechanics = 0
.Hidden = 0
.Games(cGameName).Settings.Value("rol") = 1
On Error Resume Next
.Run GetPlayerHWnd
If Err Then MsgBox Err.Description
End With
On Error Goto 0


All table scripts will have an area like that. Some already have the line, and you just need to change the "rol= 0" to "rol= 1"



Where in my win cmd i can found that script ?

#12 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 25 April 2010 - 03:48 PM

It's the table script. It's in the *.vpt file. Load the table into VP (Editor), then don't click the "Play" button, but the "Script" button above to view and edit it.
Click the picture frame to visit the pinball people gallery.

#13 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 25 April 2010 - 03:51 PM

QUOTE (yogiholzer @ Apr 25 2010, 09:48 AM) <{POST_SNAPBACK}>
It's the table script. It's in the *.vpt file. Load the table into VP (Editor), then don't click the "Play" button, but the "Script" button above to view and edit it.


And when you are done, click 'compile' and then save the table. (make a backup)


 


#14 Mikikiki

Mikikiki

    Neophyte

  • Banned
  • Pip
  • 8 posts

  • Flag: ---------

  • Favorite Pinball: kokola

Posted 25 April 2010 - 04:03 PM

QUOTE (Rawd @ Apr 25 2010, 04:51 PM) <{POST_SNAPBACK}>
QUOTE (yogiholzer @ Apr 25 2010, 09:48 AM) <{POST_SNAPBACK}>
It's the table script. It's in the *.vpt file. Load the table into VP (Editor), then don't click the "Play" button, but the "Script" button above to view and edit it.


And when you are done, click 'compile' and then save the table. (make a backup)



I change exactly what you say and ... i got this




somehow stretch the image but is not rotated ... sad.gif

#15 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 25 April 2010 - 04:11 PM

Looks rotated to me. Right click the DMD window and left click on restore window size.
Then if that doesn't help, search the script for "height" and "width" if they are specified.

Build a fire, vipers love the heat.


#16 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 25 April 2010 - 04:33 PM

or, right-click the dmd, and click on 'show border' then you can grab the border with your mouse and resize it and position it anywhere.



 


#17 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 25 April 2010 - 04:40 PM

Now have fun! smile.gif
Click the picture frame to visit the pinball people gallery.

#18 Mikikiki

Mikikiki

    Neophyte

  • Banned
  • Pip
  • 8 posts

  • Flag: ---------

  • Favorite Pinball: kokola

Posted 25 April 2010 - 04:42 PM

problem solved tnx to all smile.gif

#19 razors78

razors78

    Enthusiast

  • Members
  • PipPipPip
  • 143 posts

  • Flag: Sweden

  • Favorite Pinball: Theatre Of Magic

Posted 29 April 2010 - 09:55 AM

I'm still having a very hard time changing the DMD for Fish Tales to the correct position. No matter how I change the registry settings I end up with the DMD being either sideways or just upside down.
What are the correct registry settings to get the DMD right using the FS version?

Fish Tales



#20 yogiholzer

yogiholzer

    Pinball Fan

  • VIP
  • 1,870 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: All.

Contributor

Posted 29 April 2010 - 05:23 PM

Fish Tales 3.8 (FS):

I just started the table the first time on this PC. The DMD is upside down (same as on your screenshot).

How to adjust?

There must be any rotating entry in the script set to 1, because else (at value 0) the DMD would shown vertical on the rotated monitor and not upside down.
Check the scipt for the table init and search the line with the rotating command. It's line 372:

Controller.Games("ft_l5").Settings.Value("ror")=1

You want the DMD rotated left. Why? See above. So change it to:

Controller.Games("ft_l5").Settings.Value("rol")=1

Close the script and save the settings by File->Save from the editor menu.

With these settings the table and the DMD would be shown correct, if it's the first start of the table. But as the previous value is already stored in the registry, because you already run the table before, you have to edit the registry too.

Set the ror value in the registry to 0. How? See first post in this thread. You can, but you don't need to set the rol value to 1 there, because you've already given the command in the table script. That will set the rol value to 1 in the registry at the next time you start to play the table.

Attached Files


Click the picture frame to visit the pinball people gallery.