Page 1 of 1

Custom ini entries for arcade games

Posted: Sat May 30, 2020 12:50 am
by mario64
Hi all,

I know that you can have custom core settings by adding entries to mister.ini but how do you do this for arcade cores? Double Dragon and Double Dragon 2 only work on my Samsung Q60R if I set vsync_adjust to 0 (normally it's 1). I don't want to change my global setting just for these two games.

Is there a way I can set vsync_adjust = 0 for each game or at the very least for all arcade cores? If so, what would be the correct syntax?

Thanks,
mario64

Re: Custom ini entries for arcade games

Posted: Sat May 30, 2020 1:04 am
by Lightwave
By creating an entry in mister.ini the same way you would for console cores.

Look in the config folder for the internal core names.

Re: Custom ini entries for arcade games

Posted: Sat May 30, 2020 1:31 am
by LeftEmpty
The simplest way to describe it is for you to look up the name of the core in the MRA file of the game you want to launch with a special parameter.
For instance for Double Dragon, you'll see something like:

Code: Select all

<misterromdescription>
	<name>Double Dragon (Japan)</name>
	<mameversion>0216</mameversion>
	<setname>ddragon</setname>
	<mratimestamp>201911270000</mratimestamp>
	<year>1987</year>
	<manufacturer>Technos Japan</manufacturer>
	<category>Fighter / Hero</category>
	<rbf>jtdd</rbf>
That part between the rbf tags is what is important.

Then, in this instance, I would add at the end of the Mister.ini:

Code: Select all

[jtdd]
vsync_adjust=0

Edit: all BS! Ignore me!

Re: Custom ini entries for arcade games

Posted: Sat May 30, 2020 2:05 am
by mario64
LeftEmpty wrote: Sat May 30, 2020 1:31 am The simplest way to describe it is for you to look up the name of the core in the MRA file of the game you want to launch with a special parameter.
For instance for Double Dragon, you'll see something like:

Code: Select all

<misterromdescription>
	<name>Double Dragon (Japan)</name>
	<mameversion>0216</mameversion>
	<setname>ddragon</setname>
	<mratimestamp>201911270000</mratimestamp>
	<year>1987</year>
	<manufacturer>Technos Japan</manufacturer>
	<category>Fighter / Hero</category>
	<rbf>jtdd</rbf>
That part between the rbf tags is what is important.

Then, in this instance, I would add at the end of the Mister.ini:

Code: Select all

[jtdd]
vsync_adjust=0
Perfect thank you!

Re: Custom ini entries for arcade games

Posted: Sat May 30, 2020 7:55 am
by Zichio
mario64 wrote: Sat May 30, 2020 2:05 am
LeftEmpty wrote: Sat May 30, 2020 1:31 am The simplest way to describe it is for you to look up the name of the core in the MRA file of the game you want to launch with a special parameter.
For instance for Double Dragon, you'll see something like:

Code: Select all

<misterromdescription>
	<name>Double Dragon (Japan)</name>
	<mameversion>0216</mameversion>
	<setname>ddragon</setname>
	<mratimestamp>201911270000</mratimestamp>
	<year>1987</year>
	<manufacturer>Technos Japan</manufacturer>
	<category>Fighter / Hero</category>
	<rbf>jtdd</rbf>
That part between the rbf tags is what is important.

Then, in this instance, I would add at the end of the Mister.ini:

Code: Select all

[jtdd]
vsync_adjust=0
Perfect thank you!
This is the way i did it before, but now I find it uses setname, if that is found as "internal corename" (<setname>ddragon</setname>).
So use that instead.

You can also use * to describe more variants.

[ddragon*]
vsync_adjust=0

This will catch all Alternative versions of Double Dragon (also DD2).

Re: Custom ini entries for arcade games

Posted: Sat May 30, 2020 2:36 pm
by mario64
Zichio wrote: Sat May 30, 2020 7:55 am
mario64 wrote: Sat May 30, 2020 2:05 am
LeftEmpty wrote: Sat May 30, 2020 1:31 am The simplest way to describe it is for you to look up the name of the core in the MRA file of the game you want to launch with a special parameter.
For instance for Double Dragon, you'll see something like:

Code: Select all

<misterromdescription>
	<name>Double Dragon (Japan)</name>
	<mameversion>0216</mameversion>
	<setname>ddragon</setname>
	<mratimestamp>201911270000</mratimestamp>
	<year>1987</year>
	<manufacturer>Technos Japan</manufacturer>
	<category>Fighter / Hero</category>
	<rbf>jtdd</rbf>
That part between the rbf tags is what is important.

Then, in this instance, I would add at the end of the Mister.ini:

Code: Select all

[jtdd]
vsync_adjust=0
Perfect thank you!
This is the way i did it before, but now I find it uses setname, if that is found as "internal corename" (<setname>ddragon</setname>).
So use that instead.

You can also use * to describe more variants.

[ddragon*]
vsync_adjust=0

This will catch all Alternative versions of Double Dragon (also DD2).
I checked and Double Dragon 2 has no setname in its MRA file. If it is missing which value should I use, core name?

Re: Custom ini entries for arcade games

Posted: Sat May 30, 2020 3:46 pm
by Zichio
Yes, use corename if no setname is present in the mra (in this case jtdd2)

Also, as Bits n Stuff mentioned, the name that is used as "corename" will always be listed down the left-hand side of the OSD when it is active in the core (might be hard to see if there is no image on screen tough, hehe).

Re: Custom ini entries for arcade games

Posted: Sat May 30, 2020 4:43 pm
by LeftEmpty
You can also customize the mra and add your own setname. The format was made with flexibility in mind.

Re: Custom ini entries for arcade games

Posted: Sun May 31, 2020 12:23 pm
by lomdar67
When there is a setname in the mra you have to use the setname in the MiSTer.ini file. Otherwise you have to use the core name (rbf). At least this is how it works in the latest MiSTer releases.

Re: Custom ini entries for arcade games

Posted: Sun May 31, 2020 8:52 pm
by LeftEmpty
Actually that's what I was told, and it's not!
The setname is what is being used and it is set to reflect the name of the romset used by the core, which is what it actually is using!
I had issues with most arcade cores and custom settings, trying to use RBF as a basis as I was told, and today @paisleyboxers on Jotego's channel told me all about it.
Setname (or rom's setname as displayed in the OSD on the left band when running the game) is the only way to get it working.
Sorry for the misinformation earlier!

Re: Custom ini entries for arcade games

Posted: Sun May 31, 2020 9:06 pm
by lomdar67
I agree, but there are mra files out there without a xml tag setname. And for those mra files the rbf tag is working fine.