Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: djuret83 on January 28, 2015, 02:43:23 pm

Title: MAME - can 3 tokens register as 1 credit
Post by: djuret83 on January 28, 2015, 02:43:23 pm
Hi Everybody!

I purchased a coin door with mech from an arcade parts supplier here in sweden. I haven't connected the coin mechs to the iPac yet, but I assume that each coin/token that is accepted will send a signal to the iPac.
 
I have a swedish coin-mech which accepts "1kr" and "5kr" coins.
is it possible to configure MAME so that:
3x 1kr == 1 credit
1x 5kr == 2 credits

Thanks
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: PL1 on January 28, 2015, 02:52:38 pm
Is it a microswitch-based coin mech or an electronic coin recognizer?

More details, links, and/or pics would help.   ;D


Scott
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: djuret83 on January 28, 2015, 03:21:23 pm
Hi Scott,
It's a microswitch-based coin mech.

(http://s10.postimg.org/j8p0bow7r/bild_1.jpg)

(http://s4.postimg.org/k30y8ktsd/bild_2.jpg)

(http://s23.postimg.org/uu9doabl7/bild_3.jpg)
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Nephasth on January 28, 2015, 03:26:50 pm
Just remove the labels so 1 coin equals 1 credit. You wouldn't be trying to use MAME to make money on location, now would you...? :police:
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: djuret83 on January 28, 2015, 03:37:41 pm
No of course not.
I've been wanting to build this for the past 10 years, even bought the book someone on here wrote.
I started building it 6 months ago. So there's NO WAY this thing is leaving my house.

I just felt that it would be nice to insert multiple coins and it would become 1 credit.
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: lamprey on January 28, 2015, 03:43:56 pm
I'm not sure I fully understand what you want to do, but I think the short answer is that each game has its own configuration: either via dip switches or a config menu (F2?). So, some games might support it while other will not.
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: djuret83 on January 28, 2015, 03:49:57 pm
I want to have to insert 3 coins in order to gain 1 credit

When using the keyboard, I press "5" in order to get a credit.
what i want is to 'press 5 - three times" so each keypress is worth 1/3 credit
1/3
2/3
3/3
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: PL1 on January 28, 2015, 03:53:23 pm
The 5 kroner 2 credit would be fairly easy to do using one diode like this.

When the microswitch closes, the Coin 2 and Coin 1 would be grounded.

Coin 2 ----------------|   microswitch
                                 |-------/ ------- ground
Coin 1 --- +diode- ---|

The 3 kroner 1 credit would probably require a custom binary counter/2-input logic AND circuit to output one pulse to Coin 1 for every three times the microswitch closes.   :dunno

As Lamprey mentions, you may need to configure some games -- check your desired game list.


Scott
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: djuret83 on January 28, 2015, 03:59:47 pm
Thanks Scott,
I was assuming this could be done inside MAME,
I'm not sure I have the required skills to be able to build something like that =)
I might just have to go with
1kr == 1credit,
5kr == 1 credit

Thanks though!
I'll make sure to post this Project in the Projects Announcements as soon as I get closer to finish =)
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: johnrt on January 28, 2015, 04:02:41 pm
Maybe you need this:
(http://www.ukvac.com/forum/uploads/1353/AA01687.JPG)
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Thenasty on January 28, 2015, 04:07:24 pm
for a HOME use, no need to spend Extra equipment that is really not necessary IMO. Lots of use here have BUTTONS FOR CREDIT  ;D
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: djuret83 on January 28, 2015, 04:14:32 pm
Thanks guys,
I'll let you know how it ends up.
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: EMDB on January 28, 2015, 04:44:28 pm
for a HOME use, no need to spend Extra equipment that is really not necessary IMO. Lots of use here have BUTTONS FOR CREDIT  ;D
My kids really LOVE inserting coins to be able play and so do all their nephews / nieces. It contributes to the genuine arcade feeling we are trying to rebuild as close as possible. Of course I didn't tell them there is really no need to use the coins as my secret shifted button combo is still secret  >:D
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Le Chuck on January 28, 2015, 04:47:35 pm
You can set this in a lot of games dip switch settings.  You'll have to do it by game tho.  I know that MvsC is set by default to two credits to play so I have to hit "5" twice to start a game. 
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: keilmillerjr on January 28, 2015, 05:26:22 pm
Set the smaller denomination on your encoder to a different key. Compile mame with direct input enabled. Create an autohotkey script to send the credit key to make upon 3 key presses. Done. :p
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: EMDB on January 28, 2015, 05:35:30 pm
Set the smaller denomination on your encoder to a different key. Compile mame with direct input enabled. Create an autohotkey script to send the credit key to make upon 3 key presses. Done. :p
Brilliant idea  :applaud:
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: matsadona on January 29, 2015, 05:21:52 am
Yes, 1kr to Credit 1 and 5kr to Credit 2 and hope that every game have dip settings to set the desired credit/coins.

Kul med fler svenskar på forumet förövrigt :)
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: bulbousbeard on February 01, 2015, 08:10:57 am
Direct Input has more lag than Raw Input in MAME. You do NOT want to use it if you can avoid it. Most games have settings in their service menu that let you define how many credits a game requires.

It is not worth adding more input lag to emulation just for the sake of making it less convenient to start a game.  ???
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Vigo on February 01, 2015, 10:50:11 am
Direct Input has more lag than Raw Input in MAME. You do NOT want to use it if you can avoid it. Most games have settings in their service menu that let you define how many credits a game requires.

It is not worth adding more input lag to emulation just for the sake of making it less convenient to start a game.  ???

Not an issue if you are using a joystick encoder. The lag is created because direct input only permits low level access to keyboards and mice.
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: bulbousbeard on February 01, 2015, 01:07:01 pm
No, you don't understand. Direct Input has more lag than Raw Input period. No joystick on the PC that uses Direct Input is going to be as responsive as using a keyboard encoder with Raw Input.

You could support joysticks using Raw Input, and they'd be just as responsive as keyboards. Also, XInput has less input lag than Direct Input, so if you used that, you'd also be more responsive.
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Vigo on February 01, 2015, 09:45:58 pm
inconsequential
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: thatpurplestuff on February 01, 2015, 10:53:54 pm
Set the smaller denomination on your encoder to a different key. Compile mame with direct input enabled. Create an autohotkey script to send the credit key to make upon 3 key presses. Done. :p

Yup came here to suggest an AHK script... seems like the easiest solution.
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: michelevit on February 05, 2015, 02:08:48 pm
autohotkey is what you want.
spend an afternoon reading up on it and you'll thank yourself many times over. its a simple program that does many many things.

ie. you can trigger 50 credits by entering a secret button combination.
how cool would that be?
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: michelevit on February 06, 2015, 02:10:03 pm
my 50 credit combo is button sequence 123456654321

my volume up/down is player one start held down joystick up/down
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: emphatic on February 07, 2015, 03:20:20 pm
Stop trying to reinvent the wheel here. What you need to do is to change the DIP setting for each game and setup the 1 sek slot for COIN 1 and the 5 sek slot for COIN 2 in MAME. I don't think that MAME will accept autohotkey scripts even, but this might have changed.

Lycka till!
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: keilmillerjr on February 07, 2015, 03:31:32 pm
Stop trying to reinvent the wheel here. What you need to do is to change the DIP setting for each game and setup the 1 sek slot for COIN 1 and the 5 sek slot for COIN 2 in MAME. I don't think that MAME will accept autohotkey scripts even, but this might have changed.

Lycka till!

http://forum.arcadecontrols.com/index.php/topic,143605.msg1490355.html#msg1490355 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1490355.html#msg1490355)
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Le Chuck on February 08, 2015, 11:33:44 am
Stop trying to reinvent the wheel here. What you need to do is to change the DIP setting for each game and setup the 1 sek slot for COIN 1 and the 5 sek slot for COIN 2 in MAME. I don't think that MAME will accept autohotkey scripts even, but this might have changed.

Lycka till!

http://forum.arcadecontrols.com/index.php/topic,143605.msg1490355.html#msg1490355 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1490355.html#msg1490355)

Ooh, internal self reposting!  Love this game!

http://forum.arcadecontrols.com/index.php/topic,143605.msg1490337.html#msg1490337 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1490337.html#msg1490337)
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: keilmillerjr on February 08, 2015, 12:10:03 pm
Stop trying to reinvent the wheel here. What you need to do is to change the DIP setting for each game and setup the 1 sek slot for COIN 1 and the 5 sek slot for COIN 2 in MAME. I don't think that MAME will accept autohotkey scripts even, but this might have changed.

Lycka till!

http://forum.arcadecontrols.com/index.php/topic,143605.msg1490355.html#msg1490355 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1490355.html#msg1490355)

Ooh, internal self reposting!  Love this game!

http://forum.arcadecontrols.com/index.php/topic,143605.msg1490337.html#msg1490337 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1490337.html#msg1490337)

It was in reference to MAME accepting autohotkey commands. Not starting a war on which option is the best. Lol
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: emphatic on February 08, 2015, 01:28:48 pm
It was in reference to MAME accepting autohotkey commands. Not starting a war on which option is the best. Lol

This was clear as day. To me. :cheers: While it's possible to hack MAME this way to get a global action for all games, I still think that the dip switch route is more genuine and therefore better.
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Le Chuck on February 08, 2015, 06:21:37 pm
http://forum.arcadecontrols.com/index.php/topic,143605.msg1493019.html#msg1493019 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1493019.html#msg1493019)
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: Malenko on February 08, 2015, 06:23:31 pm
http://forum.arcadecontrols.com/index.php/topic,143605.msg1493019.html#msg1493019 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1493019.html#msg1493019)

 :applaud:
Title: Re: MAME - can 3 tokens register as 1 credit
Post by: keilmillerjr on February 08, 2015, 06:59:14 pm
http://forum.arcadecontrols.com/index.php/topic,143605.msg1493019.html#msg1493019 (http://forum.arcadecontrols.com/index.php/topic,143605.msg1493019.html#msg1493019)

Hahahaha! Epic! :p