Previous Thread
Next Thread
Print Thread
#107852 - 11/08/16 02:19 PM MAME output (notifiers) via network or console  
Joined: May 2008
Posts: 4,838
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,838
Germany
I would like to implement a platform independent way of processing MAME's output notifiers, i.e. via "mame -output network ..." as a replacement for the no-longer-working FIFO approach (which was for SDLMAME only anyway).

However, there's no way to modify/overwrite the port that's being used. It's fixed to 8000 at the moment, so a second emulator instance fails with "bind(): address already in use".

Is there a plan to change this? If not, would a pull request introducing an option for it be accepted?

An alternative would be to use the console as in "mame -output console", but the problem with this is that there's no direct way to tell which output is a notifier and which is "normal output to stdout or stderr" (i.e. when using -verbose, but even w/o).

Notifiers are always in the form of "<notifier> = <value>\n", so that's probably a valid pattern to find out, but can I be 100% sure? If not, could there be some prefix added to make it identifiable? For example something like "[output] led0 = 1" instead of just "led0 = 1"? Again, I could create a pull request if needed and accepted.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#107853 - 11/08/16 02:31 PM Re: MAME output (notifiers) via network or console [Re: qmc2]  
Joined: May 2008
Posts: 4,838
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,838
Germany
Originally Posted By qmc2
For example something like "[output] led0 = 1" instead of just "led0 = 1"? Again, I could create a pull request if needed and accepted.

Or this could be an option itself, for example "-output_prefix '[output]'", with an empty string as default value for compatibility reasons.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#107855 - 11/08/16 04:08 PM Re: MAME output (notifiers) via network or console [Re: qmc2]  
Joined: May 2008
Posts: 4,838
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,838
Germany
Never mind... it looks like I can 'egrep' the output with a simple reg-exp for the assumed format ("^\S+ = \S+$").


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#107859 - 11/08/16 07:28 PM Re: MAME output (notifiers) via network or console [Re: qmc2]  
Joined: May 2008
Posts: 4,838
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,838
Germany
OK, MAME output notifiers are supported again (SVN r7829), and this time it should work on Windows as well smile (though still untested).


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#109892 - 06/13/17 06:45 AM Re: MAME output (notifiers) via network or console [Re: qmc2]  
Joined: Jun 2017
Posts: 1
briga Offline
Member
briga  Offline
Member

Joined: Jun 2017
Posts: 1
Is there a way to suppress the output command? I tried to look in configuration setting but couldn't find it anywhere.
The issue for me is that my version of mame doesn't recognise the -output console command and doesn't start.

Last edited by briga; 06/13/17 06:45 AM.
#109893 - 06/13/17 06:49 AM Re: MAME output (notifiers) via network or console [Re: qmc2]  
Joined: May 2008
Posts: 4,838
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,838
Germany
Yes. You'll find a switch titled "Enable processing of MAME output notifiers (this forces '-output console')" below the global emulator configuration.

Last edited by qmc2; 06/13/17 06:49 AM.

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!

Moderated by  qmc2 

Who's Online Now
4 registered members (Kale, Duke, TeamE, 1 invisible), 14 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,412
Posts108,939
Members4,757
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.032s Queries: 14 (0.009s) Memory: 4.9693 MB (Peak: 5.1667 MB) Zlib enabled. Server Time: 2017-09-25 11:22:05 UTC