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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  LUA Viewer
« previous next »
  • Print
Pages: [1]

Author Topic: LUA Viewer  (Read 4982 times)

Offline SpawnHyuuga

  • Member
  • *
  • Posts: 70
LUA Viewer
« on: October 29, 2010, 08:55:12 AM »
So obviously the LUA viewer is for viewing/executing LUA files - but what kind of files or where can we get LUA games/programs for use with Rockbox?
Logged
Current Devices: Sony-Ericsson Xperia Play
Coming Devices: iPod Video 5.5G (80 GB)
Former Devices: Sansa Fuze v2, Sansa Clip+

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: LUA Viewer
« Reply #1 on: October 29, 2010, 09:11:31 AM »
You would probably have to write them. Lua is just a programming language, it's not a system that there is a large body of games/programs written for already, and even if there were some they aren't going to be able to run on Rockbox since you need to use Rockbox-specific APIs to do any input/output.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: LUA Viewer
« Reply #2 on: October 29, 2010, 11:26:16 AM »
If you look in the /.rockbox/rocks/games directory you can see that the Boomshine plugin is actually a lua script.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline SpawnHyuuga

  • Member
  • *
  • Posts: 70
Re: LUA Viewer
« Reply #3 on: October 30, 2010, 09:46:24 PM »
Well I knew there wasn't much of a database, but I did search for things written in LUA and got a lot of PSP stuff. I'm just wondering if any of it could be converted.
Logged
Current Devices: Sony-Ericsson Xperia Play
Coming Devices: iPod Video 5.5G (80 GB)
Former Devices: Sansa Fuze v2, Sansa Clip+

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: LUA Viewer
« Reply #4 on: October 31, 2010, 06:59:02 AM »
Porting lua scripts for other platforms to rockbox is similar to porting things written in C for other platforms as plugins. The degree of changes required will vary depending what the script does.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: LUA Viewer
« Reply #5 on: February 01, 2011, 04:39:34 PM »
I think that Lua in Rockbox as lot of potential, specially because it doesn't require you to build a custom build to run a LUA plugin, it isn't affected by minor changes of the Rockbox version ("normal", C plugins report "Incompatible version"), it's much easier to share and cross-target (if the script isn't affected by the amount of memory or screen size of the device, you can just copy it to a different Rockbox player and it will run that script too). Also, Lua is, in some people's opinion, easier to learn and code than C.

In the sequence of this, I tried to develop a few simple plugins, to get one conclusion: there's no real documentation on how to use the Rockbox API to show usual things as menus. I added another code sample on the Lua viewer wiki page, which shows how to use the Menu API, and I plan on coding more sample Lua plugins as both a way to create more documentation on the subject and to learn Lua at the same time.

Lets hope that with these contributions, more Lua plugins are coded for Rockbox...

By the way, Lua can not only be used for coding plugins but also less elaborated scripts. For example, I made two very simple scripts that turn on and off the CPU boost, just by launching the Lua file on the browser.
Logged
http://gbl08ma.com | http://i.tny.im

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  LUA Viewer
 

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

Page created in 0.082 seconds with 14 queries.