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-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:01.

vBulletin® Version 3.8.8