I cut the ---That which is odiferous and causeth plants to grow--- and use MAMEUI or MAMEPGUI, so I [mostly] don't have to mess with ini files.
Now, MAME has a heirarchy of ini: mame.ini, [type].ini (genre, vertical, horizontal, vector, etc), and then finally game ini. What's wonky is the 'type' will sometimes over-ride 'game'.
On scanline effects:
- png effects are drawn, hence they correspond to certain resolutions. If you can re-draw them, they'll fit for other games. I tend to use scan scanrez2, which fit 224 resolution games, horitonal and vertical. For 288 games, I run at 800x600 and use 'scanlines' or 'real_scanlines'.
-hlsl: you need to at least set the scanline_alpha to 1.0 . There's a thread at MAMEWorld that's an archive of settings people have created. I think it looks great. However, with vertical games run horizontally, I've found you need to run at least 1280x1024, and maybe need a much higher dot pitch, to not get the moireffect.