Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: MAME - can 3 tokens register as 1 credit  (Read 5791 times)

0 Members and 1 Guest are viewing this topic.

djuret83

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 17, 2015, 03:55:51 am
  • I want to build my own arcade controls!
MAME - can 3 tokens register as 1 credit
« 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

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 07:30:20 pm
  • Designated spam hunter
Re: MAME - can 3 tokens register as 1 credit
« Reply #1 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

djuret83

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 17, 2015, 03:55:51 am
  • I want to build my own arcade controls!
Re: MAME - can 3 tokens register as 1 credit
« Reply #2 on: January 28, 2015, 03:21:23 pm »
Hi Scott,
It's a microswitch-based coin mech.





« Last Edit: January 28, 2015, 03:30:46 pm by djuret83 »

Nephasth

  • Guest
  • Trade Count: (0)
Re: MAME - can 3 tokens register as 1 credit
« Reply #3 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:

djuret83

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 17, 2015, 03:55:51 am
  • I want to build my own arcade controls!
Re: MAME - can 3 tokens register as 1 credit
« Reply #4 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.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: MAME - can 3 tokens register as 1 credit
« Reply #5 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.

djuret83

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 17, 2015, 03:55:51 am
  • I want to build my own arcade controls!
Re: MAME - can 3 tokens register as 1 credit
« Reply #6 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

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 07:30:20 pm
  • Designated spam hunter
Re: MAME - can 3 tokens register as 1 credit
« Reply #7 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

djuret83

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 17, 2015, 03:55:51 am
  • I want to build my own arcade controls!
Re: MAME - can 3 tokens register as 1 credit
« Reply #8 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 =)

johnrt

  • Guest
  • Trade Count: (0)
Re: MAME - can 3 tokens register as 1 credit
« Reply #9 on: January 28, 2015, 04:02:41 pm »
Maybe you need this:

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:Today at 12:07:47 am
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: MAME - can 3 tokens register as 1 credit
« Reply #10 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
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

djuret83

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 17, 2015, 03:55:51 am
  • I want to build my own arcade controls!
Re: MAME - can 3 tokens register as 1 credit
« Reply #11 on: January 28, 2015, 04:14:32 pm »
Thanks guys,
I'll let you know how it ends up.

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: MAME - can 3 tokens register as 1 credit
« Reply #12 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

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: MAME - can 3 tokens register as 1 credit
« Reply #13 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. 

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: MAME - can 3 tokens register as 1 credit
« Reply #14 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

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: MAME - can 3 tokens register as 1 credit
« Reply #15 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:

matsadona

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 760
  • Last login:October 28, 2023, 06:00:12 am
Re: MAME - can 3 tokens register as 1 credit
« Reply #16 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 :)
Building, collecting and playing arcade machines :)

bulbousbeard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 522
  • Last login:August 25, 2015, 11:58:25 pm
  • I want to build my own arcade controls!
Re: MAME - can 3 tokens register as 1 credit
« Reply #17 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.  ???

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: MAME - can 3 tokens register as 1 credit
« Reply #18 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.

bulbousbeard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 522
  • Last login:August 25, 2015, 11:58:25 pm
  • I want to build my own arcade controls!
Re: MAME - can 3 tokens register as 1 credit
« Reply #19 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.

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: MAME - can 3 tokens register as 1 credit
« Reply #20 on: February 01, 2015, 09:45:58 pm »
inconsequential

thatpurplestuff

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 670
  • Last login:May 10, 2025, 02:37:15 pm
Re: MAME - can 3 tokens register as 1 credit
« Reply #21 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.

So once again, we find that evil of the past seeps into the present like salad dressing through cheap wax paper, mixing memory and desire.

michelevit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 412
  • Last login:December 25, 2024, 06:57:41 pm
Re: MAME - can 3 tokens register as 1 credit
« Reply #22 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?

michelevit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 412
  • Last login:December 25, 2024, 06:57:41 pm
Re: MAME - can 3 tokens register as 1 credit
« Reply #23 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

emphatic

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2017
  • Last login:August 02, 2025, 07:30:53 am
  • -"Suck it, Donny!" -"No, YOU suck it.... more".
    • Emphatic's Video Game Collection
Re: MAME - can 3 tokens register as 1 credit
« Reply #24 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!

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: MAME - can 3 tokens register as 1 credit
« Reply #25 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

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: MAME - can 3 tokens register as 1 credit
« Reply #26 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

Ooh, internal self reposting!  Love this game!

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

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: MAME - can 3 tokens register as 1 credit
« Reply #27 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

Ooh, internal self reposting!  Love this game!

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

emphatic

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2017
  • Last login:August 02, 2025, 07:30:53 am
  • -"Suck it, Donny!" -"No, YOU suck it.... more".
    • Emphatic's Video Game Collection
Re: MAME - can 3 tokens register as 1 credit
« Reply #28 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.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14021
  • Last login:August 01, 2025, 09:20:08 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
If you're replying to a troll you are part of the problem.
I also need to follow this advice. Ignore or report, don't reply.