MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

dadabhai
MAME Fan
Reged: 12/31/16
Posts: 2
Send PM


defocus values in mame.ini
#362034 - 12/31/16 02:59 PM


Can someone else confirm whether the "defocus" value in mame.ini under the # DIRECT3D POST-PROCESSING OPTIONS section actually has any effect? I have tried so far with both mame0.181b and mameui64 0.180 and it has no effect in either. If the press tilde and then scroll to the "Defocus_X" and "Defocus_Y" they are both at 0.5. I can however manually slide the adjuster to the value I want (1.3) but obviously it would be more convenient if the value could just be read from mame.ini.



uman
MAME Fan
Reged: 04/15/12
Posts: 455
Send PM


Re: defocus values in mame.ini new [Re: dadabhai]
#362035 - 12/31/16 03:32 PM


You need to pay attention to the "presets" folder inside of the "ini" folder. The presets overwrite the settings of a mame.ini.
If you want to change your defocus value, do it in the appropriate preset ini (raster, vector, lcd etc.).

from the docs (hlsl.txt):

Code:

Presets
-------
../ini/presets/raster.ini for raster screens
../ini/presets/vector.ini for color vector screens
../ini/presets/vector-mono.ini for monochrome vector screens (rename to vector.ini or .ini)
../ini/presets/lcd.ini for screens with TFT color LCD
../ini/presets/lcd-matrix.ini for screens with STN LCD matrix (rename to lcd.ini or .ini)
../ini/presets/gameboy.ini for Game Boy screen (same as lcd-matrix.ini with greenish color transformation)
../ini/presets/gba.ini for Game Boy Advance screen (same as lcd.ini)



from the docs (config.txt):


Code:

Enables or disables the reading of the config files. When enabled
(which is the default), MAME reads the following config files in order:

- mame.ini
- .ini (i.e. if MAME was renamed mame060.exe, MAME
parses mame060.ini here)
- debug.ini (if the debugger is enabled)
- .ini (based on the source filename of the driver)
- vertical.ini (for games with vertical monitor orientation)
- horizont.ini (for games with horizontal monitor orientation)
- arcade.ini (for games in source added with GAME() macro)
- console.ini (for games in source added with CONS() macro)
- computer.ini (for games in source added with COMP() macro)
- othersys.ini (for games in source added with SYST() macro)
- vector.ini (for vector games only)
- .ini (for clones only, may be called recursively)
- .ini


The settings in the later ini's override those in the earlier ini's.
So, for example, if you wanted to disable overlay effects in the
vector games, you can create a vector.ini with the "effect none" line
in it, and it will override whatever effect value you have in your
mame.ini. The default is ON (-readconfig).



As you can read, the mame.ini is the first file in a order of ini files. Hope it helps.



dadabhai
MAME Fan
Reged: 12/31/16
Posts: 2
Send PM


Re: defocus values in mame.ini new [Re: uman]
#362039 - 12/31/16 05:04 PM


The ini/presets folder has gameboy.ini,gba.ini,lcd.ini,lcd-matrix.ini, mame.ini, raster.ini, vector.ini, vector-mono.ini. Game I'm playing in this case is mortal kombat 2, raster type of game, so I went and changed the defocus value in raster.ini to 1.3 to match what is in mame.ini. Reloaded and started up mk2 but still remained at 0.5, and the same with all other raster games I've got like sf2 etc. As a test I went ahead and changed the defocus to 1.3 for all the other .ini files in "preset" folder, but that didn't make a difference.



Ziggy100
MAME Fan
Reged: 06/14/08
Posts: 314
Send PM


Re: defocus values in mame.ini new [Re: dadabhai]
#362041 - 12/31/16 06:06 PM


> The ini/presets folder has gameboy.ini,gba.ini,lcd.ini,lcd-matrix.ini, mame.ini,
> raster.ini, vector.ini, vector-mono.ini. Game I'm playing in this case is mortal
> kombat 2, raster type of game, so I went and changed the defocus value in raster.ini
> to 1.3 to match what is in mame.ini. Reloaded and started up mk2 but still remained
> at 0.5, and the same with all other raster games I've got like sf2 etc. As a test I
> went ahead and changed the defocus to 1.3 for all the other .ini files in "preset"
> folder, but that didn't make a difference.


If you are using the BGFX backend and want a different defocus value to the default 0.5 then you really need to go into the chains folder, which is inside the BGFX folder, and manually edit whichever pre set .json you use.

I use the HLSL settings file




..and within that you will find the default 'defocus' values which is 0.5,0.0 just change that to whatever you want, I changed it 0.0,0.0 for x & y values.

Edited by Ziggy100 (12/31/16 06:14 PM)



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


Re: defocus values in mame.ini new [Re: uman]
#362072 - 12/31/16 10:57 PM


> You need to pay attention to the "presets" folder inside of the "ini" folder. The
> presets overwrite the settings of a mame.ini.
> If you want to change your defocus value, do it in the appropriate preset ini
> (raster, vector, lcd etc.).
>
> from the docs (hlsl.txt):
> Presets
> -------
> ../ini/presets/raster.ini for raster screens
> ../ini/presets/vector.ini for color vector screens
> ../ini/presets/vector-mono.ini for monochrome vector screens (rename to vector.ini or
> .ini)
> ../ini/presets/lcd.ini for screens with TFT color LCD
> ../ini/presets/lcd-matrix.ini for screens with STN LCD matrix (rename to lcd.ini or
> .ini)
> ../ini/presets/gameboy.ini for Game Boy screen (same as lcd-matrix.ini with greenish
> color transformation)
> ../ini/presets/gba.ini for Game Boy Advance screen (same as lcd.ini)
>
> from the docs (config.txt):
>
> Enables or disables the reading of the config files. When enabled
> (which is the default), MAME reads the following config files in order:
>
> - mame.ini
> - .ini (i.e. if MAME was renamed mame060.exe, MAME
> parses mame060.ini here)
> - debug.ini (if the debugger is enabled)
> - .ini (based on the source filename of the driver)
> - vertical.ini (for games with vertical monitor orientation)
> - horizont.ini (for games with horizontal monitor orientation)
> - arcade.ini (for games in source added with GAME() macro)
> - console.ini (for games in source added with CONS() macro)
> - computer.ini (for games in source added with COMP() macro)
> - othersys.ini (for games in source added with SYST() macro)
> - vector.ini (for vector games only)
> - .ini (for clones only, may be called recursively)
> - .ini
>
>
> The settings in the later ini's override those in the earlier ini's.
> So, for example, if you wanted to disable overlay effects in the
> vector games, you can create a vector.ini with the "effect none" line
> in it, and it will override whatever effect value you have in your
> mame.ini. The default is ON (-readconfig).
>
> As you can read, the mame.ini is the first file in a order of ini files. Hope it
> helps.

I wouldn't mess with the presets at all. You can put copies of the presets in ini (not ini/presets) and change the settings there. Then you can safely replace the original presets on updates.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

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