maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Possible to make SWF games 'applications'? (https://talk.maemo.org/showthread.php?t=31227)

bummer 2009-09-03 06:21

Possible to make SWF games 'applications'?
 
I've downloaded a number of flash (swf) games and they run really well on the N810.

Question 1:
Is there a way to make 'applications' out of these files though so that they can be executed with one click either from Personal Launcher or Personal Menu?

I believe Personal Menu has a way to execute 'commands' but I can't seem to figure out how to, for instance:

"Open up browser with file mmc2\....\x.swf"

Question 2:
Is there a way to get the swf file for popcap games like http://fb.popcap.com/online-games/zuma/ ? I keep failing in getting the swf file.

Nelson L. Squeeko 2009-09-03 11:51

Re: Possible to make SWF games 'applications'?
 
For this way to work, you need to install kmplayer.
In Personal Launcher/Menu, in the command line I use

kmplayer <location of swf file>
example: kmplayer /media/mmc1/swf_games/squares2.swf

YoDude 2009-09-03 13:37

Re: Possible to make SWF games 'applications'?
 
Quote:

Originally Posted by bummer (Post 320645)
I've downloaded a number of flash (swf) games and they run really well on the N810.

Question 1:
Is there a way to make 'applications' out of these files though so that they can be executed with one click either from Personal Launcher or Personal Menu?

I believe Personal Menu has a way to execute 'commands' but I can't seem to figure out how to, for instance:

"Open up browser with file mmc2\....\x.swf"

Question 2:
Is there a way to get the swf file for popcap games like http://fb.popcap.com/online-games/zuma/ ? I keep failing in getting the swf file.

Question #1 I kind of answered by example in another thread that you posted in... >> http://talk.maemo.org/showthread.php...769#post320769


For Question #2:

-Open browser and in menu click "Tools" then "components".
-Highlight "Shockwave Flash" and click "Details.
-Uncheck the "Enable component" box and click "OK">
-Close the components window and close the browser.

Now open the browser and cruise to the page that has the game you want. A "flash object" (or somesuch) place holder will now show on the page instead of the game.

-Click on the place holder and a dialog box will open.
-Download and save the game to your device.
-Again in the browser menu click "Tools" then "components".
-Highlight "Shockwave Flash" and click "Details.
-This time check the "Enable component" box and click "OK">
-Close the components window and close the browser.

Now open the tablets "File Manager". Cruise on over to where your recently saved SWF file is located. Click on it and the browser will open so you can enjoy your game without an internet connection. (Provided that game play does not require a connection.)

Once you have opened the locally stored SWF file with your browser simply save it as a "Bookmark".

If you copy the new files address from the browsers address bar (something like >> file:///savedlocation/yourgame.swf ) then prefix it with browser --url= something like you will have the "Command to execute" needed for Personal Launcher or Personal Menu.

Edit: You don't necessarily have to close the browser between steps. Components can apparently be enabled and disabled on the fly.

silvermountain 2009-09-03 14:42

Re: Possible to make SWF games 'applications'?
 
Interesting about the KMplayer. I will have to try that on the flash files that I have.

When it comes to downloading SWF files I use Firefox and the add-on named 'UnPlug' - it automatically scans the page you are on for media files and you simply select the swf file from the page and download it.

bummer 2009-09-03 15:06

Re: Possible to make SWF games 'applications'?
 
Thanks!

1) Is there a performance difference running a flash game in kmplayer vs in the browser? I tried on one small game but could not detect any difference for that one.

2) I can't seem to get the browser command to execute in personal manager/launcher.

What I do is I add a command line in either of them reading:

browser --url=file://media/mmc2/games/bowman.swf

When I try to run it..I get 'Execution failed'

Is there a syntax error somewhere maybe?

YoDude 2009-09-03 15:21

Re: Possible to make SWF games 'applications'?
 
Quote:

Originally Posted by bummer (Post 320871)
Thanks!

1) Is there a performance difference running a flash game in kmplayer vs in the browser? I tried on one small game but could not detect any difference for that one.

2) I can't seem to get the browser command to execute in personal manager/launcher.

What I do is I add a command line in either of them reading:

browser --url=file://media/mmc2/games/bowman.swf

When I try to run it..I get 'Execution failed'

Is there a syntax error somewhere maybe?

Add 1 more forward slash after file: and try that.

Code:


browser --url=file:///media/mmc2/games/bowman.swf


silvermountain 2009-09-03 15:31

Re: Possible to make SWF games 'applications'?
 
Sorry for hi-jacking but I'm trying this as well and that KIND of worked...and it's..weird...

I changed it to what you said and the browser now opens up..and I can see that the path to the game is in the URL...then suddenly another page loads...about Java 2 platform stuff and Class files and a bunch of syntax about Java..and stuff. The game never loads.

Weeeeird...

Nelson L. Squeeko 2009-09-03 20:56

Re: Possible to make SWF games 'applications'?
 
I think the performance is about the same between the two, but KMplayer seems to boot faster than the browswer.

EDIT

What I would like is to place these into the Application's list instead of Personal Launcher or Personal Menu. Not sure if that is possible.

bummer 2009-09-06 23:16

Re: Possible to make SWF games 'applications'?
 
Quote:

Originally Posted by YoDude (Post 320819)

For Question #2:

-Open browser and in menu click "Tools" then "components".
-Highlight "Shockwave Flash" and click "Details.
-Uncheck the "Enable component" box and click "OK">
-Close the components window and close the browser.

Now open the browser and cruise to the page that has the game you want. A "flash object" (or somesuch) place holder will now show on the page instead of the game.

-Click on the place holder and a dialog box will open.
-Download and save the game to your device.
-Again in the browser menu click "Tools" then "components".
-Highlight "Shockwave Flash" and click "Details.
-This time check the "Enable component" box and click "OK">
-Close the components window and close the browser.

I've been trying for two days now using different browsers (IE, FF and Chrome) - but I am not able to replicate your steps above so that I can get the Zuma swf file to download :(

Maybe it's not possible on that particular page?

IF someone can do it I would LOVE to get the SWF file :)

Addison 2009-09-06 23:27

Re: Possible to make SWF games 'applications'?
 
Quote:

IF someone can do it I would LOVE to get the SWF file
It's stating that version as being zuma_1_0.

I guess you could always try looking here for it. :)

bummer 2009-09-07 00:19

Re: Possible to make SWF games 'applications'?
 
omg omg omg there it is - and also some others that looks interesting!!

going to try some now - thank you SO much

EDIT: I tried the zuma swf file both on the tablet and my PC but I get an error message about could not load levels xml file and then the screen just sits there saying 'loading'....

ANY help would be SO much appreciated :)

EDIT II: It seems like all the games - apart from the three from Popcap works (Zuma, Bejeweled, Bejeweled 2). Conspiracy I say.

Addison 2009-09-07 01:30

Re: Possible to make SWF games 'applications'?
 
It looks like it's trying to load up an .xml file for the levels in the game but I'm not seeing it anywhere.

Anyone have any suggestions on this?

linuxeventually 2009-09-07 02:09

Re: Possible to make SWF games 'applications'?
 
Another alternative is combining this "hack" http://talk.maemo.org/showthread.php?t=25010 plus either Personal Launcher or Personal Menu.

First backup the original SWF:
Code:

mv /usr/share/tutorial-applet/N800-tutorial.swf /usr/share/tutorial-applet/N800-tutorial.swf.stock
Download some .SWF Flash games into Nokia N810>Games (actually is /home/user/MyDocs/.games)

You need to first create a "clear last game" launcher (for some reason Personal Launcher doesn't support "&&" command chaining.
  • Desktop>Menu>Applet Settings>Personal Launcher
  • (+) Add Command>
  • Type in a name for it: Clear SWF
  • Command to execute: rm /usr/share/tutorial-applet/N800-tutorial.swf
  • Check "Run as root"
  • Select an icon

So you create a flash game launcher by
  • Desktop>Menu>Applet Settings>Personal Launcher
  • (+) Add Command>
  • Type in a name for it: SuperMario SWF
  • Command to execute: ln -s /home/user/MyDocs/.games/SuperMario.swf /usr/share/tutorial-applet/N800-tutorial.swf
  • Check "Run as root"
  • Select an icon

http://www.box.net/os2008/1/38267058/393255068/1

(Alternatively instead of having to use a "clear" command each time you switch games to get rid of the symlink - you can substitute "ln -s" with "cp" to copy the SWF each time)

Select the game's newly created icon.
Now just click on the "Getting Started" applet on the home screen.
:D

linuxeventually 2009-09-07 04:28

Re: Possible to make SWF games 'applications'?
 
Quote:

What I would like is to place these into the Application's list instead of Personal Launcher or Personal Menu. Not sure if that is possible.
After reading more carefully I have adapted my last post to fit this stipulation.

EDIT: NOT WORKING!

I need to look into .desktop files a bit more to fix the issue.

Preliminary versions:

"Getting Started" Flash Launcher (save as root in /usr/share/applications/hildon/flashlauncher.desktop )
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.5.3
Type=Application
Name=Launch Flash Game
Comment=Open flash game with "Getting Started" hack
Exec=/usr/bin/tutorial-eal-bin
Icon=tmp_tutorial_tn_icon
X-Text-Domain=tutorial-home
X-Window-Icon=tmp_tutorial_tn_icon
X-Window-Icon-Dimmed=tmp_tutorial_tn_icon
X-Osso-Service=tutorial_launcher
X-Osso-Type=application/x-executable

and

"Getting Started" Flash Game Selection Template (save as root in /usr/share/applications/hildon/supermario.desktop )
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.5.3
Type=Application
Name=SuperMario SWF
Comment=Select flash game
Exec=cp /home/user/MyDocs/.games/SuperMario.swf /usr/share/tutorial-applet/N800-tutorial.swf
Icon=qgn_list_marbles
X-Text-Domain=tutorial-home
X-Window-Icon=qgn_list_marbles
X-Window-Icon-Dimmed=qgn_list_marbles
X-Osso-Service=tutorial_launcher
X-Osso-Type=application/x-executable

OR

KMplayer Template (save as root in /usr/share/applications/hildon/km-SuperMario.desktop )
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.5.3
Type=Application
Name=Launch Flash Game
Comment=Open flash game with kmplayer
Exec=kmplayer /home/user/MyDocs/.games/SuperMario.swf
Icon=qgn_list_blocks
X-Text-Domain=tutorial-home
X-Window-Icon=qgn_list_blocks
X-Window-Icon-Dimmed=qgn_list_blocks
X-Osso-Service=tutorial_launcher
X-Osso-Type=application/x-executable

Untested. Will test in a couple minutes.

Nelson L. Squeeko 2009-09-07 04:48

Re: Possible to make SWF games 'applications'?
 
Looking forward to seeing the results when you get it working. This would give the N8*0 an (almost) infinite game list, as long as you games that can run correctly.

rafanto 2009-09-07 19:31

Re: Possible to make SWF games 'applications'?
 
It would be a great player swf file directly without launching the browser


All times are GMT. The time now is 12:53.

vBulletin® Version 3.8.8