Previous Thread
Next Thread
Print Thread
skip "game not working" from Lua script? #113029 04/01/18 03:30 PM
Joined: Apr 2006
Posts: 14
S
Steve Leung Offline OP
Member
OP Offline
Member
S
Joined: Apr 2006
Posts: 14
Is there a way to bypass the "game not working" screen from a Lua script?

I'm trying to write a Lua script to run a series of machines for some number of frames each, then exit.

My use case is to try to automate gathering data for profile-guided optimization. If I can get an unattended MAME to run a bunch of systems for a little while, then I can get a minor speed bump for free (where "free" for me is defined as "not requiring human effort"). It'd be easy to script this up outside of MAME, but PGO data is overwritten every time the process exits. So it'd need to be one MAME process that runs many systems, instead of many MAME processes each running one system.

I realize that the dialog is meant to require human attention (e.g. there's no command line opt to skip it), but maybe the policy would be different from Lua's perspective.

I also realize that since I'm compiling MAME anyway, I could just hack the dialog out. But I'd like to see if there's a way to do it in vanilla MAME.

Re: skip "game not working" from Lua script? [Re: Steve Leung] #113030 04/01/18 04:17 PM
Joined: Mar 2002
Posts: 1,117
H
hap Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: Mar 2002
Posts: 1,117
For automated testing, we have the -str(seconds to run) commandline option, it will skip warning message and machine info. Set it between 1 and 299.

mame64 pacman -str 100

Re: skip "game not working" from Lua script? [Re: hap] #113031 04/01/18 04:29 PM
Joined: Apr 2006
Posts: 14
S
Steve Leung Offline OP
Member
OP Offline
Member
S
Joined: Apr 2006
Posts: 14
Right, but if a system needed longer than 299 seconds to do something representative for PGO, then I'd be out of luck?

Re: skip "game not working" from Lua script? [Re: Steve Leung] #113034 04/01/18 08:57 PM
Joined: May 2004
Posts: 1,602
H
Haze Offline
Very Senior Member
Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,602
this sounds like a surefire way to get lua scripting support removed from MAME entirely...

if you have a *special* usecase, then compile it out.

otherwise people removing those messages are the number 1 cause of unwanted support issues, because those messages are meant to be the first line of support and the majority of the time do an absolutely admirable job in being so, saving hundreds of thousands hours of support work.

a script to bypass them would be one of the most intentionally destructive and harmful things possible.


Re: skip "game not working" from Lua script? [Re: Steve Leung] #113035 04/01/18 09:10 PM
Joined: Jan 2012
Posts: 815
C
crazyc Offline
Senior Member
Offline
Senior Member
C
Joined: Jan 2012
Posts: 815
There's no way to interact with those dialogs from lua.

Re: skip "game not working" from Lua script? [Re: Steve Leung] #113037 04/02/18 04:23 AM
Joined: Apr 2006
Posts: 14
S
Steve Leung Offline OP
Member
OP Offline
Member
S
Joined: Apr 2006
Posts: 14
Fair enough. Thanks all.


Who's Online Now
3 registered members (robcfg, Olivier Galibert, Yash Anand), 141 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,734
Posts114,829
Members4,879
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3