Main > Software Forum

CPWizard v2.63 Released

Pages: << < (47/145) > >>

headkaze:


--- Quote from: TheShanMan on July 12, 2008, 03:20:09 pm ---OK, I've tried various things on the cab and can't get it to work right for all games. In order to get all png's to be 1024x1280 I have to pick resolution "Layout Size" (that's the size of my layout) with no options checked. Furthermore, I can't seem to ever get the lay files for horizontal games to set top=256 bottom=1024 (height=768, i.e. 1024x768 on a 1024x1280 screen).
--- End quote ---

I think your going to have to explain what you want more clearer. All the new "Rotate For Vertical" option does is swap the Width and Height values for vertical games which is what I thought you asked for. Are you saying now you have to have them all the same size?

As I mentioned previously I don't exactly know how I should be calculating the borders for bezels which I thought was only necessary when I was including a vertical bezel for vertical games on a horizontal setup. Now your saying you need Top=256 and Bottom=1024?

Also consider I try to design my software to work on all different configurations so I can't just hardcode it to work on one setup which probably means I'll have to learn how the bezel format works a bit better.

TheShanMan:

If I didn't convey myself properly before, then I apologize. I haven't really changed what I'm asking for though. I have a vertically oriented monitor with my video driver set to rotate, such that windows looks normal, yet tall (1024x1280). Therefore, I don't need to set mame to rotate because that is already handled natively by windows. I don't think that matters to you in terms of creating bezels correctly, but I wanted to make sure you have whatever information you may need. I believe the lay files would need to be created identically for someone who has a vertical monitor without driver rotation (i.e. rotation handled by their FE and mame).

So what I'm after is having ALL bezel png's be 1024x1280, which is what my all my layout resolutions are. I think this is what most if not all users would expect, since after all that's what you'd get if you ran CPW as a resident app. I can get that to occur my choosing "Layout Size" and unchecking the other options (it sounds from what you're saying that Rotate for Vertical may as well be removed). I still don't understand what "include vertical" does, so I don't know if that needs to come into play at all.

In terms of the .lay files, check out that link I posted a few days ago in this thread. It has details about .lay files. You may have already seen it though - it's fairly basic. For vertical games on my vertical monitor, the screen needs to be defined as left=0, right=1024, top=0, bottom=1280, since that's how a vertical game will fill the screen with no bezel. For horizontal games on my vertical monitor, the screen needs to be defined as left=0, right=1024, top=256, bottom=1024, since that's how a horizontal game will fill the screen with no bezel.

And for someone running a horizontal monitor, the screen would be l=0, r=1280, t=0, b=1024 for a horizontal game, and l=256, r=1024, t=0, b=1024 for a vertical game.

Does that make sense?

headkaze:

Okay that makes more sense now, so yeah I may as well remove that "Rotate For Vertical" option.

The "Include Vertical Bezel" option is for horizontal users that want to have a "Mame" logo down the sides for vertical games. It's just so there are no black strips, but the Mame logo instead (have a look at the attached image, it shows what image is included with that option).

Okay I'm going to have to recode some of this.

So far you've given me the values for a 1280x1024 vertical display, So now I need to know the values for the rest of the resolutons. I really need to support them all to implement this correctly, any ideas or is there an obvious pattern I'm missing here?

Horizontal Monitor Orientation

--- Code: ---320x240: Horizontal Game: L=0, R=320, T=0,  B=240, Vertical Game: L=?, R=?, T=0, B=240
640x480: Horizontal Game: L=0, R=640, T=0,  B=480, Vertica Gamel: L=140, R=500, T=0, B=480
1024x768: Horizontal Game: L=0, R=1024, T=0,  B=768, Vertical Game: L=?, R=?, T=0, B=768
1024x960: Horizontal Game: L=0, R=1024, T=0,  B=960, Vertical Game: L=?, R=?, T=0, B=960
1280x1024: Horizontal Game: L=0, R=1280, T=0,  B=1024, Vertical Game: L=?, R=?, T=0, B=1024
--- End code ---

Vertical Monitor Orientation

--- Code: ---240x320: Vertical Game: L=0, R=240, T=0,  B=320, Horizontal Game: L=0, R=240, T=?, B=?
480x640: Vertical Game: L=0, R=480, T=0,  B=640, Horizontal Game: L=0, R=480, T=?, B=?
768x1024: Vertical Game: L=0, R=768, T=0,  B=1024, Horizontal Game: L=0, R=768, T=?, B=?
960x1024: Vertical Game: L=0, R=960, T=0,  B=1024, Horizontal Game: L=0, R=960, T=?, B=?
1024x1280: Vertical Game: L=0, R=1024, T=0,  B=1280, Horizontal Game: L=0, R=1024, T=256, B=1024
--- End code ---

EDIT: I've put all the code in place to do this, now I just need to put in the values.

loadman:

Man...

This is turning into a slick piece of software.

Well Done HeadKaze... :applaud:

TheShanMan:


--- Quote from: headkaze on July 13, 2008, 02:44:20 am ---So far you've given me the values for a 1280x1024 vertical display, So now I need to know the values for the rest of the resolutons. I really need to support them all to implement this correctly, any ideas or is there an obvious pattern I'm missing here?

--- End quote ---

Yeah, that's easy. I'm just picking values to center the display. So in my case (1024x1280), I calculated t=256, b=1024 like this: The game would run as 1024x768 (width of display the limiting factor, and of course the game is 4:3, so that's where 768 comes from). So since there's more height than necessary, calculate 1280-768=512. That's how much extra vertical space there is. Divide that by 2 for top and bottom. Top equals that value (256), and bottom is 256+768=1024.

Incidentally, you can also specify the coordinates as height and width, rather than bottom and right (according to that "lay file basics" page I linked). That would probably make the resulting values look more straightforward/obvious. So with my example, it would be l=0, w=1024, t=0, h=768. If it were me, I'd create the lay files with those values.

Hope that's a straightforward explanation. And I agree with loadman. ;D I feel like a third of the posts in this thread must be mine. Hope you're not sick of seeing "Last post: TheShanMan" yet! :-\

Pages: << < (47/145) > >>

Go to full version