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 and "Type ok"  (Read 6671 times)

0 Members and 1 Guest are viewing this topic.

madk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 227
  • Last login:March 28, 2017, 04:59:49 pm
  • I actually am a llama!!
    • Digital Something
MAME and "Type ok"
« on: August 20, 2002, 01:05:00 pm »
Ok I was just doing some brainstorming to make sure I didn't miss anything before I start my cabinet...and I thought about one thing.  While loading up some roms in MAME if comes up with that "Type ok to continue" prompt.  Now is there anyway to get around this?  I was thinking that once my cp was complete I don't want to have to pull out my keyboard everytime I want to fire up a certain game.  Hrmm..I feel like I am asking a dumb question but it was just something that came to mind.  Thanks.

madk
Matt (mad-k)

hyiu

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1481
  • Last login:August 29, 2014, 05:36:15 am
  • too many games... too little time....
    • www
Re:MAME and "Type ok"
« Reply #1 on: August 20, 2002, 01:10:23 pm »
try shaking your 1st player joystick left and right....
that should take care of the ok thing.....
heee heee.....  ;D  ;D

ps: I'm using game pad hack....

Another Brilliant mind ruined by education....  :p

nullb0y

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1307
  • Last login:November 17, 2024, 04:06:05 pm
  • Slow In Fast Out
    • WAT Racing
Re:MAME and "Type ok"
« Reply #2 on: August 20, 2002, 01:23:21 pm »
thjat helped me alot umm will that work with a keyboard hack?
Slow In Fast Out

BombProofPlane

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 220
  • Last login:February 11, 2009, 04:14:14 pm
Re:MAME and "Type ok"
« Reply #3 on: August 20, 2002, 01:42:22 pm »
i heard there was script you can add in cant think of it right now

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4419
  • Last login:July 18, 2025, 12:13:19 am
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re:MAME and "Type ok"
« Reply #4 on: August 20, 2002, 01:55:15 pm »
Here are the possiblities.

1. Modify source and Compile your own build (Of course    your not allowed to distribute it, just keep it to yourself).

2. Wiggle Joystick left-Right ( This is the Easiest one...)

3. Use ArcadeOS FE has option to bypass it in the Config.
    Don't have any other clues what other FE does it.
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

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:MAME and "Type ok"
« Reply #5 on: August 20, 2002, 06:47:20 pm »

thjat helped me alot umm will that work with a keyboard hack?


Yes, keyboards work too.  (try pressing left - right (or the keys mapped to left and right) on your keyboard instead of O - K)
Robin
Knowledge is Power

nullb0y

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1307
  • Last login:November 17, 2024, 04:06:05 pm
  • Slow In Fast Out
    • WAT Racing
Re:MAME and "Type ok"
« Reply #6 on: August 20, 2002, 11:17:24 pm »
cool thanks
Slow In Fast Out

Ryan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:October 08, 2009, 10:35:06 am
  • I've been Mamed!!
Re:MAME and "Type ok"
« Reply #7 on: August 20, 2002, 11:39:01 pm »
That is awesome! :o  Just a little wiggle eliminates two buttons from my control panel plans.  Thanks!
Bear Down!

daywane

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2570
  • Last login:December 26, 2024, 11:02:08 am
  • GRRRR!
Re:MAME and "Type ok"
« Reply #8 on: August 21, 2002, 03:10:41 am »
I have mame 32. we have noticed some mame 32's,  down loaded , let you play the game  with out hitting  "OK" . After the first  time playing. You must hit "ok" the first time ,  but never again after this... ???
8) I just lucked out and this was the first mame I down loaded.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:MAME and "Type ok"
« Reply #9 on: August 21, 2002, 04:27:11 am »
I think all MAME versions operate in this way :)

Thenasty is right tho, compiling your own nag-free version is great ;)

)p(

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:March 27, 2009, 03:38:15 am
  • We are the Galaxians...
    • Emulaxian:cabinet and frontend
Re:MAME and "Type ok"
« Reply #10 on: August 21, 2002, 04:35:45 am »

I think all MAME versions operate in this way :)

Thenasty is right tho, compiling your own nag-free version is great ;)


Yeah lovely isn't  ;D

And to all...compiling is not difficult at all. just follow the no brainer instructions on mame.net. After that you only have to adjust two lines off code...and compile it...

Peter

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:MAME and "Type ok"
« Reply #11 on: August 21, 2002, 05:58:13 am »
I'm no C programmer, but I managed to do it using mame.net's instructions and a bit of thinking :).

I think the relevant section of source changed slightly in .61 from memory (?).

)p(

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:March 27, 2009, 03:38:15 am
  • We are the Galaxians...
    • Emulaxian:cabinet and frontend
Re:MAME and "Type ok"
« Reply #12 on: August 21, 2002, 06:36:49 am »

I'm no C programmer, but I managed to do it using mame.net's instructions and a bit of thinking :).

I think the relevant section of source changed slightly in .61 from memory (?).


true change it to: if(1)

/*-------------------------------------------------
   run_machine_core - core execution loop
-------------------------------------------------*/

void run_machine_core(void)
{
   /* disable artwork for the start */
   artwork_enable(0);

   /* if we didn't find a settings file, show the disclaimer */
   if (1)
   {
      /* show info about incorrect behaviour (wrong colors etc.) */
      if (1)
      {

Peter

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:MAME and "Type ok"
« Reply #13 on: August 21, 2002, 06:42:47 am »

Yes, keyboards work too.  (try pressing left - right (or the keys mapped to left and right) on your keyboard instead of O - K)


Not exactly, MAME is looking for "O or L Arrow or Joystick X-" and "K or R Arrow or Joystick X+", so if your keyboard hack uses "Y" for Left and "G" for right, you won't be able to get past this screen.  You can avoid this without recompiling by reassigning keys:  I found my old notes for it here:  http://www.mameworld.net/emuadvice/ok.doc

Quote
Posted by: daywane Posted on: Today at 03:10:41am
I have mame 32. we have noticed some mame 32's,  down loaded , let you play the game  with out hitting  "OK" . After the first  time playing. You must hit "ok" the first time ,  but never again after this...
I just lucked out and this was the first mame I down loaded.


I think this is a bug in all MAME's (not MAME32).  It's on MAMETESTERS.  With certain (particularly GRAVIS) gamepads and joysticks, MAME will skip the startup screens.

BTW, to compile your own without nag screens, follow these changes (both 0.61 and previous versions) stolen from the Mameworld compile board:

I've been following these instructions in order to remove mame nags screens. But with 61, somethings seems to be changed.

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).

Now, the most similar lines are

502 -> if (settingsloaded || showcopyright(artwork_get_ui_bitmap()) == 0) I change it to if (0)

505 -> if (showgamewarnings(artwork_get_ui_bitmap()) == 0) I change it to if (1)

However, after compiling (with no errors), mame don't work. Do you have the same problem?

Here you go!

502 -> if (settingsloaded || showcopyright(artwork_get_ui_bitmap()) == 0) I change it to if (1)

505 -> if (showgamewarnings(artwork_get_ui_bitmap()) == 0) I change it to if (1)

These are the correct changes try
them and recompile if it still doesn't
work then delete your obj-directory and
start from a clean build.

Good Luck
Rodney


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... ;)
 

Hope this helps
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:MAME and "Type ok"
« Reply #14 on: August 21, 2002, 07:34:55 am »
I too hide the 'Bad Rom' messages, as this stalls MAME before switching to full screen.  In my frontend, this causes what looks like a 'hang' as the dos-box is hidden, therefore you can never 'Press any Key''.  My FE does have features to cure this problem, but the best option is to compile your own - I believe HowardC has released a version that does just this (although you'll still have the OK screens).

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:MAME and "Type ok"
« Reply #15 on: August 21, 2002, 04:19:06 pm »
Yup, it's on the lazarus homepage....  Upon the next release it will have much more though... things like psuedo translucent in game menus with definable colors multi mice support, ect.  That is if the respective mame build creators don't mind me swiping some code.   ;D

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:MAME and "Type ok"
« Reply #16 on: August 21, 2002, 07:09:35 pm »

Yes, keyboards work too.  (try pressing left - right (or the keys mapped to left and right) on your keyboard instead of O - K)
[/b]

Not exactly, MAME is looking for "O or L Arrow or Joystick X-" and "K or R Arrow or Joystick X+", so if your keyboard hack uses "Y" for Left and "G" for right, you won't be able to get past this screen.  You can avoid this without recompiling by reassigning keys:  I found my old notes for it here:  http://www.mameworld.net/emuadvice/ok.doc


Okay, if you want to get technical ;) , MAME is looking for "O or [UI_LEFT]" and "K or [UI_RIGHT]".  (like your notes at http://www.mameworld.net/emuadvice/ok.doc say.)  IMO, you should map UI_left and (game)left to the same inputs, and UI_right the same as (game)right, UI_up & up, etc, but that's up to you.  However this way, if your keyboard hack uses "Y" for Left and "G" for right, you would also use "Y" for UI_Left and "G" for UI_Right, which would mean you would be able to get past the screen.

But you are right I should have said "try pressing leftArrow - rightArrow, which are the default UI_left - UI_right, or, if you changed them, the keys/buttons/joystickdirections mapped to UI_left and UI_right)..."  Thanks for correcting me.
Robin
Knowledge is Power

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME and "Type ok"
« Reply #17 on: August 21, 2002, 07:24:24 pm »
You'd be amazed at how many people don't know about the O K thing with the left and right, it is in the mame faqs.

madk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 227
  • Last login:March 28, 2017, 04:59:49 pm
  • I actually am a llama!!
    • Digital Something
Re:MAME and "Type ok"
« Reply #18 on: August 22, 2002, 11:31:00 pm »
Consider me one of them...well not anymore.  But thanks guys!
Matt (mad-k)