Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  converting .swf files to .rock files???
« previous next »
  • Print
Pages: [1]

Author Topic: converting .swf files to .rock files???  (Read 3703 times)

Offline Username:*

  • Member
  • *
  • Posts: 2
converting .swf files to .rock files???
« on: April 18, 2008, 08:22:07 PM »
I was wondering if there was converter out there where i could convert .swf files (flash games found on ex. addictinggames.com) to .rock files?? i tried to save the file as a .rock file when downloading and it worked but when i tried to open it it sayed content not supported... this is intresting because windows defines it as a .ROCK file ???...

It would be nice if someone could have a converter they found to share
Logged
Rockbox, iBoy, iDoom, .mvpd player, zeroslackr with podzilla, floydzilla, and podzilla2, iPodlinux, iPL (2.5), and 250+ songs (all squeezed on a 2GB iPod nano).

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: converting .swf files to .rock files???
« Reply #1 on: April 18, 2008, 08:24:47 PM »
Rockbox only plays MPEGs.  The extension for Rockbox plugins is .rock.  If you want to convert to a supported format then check out the PluginMpegplayer page in the wiki.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline Username:*

  • Member
  • *
  • Posts: 2
Re: converting .swf files to .rock files???
« Reply #2 on: April 18, 2008, 08:34:59 PM »
Then how did they create the snake game and such??? Is the helicopter game just a bunch of jpegs moving in order or a mpeg movie with the counter and the highscore saver??? When i downloaded rockbox for my nano it came with some games that look like i could find them on the internet...

Just wndering if i could download swf files from a website and be able to play them on my nano
Logged
Rockbox, iBoy, iDoom, .mvpd player, zeroslackr with podzilla, floydzilla, and podzilla2, iPodlinux, iPL (2.5), and 250+ songs (all squeezed on a 2GB iPod nano).

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: converting .swf files to .rock files???
« Reply #3 on: April 18, 2008, 08:42:01 PM »
Ah.  Sorry.  I thought you were talking about flash movies, like on YouTube and other sites.

To make a game for Rockbox you have to have access to suitably licensed source code and port it over to work with Rockbox.  Or you have to write a clone of the original game from the ground up.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: converting .swf files to .rock files???
« Reply #4 on: April 19, 2008, 06:06:02 AM »
Quote from: Username:* on April 18, 2008, 08:22:07 PM
i tried to save the file as a .rock file when downloading and it worked but when i tried to open it it sayed content not supported... this is intresting because windows defines it as a .ROCK file ???...
No. Windows doesn't "define" any file content. Windows only recognizes files based on file extensions, not based on their content. Thus, you can give any file any arbitrary extension and windows will recognize it as such -- for example, if you rename an executable (.exe) file to say .doc windows will think it's a word document now and try opening it with word (which obviously won't work). If windows doesn't know the file extension it will simply call the file type the same using upper letters -- for example, if you don't have word installed on your computer (and no other program that registered the extension .doc) windows will call word files simply "DOC file".
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Delta009

  • Member
  • *
  • Posts: 25
Re: converting .swf files to .rock files???
« Reply #5 on: April 21, 2008, 05:09:21 PM »
Quote from: bluebrother on April 19, 2008, 06:06:02 AM
Quote from: Username:* on April 18, 2008, 08:22:07 PM
i tried to save the file as a .rock file when downloading and it worked but when i tried to open it it sayed content not supported... this is intresting because windows defines it as a .ROCK file ???...
No. Windows doesn't "define" any file content. Windows only recognizes files based on file extensions, not based on their content. Thus, you can give any file any arbitrary extension and windows will recognize it as such -- for example, if you rename an executable (.exe) file to say .doc windows will think it's a word document now and try opening it with word (which obviously won't work). If windows doesn't know the file extension it will simply call the file type the same using upper letters -- for example, if you don't have word installed on your computer (and no other program that registered the extension .doc) windows will call word files simply "DOC file".

on Linux, file extensions don't have any importance : the system "scans" the files instead to determine which kind of data it is
so, changing the extension doesn't change the file itself : it just changes the way Windows handles it
an obvious example of this : if you rename a program from ".exe" to ".txt", the result won't be the source code of the original file, it will just fool the system into thinking that the file is a text document, which is false (just try it on your computer: it will just crash notepad...)

renaming a .swf file to .rock doesn't convert it automatically to a rockbox plugin (it would be too easy ;))
it's far more complex than that
and as far as i know, there are no flash players on rockbox
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: converting .swf files to .rock files???
« Reply #6 on: April 22, 2008, 02:47:26 PM »
Quote from: Delta009 on April 21, 2008, 05:09:21 PM
on Linux, file extensions don't have any importance : the system "scans" the files instead to determine which kind of data it is so, changing the extension doesn't change the file itself
You can't say it that generally. It's not the system "scanning" files, it's the applications -- for example konqueror does so. But it's not required to do so -- it's just usually done that way. If you, in contrast, consider the "file open" dialog of KDE applications they usually filter based on file extension.

Quote
if you rename a program from ".exe" to ".txt", the result won't be the source code of the original file, it will just fool the system into thinking that the file is a text document, which is false (just try it on your computer: it will just crash notepad...)
If the file isn't too large it's more likely it'll just show up as garbage ... ;)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  converting .swf files to .rock files???
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 14 queries.