Active Topics

 



Notices


Reply
Thread Tools
b-man's Avatar
Posts: 549 | Thanked: 502 times | Joined on Feb 2008 @ Bowling Green Ohio (united states)
#1
I was fiddling with some of my applications and came up with this really cool trick; hacking get started to play flash games.

This can be done simply by doing the following assuming you have downloaded the game to your memory card, i used Super Mario Flash:

Code:
sudo gainroot

cd /usr/share/tutorial-applet/

mv N800-tutorial.swf N800-tutorial.swf.old

cp /media/mmc1/SuperMario.swf /usr/share/tutorial-applet/

mv SuperMario.swf N800-tutorial.swf

exit
It's quite simple

I'll probibly whip up a small app that allows you to select witch games you want to play instead of having to go thrue the whole prosess over and over again.

--Eenjoy!
Attached Images
 
__________________
I'm an advanced user and a bit of a modder.
----------------------------------------------
I am involved with Mer, Deblet, and NITdroid.
My ports/creations/hacks: GNOME (for Deblet), Cdeb2», Ubuntu, playable flash games in the "Get Started" app, DBS, ect...


enhanced fedora port has been canceled in favor of NITDebian (TBA)
 

The Following 9 Users Say Thank You to b-man For This Useful Post:
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#2
neat!
is performance any better than normal browser embedding?

I know people have shied away from flash due to requiring the browser, if this hack can be applied and we get a performance boost lots of nice things become possible.
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 
b-man's Avatar
Posts: 549 | Thanked: 502 times | Joined on Feb 2008 @ Bowling Green Ohio (united states)
#3
From my experience, it looks and runs pretty well, although it will occasionally give me a strange "out of memory" error, but that usually can be fixed by enabling virtual memory.
__________________
I'm an advanced user and a bit of a modder.
----------------------------------------------
I am involved with Mer, Deblet, and NITdroid.
My ports/creations/hacks: GNOME (for Deblet), Cdeb2», Ubuntu, playable flash games in the "Get Started" app, DBS, ect...


enhanced fedora port has been canceled in favor of NITDebian (TBA)
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
Originally Posted by b-man View Post
Code:
sudo gainroot
cd /usr/share/tutorial-applet/
mv N800-tutorial.swf N800-tutorial.swf.old
cp /media/mmc1/SuperMario.swf /usr/share/tutorial-applet/
mv SuperMario.swf N800-tutorial.swf
exit
Does the "Getting started" application follow links (I don't have it installed to try)? If it does, you don't need to copy anything, just create a symbolic link:

Code:
cd /usr/share/tutorial-applet
mv N800-tutorial.swf N800-tutorial.swf.old
ln -s /media/mmc1/SuperMario.swf N800-tutorial.swf
This way no additional space is needed on the internal drive.
 

The Following 3 Users Say Thank You to For This Useful Post:
Posts: 105 | Thanked: 10 times | Joined on Jun 2008
#5
Originally Posted by
[CODE

sudo gainroot

cd /usr/share/tutorial-applet/

mv N800-tutorial.swf N800-tutorial.swf.old

cp /media/mmc1/SuperMario.swf /usr/share/tutorial-applet/

mv SuperMario.swf N800-tutorial.swf

exit

[/CODE]

It's quite simple

I'll probibly whip up a small app that allows you to select witch games you want to play instead of having to go thrue the whole prosess over and over again.

--Eenjoy!
Thank you B-man for you great work...First of all, I'm newbie so easy with me...Look I downloaded the game to my memory card fine!!!,but how or where I have to put those code above. can you tell me step by step procedure?
 

The Following User Says Thank You to EL_EASY For This Useful Post:
jmjanzen's Avatar
Posts: 192 | Thanked: 60 times | Joined on Sep 2008 @ Wichita, KS
#6
First, you'll want to install "rootsh" if you haven't already. Click here. (The first command won't work without rootsh.)

After installing rootsh, go to the "Utilities" menu and run "X Terminal" (a.k.a. xterm). Type the code in there.

(Tip: if you want to copy-and-paste the code, double-click on the beginning of a line, keep the stylus held down, and drag to select the entire line, then click-and-hold on the selected text, and choose "Copy". In xterm, go to Edit > Paste. That's how I would/will do it.)
 
Posts: 105 | Thanked: 10 times | Joined on Jun 2008
#7
Originally Posted by jmjanzen View Post
First, you'll want to install "rootsh" if you haven't already. Click here. (The first command won't work without rootsh.)

After installing rootsh, go to the "Utilities" menu and run "X Terminal" (a.k.a. xterm). Type the code in there.

(Tip: if you want to copy-and-paste the code, double-click on the beginning of a line, keep the stylus held down, and drag to select the entire line, then click-and-hold on the selected text, and choose "Copy". In xterm, go to Edit > Paste. That's how I would/will do it.)

Thank you Jmjanzen for your help. First i downloaded rootsh fine,, then I followed everything you said above and look what was the result: am I doing anything wrong ?

~ $ sudo gainroot
Root shell enabled

BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # cd /usr/share/tutorial-applet/
/bin/sh: cd: can't cd to /usr/share/tutorial-applet/
/home/user # mv N800-tutorial.swf N800-tutorial.swf.old
mv: cannot rename 'N800-tutorial.swf': No such file or directory
/home/user # cp /media/mmc1/SuperMario.swf /usr/share/tutorial-applet/
cp: cannot stat '/media/mmc1/SuperMario.swf': No such file or directory
/home/user # mv SuperMario.swf N800-tutorial.swf
mv: cannot rename 'SuperMario.swf': No such file or directory
/home/user # exit
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#8
Originally Posted by EL_EASY View Post
Thank you Jmjanzen for your help. First i downloaded rootsh fine,, then I followed everything you said above and look what was the result: am I doing anything wrong ?

~ $ sudo gainroot
Root shell enabled

BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # cd /usr/share/tutorial-applet/
/bin/sh: cd: can't cd to /usr/share/tutorial-applet/
/home/user # mv N800-tutorial.swf N800-tutorial.swf.old
mv: cannot rename 'N800-tutorial.swf': No such file or directory
/home/user # cp /media/mmc1/SuperMario.swf /usr/share/tutorial-applet/
cp: cannot stat '/media/mmc1/SuperMario.swf': No such file or directory
/home/user # mv SuperMario.swf N800-tutorial.swf
mv: cannot rename 'SuperMario.swf': No such file or directory
/home/user # exit
You probably uninstalled it. You can get the package back by extracting the rootfs from a diablo image, mounting it, and dpkg-repacking it all on a linux computer (this worked for me but I don't know what the redistribution terms are) . Or the easiest way is to reflash (and no the package isn't on the system updates repo).
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#9
BTW, I see no speed increase here over running the SWF through the browser... Click on the game.swf file in your file manager, and it will auto-start the browser with the game in it. Then fullscreen the browser, and off you go. Or make a menu item that runs the browser with file:///media/mmc1/games/mario.swf as the parameter....

But the hack is still cool.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 16 | Thanked: 5 times | Joined on Sep 2008
#10
Hi people,
do you know that all flash games are reproducible with kmplayer?
They run reasonably faster than in the browser, and you can scale it or play it in full screen!
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:10.