Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: arcadeattic on May 02, 2005, 01:14:00 pm

Title: MAME Questions
Post by: arcadeattic on May 02, 2005, 01:14:00 pm
I'm building my fist MAME machine and I'm testing the MAME end of things on my computer before I add them to my cab. So far I have MAME installed and checking out different Frontends to see what the best choice for my box will be. Here is my dumb questions... When you start a ROM you are presented with one and most times two screens, one is a warning that you have to press "Enter" to continue and the other is a screen that you have to type "O K" after this the game will begin test mode and become playable. Well I was wondering how this allplays out once you ditch the Keyboard. What are most of you doing??? Do you have an arcade button connected to the "Enter" and "O" and "K" keys or does the frontend enter this information for you? Or are you forced to break out the key board every time you want to switch between games? Thanks in advanced for all your help on my dumb questions...
Title: Re: Dumb Questions
Post by: youki on May 02, 2005, 02:55:00 pm
You can remove these screen by running MAME using parameters or Ini File.

ex :  mame pacman -skip_disclaimer -skip_gameinfo   

will start pacman directly on the game.

If you use a  ultimarc'sJPAC or IPAC in your arcade cabinet, you can "type" ok  , by moving your stick to left then right (or the contrary i'm not sure).. but it works by moving the joystick. You can simulate the return key and the tab key too by combining Joystick move and button.

If you are looking for a nice , easy and powerfull multi-emulator frontend , you can Try mine : AtomicFe

http:\\www.atomicfe.com

Title: Re: Dumb Questions
Post by: tommy on May 02, 2005, 03:27:57 pm
You can dissable ever having to type ok or enter in the mame32 options/interface options.
Title: Re: Dumb Questions
Post by: monkeybomb on May 02, 2005, 03:59:21 pm
I'm tiered of these kinds of "dumb questions".  If you call your thread "dumb questions"  Consider the following:

What happens if I press alt + f4?

If I look at the sun will I go blind?

I thought a man was good looking, am I gay?

If I get in the rain will I get wet?

How do you spell ISO?


Title: Re: Dumb Questions
Post by: screaming on May 02, 2005, 04:48:33 pm
I think by "dumb questions" he meant "questions that have been asked 1,000,000 times".  At least, that's how I interpreted it.

-sab
Title: Re: Dumb Questions
Post by: monkeybomb on May 02, 2005, 05:06:24 pm
I think by "dumb questions" he meant "questions that have been asked 1,000,000 times".  At least, that's how I interpreted it.

-sab
Thanks I have a hard time with the obvious. ::)
Title: Re: MAME Questions
Post by: arcadeattic on May 02, 2005, 05:34:28 pm
Thank you youki I will in download your frontend and check it out. and the I will attempt the modifications of the .ini file. As for the "Dumb Question" I only say it is a dumb question because the 10s of thousands of you that have already installed MAME on a computer and connected it to arcade controls would already know the answer. And yes monkeybomb that is exactly what I ment...
Title: Re: Dumb Questions
Post by: Howard_Casto on May 02, 2005, 06:37:34 pm
If you know the question is "dumb" then you know that the answer is either obvious, or already answered elsewhere.  So why waste our time with it?

Ask a stupid question..... get a stupid answer
Title: Re: Dumb Questions
Post by: GGKoul on May 02, 2005, 07:25:10 pm
If you know the question is "dumb" then you know that the answer is either obvious, or already answered elsewhere.  So why waste our time with it?

Ask a stupid question..... get a stupid answer

Welcome Back Howard! 8)

You could wiggle the joystick left and right to get pass the O - K screen
Title: Re: MAME Questions
Post by: Tiger-Heli on May 03, 2005, 07:46:02 am
Alright, this is a question that gets asked often, but the answers are not obvious -

What I propose is: I will try to give a definitive answer, and then hopefully one of the mods can change the thread title and STICKY this.

First off, there are four situations that this occurs.

When you launch a game for the first time, a message comes up about not playing games you aren't entitled to.  This is called the disclaimer.  I believe you have to type OK to bypass this (not wiggle the joystick), but you only have to do it the first time the game is played.  And I think it can also be bypassed by adding an empty file named <romname>.ini to your C:\MAME\ini folder.  For MAME 0.63 and later, you can bypass this by setting skip_disclaimer to 1 in your mame.ini file.

The next is called the game_info screen and comes up with information about the resolution and processors that the game used and can be bypassed by moving the joystick left then right.  For MAME 0.63 and later, you can bypass this by setting skip_gameinfo to 1 in your mame.ini file.

The third is usually called the game_warnings screen and comes up with a message like "This game has known problems:  Screen flipping in cocktail mode is not supported.  Press OK to continue. "  You can wiggle the joystick to bypass this screen.

The last screen is called the BadDumps screen and comes up (in the DOS box) with a message like "Rom XXXYz is missing, XXYE is best available.  The game may not work correctly.  Press any key to continue."

The last two screens can be skipped by similar settings (-skip_warnings) in the .ini file of NoNameMAME or BuddaMame.

For MAME 0.79 thru 0.99u2, the last two screens may also be bypassed by either sending "-ftr 1" after the game name, or by adding "Frames to Run 1" to either the mame.ini file or the individual gamename.ini file.  (Thanks to Howard Casto (http://forum.arcadecontrols.com/index.php?topic=41771.0) for discovering this).

Also, any of the screens can be bypassed by changing the source code and recompiling MAME.

The following info is from my personal updated FAQ page:

How do I get rid of the blasted "Click OK to continue?" screens

Three ways:  The simplest is to just move your joystick right or left.  NOTE:  MAME is actually looking for "O" followed by "K", "Analog Joystick X-" followed by "Analog Joystick X+", or "UI LEFT" followed by "UI RIGHT"   Therefore, if you are using a keyboard hack and your joystick is mapped to "A" for Left and "D" for Right, you need to remap the UI LEFT and UI RIGHT keys in MAME to "A" and "D" for this method to work.

For DOS MAME, the ArcadeOS front-end has an option to automatically bypass the OK screens, or

You can recompile (http://www.mame.net/compilewin.html) the MAME source and then the screens will never even show up.  Here's how to do it:  Get and apply the patch files from SirPoonga's site (http://freewebhosting.hostdepartment.com/S/SirPoonga/hacks.html), or follow the changes below.  SirPoonga's files give you a mame.ini file setting to turn the screens on and off, my changes just eliminate the screens permanently.

To compile your own without nag screens, follow these changes stolen from the Mameworld compile board:

For MAME 0.60 and previous (line numbers may be different):
Open up mame.c and edit line 1195: if (settingsloaded == 0) and change it to: if (0).
In line 1202: if (showgamewarnings(real_scrbitmap) == 0) change it to: if (1).

For MAME 0.61 and 0.63 (line numbers may be different):
Open up mame.c and edit line 502 -> if (settingsloaded || showcopyright(artwork_get_ui_bitmap()) == 0) I change it to if (1)
In line 505 -> if (showgamewarnings(artwork_get_ui_bitmap()) == 0) I change it to if (1)

For MAME 0.63 and later, you can skip the initial startup screen and the game settings screen through the mame.ini file.  Be sure to save any previous ones and run "mame.exe -cc".  However, you still get the "Screen flipping is not supported in cocktail mode, The colors are wrong", etc. messages.  A fix that I devised to avoid this is as follows:

Open mame.c and around line 505 you will see the following code:

/* show info about incorrect behaviour (wrong colors etc.) */
if (showgamewarnings(artwork_get_ui_bitmap()) == 0)

Change the second line to > if (options.skip_gameinfo || showgamewarnings(artwork_get_ui_bitmap()) == 0)

With this change, if skip gameinfo is enabled in mame.ini, you will not see any incorrect emulation warnings or startup screens.  If this setting is disabled, you will see both the game warnings and the game info screens.

***

In my custom compile, I also remove the "Bad or missing rom, Press any Key" screens as follows: (Data provided by Ciro of Emuloader) (Some of the code has changed since he sent this, but you should still be able to figure it out.

"I discover where you can avoid that message (not only "No Good Dump Known", but "bad CRC" and "bad Size" as well).

Follow these steps:

1. Make a backup copy of the file "mame\src\common.c"

2. Open the file "mame\src\common.c"

3. Go to the line 880 (not sure if this is the exact line) You will see this function:

......
/*-------------------------------------------------
display_rom_load_results - display the final
results of ROM loading
-------------------------------------------------*/

static int display_rom_load_results(struct rom_load_data *romdata)
......

4. Comment this "IF" sequence (everything, including the " } " character on the end of it)
The commentary characters are:
- to open the commentary use : " /* " (without the quotes)
- to close the commentary use: " */ " (without the quotes)

...........................
/* if we're not getting out of here, wait for a keypress */
if (!options.gui_host && !bailing)
{
int k;

/* loop until we get one */
printf ("Press any key to continue\n");
do
{
k = code_read_async();
}
while (k == CODE_NONE || k == KEYCODE_LCONTROL);

/* bail on a control + C */
if (keyboard_pressed(KEYCODE_LCONTROL) && keyboard_pressed(KEYCODE_C))
return 1;
}
............................

5. Delete these two commented lines from the "IF" statement or the compiler will generate an error...

/* loop until we get one */

/* bail on a control + C */

6. Save the file and re-compile MAME...   That's it!!!

PS: Always keep the .o (object files). If you change only one file, you will not need to wait for all the compilation to be over...

In the compilation folder, just delete the file "common.o" from "mame.obj" folder (this folder can be different for other types of compilation, mine is "mameppro.obj" because I use the Pentium optimized compilation) so it will recompile only the "common.c" file and you will not need to wait too long... "

***

NOTE:  If you build a custom compile, I recommend keeping a copy of the original version (with the nag screens) around also.   The original version includes the screen sizing routine and the warning screens might tell you something is broken and keep you from looking like an idiot on MAMETesters.




Title: Re: MAME Questions
Post by: tore- on April 23, 2006, 04:32:27 pm
Maybe this should be updated so that it is up2date with latest source?
Title: Re: MAME Questions
Post by: javeryh on December 22, 2006, 09:24:16 am
Tagged for later.
Title: Re: MAME Questions
Post by: Xris on December 03, 2009, 02:08:44 am
People come here for help. Some people have better things to do then to figure out "mame" problems or post on an arcade forum all day to rack up stars. Just help the guy! Some people arent as "cool" as you guys who think people should already know this stuff. We can do without the sarcasm.



Thanks to Tiger-Heli who actually gets it and took the time to answer.

Title: Re: MAME Questions
Post by: headkaze on December 03, 2009, 05:44:59 am
Um.. you just bumped a 3 year old thread  :dizzy:
Title: Re: MAME Questions
Post by: Ginsu Victim on December 03, 2009, 10:15:53 am
Some people arent as "cool" as you guys who think people should already know this stuff.

We're cool enough to understand 2005 vs 2009. If this thread were a sports game, it would be in the $1.99 bin.
Title: Re: MAME Questions
Post by: Hoopz on December 03, 2009, 10:47:44 am
Technically, isn't it a 2005 thread?

This time, I am really not trying to stir things up.  I think since the OP and answers (for the most part) were in May 2005, that the other posts at the end don't cause it to be a 2006 thread.   ???

Yep, I'm bored.   ;D
Title: Re: MAME Questions
Post by: opt2not on December 03, 2009, 02:11:09 pm
I just went back in time! Damn, I should have bought stocks!   ;D