MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


vertical.ini and horizont.ini
#362941 - 01/26/17 06:23 PM


So there's some documentation on the mamedev site that says you can have a different configuration for different machines. For example, you can have horizontal and vertical games have different settings with horizont.ini and vertical.ini. It doesn't say anything about how to make those files and where to put them. Can someone help me?



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362943 - 01/26/17 06:47 PM


> So there's some documentation on the mamedev site that says you can have a different
> configuration for different machines. For example, you can have horizontal and
> vertical games have different settings with horizont.ini and vertical.ini. It doesn't
> say anything about how to make those files and where to put them. Can someone help
> me?

By default MAME looks for these ini files in location MAME\ini or MAME\ini\presets

So some examples of different configurations would be if I created a vertical.ini with value ror 1 in it by itself.
This is useful because there are displays that you can easily rotate because of a swivel stand and having such a vertical configuration preforms the rotate function automatically without any manual user input.

Another example would be adding video d3d and hlsl_enable 1 to vector.ini because my understanding is vector stuff isn't implemented with bgfx and hlsl.json as of yet. So my desire would be to primarily use bgfx with hlsl shader chain except when running vector games and perhaps GameBoy/GBA because really nice presets are available for those machines.

So basically if you wanted different mame.ini settings for different machines then you can create the machine name.ini and put values that you don't wish to have enabled on a global basis.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: B2K24]
#362947 - 01/26/17 07:47 PM


But how do I make the files? As in what's the layout?



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362948 - 01/26/17 07:49 PM


Look at the examples in MAME\ini\presets

They're just ini files with mame.ini options in them.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: B2K24]
#362949 - 01/26/17 07:59 PM


That's what I did, but it didn't work. I tried to have different HLSL effects for horizontal games and vertical games, but it didn't work.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362951 - 01/26/17 08:25 PM


To clarify, I want to give horizontal games a larger shadow mask. Is there any way to do this?



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362952 - 01/26/17 08:48 PM


> To clarify, I want to give horizontal games a larger shadow mask. Is there any way to
> do this?

Yes. raster.ini located in MAME\ini\presets pertains to a lot of horizontal games if not all of them, so you'll need to figure out the exact values and slot them in there.

One way to do this is load any horizontal game you desire.
Access the in-game menu with adjustable options with TAB/Slider Controls then make a manual note of exactly what you've changed and what that value is (You're doing this because changed values don't save when you exit MAME)

After that slot them into raster.ini (this is assuming you're running with -video d3d)

If you're using video bgfx then we need to do something completely different.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: B2K24]
#362958 - 01/26/17 11:57 PM


But that makes the changes apply to vertical games also. I want them to apply with horizontal games ONLY.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362961 - 01/27/17 12:47 AM Attachment: horizont.ini 2 KB (22 downloads)


I've attached some files that could help you understand what I'm trying to do. There are two .ini files (edits of my personal raster.ini file, for hoeizontal and vertical games respectively, which I'm not sure where to put) and a PNG image (the shadow mask image the files reference.) Hopefully this helps.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362962 - 01/27/17 12:48 AM Attachment: vertical.ini 2 KB (25 downloads)


Whoops, just realized I can only attach one file. Here's the vertical ini.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362963 - 01/27/17 12:49 AM Attachment: slot-mask-1080x810.png 9 KB (12 downloads)


And here's the shadow mask image.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362967 - 01/27/17 01:31 AM


I'll have a look and see if I can come up with a solution. I'll need at least a few hours as I'm busy with work.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: B2K24]
#362969 - 01/27/17 01:52 AM


OK, I can wait a few hours. I just know how a real monitor doesn't change slot mask size when rotated.



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362971 - 01/27/17 03:34 AM


Okay, I believe I got everything to work with what you supplied.

I tossed the slot-mask-1080x810.png into the artwork folder and also tossed horizont.ini and vertical.ini
into my MAME/ini path.

I also renamed the presets folder because raster seems to conflict with having different horizont and vertical specific values.

http://imgur.com/a/776xp

As you can see when I load both a vertical and horizontal game, the shadow mask X and Y counts are automatically set to what you've specified in the ini files.

Hopefully I'm understanding you right and this is what you wanted to accomplish?



anikom15
Instigator/Local CRT Guru
Reged: 04/11/16
Posts: 287
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362977 - 01/27/17 05:29 AM


You should put the files in ini. ini has precedence over ini/presets.

Edited by anikom15 (01/27/17 05:30 AM)



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: B2K24]
#362988 - 01/27/17 02:02 PM


It doesn't look like Knights of the Round has a bigger slot mask than 005 in those images...



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362989 - 01/27/17 02:10 PM


Maybe I just can't tell and everything is okay.



124scratch
MAME Fan
Reged: 07/18/16
Posts: 18
Send PM


Re: vertical.ini and horizont.ini new [Re: 124scratch]
#362991 - 01/27/17 03:38 PM


Yes, thank you! I'm very happy with the results.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 148 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3579