MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


MAME 0.150 Web Server
#314670 - 09/18/13 05:57 AM



Quote:


-Added initial code for internal web server [Miodrag Milanovic]




I quickly browsed all the Docs, but I didn't seem to find any information on this.

Is this web server functional in 0.150?

And is it a feature for Developers or is there a use for end users as well?



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3200
Loc: A long way from you
Send PM


Re: MAME 0.150 new [Re: B2K24]
#314677 - 09/18/13 03:21 AM


> -Added initial code for internal web server [Miodrag Milanovic]
>
> I quickly browsed all the Docs, but I didn't seem to find any information on this.
>
> Is this web server functional in 0.150?
>
> And is it a feature for Developers or is there a use for end users as well?

Start mame with the -http command line argument.
>mame pacman -http

while it's running, point your browser to the local machine's IP (127.0.0.1 or localhost) port 8080. You'll get a connection to mame and a preliminary menu. The content varies greatly depending on your browser (IE seems to work best of those I tried). Some of the options work, such as screenshot and exit, other things are not hooked up yet.

As it says, it is VERY preliminary. Tell us what you think.
(works with MESS as well).

Edited by Robbbert (09/18/13 05:34 AM)



RevO EmaG
A trick is something a whore does for money.....or candy!
Reged: 09/13/05
Posts: 83
Loc: Probably on the sh*tter...
Send PM


Re: MAME 0.150 new [Re: Robbbert]
#314682 - 09/18/13 04:43 AM



> Start mame with the -html command line argument.
> > mame pacman -html

You meant -http I'm sure

That is an awesome new feature! The potential for so many cool things to do with it makes me giddy


-showusage/-su gives this:

-http enable local http server
-http_port http server listener port
-http_path path to web files



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: MAME 0.150 new [Re: Robbbert]
#314688 - 09/18/13 05:17 AM


Very nice work indeed

I had to use -http -http_port 8080 and everything is working fine.

Sliders show some options and screenshot works as mentioned before.


http://i.imgur.com/LNbNQ8n.png



DMala
Sleep is overrated
Reged: 05/09/05
Posts: 3989
Loc: Waltham, MA
Send PM


Re: MAME 0.150 new [Re: B2K24]
#314697 - 09/18/13 05:34 AM


> Very nice work indeed
>
> I had to use -http -http_port 8080 and everything is working fine.
>
> Sliders show some options and screenshot works as mentioned before.
>
>
> http://i.imgur.com/LNbNQ8n.png

I'm curious, what's the use case for this? These are all options available via the UI sliders, aren't they?



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3200
Loc: A long way from you
Send PM


Re: MAME 0.150 new [Re: DMala]
#314701 - 09/18/13 05:47 AM


> I'm curious, what's the use case for this? These are all options available via the UI
> sliders, aren't they?

Yes they are. However, it is recognised that the default menu is primitive-looking and has various drawbacks. Also it doesn't work with reading programs for the vision-impaired. So, by adding html hooks, a web designer can produce a page or menu to allow any kind of control. You can replace the files in the web folder with whatever you design. It can also make life easier for those who want to use smartphones. For the ambitious, perhaps you can use some device to remote-control your mame.

The more you think about it, the more ideas will emerge.



Matty_
Part-time troll
Reged: 01/25/08
Posts: 730
Send PM


Re: MAME 0.150 new [Re: DMala]
#314702 - 09/18/13 05:48 AM


> > Very nice work indeed
> >
> > I had to use -http -http_port 8080 and everything is working fine.
> >
> > Sliders show some options and screenshot works as mentioned before.
> >
> >
> > http://i.imgur.com/LNbNQ8n.png
>
> I'm curious, what's the use case for this? These are all options available via the UI
> sliders, aren't they?

Play on one screen, control on another without obscuring display? Screen reader compatibility? Because it's awesome? Because it can? To go over the heads of mere mortals like you?



Bugfinder
Semi-Lurker
Reged: 09/20/03
Posts: 146
Loc: Rio de Janeiro, Brasil
Send PM


Re: MAME 0.150 new [Re: Robbbert]
#314716 - 09/18/13 01:52 PM


Tried it here but my browser couldn't display anything; using Win 7 Pro x64. Should I mess with firewall first?



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: MAME 0.150 new [Re: Bugfinder]
#314726 - 09/18/13 04:48 PM


> Tried it here but my browser couldn't display anything; using Win 7 Pro x64. Should I
> mess with firewall first?

I did get the windows firewall prompt which I had to allow access, but I did not have to open any ports on 8080 or do anything with my router to connect.

Once I launched a game with -http -http_port 8080

In address bar of firefox I typed 127.0.0.1:8080

and it connected.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: MAME 0.150 new [Re: Robbbert]
#314730 - 09/18/13 06:34 PM


> The more you think about it, the more ideas will emerge.

Cabinet users will be able to tweak or (re)configure MAME from a tablet/phone or separate PC without having to have a keyboard and mouse available.

For MESS, you'll be able to use it to switch disks/tapes/cartridges and stuff.



Firehawke
Manual Meister
Reged: 08/12/06
Posts: 665
Send PM


Re: MAME 0.150 new [Re: R. Belmont]
#314755 - 09/19/13 01:58 AM


It's one of those silent "killer features"-- those who aren't interested aren't going to change their mind, but those of us who WOULD find it useful will find a dozen and one uses in rapid succession.

Me? I'm already thinking of things to do with it. I'm actually seriously tempted to start digging through the MAME codebase and the existing HTML to play with it, in fact.



---
Try checking the MAME manual at http://docs.mamedev.org



RATMNL
Patron Saint of the Totally F*cked
Reged: 02/02/13
Posts: 425
Loc: 026, NL
Send PM


Re: MAME 0.150 new [Re: R. Belmont]
#314782 - 09/19/13 11:50 AM


> Cabinet users will be able to tweak or (re)configure MAME from a tablet/phone or
> separate PC without having to have a keyboard and mouse available.

Sometimes I love you guys

Sometimes I Don't

This time I do



"Those voices in his head might not be real, but they have really good ideas!"



Master O
Yes, Even Parodius Music
Reged: 11/20/06
Posts: 1332
Send PM


Re: MAME 0.150 new [Re: Firehawke]
#314802 - 09/19/13 06:28 PM


> It's one of those silent "killer features"-- those who aren't interested aren't going
> to change their mind, but those of us who WOULD find it useful will find a dozen and
> one uses in rapid succession.
>
> Me? I'm already thinking of things to do with it. I'm actually seriously tempted to
> start digging through the MAME codebase and the existing HTML to play with it, in
> fact.

I can just imagine the following:

*Some bank's web server has the Mame web server installed.*

*A hacker breaks in, finds it, and says "Uh, Mame, lemme play some Metal Slug 3!*

*The Feds break his door down while he's playing Metal Slug 3.*

(All of the above is a joke, by the way.)



"Note to Noobs:

We are glad to help you but simply posting that something does not work is not going to lead to you getting help. The more information you can supply defining your problem, the less likely it will be that you will get smart-alec replies.

C.D.~"



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: MAME 0.150 new [Re: Master O]
#314979 - 09/23/13 05:39 PM


> I can just imagine the following:
>
> *Some bank's web server has the Mame web server installed.*

You joke, but there are some dusty corners in sdl.mak to support a user who wanted to compile MAME in a "locked down" build environment inside the Pentagon's network. I hope he's good at Missile Command ;-)



Bugfinder
Semi-Lurker
Reged: 09/20/03
Posts: 146
Loc: Rio de Janeiro, Brasil
Send PM


Re: MAME 0.150 new [Re: B2K24]
#315093 - 09/27/13 07:22 AM


All I get is:

Error 404: Not Found
File not found



Firehawke
Manual Meister
Reged: 08/12/06
Posts: 665
Send PM


Re: MAME 0.150 new [Re: Bugfinder]
#315100 - 09/27/13 09:02 AM


Do you have the web folder in place?

Also, functionality in 0.150 is VERY limited. 0.151 (or even a current SVN build if you don't mind rolling your own) will be a major improvement.



---
Try checking the MAME manual at http://docs.mamedev.org


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 191 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4783