Running ScummVM in the browser through Native Client

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
ernestd
Posts: 1
Joined: Mon Apr 11, 2011 11:16 pm

Running ScummVM in the browser through Native Client

Post by ernestd »

Hi,
I wanted to ask the experts in porting scummVM to other platforms how possible it would be to port scummVM to Native Client which let's you run C code natively inside the Google Chrome browser.
http://code.google.com/chrome/nativeclient/

If the proposal makes sense then I will file it as a feature request in the tracker.
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

Well, the main work has already been done for this. Someone has ported SDL to NaCl (Native Client, though it does sound like Sodium Chloride :P ).

A repo of the port:
https://github.com/eugenis/sdl-nacl
and a patch on SDL 1.2.14:
http://code.google.com/p/naclports/sour ... DL-1.2.14/

Thus, the bulk of the work has been done, but someone is needed to actually gather all the pieces and turn this into a usable port.

Having said that, I personally don't see the real point in such a port. Yes, it looks cool and yes it's impressive. But how is this an improvement over running ScummVM on Windows or *nix or OSX (which are the main platforms that Chrome runs under)?
User avatar
bobdevis
Posts: 567
Joined: Fri Jan 16, 2009 10:52 am

Post by bobdevis »

md5 wrote:[...]But how is this an improvement over running ScummVM on Windows or *nix or OSX (which are the main platforms that Chrome runs under)?
ChromeOS port?
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

Good point :) I forgot about ChromeOS
cyberix
Posts: 1
Joined: Wed Apr 13, 2011 12:06 am

Post by cyberix »

Installing a Chrome App is one or two clicks, after which the app upgrades itself automatically. That is a huge benefit, unless you specifically like hacking.
beatlefreak9
Posts: 7
Joined: Sun Mar 29, 2009 8:39 pm
Contact:

Post by beatlefreak9 »

A ChromeOS/Native Client port would be pretty awesome, I'm actually typing this on a piece of Cr-48 test hardware :D
User avatar
bobdevis
Posts: 567
Joined: Fri Jan 16, 2009 10:52 am

Post by bobdevis »

cyberix wrote:Installing a Chrome App is one or two clicks, after which the app upgrades itself automatically. That is a huge benefit, unless you specifically like hacking.
The user would still need to rip and manage the game files himself because of legal issues though.
timofonic
Posts: 254
Joined: Thu Jun 01, 2006 2:18 am

Post by timofonic »

There's already a ScummVM port to NaCl...

http://code.google.com/p/naclports/sour ... 2.1/?r=409

http://nacl-scumm.appspot.com

https://github.com/arbenson/nacl-scummvm

Portable Native Client" PNaCl will make things even more interesting, as it's going to use LLVM bytecode instead specific CPU code: http://www.chromium.org/nativeclient/pn ... ive-client

Maybe the porter would be interested to merge the trunk codebase...
Last edited by timofonic on Mon Oct 17, 2011 6:41 pm, edited 1 time in total.
willrandship
Posts: 9
Joined: Fri Jun 03, 2011 5:07 am

Post by willrandship »

You could have your games on your google account, or be loadable from the PC. Considering most of the games (excluding FM-Towns and CD Audio Ones) have very small file sizes it should be quite convenient.

Also, you would have scummvm on the go, on any pc. That's an improvement all its own.
NovaCoder
Posts: 74
Joined: Wed Sep 23, 2009 11:53 pm

Post by NovaCoder »

willrandship wrote:You could have your games on your google account, or be loadable from the PC. Considering most of the games (excluding FM-Towns and CD Audio Ones) have very small file sizes it should be quite convenient.

Also, you would have scummvm on the go, on any pc. That's an improvement all its own.
It's the future in fact :D
User avatar
clone2727
Retired
Posts: 1611
Joined: Fri Jun 09, 2006 8:23 pm
Location: NJ, USA

Post by clone2727 »

NovaCoder wrote:It's the future in fact :D
The hell it's the future. I trust companies holding my data on their servers as far as I can throw Manhattan. I'll keep my data on my own computer, thank you very much.

If I want to have a portable version of ScummVM, I'll throw it on a flash drive and take it with me. In fact, that's what I do now.
User avatar
sev
ScummVM Lead
Posts: 2276
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

timofonic wrote:There's already a ScummVM port to NaCl...

http://code.google.com/p/naclports/sour ... 2.1/?r=409

http://nacl-scumm.appspot.com

https://github.com/arbenson/nacl-scummvm

Maybe the porter would be interested to merge the trunk codebase...
I contacted the author.


Eugene
User avatar
lazylazyjoe
Posts: 131
Joined: Mon Oct 01, 2007 4:14 pm

Post by lazylazyjoe »

Curious how this is going. Any response from the author?

Here is some info by some people who did the MAME port to NaCl https://developers.google.com/native-cl ... rting/MAME
User avatar
DJWillis
ScummVM Porter
Posts: 174
Joined: Wed Oct 26, 2005 8:55 pm

Post by DJWillis »

Does anyone know if the author updated the port beyond 1.2.1?

I started a quick and dirty port to native client as I needed to get my head around it's SDK for some work.

It's tempting to merge in Austin Benson's changes with mine and see if we can get it all working and into the main tree but I am not going to put the effort in if there is already someone looking after it :o. I also don't want to bombard the author if others have ;).
Post Reply