View Full Version : Adjust DMD position by script
akiles500
06-20-2009, 07:40 AM
Anyone knows which is the best way for adjust DMD position by script.What line code have I put in the apart INIT Table for than adjust automatically.How do you make?
For resolutions 1024x768 playfield and 1280x1024 the backglass that are for tested in other tv.
The final resolutions will be 1920x1080 playfield and 1280x1024 for backglass
Greetings
kingb33
06-21-2009, 10:39 AM
Anyone knows which is the best way for adjust DMD position by script.What line code have I put in the apart INIT Table for than adjust automatically.How do you make?
For resolutions 1024x768 playfield and 1280x1024 the backglass that are for tested in other tv.
The final resolutions will be 1920x1080 playfield and 1280x1024 for backglass
Greetings
Just use this and you wont have to worry about editing your script:
http://vpforums.org/index.php?automodule=downloads&req=idx&cmd=viewdetail&f_id=967
it allows you to move your DMD anywhere you want and it will automatically save the position
akiles500
06-22-2009, 05:41 AM
Thank you I will test
Flying Dutchman
06-22-2009, 07:29 AM
kingb33 .. thanks for the Cabinet dll.
As I saw this thread with the DMD load problem I would like to respond as well with the same error.
I've had to re-install everything due to a pc crash. Before the crash I never had any problems with re-positioning the DMD at all by using the cabinet dll.
After the crash & re-install it does not work any more (also using the cabinet.dll).
I load a particular table (see attached - 1), drag the DMD to the correct position (see attached - 2), save the table, re-start it but the DMD is back where it originally was positioned (see attached - 3).
Do you, or anybody else ever experienced the same and have a solution for that, other than the use of the mentioned cabinet dll?
I already tried to delete the registry entry before restarting the table .. unfortunately no difference in behaviour ..
Cheers,
FD.
ktbeasley
06-22-2009, 09:33 AM
Hey Flying Dutchman, have you looked at the script to make sure the 4 lines that define the size and position of the DMD have been removed or "commented" out by placing an apostrophe at the front of each? The lines are in the table init section and say something like DMD pos x (xxx)
DMD pos y (xxx)
(sorry I can't be more specific, I'm at work so I don't have the script in front of me).
Hope this helps.
Kirk
P.S. Excellent work with the backglass paradise btw.
Flying Dutchman
06-22-2009, 10:28 AM
Kirk, you mean the following lines:
'.Games(cGameName).Settings.Value("dmd_pos_x")=5
'.Games(cGameName).Settings.Value("dmd_pos_y")=870
'.Games(cGameName).Settings.Value("dmd_width")=600
'.Games(cGameName).Settings.Value("dmd_height")=150
'.Games(cGameName).Settings.Value("rol")=1
They are commented out & the table scripts are not changed since the re-install of my pc, so should be the same.
Thanks for the suggestion though, it could have been the case ..
On the Backglasses; thanks, glad you appreciate it ..
xzotic
06-22-2009, 10:34 AM
kingb33 .. thanks for the Cabinet dll.
As I saw this thread with the DMD load problem I would like to respond as well with the same error.
I've had to re-install everything due to a pc crash. Before the crash I never had any problems with re-positioning the DMD at all by using the cabinet dll.
After the crash & re-install it does not work any more (also using the cabinet.dll).
I load a particular table (see attached - 1), drag the DMD to the correct position (see attached - 2), save the table, re-start it but the DMD is back where it originally was positioned (see attached - 3).
Do you, or anybody else ever experienced the same and have a solution for that, other than the use of the mentioned cabinet dll?
I already tried to delete the registry entry before restarting the table .. unfortunately no difference in behaviour ..
Cheers,
FD.
I know why....just took me two hours to work through it all - a real pain in the backside.
Hyperpin can't handle your secondary screen being up above the first (It won't show the backglass if you do) and pinmame won't like it to the left. You can have it to the right and also below (with cavet)... If you put it to the right your DMD will show again and can be repositioned. If you put it to the left your DMD won't hold its position (I gather because it is effectively a negative offset which pinmame doesn't handle).
Plot thickens though, because if you put the monitor to the right you get that horrid bug in win xp (and vista) where once you go full screen the content on the other display gets shifted to the right. What this means is, you can place your monitor to the right load up hyperpin which looks fine on the menu (with backglass) but then the backglass goes to sh1t when you load visual pinball full screen (because it shifts over anything that was on the secondary display to the right).
The solution?...I had to place the monitor to the bottom right. This was the only place I could place it that would keep the DMD settings and show the backglass in hyper menu AND when VP launches full screen. Although I still get about half and inch corruption at the top of the screen. But its the best I can do.
It would be nice if the Hyperspin team could fix this bug with the handling of secondary display and the backglass. If this was fixed we wouldn't have these problems. However I'm sure that once again I'll be told that this is a configuration problem with my system. I beg to differ after all my testing tonight....
Anyway check where your display is positioned - I'll be interested to see if this was your problem too (and others).
kingb33
06-22-2009, 11:29 AM
try this from an older post. look at my response there. this works every time 100%
http://www.hyperspin-fe.com/forum/showthread.php?t=2849&page=4
Flying Dutchman
06-22-2009, 12:09 PM
Thanks for the explanation xzotic .. but the problem decribed by me earlier has, in this particular case, nothing to do with HyperPin.
All tests done are plain VP with two screens, so no HP there. FS Tables as well as 4:3 ones, resulting both in the same incorrect placement of the DMD.
kingb33 .. I'll try to adjust the
Controller.SetDisplayPosition 2261, 819, GetPlayerHWnd
which was already in the script.
Thanks all for the suggestions! ;)
unclewilly
06-22-2009, 12:48 PM
my display is to the right and i have no issues at all
xzotic
06-22-2009, 11:56 PM
Thanks for the explanation xzotic .. but the problem decribed by me earlier has, in this particular case, nothing to do with HyperPin.
All tests done are plain VP with two screens, so no HP there. FS Tables as well as 4:3 ones, resulting both in the same incorrect placement of the DMD.
kingb33 .. I'll try to adjust the
Controller.SetDisplayPosition 2261, 819, GetPlayerHWnd
which was already in the script.
Thanks all for the suggestions! ;)
Sorry, you may have missed my point. The two problems are unrelated but have an impact when combined together. With respect to the DMD issue only - yes it is not a hyperpin problem. It is a vp and pinmame issue. I can recreate exactely your problem because it happened to me. Check where your displays are. Reset your secondary to the right then delete the pinmame settings from the registry. You can then see your DMD and reposition on the 2nd screen.
If you are not experiencing the other issue I mentioned in terms of Hyperpin backglass getting screwed up with the 2nd screen to the right then you are good to go.
BadBoyBill
06-22-2009, 11:57 PM
Make sure that whatever resolution you run the second monitor at you have the same settings in the settings file, default is 1280 x 1024.
xzotic
06-23-2009, 12:05 AM
Make sure that whatever resolution you run the second monitor at you have the same settings in the settings file, default is 1280 x 1024.
Tried that doesn't work. Image ends up being stretched full screen.
Also Unclewilly do a search on the 2nd screen shifting problem. It's as common as the english language. Here is some info from one of million hits on the problem:
-----------------
"PROBLEM: Secondary screen shifts when playing game
If your secondary monitor is to the right of the primary monitor, and you play a game which changes the resolution of the primary monitor, the windows on the secondary monitor will be shifted to the edge of the monitor. This is an issue with DirectX. Workarounds:
make the primary monitor the right-most monitor before playing the game
change the display resolution manually before playing the game.
------------------
The issue here is you can't put the primary monitor to the right and the secondary to the left because you will lose your DMD. You also can't make the backglass the primary for obvious reasons.
Hyperpin won't allow you to put the 2nd monitor above yet you can get away with it below right (except still with a little corruption).
If you are not getting this then clearly your graphics card/driver/os is not being impacted by this issue. However 50% of the world's computers are not setup like yours.
BadBoyBill
06-23-2009, 12:15 AM
I will see about adding the option to have the second monitor above the first in the next build. I personally dont have the issue but I know one other person that uses HP that likes to have the second monitor above the first, not because of the issue your having but just for running windows that way. Your the only person to have reported the problem so far out of all the users, so I dont believe its a common issue. But its possible that future users could run into the issue so I should be able to put something together in the next release.
xzotic
06-23-2009, 12:30 AM
OK, well I'd appreciate it if you do because it will certainly solve the problem I'm having. I can't understand that I'm the only one though - ATI4870 on XP sp3....can't be that unique. Especially when the shifting problem is such a common issue in the general public in combination with the DMD not wanting to remember its location when placed in a 'negative' position from the primary.
Anyway - If you can fix it so it supports placement of the 2nd monitor anywhere then this will rectify this issue for me and hopefully for many others that use hyperpin.
Flying Dutchman
06-23-2009, 01:00 AM
Thanks all for the comments .. I think I've tried all tricks in the book.
Even disabled DirectX on the 2nd screen (alone) .. adjusted/removed registry keys/values, adjusted the tablescript with various suggestions found, removed NVRam, changed screen resolution etc. etc. .. unfortunately no possitive result (so far).
As said, without HP present, both on VP9 and VP8 => both on 4:3 or FS tables .. all with the same result.
It shouldn't be something with the tablescripts .. they haven't changed since my pc crash.
There must be something triggered in VP / PinMame what results in putting the re-positioned DMD back in it's original place after restart.
Beats me .. don't worry too much, after starting up a table I'll simply put the DMD in it's correct position.
Thanks again!
Cheers,
FD.
CloudHead
08-13-2009, 07:10 AM
Hi !
IT seems I'm stuck with the same DMD problem. Wherever I Put It, it will eat a part of the main screen next time it is launched... I tried many method to force it the way I Want, to no avail... It's kind of driving me crazy... Since there is no cursor in HP to manage the positioning manually, i'm clueless...
Did you find a fix for that misbehavior ?
Thanks !
Note : THe DMD behave exactly the same when run standalone through pinmame, so it is not likely to be a script issue.
--
CloudHead.
Flying Dutchman
08-13-2009, 07:23 AM
I believe you get the cursor back after pressing 'T' ..
Cheers,
FD.
CloudHead
08-13-2009, 10:13 AM
Thanks for the tip !
I finally sorted the problem out, using another vpinmame build (the "cabinet" build) wich is behaving more nicely in that regard...
So whoever come accross the same problem : use the alternative cab build, the regular one has a nasty positioning bug on certain configurations with multiple screens.
I found it there, in the PINMame forum :
http://vpforums.org/index.php?showtopic=2193&pid=11597&mode=threaded&start=#entry11597
but I'm pretty sure it is avalaible elsewhere.
Edit : incidentally, you sir were the one posting the build ! :D
Flying Dutchman
08-13-2009, 10:34 AM
Glad you found it! ;)
Cheers,
FD.
Wahreez
08-28-2009, 04:01 PM
This was previously a post with some questions about setting up DMD and such, I came up with my own tedious but I think handy way of setting up all my DMD's.
I'm going through the registry for every ROM that I have a FS table of. Swapping the DMD height/width values in decimal format. Then changing ROL to '1' so the DMD is rotated properly for my screen. Before doing this I made a back up of my entire Vpinmame registry entry rom settings. Because I rotate my monitor w/ a wall mounted arm I'll probably play some tables in 4:3 occasionally. So I can load that file to play 4:3 or load the other file I made after changing all the values for Vertical play. The main think I like about this (because I am really ocd) is the fact that the original 'aspect ratio' of the DMD is retained. I'm not sure if PinMame team came up with proper aspect ratios but if they did then this method would retain them. You could also multiply the values to enlarge the DMD to meet your needs. Anyway, I hope this helps someone who is as picky as I am. I've got a good # more rom entires to switch the values on still, lol.
Obviously whenever I get any new tables I'll have to create the files again and it is a hassle and such, but I couldn't think of any other way to achieve this. Unfortunately I don't have any help for people with the black DMD on 2nd monitor as I'm on a 1 monitor system atm.