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: Free play on MAME?  (Read 9577 times)

0 Members and 1 Guest are viewing this topic.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Free play on MAME?
« on: November 30, 2014, 01:14:09 pm »
I couldn't find the answer to this, if it has been answered I apologize, and would appreciate a link to the original topic (PL1?).

Is it possible to set all the games in Mame to be free play, so coin or credit buttons are not needed?

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4779
  • Last login:July 11, 2025, 09:17:44 am
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Stop by my Youtube channel and leave a comment:

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Free play on MAME?
« Reply #2 on: November 30, 2014, 01:45:11 pm »
Thanks Delusional. CFG Magician looks promising, I will check it out, however it looks a  little complicated to do just the free play thing, unless Im missing something?

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4779
  • Last login:July 11, 2025, 09:17:44 am
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: Free play on MAME?
« Reply #3 on: November 30, 2014, 01:48:11 pm »
Seems you can simple enable the free play dipswitch for cfg magician:

Dipswitch Options:
CFG Magician can set the following dipswitch options:
Language (English,Japanese,German,French,Italian,Spanish)
FreePlay (On)
CockTail (On)
Difficulty (Min,Max)
Lives (Min,Max)
Bonus Lives (Min,Max)

Give it a shot!   :applaud:

D
Stop by my Youtube channel and leave a comment:

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14019
  • Last login:July 02, 2025, 09:03:11 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Free play on MAME?
« Reply #4 on: November 30, 2014, 02:45:05 pm »
I just set the ones I play the most to freeplay. Not the solution you are looking for but its a solution. 
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.

IAmDotorg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:April 27, 2015, 03:05:37 pm
  • I want to build my own arcade controls!
Re: Free play on MAME?
« Reply #5 on: November 30, 2014, 03:30:45 pm »
Thanks Delusional. CFG Magician looks promising, I will check it out, however it looks a  little complicated to do just the free play thing, unless Im missing something?

Its actually pretty simple to use -- but it hasn't been updated in quite a while and got about 1/3 to 1/2 of the games I've got wrong.

Make sure you use data files for it that exactly match the version of MAME you have, or you will not even have that much luck.

I ended up using it as a starter for the configuration of my cab, with a script I wrote that adds video, start and coin mapping settings. I also had to modify a bit the scanner script that sets up the config files because it was missing some stuff.  I never did figure out why, but almost none of the games that I was setting DIP settings (cabinet mode, freeplay, etc) worked. I wish the author would open-source it -- most of the issues are probably just because its a few years old and needs updating.

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: Free play on MAME?
« Reply #6 on: November 30, 2014, 06:40:18 pm »
Could make a script so when you press player start it sends a coin drop key before. Not a perfect solution, but it works for every game and limits the process to only hitting one button to continue.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9669
  • Last login:Today at 07:38:57 am
  • Designated spam hunter
Re: Free play on MAME?
« Reply #7 on: November 30, 2014, 07:11:35 pm »
Could make a script so when you press player start it sends a coin drop key before. Not a perfect solution, but it works for every game and limits the process to only hitting one button to continue.
The downside to that approach is that there are a few unusual situations like a 2-credit single-player game of Omega Race.

IMHO it's better to keep P1/P2 Coin and P1/P2 Start as 4 separate buttons/inputs. YMMV.


Scott

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14019
  • Last login:July 02, 2025, 09:03:11 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Free play on MAME?
« Reply #8 on: November 30, 2014, 07:56:11 pm »
The downside to that approach is that there are a few unusual situations like a 2-credit single-player game of Omega Race.

IMHO it's better to keep P1/P2 Coin and P1/P2 Start as 4 separate buttons/inputs. YMMV.


Scott
If you mean starting omega race with extra ships, hit P2 start then P1 start. Playing a 2 player game just means hitting player 2 start until the game starts. He admits its not a perfect solution, but its a clever one (similar idea to what I posted in a similar thread)   Having work around for what amounts to a handful of games is a serviceable substitute, especially considering not all games have a free play option.
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.

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4779
  • Last login:July 11, 2025, 09:17:44 am
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: Free play on MAME?
« Reply #9 on: November 30, 2014, 08:20:43 pm »
Looks like the dev for cfg magician (Altair) posted an update so that it can be used with the newer versions of MAME:

Quote
Sorry for the late response, I have pretty much dropped out of the scene.

Here is the script that I use to create the Data Files. It is very raw, with no GUI and very little error checking. Download the source files from www.mamedev.org and place the src folder in the same folder as the Scan Source files.
(see Before.jpg - attached)
Run 'Scan Source 7.1.ahk' if you have AutoHotKey installed, otherwise run 'Scan Source 7.1.exe'

When complete, files will be added to the folder and you will have this:
(see After.jpg - attached)
The files that you want are in the Mame 0.xxx Data Files folder.

Recently, MameDev changed <port tag="IN0" to <port tag=":IN0". Simple changes like this will cause CFG Magician to fail. The lines that would need to be changed in Scan Source 7.1.ahk are line numbers 457 and 630.

If for any reason the created files don't work, and you can't figure out why, reply to this post and I will take a look.

Edit: To be clear, Scan Source 7.1 works with current versions of Mame. I was just stating that because of MameDev changes sometimes things get broken.
Attached Files
« Last Edit: November 30, 2014, 08:24:33 pm by DeLuSioNal29 »
Stop by my Youtube channel and leave a comment:

IAmDotorg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:April 27, 2015, 03:05:37 pm
  • I want to build my own arcade controls!
Re: Free play on MAME?
« Reply #10 on: November 30, 2014, 09:17:45 pm »
Yeah that's the version I worked off of. I don't remember what all I changed. I added parsing support for including the start and coin buttons in the data files, but I know I fixed something else in there, too. (The script I wrote uses the same data files as input and does basically the same thing as his tool, but does it for video orientation, start and coin controls.)

jaharr01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 806
  • Last login:March 26, 2025, 01:48:10 pm
  • Try and fail, but don't fail to try
Re: Free play on MAME?
« Reply #11 on: November 30, 2014, 10:12:11 pm »
I have MameUI 64 and I think there is a freeplay setting in the UI.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9669
  • Last login:Today at 07:38:57 am
  • Designated spam hunter
Re: Free play on MAME?
« Reply #12 on: December 01, 2014, 01:49:02 am »
The downside to that approach is that there are a few unusual situations like a 2-credit single-player game of Omega Race.

IMHO it's better to keep P1/P2 Coin and P1/P2 Start as 4 separate buttons/inputs. YMMV.
If you mean starting omega race with extra ships, hit P2 start then P1 start.
Sorry, but that will either start a 3-ship 1 player game and leave one credit or start a 3-ship 2 player game. (depending on the free-play dipswitch setting)

There were 4 "volcano" start buttons on the CP.



The workaround to the workaround is that Omega Race has a free-play dipswitch setting.
(PROTIP: You'll need to coin up once after setting the freeplay dipswitch -- the system will always display 4 credits and allow you to start 1P or 2P, 3-ship or 7-ship games)

If freeplay is off, the approach you propose will start a 3-ship 1 player game and leave one credit.

If freeplay is on,  the approach you propose will start a 3-ship 2 player game.

Fortunately, you can sidestep the problem by enabling freeplay and mapping P1B3 and P1B4 to start 7-ship 1 and 2 player games.   ;D

He admits its not a perfect solution, but its a clever one (similar idea to what I posted in a similar thread)   Having work around for what amounts to a handful of games is a serviceable substitute, especially considering not all games have a free play option.
I agree that his workaround is a clever solution for most games, but there are a few that might cause problems.

Bottom line: Always check the desired gamelist to see if there are any games that will not work with whatever approach you decide to use on a build.   :cheers:


Scott

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14019
  • Last login:July 02, 2025, 09:03:11 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Free play on MAME?
« Reply #13 on: December 01, 2014, 07:36:31 am »
Sorry, but that will either start a 3-ship 1 player game and leave one credit or start a 3-ship 2 player game. (depending on the free-play dipswitch setting)
The point of your focus isn't showing the short comings of the fix, it is merely citing an abnormal need for a single game to require addition start buttons. Even if the panel has dedicated coin buttons, the traditional start buttons would still be an issue ;even the game had free play enabled by default the regular start buttons would still be an issue. Omega Race literally has no bearing on anything concerning free play, which is why I was/am so baffled you keep bringing it up in every discussion about free play.

If the panel only has 4 buttons, you alter the fix to the game. The 2 start buttons become 7 ship starts with coin ups. Fire and Thrust act as 3 ship starts with no auto coin up.

All that being said, the band-aid to have a script coin up prior to pushing start would be for games that don't support free play, further invalidating your one of a kind example. Again, its a "blanket fix" and obviously wouldn't work 100% across all games without some tweaking. I look forward to you retorting with an even more isolated example.  :cheers:
« Last Edit: December 01, 2014, 08:17:47 am by Malenko »
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.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9669
  • Last login:Today at 07:38:57 am
  • Designated spam hunter
Re: Free play on MAME?
« Reply #14 on: December 01, 2014, 08:30:11 am »
Sorry, but that will either start a 3-ship 1 player game and leave one credit or start a 3-ship 2 player game. (depending on the free-play dipswitch setting)
so you can play a 2 player - 3 ship game on a single credit?
Nope.

1P 3-ship = 1 credit
2P 3-ship = 2 credits
1P 7-ship = 2 credits
2P 7-ship = 4 credits

If you mean starting omega race with extra ships, hit P2 start then P1 start.
Assuming that you start with no credits if free-play is off and the start buttons trigger a script that adds a credit then sends the associated start keystroke.

If free-play is on:
* Hitting P2 start will start a 2P 3-ship game. (credit won't matter, just the P2 start keystroke) -- may need to press it twice if starting with 0 credits
* When the game ends, 4 credits will be displayed. (enough to start any game version)

If freeplay is off:
* Hitting P2 start will add a credit but the P2 start keystroke won't matter. (only one credit so you can't start a 2P game)
* When you hit P1 start, the script will add a second credit then send the P1 start keystroke.
* This will start a 1P 3-ship game that uses up one of the two credits, leaving one credit.
* Once that game is done, if you press P2 start, it will start a 2P 3-ship game. (leftover credit + new credit and P2 start keystroke from the "P2 start" script)


Scott

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:Yesterday at 10:00:30 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Free play on MAME?
« Reply #15 on: December 01, 2014, 09:39:59 am »
If your cab doesn't have a spinner, then Omega Race doesn't matter, now does it?  >:D
***Build what you dig, bro. Build what you dig.***

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14019
  • Last login:July 02, 2025, 09:03:11 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Free play on MAME?
« Reply #16 on: December 01, 2014, 10:16:31 am »
1P 3-ship = 1 credit
2P 3-ship = 2 credits
1P 7-ship = 2 credits
2P 7-ship = 4 credits

Wow, glossing over the point of my reply, about there being 4 start buttons and a free play option which makes Omega Race a terrible example to bring up a point I corrected when I found out there were 4 start buttons? I didn't know there were 4 start buttons, so I changed my reply to match the new information. I totally get how the credit system works, do you get how the auto coining would work?

Quote from: Malenko
If the panel only has 4 buttons, you alter the fix to the game. The 2 start buttons become 7 ship starts with coin ups. Fire and Thrust act as 3 ship starts with no auto coin up.

I'll X2 it down for ya:
Player 1 start = 7 ship start button and adds 1 credit to the game.  This way it coins up and cannot start the game because it doesn't have 2 credits inserted.
Hit this button twice to start a single player 7 ship game

Player 2 start = 7 ship 2 player game start. This button will not start a game unless 4 credits are inserted into the game.
Hit this button 4 times to start a 2 player 7 ship game.

Thrust = 1 player 3 ship start and it doesnt add coins when pressed.
Hit P1 start then this to start a single player 3 ship game

Fire = 2 player 3 ship start and it doesnt add coins when pressed.
Hit P2 start twice then this to start a 2 player 3 ship game.



Now pretty pretty please explain to me how needing a work around for having 4 start buttons has any bearing on the actual free play setting?

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.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9669
  • Last login:Today at 07:38:57 am
  • Designated spam hunter
Re: Free play on MAME?
« Reply #17 on: December 01, 2014, 11:00:04 am »
I look forward to you retorting with an even more isolated example.  :cheers:
My answers were based on your "If you mean starting omega race with extra ships, hit P2 start then P1 start." and "so you can play a 2 player - 3 ship game on a single credit?" posts that could be misleading to less experienced individuals.

I'm sure that you know how it works :cheers: -- the clarification was for them.

I didn't notice you had edited your "so you can play a 2 player - 3 ship game on a single credit?" post until I started typing up this post.   :dunno

If your cab doesn't have a spinner, then Omega Race doesn't matter, now does it?  >:D
Omega Race is just one possible example off the top of my head which is why I posted this bottom line statement.
Bottom line: Always check the desired gamelist to see if there are any games that will not work with whatever approach you decide to use on a build.   :cheers:
Does anyone disagree with this?


Scott

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14019
  • Last login:July 02, 2025, 09:03:11 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Free play on MAME?
« Reply #18 on: December 01, 2014, 11:39:55 am »
I didn't notice you had edited your "so you can play a 2 player - 3 ship game on a single credit?" post until I started typing up this post.   :dunno
Yeah why bother reading before you reply, am I right? I took out my rhetorical question because it wasn't needed, and I knew some dick bag would come along and answer it, not realizing it was rhetorical and her did.

Now, can you pretty pretty pretty please tell me how any cab with only 2 start buttons wouldn't run into the exact same issue even if it had free play and or a credit button?
Now do you see why the issue has nothing to do with free play or auto coin dropping scripts?

Thanks to your pointless detour all discussions have focused on a "one off" game that has nothing to do with the issue at hand instead of the conversation fleshing out more and possibly better ideas.
« Last Edit: December 01, 2014, 11:51:38 am by Malenko »
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.

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: Free play on MAME?
« Reply #19 on: December 01, 2014, 02:09:55 pm »
If there are only a few of those one off 4 button start on a 2 player games, that could be factored in. Obviously my method is only one option for a work around. It's actually a work around I wouldn't use, but tossed it out there to possibly solve the origional posts issue.

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: Free play on MAME?
« Reply #20 on: December 01, 2014, 02:19:17 pm »
As mentioned already, there are a number of cases where Free Play isn't a good idea.

Some games will fail to run their attract modes in free play, just sitting on the title screen, or sometimes starting the game over and over again. (OutRun for example)
Some games are buggy and freeplay will actually cause the game to glitch or crash - arcades generally weren't designed to be operated on 'free play' so manufacturers didn't always test it extensively. (Cookie & Bibi 3 for example)
Other games link the Free Play mode to other cheats, because it was designed for developers.
and plenty of games simply don't have a freeplay mode.

Either way, there's no universal way to set the option, different games often have different requirements (some require both coin slots set to freeplay with the dipswitches, others have dedicated free play dipswitches, more recent titles require freeplay to be enabled in the game service mode where it gets stored in backup ram)  there's simply no universal way to do it, because games don't act in identical ways, and for the service mode ones MAME doesn't even have knowledge of where the setting is stored because it's just another variable in RAM like any other part of the running game rather than a hardware switch.



DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Free play on MAME?
« Reply #21 on: December 03, 2014, 10:05:04 am »
Thanks for all the input guys. I think I will just add two more credit buttons, seems like the easiest thing to do.
Although CP space and money for buttons played a major part in this question, it's mostly the fact that if you have more emulators (NES, etc) and mame, mame is the only one (AFAIK) that uses the credit buttons, so it just seems wasteful to have two buttons that are only needed for mame games. But if there is no easy, rock solid way around it, so be it.

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14019
  • Last login:July 02, 2025, 09:03:11 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Free play on MAME?
« Reply #22 on: December 03, 2014, 10:24:09 am »
Thanks for all the input guys. I think I will just add two more credit buttons, seems like the easiest thing to do.

That's not a legitimate fix YOU STILL CANT PLAY 7 SHIP OMEGA RACE!!?!?!?!?!!?!


Seriously though, you don't use an encoder that can use shifted keys or anything? I'm not sure how many 2 player games would require a unique coin up per player. Maybe you can get away with just 1 credit button?
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.

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:Yesterday at 10:00:30 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Free play on MAME?
« Reply #23 on: December 03, 2014, 10:34:45 am »
Thanks for all the input guys. I think I will just add two more credit buttons, seems like the easiest thing to do.
Although CP space and money for buttons played a major part in this question, it's mostly the fact that if you have more emulators (NES, etc) and mame, mame is the only one (AFAIK) that uses the credit buttons, so it just seems wasteful to have two buttons that are only needed for mame games. But if there is no easy, rock solid way around it, so be it.

Someone say something about wasteful buttons....?

***Build what you dig, bro. Build what you dig.***

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Free play on MAME?
« Reply #24 on: December 03, 2014, 01:40:39 pm »
Thanks for all the input guys. I think I will just add two more credit buttons, seems like the easiest thing to do.
Although CP space and money for buttons played a major part in this question, it's mostly the fact that if you have more emulators (NES, etc) and mame, mame is the only one (AFAIK) that uses the credit buttons, so it just seems wasteful to have two buttons that are only needed for mame games. But if there is no easy, rock solid way around it, so be it.
You might try doing a search (I can check later if I remember) but, someone put together a script Auto Hot Key (AHK?) to send a different command if a button is held down rather than simply pressed. This might be an option for you to avoid the cost of two buttons.