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: Removing the "initializing" and "loading" messages from mame 1.14  (Read 13754 times)

0 Members and 1 Guest are viewing this topic.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Hi all, just re-compiled mame 1.14 to remove the "nag" screens (many thanks to all that helped with my stupid Q's), and it's all good,

I would now like to get rid of the "initializing" and "loading" messages that "pop" up when each game is loading.

Is there a patch available??

Cheers :)

nic8612

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:September 20, 2011, 11:15:11 pm
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #1 on: May 09, 2007, 08:40:55 pm »
Is there a way to remove the "nag" screens in mame32?  I know you recompile the original mame, but how about 32?

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #2 on: May 09, 2007, 11:57:27 pm »
I would now like to get rid of the "initializing" and "loading" messages that "pop" up when each game is loading.


The following method worked for me.  Use at your own risk as you are directly editing source files instead of applying a patch.

Use notepad to edit mame.c which is located at c:\mamesrc\src\emu

Remark out the following line. In other words find and change:

Code: [Select]
ui_set_startup_text("Initializing...", TRUE);
To:

Code: [Select]
/*ui_set_startup_text("Initializing...", TRUE);*/

Then edit c:\mamesrc\src\emu\romload.c

Remark out the lines of code by changing the following from:

Code: [Select]
char buffer[200];

if (name != NULL)
sprintf(buffer, "Loading (%d%%)", 100 * romdata->romsloaded / romdata->romstotal);
else
sprintf(buffer, "Loading Complete");

ui_set_startup_text(buffer, FALSE);

To:

Code: [Select]
/*char buffer[200];

if (name != NULL)
sprintf(buffer, "Loading (%d%%)", 100 * romdata->romsloaded / romdata->romstotal);
else
sprintf(buffer, "Loading Complete");

ui_set_startup_text(buffer, FALSE);*/

Then recompile, by running makemake.bat again.  Copy the new EXE over to your Mame folder after renaming your old mame.exe in case you need it later.

Warning: I know very little C programming, but I did stay at a Holiday Inn Express last night.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #3 on: May 10, 2007, 02:00:32 am »
Hi SGT,

I have been PM MKChamp and he has it sorted.

A pretty easy fix (not that I could have ever worked it out!!).

Pretty much the same fix (not a patch). Change the mame.c, romload.c & video.c files to comment out (by using //), re-compile, and she's away.

Many thanks for all your help

Cheers

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #4 on: May 10, 2007, 09:16:15 pm »
sega_mad,

Why was video.c edited?  Was it to get rid of the "Decoding" message?


sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #5 on: May 11, 2007, 02:22:24 am »
Hi SGT,

Sure was. Everything removed now, except the thin white line that flashes briefly around the edge of the screen......any idea how to remove that??

Cheers

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #6 on: May 11, 2007, 11:52:11 am »
Not sure if this has any ill effects, but to get rid of the white box you can comment out the following 2 lines in emu/ui.c

line #372
line #376

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #7 on: May 11, 2007, 05:05:50 pm »
eeah, should you not write which code is commented out instead just write the line number (wich can been moved up or down)?
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #8 on: May 11, 2007, 06:46:10 pm »
eeah, should you not write which code is commented out instead just write the line number (wich can been moved up or down)?

/* clear the input memory */
      while (code_read_async() != CODE_NONE) ;

      /* loop while we have a handler */
      while (ui_handler_callback != handler_ingame && !mame_is_scheduled_event_pending(Machine))
         video_frame_update();

      /* clear the handler and force an update */
      ui_set_handler(handler_ingame, 0);
      video_frame_update();

You would need to comment out the 2 "video_frame_update();". This is in the int ui_display_startup_screens section.

P.S. what does eeah mean?

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #9 on: May 12, 2007, 02:03:13 am »
Hi MKChamp,

Sorry, I couldn't understand your instructions on removing the "White Box". Could you spell it out again in "simple speak"!!

Also, after commenting out the video.c file, it did appear to work, but on some of the bigger games (Street Fighter 2, 3) it still shows the "decoding message"

Any thoughts?

Cheers


turbo6

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:June 28, 2012, 10:03:40 pm
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #10 on: May 12, 2007, 02:53:51 am »
Would these modifications to the source also work when compiling an older version of Mame32, such as v0.90 or 0.93??? I looked at the source but couldn't find the lines you mentioned to modify. Maybe its too late, and need to try and find them after some sleep. Hope I didn't send this thread off its track by asking, but its the same idea... just using older versions... Thanks.

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #11 on: May 12, 2007, 03:12:24 am »
Hi MKChamp,
Sorry, I couldn't understand your instructions on removing the "White Box". Could you spell it out again in "simple speak"!!
Also, after commenting out the video.c file, it did appear to work, but on some of the bigger games (Street Fighter 2, 3) it still shows the "decoding message"
Any thoughts?
Cheers

I'm doing this on the fly, so let me know if this gets rid of the white box and the 'decoding' message you are still seeing...

In the ui.c file in the emu folder if you search for "video_frame_update();"
there are 3 occurences of it...comment out the first 2...

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #12 on: May 12, 2007, 03:59:00 am »
Hi again,

We are getting there!!

That was successful for the older/smaller file  size games.....Donkey kong, Galaga etc (no messages, no white box) But on Street Fighter 2 & 3, plus other (big file size games) it still has the white box, and now says "decrypting"

Cheers

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #13 on: May 12, 2007, 03:54:19 pm »
For street fighter, you'll probably have to edit cps2crypt.c located in:

c:\mamesrc\src\mame\machine

and comment out the following:

Code: [Select]
char loadingMessage[256]; // for displaying with UI
sprintf(loadingMessage, "Decrypting %d%%", i*100/0x10000);
ui_set_startup_text(loadingMessage,FALSE);

I have not tested it, though.  That would probably only remove it from the cps2 games.   

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #14 on: May 12, 2007, 05:30:48 pm »
For street fighter, you'll probably have to edit cps2crypt.c located in:

Yep...that's the only file I see with 'Decrypting' being displayed...

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #15 on: May 12, 2007, 08:37:35 pm »
For street fighter, you'll probably have to edit cps2crypt.c located in:

c:\mamesrc\src\mame\machine

and comment out the following:

Code: [Select]
char loadingMessage[256]; // for displaying with UI
sprintf(loadingMessage, "Decrypting %d%%", i*100/0x10000);
ui_set_startup_text(loadingMessage,FALSE);

I have not tested it, though.  That would probably only remove it from the cps2 games.   


Hi guys

So in the c:\mamesrc\src\mame\machine folder, I just have to put // in front of
ui_set_startup_text(loadingMessage,FALSE);

then recompile

Is that correct??

I've only been replacing the mame.exe file once I've recompiled it...is that OK?

Cheers

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #16 on: May 12, 2007, 11:19:54 pm »
SGT & MKChamp,

That was it. Followed all instructions, recompiled and it's all good. Looks like everthing is now hidden.

I can't thank you guys enough!!

I don' tknow how you guys work this stuff out....but I'm stoked!!

Cheers

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #17 on: May 13, 2007, 02:08:14 am »
It's easy pointing to a brick in a wall...the hard part is building the wall in the first place. The 'awe' goes to the mamedevs.

esaelectrionics

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 80
  • Last login:December 11, 2013, 01:05:50 pm
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #18 on: May 19, 2007, 06:40:14 pm »
doesent arcadeOS have an option for removing the nag screens?,dont know if it works,ive not tried it ,but just noticed the option.


sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #19 on: May 19, 2007, 11:14:03 pm »
No idea, as I use MaLa. But I have removed all nag screens thanks to the info provided by MKChamp and SGT.

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #20 on: May 20, 2007, 12:57:30 am »
Just to clarify...
those aren't the nag screens. The nag screens are the 'type ok' and/or 'the game not working completely' etc.
The screens removed in this post are for the 'status' screens...like loading/decoding which do not require user input to 'move on' from.

tomsurfnj

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:February 11, 2010, 01:12:43 pm
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #21 on: May 20, 2007, 10:09:07 pm »
I found something under options- default game options-misc- (skip game info) in mame32 to kill the nag screens. I go right the game after the first time doing the "nag" screens. One time nag screens.

ARTIFACT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 754
  • Last login:May 30, 2018, 12:32:23 am
    • ARTIFACT - my scratch designed & built arcade cabinet
Re: Removing the "initializing" and "loading" messages from mame 1.14
« Reply #22 on: September 11, 2007, 12:39:56 am »
this ROCKS (MKChamp + SGT) ... thanks