10  Plugins

Plugins are programs that Rockbox can load and run. Only one plugin can be loaded at a time. Plugins have exclusive control over the user interface. This means you cannot switch back and forth between a plugin and Rockbox. When a plugin is loaded, you need to exit it to return to the Rockbox interface. Most plugins will not interfere with music playback but some of them will stop playback while running. Plugins have the file extension .rock. Most of them can be started from Browse Plugins in the Main Menu.

Viewer plugins get started automatically by opening an associated file (i.e. text files, chip8 games), or from the Open with option on the Context Menu.

10.1 Games
10.1.1 Blackjack
10.1.2 BrickMania
10.1.3 Bubbles
10.1.4 Chessbox
10.1.5 Chopper
10.1.6 Dice
10.1.7 Doom
10.1.8 Flipit
10.1.9 Goban
10.1.10 Invadrox
10.1.11 Jackpot
10.1.12 Jewels
10.1.13 MazezaM
10.1.14 Minesweeper
10.1.15 Pegbox
10.1.16 Pong
10.1.17 Reversi
10.1.18 Robotfindskitten
10.1.19 Rockblox
10.1.20 Rockblox1d
10.1.21 Rocklife
10.1.22 Sliding Puzzle
10.1.23 Snake
10.1.24 Snake 2
10.1.25 Sokoban
10.1.26 Solitaire
10.1.27 Spacerocks
10.1.28 Star
10.1.29 Sudoku
10.1.30 Wormlet
10.1.31 Xobox
10.2 Demos
10.2.1 Bounce
10.2.2 Credits
10.2.3 Cube
10.2.4 Demystify
10.2.5 Fire
10.2.6 Fractals
10.2.7 Logo
10.2.8 Mosaique
10.2.9 Oscilloscope
10.2.10 PictureFlow
10.2.11 Plasma
10.2.12 Snow
10.2.13 Starfield
10.2.14 VU meter
10.3 Viewers
10.3.1 Shortcuts
10.3.2 BMP viewer
10.3.3 Chip-8 Emulator
10.3.4 Frotz
10.3.5 JPEG viewer
10.3.6 Lua scripting language
10.3.7 Midiplay
10.3.8 MPEG Player
10.3.9 Search
10.3.10 Sort
10.3.11 Text Viewer
10.3.12 Theme Remove
10.3.13 VBRfix
10.3.14 ZXBox
10.4 Applications
10.4.1 Alarm Clock
10.4.2 Battery Benchmark
10.4.3 Calculator
10.4.4 Calendar
10.4.5 Chess Clock
10.4.6 Clock
10.4.7 Disk Tidy
10.4.8 Keybox
10.4.9 Lamp
10.4.10 md5sum
10.4.11 Metronome
10.4.12 Random Folder Advance Configuration
10.4.13 Stats
10.4.14 Stopwatch
10.4.15 Text Editor

10.1  Games

See also the Chip-8 emulator in section 10.3.3 .

10.1.1  Blackjack


PIC

Figure 10.1: Blackjack

Blackjack, a game played in casinos around the world, is now available in the palm of your hand! The rules are simple: try to get as close to 21 without going over or simply beat out the dealer for the best hand. Although this may not seem difficult, blackjack is a game renowned for the strategy involved. This version includes the ability to split, buy insurance, and double down.

For the full set of rules to the game, and other facinating information visit
http://www.blackjackinfo.com/blackjack-rules.php


Key

Action



Prev / Next / Scroll Forward / Scroll Backward

Enter betting amount

Select

Hit (Draw new card) / Select

Next

Stay (End hand)

Prev

Double down

Menu

Pause game and go to menu / Cancel


10.1.2  BrickMania


PIC

Figure 10.2: BrickMania

BrickMania is a clone of the classic game Breakout. The aim of the game is to destroy all the bricks by hitting them with the ball once or more. Sometimes a special item falls down when you destroy a brick. For a special item to take effect, you must catch it with the paddle. Look out for the bad ones.

Special items


Displayed Name

Description




N Normal

Returns paddle to normal.

D Die

Ball dies; lose a life.

L Life

Gain a life.

F Fire

Allows you to shoot bricks with paddle.

G Glue

Ball sticks to paddle each time it hits.

B Ball

Immediately fires another ball.

FL Flip

Flip left / right movement.



Key

Action



Prev / Next Scroll Backward / Scroll Forward

Moves the paddle

Select

Release the ball / Fire

Menu

Open menu / Quit


10.1.3  Bubbles


PIC

Figure 10.3: Bubbles

The goal of the game is to beat each level as quickly as possible by clearing the board of all bubbles. Bubbles are removed from the board when a cluster of three of more of the same type is formed. The game is over when any bubbles on the board extend below the bottom line. To make things more difficult, the entire board is shifted down every time a certain number of shots have been fired. Points are awarded depending on how quickly the level was completed.


Key

Action



Play

Pause game

Scroll Forward / Scroll Backward

Aim the bubble

Select

Fire bubble

Prev+Next

Save game

Menu

Exit to menu


10.1.4  Chessbox


PIC

Figure 10.4: Chessbox

Chessbox is a one-person chess game with computer artificial intelligence. The chess engine is a port of GNU Chess 2 by John Stanback.

It also works as a PGN file viewer. Instead of executing the game from the plugin menu, look for any file with .pgn extension in the file browser and execute it. Chessbox will show the list of matches included in the file and allow you to select the one you want to watch. After that, you can scroll back and forth through the moves of the game. If the menu is invoked while in the viewer, the user is allowed to select a new match from the same file or quit the game.

“Force play” while the computer is thinking will cause it to make its move immediately. If done while it’s your turn, the computer will move for you and flip the board so that you are playing from the other side. If you want, you can force play an entire game and watch the artificial intelligence fight against itself.

When you quit the game the current state will be saved and restored when you resume the game. The menu also allows the user to reload the last game saved, save the current position and start a new game without having to quit the game.

Keys


Key

Action



Menu, Play, Prev, Next

Move the cursor

Select

Pick up / Drop piece

Select+Next

Change level

Select+Play

Force play

Select+Menu

Show the menu


10.1.5  Chopper


PIC

Figure 10.5: Chopper

Navigate a cavernous maze without banging into walls, the ceiling, or the floor. How long can you fly your chopper?


Key

Action



Select

Make chopper fly

Menu

Enter menu


10.1.6  Dice

Dice is a simple dice rolling simulator. Select number and type of dice to roll in a menu and start by choosing “Roll Dice”. The result is shown as individual numbers as well as the total of the rolled dice.


Key

Action



Play

Roll dice again

Menu+Select

Quit


10.1.7  Doom


PIC

Figure 10.6: Doom

This is the famous Doom game.

Getting started

For the game to run you need .wad game files located in /.rockbox/doom/ on your player. Create the directory and save the following files there:

rockdoom.wad.
The Rockbox .wad, based on prboom.wad from prboom-2.2.6
Your wad files.
Copy all Doom wads you wish to play into that directory.

The needed files can be found at PluginDoom

To play addon wads create the addons directory within the doom directory. Place wad files in this directory. Currently doom only supports a maximum number of 10 addons.

A free alternative for Doom 2 is FreeDoom (http://freedoom.sourceforge.net). This can be used in place of doom2.wad, or it may be used as an addon in Doom, by placing it in the addons directory.

Menus
Rockdoom Menu.
The Rockdoom menu is shown when Doom is first launched. This is the only time it can be accessed (before starting the game). To re-adjust Rockdoom options, you will need to quit your current game and restart the plugin.
Main Menu.
The Doom plugin has a main menu, which is brought up before a game is started. It has the following entries:

Game. Select which (official) wad to launch
Addon. Select which unofficial addon wad to launch (From /.rockbox/doom/addons directory)
Demos. Select which demo file to play on game start
Options. Configure low-level Doom options
Play Game. Launch the wad/addon/Demo chosen

Options Menu.
This menu has the following options:

Sound. Enable or Disable sound in Doom
Set Keys. Change the game key configuration
Time Demo. Run a timed demo, to test game speed on a player (Only runs on Doom Shareware)
Player Bobbing. Enable or Disable player up/Down movement
Translucency. Enable or Disable sprite translucency (Fireballs, Plasma...)
Fake Contrast. Enable or Disable modified game lighting
Always Run. Make the player always run
Headsup Display. Show the player status when in fullscreen
Statusbar Always Red. Disable colour response statusbar

InGame Main Menu.
This menu can only be accessed from within a running game, and is displayed by flipping your Hold switch a couple of times

New Game. Start a new game
Options. In game options
Load Game. Load a saved game
Save Game. Save the current game
Quit. Quit the game

InGame Options Menu.
This menu has the folloing options:

End Game. Ends the current game
Messages. Enable or Disable in game messages
Screen Size. Shrink or Enlarge the displayed portion of the game
Gamma. Change the brightness (Gamma) of the game
Sound Volume. Change the sound, music and system volume

Note: In game music is not currently supported

Keys


Key

Action



Menu

Move Forward

Prev

Turn Left

Next

Turn Right

Play

Shoot

Menu

Open

Hold switch

InGame Menu

Select

Enter

Select

Change Weapon


Playing the game

After installation of the wad files is complete you can start the game. more description is needed

10.1.8  Flipit


PIC

Figure 10.7: Flipit

Flipping the colour of the token under the cursor also flips the tokens above, below, left and right of the cursor. The aim is to end up with a screen containing tokens of only one colour.


Key

Action



Menu / Play / Prev / Next

Move the cursor

Select

Flip

Select+Prev

Shuffle

Select+Play

Solve

Select+Next

Solve step by step

Select+Menu

Quit the game


10.1.9  Goban


PIC

Figure 10.8: Goban

Goban is a a plugin for playing, viewing and recording games of Go (also known as Weiqi, Baduk, Igo and Goe). It uses standard Smart Game Format (SGF) files for saving and loading games. You can find a short introduction to Go at http://senseis.xmp.net/?WhatIsGo and more information about SGF files can be read at http://senseis.xmp.net/?SmartGameFormat or the SGF specification at http://www.red-bean.com/sgf/.

This plugin can load all modern SGF files (file format 3 or 4) with few problems. It attempts to preserve SGF properties which it doesn’t understand, and most common SGF properties are handled fully. It is possible to view (and edit if you like) Kogo’s Joseki Dictionary (http://waterfire.us/joseki.htm) with this plugin, although the load and save times can be on the order of a minute or two on particularly slow devices. Large SGF files may stop audio playback for the duration of the plugin’s run in order to free up more memory and some very large SGF files will not even load on devices with little available memory.

Note: The plugin does NOT support SGF files with multiple games in one file. These are rare, but if you have one don’t even try it (the file will most likely be corrupted if you save over it). You have been warned.

The file "/sgf/gbn_def.sgf" is used by the plugin to store any unsaved changes in the most recently loaded game. This means that if you forget to save your changes, you should load "/sgf/gbn_def.sgf" immediately to offload the changes to another file. If you load another file first then your changes will be lost permanently. The "/sgf/gbn_def.sgf" file is also the file loaded if another is not selected.

The information panel which displays the current move number may also contain these markers:


Mark

Meaning



+

There are nodes after the current node in the SGF tree.

*

There are sibling variations which can be navigated to using the Next Variation menu option of the Context Menu.

C

There is a comment at the current node. It can be viewed/edited using the Add/Edit Comment menu option of the Context Menu.


Controls


Key

Action



Menu

Move cursor up

Play

Move cursor down

Prev

Move cursor left

Next

Move cursor right

Select

Play a move (or use a tool if play-mode has been changed).

Scroll Backward

Retreat one node in the game tree

Scroll Forward

Advance one node in the game tree

Long Select

Main Menu


Menus
Main Menu.
The main menu for game setup and access to other menus.

New. Create a new game with your choice of board size and handicaps.
Save. Save the current state of the game. It will be saved to "/sgf/gbn_def.sgf" unless otherwise set.
Save As. Save to a specified file.
Game Info. View and modify the metadata of the current game.
Playback Control. Control the playback of the current playlist and modify the volume of your player.
Zoom Level. Zoom in or out on the board. If you set the zoom level, it will be saved and used again the next time you open this plugin.
Options. Open the Options Menu.
Context Menu. Open the Context Menu which allows you to set play modes and other tools.
Quit. Leave the plugin. Any unsaved changes are saved to "/sgf/gbn_def.sgf".

Game Info.
The menu for modifying game info (metadata) of the current game. This information will be saved to the SGF file and can be viewed in almost all SGF readers.

Basic Info. Shows a quick view of the basic game metadata, if any has been set (otherwise does nothing). This option does not allow editing.
Time Limit. The time limit of the current game.
Overtime. The overtime settings of the current game.
Result. The result of the current game. This text must follow the format specified at http://www.red-bean.com/sgf/properties.html#RE to be read by other SGF readers. Some examples are B+R (Black wins by resignation), B+5.5 (Black wins by 5.5 points), W+T (White wins on Time).
Handicap. The handicap of the current game.
Komi. The komi of the current game (compensation to the white player for black having the first move).
Ruleset. The name of the ruleset in use for this game. The NZ and GOE rulesets include suicide as a legal move (for multi-stone suicide only); the rest do not.
Black Player. The name of the black player.
Black Rank. Black’s rank, in dan or kyu.
Black Team. The name of black’s team, if any.
White Player. The name of the white player.
White Rank. White’s rank, in dan or kyu.
White Team. The name of white’s team, if any.
Date. The date that this game took place. This text must follow the format specified at http://www.red-bean.com/sgf/properties.html#DT to be read by other SGF readers.
Event. The name of the event which this game was a part of, if any.
Place. The place that this game took place.
Round. If part of a tournament, the round number for this game.
Done. Return to the previous menu.

Options.
Customize the behavior of the plugin in certain ways.

Show Child Variations? Enable this to mark child variations on the board if there are more than one. Note: variations which don’t start with a move are not visible in this way.
Disable Idle Poweroff? Enable this if you do not want the player to turn off after a certain period of inactivity (depends on your global Rockbox settings).
Idle Autosave Time. Set the amount of idle time to wait before automatically saving any unsaved changes. These autosaves go to the file "/sgf/gbn_def.sgf" regardless of if you have loaded a game or used Save As to save the game before or not. Set to Off to disable this functionality completely.
Automatically Show Comments? If this is enabled and you navigate to a node containing game comments, they will automatically be displayed.

Context Menu.
The menu for choosing different play modes and tools, adding or editing comments, adding pass moves, or switching between sibling variations.

Play Mode. Play moves normally on the board. If there are child moves from the current node, this mode will let you follow variations by simply playing the first move in the sequence. Unless it is following a variation, this mode will not allow you to play illegal moves. This is the default mode before another is set after loading a game or creating a new one.
Add Black Mode. Add black stones to the board as desired. These stones are not moves and do not perform captures or count as ko threats.
Add White Mode. Add white stones to the board as desired. These stones are not moves and do not perform captures or count as ko threats.
Erase Stone Mode. Remove stones from the board as desired. These removed stones are not counted as captured, they are simply removed.
Pass. Play a single pass move. This does not change the mode of play.
Next Variation. If the game is at the first move in a variation, this will navigate to the next variation after the current one. This is the only way to reach variations which start with adding or removing stones, as you cannot follow them by ”playing” the same move.
Force Play Mode. The same as Play Mode except that this mode will allow you to play illegal moves such as retaking a ko immediately without a ko threat, suicide on rulesets which don’t allow it (including single stone suicide), and playing a move where there is already a stone.
Mark Mode. Add generic marks to the board, or remove them.
Circle Mode. Add circle marks to the board, or remove them.
Square Mode. Add square marks to the board, or remove them.
Triangle Mode. Add triangle marks to the board, or remove them.
Label Mode. Add one character labels to the board. Each label starts at the letter ’a’ and each subsequent application of a label will increment the letter. To remove a label, click on it until it cycles through the allowed letters and disappears.
Add/Edit Comment. Add or edit a comment at the current node.
Done. Go back to the previous screen.

10.1.10  Invadrox


PIC

Figure 10.9: Invadrox

Invadrox is a clone of the classic arcade game Space Invaders. Kill those pesky aliens before they get to you. Remember, they increase speed, drop down and reverse direction after every pass!


Key

Action



Prev

Move left

Next

Move right

Select

Fire

Menu

Quit


10.1.11  Jackpot


PIC

Figure 10.10: Jackpot

This is a jackpot slot machine game. At the beginning of the game you have 20$. Payouts are given when three matching symbols come up.


Key

Action



Select

Play

Menu

Exit the game


10.1.12  Jewels


PIC

Figure 10.11: Jewels

Jewels is a simple yet addicting game which involves swapping pairs of jewels in order to form connected segments of three or more of the same type.

The goal of the game is to score as many points as possible before running out of available moves. Higher points are awarded to larger combos. The game advances to the next level after every one hundred points and randomly clears several jewels.

In the mode puzzle the aim of the game is to connect the puzzles, by skilful swapping pairs of jewels.


Key

Action



Prev/Next/ Scroll Backward/Scroll Forward

Move the cursor around the jewels

Select

Select a jewel

Menu

Menu


10.1.13  MazezaM


PIC

Figure 10.12: MazezaM

The goal of this puzzle game is to escape a dungeon consisting of ten “mazezams”. These are rooms containing rows of blocks which can be shifted left or right. You can move the rows only by pushing them and if you move the rows carelessly, you will get stuck. You can have another go by selecting “retry level” from the menu, but this will cost you a life. You start the game with three lives. Luckily, there are checkpoints at levels four and eight.


Key

Action



Scroll Backward, Scroll Forward, Prev, Next

Move Character

Menu

Menu


10.1.14  Minesweeper


PIC

Figure 10.13: Minesweeper plugin

The classic game of minesweeper. The aim of the game is to uncover all of the squares on the board. If a mine is uncovered then the game is over. If a mine is not uncovered, then the number of mines adjacent to the current square is revealed. The aim is to use the information you are given to work out where the mines are and avoid them. When the player is certain that they know the location of a mine, it can be tagged to avoid accidentally “stepping” on it.


Key

Action



Menu / Play / Prev / Next

Move the cursor across the minefield

Scroll Forward / Scroll Backward

Scroll through the entire minefield

Select

Toggle flag on / off

Long Select

Reveal the contents of the current square

Select+Play

Display the current game status

Select+Menu

Exit the game


10.1.15  Pegbox


PIC

Figure 10.14: pegbox

To beat each level, you must destroy all of the pegs. If two like pegs are pushed into each other they disappear except for triangles which form a solid block and crosses which allow you to choose a replacement block.


Key

Action



In game


Menu, Play,

Prev, Next

to move around

Select+ Next

to choose peg

Select+ Prev

to restart level

Select+ Menu

to go up a level

Select+ Play

to quit


10.1.16  Pong


PIC

Figure 10.15: Pong

Pong is a simple two player “tennis game”. Whenever a player misses the ball the other scores.


Key

Action



Menu

Left player up

Prev

Left player down

Next

Right player up

Play

Right player down

Select

Quit


10.1.17  Reversi

This is a simple implementation of the Reversi game. The objective of the game is to have a majority of own coloured pieces showing at the end of the game. The game rules can be found in the internet.

You can choose to play manually (you place both the white and dark pieces) or to play against a (not very smart) robot.

10.1.18  Robotfindskitten


PIC

Figure 10.16: Robotfindskitten

In this game, you are robot (#). Your job is to find kitten. This task is complicated by the existence of various things which are not kitten. Robot must touch items to determine if they are kitten or not. The game ends when robotfindskitten.


Key

Action



Menu, Play, Prev, Next

Move robot

Select+Menu

Quit


10.1.19  Rockblox


PIC

Figure 10.17: Rockblox

Rockblox is a Rockbox version of the classic falling blocks game from Russia. The aim of the game is to make the falling blocks of different shapes form full rows. Whenever a row is completed, it will be cleared away, and you gain points. For every ten lines completed, the game level increases, making the blocks fall faster. If the pile of blocks reaches the ceiling, the game is over.


Key

Action



Select+Play

Restart game

Prev

Move left

Next

Move right

Play

Move down

Scroll Backward

Rotate anticlockwise

Scroll Forward / Menu

Rotate clockwise

Select

Drop

Hold switch

Pause

Menu+Select

Quit


10.1.20  Rockblox1d

Rockblox1d is a game for people who find rockblox too hard. In this version the second dimension is missing so the user only has to move the bricks down. No horizontal moving anymore and no need to rotate the brick!


Key

Action



Select

Move down faster

Menu+Select

Quit


10.1.21  Rocklife

This an implementation of J. H. Conway’s Game of Life (see http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life for a detailed description).

Rockbox can open files with a configuration description (.cells files). Just “play” such file and the game configuration stored in it will be loaded into this plugin.

A .cells file is a text file. A capital ‘O’ marks a live cell, a dot marks a dead cell, all other characters are ignored. Everything on a line starting with an exclamation sign (and including it) is a comment and is ignored.

10.1.22  Sliding Puzzle


PIC

Figure 10.18: Sliding puzzle

The classic sliding puzzle game. Rearrange the pieces so that you can see the whole picture, or switch to number tiles if you like it a little easier Includes one picture puzzle, but you can switch the puzzle picture to be the album art of the currently playing music track, if one exists (see section C). You can also use the sliding puzzle plugin as a viewer for supported image types, to turn your own pictures into a puzzle.

Key controls:


Key

Action



Prev / Next / Menu / Play

Move Tile

Select+Prev

Shuffle

Select+Next

Switch between pictures (default puzzle, album art, and your own image if launched via Open With), and numbered tiles

Select+Menu

Stop the game


10.1.23  Snake


PIC

Figure 10.19: Snake

This is the popular snake game. The aim is to grow your snake as large as possible by eating the dots that appear on the screen. The game will end when the snake touches either the borders of the screen or itself.


Key

Action



Menu/Play

Change levels (1 is slowest, 9 is fastest)

Select

Toggle Play/Pause


10.1.24  Snake 2


PIC

Figure 10.20: Snake 2 – The Snake Strikes Back

Another version of the Snake game. Move the snake around, and eat the apples that pop up on the screen. Each time an apple is eaten, the snake gets longer. The game ends when the snake hits a wall, or runs into itself.


Key

Action



In menu


Scroll Forward / Scroll Backward

Set game speed

Next / Prev

Select starting maze

Play

Select game type (A or B)

Select

Start the game



In game


Menu / Play / Prev / Next

Steer the snake

Select

Pause and resume the game

Select+Menu

Quit


In game A, the maze stays the same, in game B after an increasing number of apples eaten the maze is replaced by a new one.

10.1.25  Sokoban


PIC

Figure 10.21: Sokoban

The object of the game is to push boxes into their correct position in a crowded warehouse with a minimal number of pushes and moves. The boxes can only be pushed, never pulled, and only one can be pushed at a time.

Sokoban may be used as a viewer for viewing saved solutions and playing external level sets with the .sok extension. Level sets should be in the standard Sokoban text format or RLE (Run Length Encoded). For more information about the level format, see http://sokobano.de/wiki/index.php?title=Level_format


Key

Action



In game


Menu, Play, Prev, Next

Move the “sokoban” up, down, left, or right

Select+Menu

Menu

Select+Prev

Back to previous level

Select+Next

Go to next level

Select

Undo last movement

Select+Play

Redo previously undone move



Solution playback


Select

Pause/resume

Menu/Play

Increase/decrease playback speed

Prev/Next

Go backward/forward (while paused)

Select+Menu

Quit


Some places where can you can find level sets:

Note that some level sets may contain levels that are too large for this version of Sokoban and are unplayable as a result.

10.1.26  Solitaire


PIC

Figure 10.22: Klondike solitaire

This is the classic Klondike solitaire game for Rockbox. This is probably the best-known solitaire in the world. Many people do not even realize that other games exist. Though the name may not be familiar, the game itself certainly is. This is due in no small part to Microsoft’s inclusion of the the game in every version of Windows. Though popular, the odds of winning are rather low, perhaps one in thirty hands.

For the full set of rules to the game, and other interesting information visit http://www.solitairecentral.com/rules/klondike.html


Key

Action



Scroll Forward / Scroll Backward / Prev / Next

Move Cursor around.

Select

Select cards, move cards, reveal hidden cards...

Menu

If a card was selected – unselect it, else

Draw 3 new cards from the remains stack

Play

Put the card from the top of the remains stack on top of the cursor

Long Menu

Put the card under the cursor on one of the 4 final colour stacks.

Long Next

Put the card on top of the remains stack on one of the final colour stacks.

Menu + Select

Show menu


10.1.27  Spacerocks


PIC

Figure 10.23: Spacerocks

Spacerocks is a clone of the old arcade game Asteroids. The goal of the game is to blow up the asteroids and avoid being hit by them. Once in a while, a UFO will appear – shoot this for extra points.


Key

Action



Select

Shoot

Menu

Thrust

Scroll Backward/ Scroll Forward

Turn left/right

Play

Teleport

Select+Play

Pause game

Select+Menu

Quit


10.1.28  Star


PIC

Figure 10.24: Star game

This is a puzzle game. It is actually a rewrite of Star, a game written by CDK designed for the hp48 calculator.

Rules: Take all of the “o”s to go to the next level. You can switch control between the filled circle, which can take “o”s, and the filled square, which is used as a mobile wall to allow your filled circle to get to places on the screen it could not otherwise reach. The block cannot take “o”s.


Key

Action



Prev

Move Left

Next

Move Right

Menu

Move Up

Play

Move Down

Select

Switch between circle and square

Select+Prev

Previous level

Select+Play

Reset level

Select+Next

Next level

Select+Menu

Exit the game


10.1.29  Sudoku


PIC

Figure 10.25: Sudoku

Sudoku in Rockbox can act as both a plugin and a viewer. When starting Sudoku from the Browse Plugins menu, a random game will be generated automatically, and an estimate of its difficulty (very easy, easy, medium, hard or fiendish) will be displayed on the screen. New games can be generated from the Generate menu option. When “playing” an existing Sudoku game file from Rockbox’ file browser the plugin is invoked as viewer. The selected Sudoku will get loaded and you can start solving it. The sudoku games need to be stored as text files with the extension .ss as single file per game.

You can create and save your own grids under the New menu option. Enter the menu (as described in the key table below) when you have finished and enter the full path to save to including the .ss extension (e.g. /sudoku/new.ss).

The scratchpad

When you play Sudoku on paper most people like to mark numbers in cells that are possible candidates for the cells. This can be done with the scratchpad, shown as separate column. Change the number under the cursor to the number you want to put on the scratchpad and press the scratchpad button, the number will then be added. If the number was already on the scratchpad it will get removed again. The column is stored seperatly for every cell on the board. The stored values can be displayed inline as small dots by enabling the Show Markings settings.

Note: The scratchpad is not saved when saving the game.


Key

Action



Scroll Forward / Scroll Backward

Move the cursor

Select

Change cursor move direction

Prev / Next

Change number under the cursor

Long Prev / Next

Constantly changing the number under the cursor

Menu

Open Menu

Play

Add/Remove number to scratchpad

Menu Quit

Quit


Some places where can you can find .ss files:

10.1.30  Wormlet


PIC

Figure 10.26: Wormlet game

Wormlet is a multi-worm game on a multi-threaded multi-functional Rockbox console. You navigate a hungry little worm. Help your worm to find food and to avoid poisoned argh-tiles. The goal is to turn your tiny worm into a big worm for as long as possible.

Game controls:


Key

Action



Prev

Turn left

Next

Turn right

Menu

Turn Up

Play

Turn Down


The game

Use the control keys of your worm to navigate around obstacles and find food. Worms do not stop moving except when dead. Dead worms are no fun. Be careful as your worm will try to eat anything that you steer it across. It won’t distinguish whether it is edible or not.

Food.
The small square hollow pieces are food. Move the worm over a food tile to eat it. After eating the worm grows. Each time a piece of food has been eaten a new piece of food will pop up somewhere. Unfortunately for each new piece of food that appears two new “argh” pieces will appear, too.
Argh.
An “argh” is a black square poisoned piece - slightly bigger than food - that makes a worm say “Argh!” when run into. A worm that eats an “argh” is dead. Thus eating an “argh” must be avoided under any circumstances. “Arghs” have the annoying tendency to accumulate.
Worms.
Thou shall not eat worms. Neither other worms nor thyself. Eating worms is blasphemous cannibalism, not healthy and causes instant death. And it doesn’t help anyway: the other worm isn’t hurt by the bite. It will go on creeping happily and eat all the food you left on the table.
Walls.
Don’t crash into the walls. Walls are not edible. Crashing a worm against a wall causes it a headache it doesn’t survive.
Game over.
The game is over when all worms are dead. The longest worm wins the game.
Pause the game.
Press to pause the game. Press it again to resume the game.
Stop the game.
There are two ways to stop a running game.

The scoreboard

On the right side of the game field is the score board. For each worm it displays its status and its length. The top most entry displays the state of worm 1, the second worm 2 and the third worm 3. When a worm dies its entry on the score board turns black.

Len:
Here the current length of the worm is displayed. When a worm is eating food it grows by one pixel for each step it moves.
Hungry:
That’s the normal state of a worm. Worms are always hungry and want to eat. It is good to have a hungry worm since it means that your worm is alive. But it is better to get your worm growing.
Growing:
When a worm has eaten a piece of food it starts growing. For each step it moves over food it can grow by one pixel. One piece of food lasts for 7 steps. After your worm has moved 7 steps the food is used up. If another piece of food is eaten while growing it will increase the size of the worm for another 7 steps.
Crashed:
This indicates that a worm has crashed against a wall.
Argh:
If the score board entry displays “Argh!” it means the worm is dead because it tried to eat an “argh”. Until we can make the worm say “Argh!” it is your job to say “Argh!” aloud.
Wormed:
The worm tried to eat another worm or even itself. That’s why it is dead now. Making traps for other players with a worm is a good way to get them out of the game.

Hints

10.1.31  Xobox


PIC

Figure 10.27: Xobox

Xobox is a simple clone of the well known arcade game Qix. The aim of the game is to section off parts of the arena with your trail in order to remove that section from the game. Be careful not to get in the way of enemy balls because, if they hit you or your trail, you lose a life. To finish a level you have to section off more than 75%.


Key

Action



Menu, Play, Prev, Next

Move around the arena

Select

Pause

Select + Menu

Open menu


10.2  Demos

10.2.1  Bounce


PIC

Figure 10.28: Bounce

This demo is of the word “Rockbox” bouncing across the screen. There is also an analogue clock in the background. In Scroll mode the bouncing text is replaced by a different one scrolling from right to left.


Key

Action



Scroll Backward / Scroll Forward

Moves to next/previous option

Next / Prev

Increases/decreases option value

Select

Toggles Scroll mode

Menu

Exits bounce demo


Available options are:

Xdist/Ydist.
The distance to X axis and Y axis respectively
Xadd/Yadd.
How fast the code moves on the sine curve on each axis
Xsane/Ysane.
Changes the appearance of the bouncing.

10.2.2  Credits

The credits plugin scrolls the entire list of the names of all the Rockbox contributors after displaying the Rockbox logo and version. This plugin is called when selecting Version from the System section of the Rockbox main menu. Exit at any time by pressing Prev or Long Play.

10.2.3  Cube


PIC

Figure 10.29: Cube

This is a rotating cube screen saver in 3D.


Key

Action



Select+Play

Display at maximum frame rate

Play

Pause

Select+Menu

Cycle draw mode

Next / Prev

Select axis to adjust

Scroll Forward / Scroll Backward

Change speed/angle (speed can not be changed while paused)

Menu

Quit


10.2.4  Demystify


PIC

Figure 10.30: Demystify

Demystify is a screen saver like demo.


Key

Action



Next / Prev

Increase / decrease speed

Scroll Forward / Scroll Backward

Add / remove polygon

Menu

Quit


10.2.5  Fire


PIC

Figure 10.31: Fire

Fire is a demo displaying a fire effect.


Key

Action



Scroll Forward / Scroll Backward

Increase / decrease number of flames

Select

Toggle flame type

Next

Toggle moving flames

Menu

Quit


10.2.6  Fractals


PIC

Figure 10.32: Mandelbrot

This demonstration draws fractal images from the Mandelbrot set.


Key

Action



Direction keys

Move about the image

Scroll Forward

Zoom in

Scroll Backward

Zoom out

Select+Prev

Decrease iteration depth (less detail)

Select+Next

Increase iteration depth (more detail)

Select+Play

Reset and return to the default image

Select+Menu

Quit


10.2.7  Logo

Demo showing the Rockbox logo bouncing around the screen.


Key

Action



Next / Prev

Increase / decrease speed on the x-axis

Scroll Forward / Scroll Backward

Increase / decrease speed on the y-axis

Menu

Quit


10.2.8  Mosaique


PIC

Figure 10.33: Mosaique

This simple graphics demo draws a mosaic picture on the screen of the player. Press Menu to quit.

10.2.9  Oscilloscope


PIC

Figure 10.34: Oscilloscope

This demo shows the shape of the sound samples that make up the music being played. At faster speed rates, the player is less responsive to user input and music may start to skip.

Keys


Key

Action



Select+Play

Toggle filled / curve / plot

Select+Next

Toggle whether to scroll or not

Select+Prev

Toggle drawing orientation

Play

Pause the demo

Scroll Forward / Scroll Backward

Increase / decrease volume

Next / Prev

Increase / decrease speed

Select+Menu

Exit demo


10.2.10  PictureFlow


PIC

Figure 10.35: PictureFlow

PictureFlow provides a visualisation of your albums with their associated cover art. It is possible to start playback of the selected album from PictureFlow. Playback will start from the selected track. The PictureFlow plugin will continue to run while your tracks are played.

Requirements

PictureFlow uses both the album art (see section C) and database (see section 4.2) features of Rockbox. It is therefore important that these are working correctly before attempting to use PictureFlow. In addition, there are some other points of which to be aware:

Keys


Key

Action



Scroll Backward / Scroll Forward

Scroll through albums / track list

Select

Enter track list / Play album from selected track

Prev

Exit track list

Menu

Enter menu

Long Menu

Exit PictureFlow


Main Menu
Go to WPS.
Leave PictureFlow and enter the while playing screen.
Playback Control.
Control music playback from within the plugin.
Settings.
Enter the settings menu.
Return.
Exit menu.
Quit.
Exit PictureFlow plugin.

Settings Menu
Show FPS.
Displays frames per second on screen.
Spacing.
The distance between the front edges of the side slides, i.e. changes the degree of overlap of the side slides. A larger number means less overlap. Scales with zoom.
Centre margin.
The distance, in screen pixels, with zoom at 100, between the centre and side slides. Scales with zoom.
Number of slides.
Sets the number of slides at each side, including the centre slide. Therefore if set to 4, there will be 3 slides on the left, the centre slide, and then 3 slides on the right.
Zoom.
Changes the distance at which slides are rendered from the ”camera”.
Show album title.
Allows setting the album title to be shown above or below the cover art, or not at all.
Resize Covers.
Set whether to automatically resize the covers or to leave them at their original size.
Rebuild cache.
Rebuild the PictureFlow cache. This is needed in order for PictureFlow to pick up new albums, and may occasionally be needed if albums are removed.

10.2.11  Plasma


PIC

Figure 10.36: Plasma

Plasma is a demo displaying a 80’s style retro plasma effect.


Key

Action



Scroll Forward / Scroll Backward

Adjust frequency

Menu

Quit


10.2.12  Snow


PIC

Figure 10.37: Have you ever seen snow falling?

This demo replicates snow falling on your screen. If you love winter, you will love this demo. Or maybe not. Press Menu to quit.

10.2.13  Starfield


PIC

Figure 10.38: Starfield

Starfield simulation (like the classic screensaver).


Key

Action



Next / Prev

Increase / decrease number of stars

Scroll Forward / Scroll Backward

Increase / decrease speed

Menu

Quit


10.2.14  VU meter


PIC

Figure 10.39: VU-Meter

This is a VU meter, which displays the volume of the left and right audio channels. There are 3 types of meter selectable. The analogue meter is a classic needle style. The digital meter is modelled after LED volume displays, and the mini-meter option allows for the display of small meters in addition to the main display (as above). From the settings menu the decay time for the meter (its memory), the meter type and the meter scale can be changed.


Key

Action



Menu

Save settings and quit

Play

Help

Select

Settings

Scroll Forward

Raise Volume

Scroll Backward

Lower Volume


10.3  Viewers

Viewers are plugins which are associated with specific file extensions. They cannot be run directly but are started by “playing” the associated file. Viewers are stored in the /.rockbox/rocks/viewers/ directory.

Note: Some viewer plugins can only be used by selecting the Open With... option from the Context Menu (see section 4.1.2).


Viewer Plugin

Associated filetype(s) Context Menu only



BMP Viewer

.bmp

Shortcuts

.link

Chip-8 Emulator

.ch8

Frotz

.z1 - .z8

JPEG Viewer

.jpg, .jpeg

Lua scripting language

.lua

Midiplay

.mid, .midi

MPEG Player

.mpg, .mpeg, .mpv, .m2v

PNG viewer

.png

Rockboy

.gb, .gbc

Search

.m3u, .m3u8 x

Sort

.* x

Text Viewer

.txt, .*

VBRfix

.mp3 x

ZXBox

.tap, .tax, .sna, .z80


10.3.1  Shortcuts

The Shortcuts Plugin allows you to jump to places within the file browser without having to navigate there manually. The plugin works with .link files. A .link file is just a text file with every line containing the name of the file or the directory you want to quickly jump to. All names should be full absolute names, i.e. they should start with a /. Directory names should also end with a /.

How to create .link files

You can use your favourite text editor to create a .link file on the PC an then copy the file to the player. Or you can use the context menu on either a file or a directory in the file browser tree, and use the “Add to shortcuts” menu option. This will append a line with the full name of the file or the directory to the shortcuts.link file in the root directory of the player. (The file will be created if it does not exist yet.) You can later rename the automatically created shortcuts.link file or move it to another directory if you wish. Subsequent calls of the context menu will create it again.

How to use .link files, i.e. jump to desired places

To use a .link file just “play” it from the file browser. This will show you a list with the entries in the file. Selecting one of them will then exit the plugin and leave you within the directory selected, or with the file selected in the file browser. You can then play the file or do with it whatever you want. The file will not be “played” automatically.

If the .link file contains only one entry no list will be shown, you will directly jump to that location. The file shortcuts.link in the root directory is an exception. After “playing” it, the list will be shown even if the file contains just one entry.

If the list you are seeing is from shortcuts.link in the root directory, you can delete the selected entry by pressing Menu. Deleting entries from other .link files is not possible.

Advanced Usage

Placing the line “#Display last path segments=n” (where n is a number) in the beginning of a .link file will leave just the last n segments of the entries when they are shown. For example, if n is chosen to be 1, then the entry /MyMusic/collection/song.mp3 will be shown as song.mp3. This allows you to hide common path prefixes.

You can also provide a custom display name for each entry individually. To do so, append a tabulator character after the entry’s path followed by your custom name. That name will then be used for showing the entry. For example:

  /MyMusic/collection/song.mp3<TAB>My favourite song!

10.3.2  BMP viewer

This plugin opens .bmp files from the File Browser to display them using Rockbox’s greyscale library.

Note: When an audio file is playing the size of the image is limited as the decoding process needs to share memory with audio tracks. To be able to view a bigger file you may need to stop playback.


Key

Action



Menu / Play / Prev / Next

Move around in zoomed in image

Scroll Forward

Zoom in

Scroll Backward

Zoom out

Select+Next

Next bmp in directory

Select+Prev

Previous bmp in directory

Select+Menu

Show menu / Abort

Select+Play

Quit the viewer


The menu has the following entries.

Return.
Returns you to the image
Toggle Slideshow Mode.
Enables or disables the slideshow mode.
Change Slideshow Timeout.
You can set the timeout for the slideshow between 1 second and 20 seconds.
Show Playback Menu.
From the playback menu you can control the playback of the currently loaded playlist and change the volume of your player.
Quit.
Quits the viewer and returns to the File Browser.

10.3.3  Chip-8 Emulator

Chip8 is a kind of assembly language for a long-gone architecture. This plugin runs games written using the chip8 instructions. To start a game open a .ch8 file in the File Browser

There are lots of tiny Chip8 games (usually only about 256 bytes to a couple of KB) which were made popular by the HP48 calculator’s emulator for them. The original Chip8 had 64x32 pixel graphics, and the new superchip emulator supports 128x64 graphics.

The only problem is that they are based on a 4x4 keyboard, but since most games do not use all of the buttons, this can easily be worked around.

To do this, one may put a .c8k file with the same name as the original program which contains new key mappings (for BLINKY.ch8, one writes a BLINKY.c8k file). That .c8k file contains 16 characters describing the mapping from the Chip8 keyboard to the default key mapping (that way, several Chip8 keys can be pressed using only one Rockbox key). For example, a file containing the single line:

  0122458469ABCDEF

would correspond to the following non-default mappings:

3 2, 6 8, 7 4, 8 6.

The default keymappings are:


Chip8 Off 0 1 2 3 4 5 6 7 8 9 A B C D E F


















Key Menu Scroll Backward Prev Play Next Scroll Forward

Some places where can you can find .ch8 files:

10.3.4  Frotz

Frotz is a Z-Machine interpreter for playing Infocom’s interactive fiction games, and newer games using the same format. To start a game open a .z1 - .z8 file in the File Browser. Most modern games are in the .z5 or .z8 format but the older formats used by Infocom are supported.

Z-Machine games are text based and most depend heavily on typed commands. The virtual keyboard is used for text entry, both for typing entire lines and for typing single characters when the game requires single character input.

Sounds, pictures, colour and Unicode are not currently supported, but the interpreter informs the game of this and almost all games will adapt so that they are still playable. This port of Frotz attempts to be compliant with the Z-Machine Specification version 1.0.

Some places where you can find Z-Machine games, and information about interactive fiction:


Key

Action



Play

Display keyboard to enter text

Select

Press enter

Menu

Open Frotz menu (not available at MORE prompts)


10.3.5  JPEG viewer

This plugin opens .jpeg files from the File Browser to display them using Rockbox’s greyscale library.

Note: When an audio file is playing the size of the image is limited as the decoding process needs to share memory with audio tracks. To be able to view a bigger file you may need to stop playback.


Key

Action



Menu / Play / Prev / Next

Move around in zoomed in image

Scroll Forward

Zoom in

Scroll Backward

Zoom out

Select+Next

Next jpeg in directory

Select+Prev

Previous jpeg in directory

Select+Menu

Show menu / Abort

Select+Play

Quit the viewer


The menu has the following entries.

Return.
Returns you to the image
Toggle Slideshow Mode.
Enables or disables the slideshow mode.
Change Slideshow Timeout.
You can set the timeout for the slideshow between 1 second and 20 seconds.
Show Playback Menu.
From the playback menu you can control the playback of the currently loaded playlist and change the volume of your player.
Quit.
Quits the viewer and returns to the File Browser.

Note: Progressive scan and other unusual JPEG files are not supported, and will result in various “unsupported xx” messages. Processing could also fail if the image is too big to decode which will be explained by a respective message.

10.3.6  Lua scripting language

To quote from the Lua website (http://www.lua.org), Lua is a “powerful, fast, lightweight, embeddable scripting language”. Select a .lua file in the File Browser to run it. For more information on programming in Lua, please see http://www.lua.org/manual/5.1/ and http://www.lua.org/pil/.

There are a few exceptions/additions to the Lua support in Rockbox:

No floating point support.
The number type in Lua is usually float, however in the Rockbox implementation it is integer.
Non-supported libraries.
The coroutine, debug and math libraries are not supported.
Partially-supported libraries.
The os and package libraries are only partially supported.
Additional libraries.
The bitlib library is integrated to support bitwise operators. See http://luaforge.net/projects/bitlib and http://lua-users.org/wiki/BitwiseOperators.

Documentation of the API is still a work in progress, and the API itself is not finalised. For the latest information, see PluginLua.

Note: Please note that if a script does not provide a way to exit, then the only way to exit will be to reset the player.

10.3.7  Midiplay

To get MIDI file playback, a patchset is required. This file contains the instruments required to synthesize the music. A sample patchset is available through the wiki at PluginMidiPlay, and needs to be extracted to the .rockbox directory in the root of your player. There should now be a /.rockbox/patchset/ directory, with the patchset directory containing several .pat files and two .cfg files. Just select a MIDI file with either the .mid or .midi extension in the file browser to start playback.

Note: Currently playing MIDI files is still in its early stages and you might experience “Buffer miss!” with many files, except simple ones.


Key

Action



Scroll Forward/ Scroll Backward

Volume up/ Volume down

Next/ Prev

Skip 3 seconds forward/ backward

Play

Pause/Resume playback

Select+Menu

Stop playback and quit


10.3.8  MPEG Player

The Mpeg Player is a video player plugin capable of playing back MPEG-1 and MPEG-2 video streams with MPEG audio multiplexed into .mpg files.

To play a video file, you just select it in the Rockbox File Browser. If your file does not have the .mpg extension but is encoded in the supported format, you will need to use the Open With... context menu option and choose mpegplayer.


Key

Action



Play

Pause / Resume

Long Play

Stop

Scroll Forward / Scroll Backward

Adjust volume up / down

Prev / Next

Rewind / Fast Forward

Menu

Open the MPEG Player menu


When a video file is selected, the start Menu will be displayed, unless it is disabled via the option ”start menu” (see below). In the latter case the video will start playing immediately - unless a resume point is found, in which case the resume menu is presented.

Start Menu

Play from beginning
Resume information is discarded and the video plays from the start.
Resume time (min): x.x
Resume video playback at stored resume time x.x (start of the video if no resume time is found).
Set start time (min)
A preview screen is presented consisting of a thumbnail preview and a progress bar where the user can select a start time by ’seeking’ through the video. The video playback is started by pressing the select button.
Quit mpegplayer
Exit the plugin.

Resume Menu

Yes (min): x.x
Resume video playback at stored resume time x.x.
No
Play video from the beginning.

Main Menu

Display Options
Opens ”Display Options” submenu - see below.
Start Menu
(default: on) Enable/disable the start menu.
Clear all resumes: x
Discard all x resume points.
Quit mpegplayer
Exit the plugin.

Display Options Menu

Dithering
(default: off) Prevent banding effects in gradients by blending of colours. (only available on Sansa e200, Sansa c200 and Gigabeat F/X)
Show FPS
(default: off) This option displays (once a second - if your video is full-screen this means it will get overwritten by the video and appear to flash once per second) the average number of frames decoded per second, the total number of frames skipped (see the Skip Frames option), the current time (in 100Hz ticks) and the time the current frame is due to be displayed.
Limit FPS
(default: on) With this option disabled, mpegplayer will display the video as fast as it can. Useful for benchmarking.
Skip frames
(default: on) This option causes mpegplayer to attempt to maintain realtime playback by skipping the display of frames - but these frames are still decoded. Disabling this option can cause loss of A/V sync.

See this page in the Rockbox wiki for information on how to encode your videos to the supported format. PluginMpegplayer

10.3.9  Search

This plugin can be used on playlists. It searches through the playlist that it opened on looking for any occurrences of the string entered by the user. The results of this search are saved to a new playlist, search_results.m3u, within the same directory as the original playlist.

10.3.10  Sort

This plugin takes a file and sorts it in ascending alphabetical order. Case is ignored. This is useful for ordering playlists generated by the Create Playlist menu option (see section 5.8).

10.3.11  Text Viewer

This is a Viewer for text files with word wrap. Just open a .txt file to display it. The text viewer features controls to handle various styles of text formatting, has top-of-file and bottom-of-file buttons. You can view files without a .txt extension by using Open with from the Context Menu (see section 4.1.2).


Key

Action



Scroll Backward

Scroll-up

Scroll Forward

Scroll-down

Prev

Top of file (Narrow mode) / One screen left (Wide mode)

Next

Bottom of file (Narrow mode) / One screen right (Wide mode)

Play

Toggle autoscroll

Menu

Enter menu

Menu

Exit text viewer


The Viewer’s Menu
Quit
Exits the plugin.
Viewer Options
Encoding
sets the codepage in the text viewer. Available settings: UTF-8 (Unicode), BIG5 (Traditional Chinese), KSX-1001 (Korean), GB-2312 (Simple Chinese), SJIS (Japanese), CP1250 (Central European), ISO-8859-2 (Latin Extended), ISO-8859-9 (Turkish), ISO-8859-6 (Arabic), ISO-8859-11 (Thai), CP1251 (Cyrillic), ISO-8859-8 (Hebrew), ISO-8859-7 (Greek), ISO-8859-1 (Latin 1). This setting only applies to the plugin and is independent from the Default Codepage setting (see section 8.4).
Word Wrap
toggles between Wrap and Chop.
Off (Chop Words)
breaks lines at white space or hyphen.
On
breaks lines at the maximum column limit.
Line Mode
cycles through Normal, Join and Expand and Reflow Lines.
Reflow Lines
justifies the text fully.
Expand
adds a blank line. Useful for making the paragraphs clearer in some book style text files.
Join
joins lines. Useful for adopting the orphans that occur with e-mail style (i.e. pre-wrapped) text files.
Normal
breaks lines at newline characters.
Wide View
toggles between Narrow and Wide.
Yes
sets maximum column to 114. Useful for navigating large files. (Currently, Wide and Join cannot be selected together.)
No (Narrow)
sets maximum column to the screen width.
Show Scrollbar
toggles scrollbar for the current View mode. If the file fits on one screen, there is no scrollbar and toggling this setting has no effect.
On
has a scrollbar by default, until toggled.
Off
has no scrollbar by default, until toggled.
Overlap Pages
toggles between Normal and Overlap.
Yes
tells page-down/page-up to retain one line from previous screen.
No
sets page-down/page-up to one full screen.
Scroll Mode
controls the function of the “Scroll-up” and “Scroll-down” buttons.
Scroll by Line
Scroll by Page
Auto-scroll Speed
controls the speed of auto-scrolling in number of lines per scroll step, available options are 1 to 10 lines. As an example, a setting of 4 will scroll up the text four lines per second.
Show Playback Menu
controls the playback of the currently loaded playlist and change the volume of your player without leaving the plugin.
Return
to the text view.

Note: The text viewer automatically saves its settings and also stores the current position in the viewed text files (up to the last 46 files).

Compatibility

10.3.12  Theme Remove

This plugin offers a way to remove a theme. Open the Context Menu (see section 4.1.2) upon a theme.cfg file and select Open With... theme_remove. Some files are not removed regardless of the Remove Options such as rockbox_default.wps and the font file currently in use.

Theme Remove menu
Remove Theme.
Selecting this will delete the files specified in the Remove Options. After a theme has been succesfully removed, a log message is displayed listing which items have been deleted and which are being kept. Exit this screen by pressing any key. A file called theme_remove_log.txt is created in the root directory of your player listing all the changes.
Remove Options.
This menu specifies which items are removed if Remove Theme is selected in the menu.

One of the following options can be chosen for each setting.

Ask for Removal.
Selecting this option brings up a dialogue with two options: press Play to confirm deletion or any other key to cancel.
Remove if not Used.
Selecting this option will remove the file automatically, if it is not used by another theme in the theme directory and not currently used.
Never Remove.
Selecting this option will always skip deleting the file.
Always Remove.
Selecting this option will remove the file with no regard to whether it’s used by another theme or not.
Font.
Specifies how the .fnt file belonging to a theme .cfg file is handled. If this option is set to Remove if not Used, the fonts came from rockbox-fonts.zip will not be removed as themes may depend on those fonts.
WPS.
Specifies how the .wps file belonging to a theme .cfg file is handled.
Statusbar Skin.
Specifies how the .sbs file belonging to a theme .cfg file is handled.
Backdrop.
Specifies how the backdrop .bmp file belonging to a theme .cfg file is handled.
Iconset.
Specifies how the iconset .bmp file belonging to a theme .cfg file is handled.
Viewers Iconset.
Specifies how the viewers iconset .bmp file belonging to a theme .cfg file is handled.
Create Log File.
Setting this to No prevents the log file from being created.
Quit.
Exits this plugin.

10.3.13  VBRfix

This function scans a VBR (Variable Bitrate) MP3 file and updates/creates the Xing VBR header. The Xing header contains information about the VBR stream used to calculate average bit rate, time information and to more accurately fwd/rew in the stream. This function is especially useful when the playback of a file skips, fwd/rew does not work correctly or the time display is incorrect. To use this plugin, open the Context Menu (see section 4.1.2) upon a .mp3 file and select Open With… vbrfix.

Note: VBRfix can only run when music is turned off (since it uses the same memory as the player) and can take a while to complete if run on big files.

10.3.14  ZXBox


PIC

Figure 10.40: ZXBox

ZXBox is a port of the “Spectemu” ZX Spectrum 48k emulator for Rockbox (Zproject’s homepage). To start a game open a tape file or snapshot saved as .tap, .tzx, .z80 or .sna in the file browser.

Note: As ZXBox is a 48k emulator only loading of 48k z80 snapshots is possible.

Default keys

The emulator is set up for 5 different buttons: Up, Down, Left, Right and Jump/Fire. Each one of these can be mapped to one key of the Spectrum Keyboard or they can be used like a “Kempston” joystick. Per default the buttons, including an additional but fixed menu button, are assigned as follows:


Key

Action



Menu/Play/ Prev/Next

Directional movement

Select

Jump/Fire

Hold switch

Open ZXBox menu


ZXBox menu
Vkeyboard.
This is a virtual keyboard representing the Spectrum keyboard. Controls are the same as in standard Rockbox, but you just press one key instead of entering a phrase.
Play/Pause Tape.
Toggles playing of the tape (if it is loaded).
Save Quick Snapshot.
Saves snapshot into /.rockbox/zxboxq.z80.
Load Quick Snapshot.
Loads snapshot from /.rockbox/zxboxq.z80.
Save Snapshot.
Saves a snapshot of the current state. You would enter the full path and desired name - for example /games/zx/snapshots/chuckie.sna. The snapshot format will be chosen after the extension you specified, per default .z80 will be taken in case you leave it open.
Toggle Fast Mode.
Toggles fastest possible emulation speed (no sound, maximum frameskip etc.). This is Useful when loading tapes with some specific loaders.
Options.
Map Keys To Kempston.
Controls whether the player’s buttons should simulate a “Kempston” joystick or some assigned keys of the Spectrum keyboard.
Display Speed.
Toggle displaying the emulation speed (in percent).
Invert Colours.
Inverts the Spectum colour palette, sometimes helps visibility.
Frameskip
Sets the number of frames to skip before displaying one. With zero frameskip ZXBox tries to display 50 frames per second.
Sound.
Turns sound on or off.
Volume.
Controls volume of sound output.
Predefined Keymap
Select one of the predefined keymaps. For example 2w90z means: map ZXBox’s Up to 2, Down to w, Left to 9, Right to 0 and Jump/Fire to z. This example keymap is used in the “Chuckie Egg” game.
Custom Keymap
This menu allows you to map one of the Spectrum keys accessible through the plugin’s virtual keyboard to each one of the buttons.
Quit.
Quits the emulator..

Hacking graphics

Due to ZXBox’s simple (but fast) scaling to the screen by dropping lines and columns some games can become unplayable. It is possible to hack graphics to make them better visible with the help of an utility such as the “Spectrum Graphics Editor”. Useful tools can be found at the “World of Spectrum” site (http://www.worldofspectrum.org/utilities.html).

10.4  Applications

10.4.1  Alarm Clock

This plugin is an alarm clock, which resumes a paused song at a given time.

Key configuration


Key

Action



Prev / Next

Switch between hours/minutes selection

Scroll Forward / Scroll Backward

Increase/Decrease hours/minutes

Select

Set the alarm

Menu+ Select

Exit


Setting an alarm

First select a track and play it, then pause the track and launch the “alarmclock” plugin. Enter a 24h-time (e.g. 13:58) and set the alarm. Music playback will resume when the set time is reached.

10.4.2  Battery Benchmark

The Battery Benchmark plugin enables you to test your battery’s performance whilst using your player normally. Results can be submitted to the BatteryRuntime wiki page.

How it works

Once loaded, Battery Benchmark runs in the background recording various information about your battery to memory. A new point is written to memory every minute. Every time the disk is accessed for any reason (such as refilling the audio buffer, opening a directory or entering USB mode etc.) then the information in memory is written to disk. Once the memory becomes full (after many hours), then the data are written to disk anyway. This is done so that the data are not biased by excessive additional disk accesses. The file is written to the root directory of your player and is called battery_bench.txt. The plugin will continue to log info until:

Benchmarks can be resumed if you accidentally load a plugin, or turn off your player, so long as the log file battery_bench.txt is not deleted.

Information explained

At the top of the battery_bench.txt file is various information on how to use the plugin, followed by the data themselves.

Time
This column reports the total time of operation of the player. It is not the time that you started the plug-in. If you have your player on for 5 minutes and then start the plugin, it will start measuring from 5 minutes.
Seconds
The same as Time, except measured in seconds.
Level
The percent level of the battery estimated by Rockbox, and not the actual battery level. The actual battery level can be seen from the Voltage column
Time Left
This shows the time remaining until the battery is empty, again as estimated by Rockbox.
Voltage
The battery voltage in mV at the moment the measurement was taken.
C
This stands for Charger. An ”A” in that column shows if the power adapter was attached to the unit at the time of the measurement.
U
USB powered. Only for targets that support this. A ”U” will indicate if the unit was using the USB port for power at the time of the measurement.

Usage

The log file can be used to tell you how long the battery lasted (with some limitations, see below), but it is most useful for graphing discharge curves in order to improve Rockbox’s estimation of battery level and time remaining. The battery log (battery_bench.txt) is in CSV format (comma separated variables) and thus can be easily imported into a spreadsheet or similar program.

Limitations

As Battery Benchmark needs to write the data held in memory to disk in order to save them, it is possible that should Rockbox shut down due to low battery then there will not be enough power remaining to write the data to disk. Therefore all measurements since the previous save will be lost.

10.4.3  Calculator


PIC

Figure 10.41: Calculator

This is a simple scientific calculator for use on the player. It works like a standard calculator. Pressing the “1st” and “2nd” buttons will toggle between other available math functions.


Key

Action



Prev / Next / Scroll Forward / Scroll Backward

Move around the keypad

Select

Select a button

Play

Calculate

Menu

Quit


10.4.4  Calendar


PIC

Figure 10.42: Calendar

This is a small and simple calendar application with memo saving function. Dots indicate dates with memos. The available memo types are: one off, yearly, monthly, and weekly memos.

You can select what day is first day of week by the setting First Day of Week in the menu.


Key

Action



Prev / Next / Scroll Forward / Scroll Backward

Move the selector

Select

Show memos for the selected day

Play / Menu

Previous / Next month

Menu + Select

Quit


10.4.5  Chess Clock


PIC

Figure 10.43: Chess Clock

The chess clock plugin is designed to simulate a chess clock, but it can be used in any kind of game with up to ten players.

Setup


Key

Action



Scroll Backward / Scroll Forward

Increase / decrease displayed Value

Select

Move to next screen

Menu

Move to previous screen


While playing

The number of the current player is displayed on the top line. The time below is the time remaining for that round (and possibly also the total time left if different).

Keys are as follows:


Key

Action



Play

Exit plugin

Prev

Restart round for the current player

Select

Pause the time (press again to continue)

Scroll Backward

Switch to next player

Scroll Forward

Switch to previous player

Menu

Open menu (Select to select.)


From the menu it is possible to delete a player, modify the round time for the current player or set the total time for the game. When the round time is up for a player the message “ROUND UP!” is shown (press NEXT to continue). When the total time is up for a player the message “TIME UP!”is shown. The player will then be removed from the timer.

10.4.6  Clock


PIC

Figure 10.44: Clock

This is a fully featured analogue and digital clock plugin.

Key configuration


Key

Action



Prev / Next

Cycle through modes

Scroll Forward / Scroll Backward

Cycle through skins

Menu

Main Menu

Select

Start / Stop Counter

Long Select

Reset Counter

Menu+ Select

Save Settings (if enabled) and Exit


Clock Menu

View Clock
Exits the menu and returns to the current clock mode display.
Mode Selector
Opens a menu from which you can select a clock mode to view.
Counter Settings
Opens a menu from which you can adjust settings pertaining to the counter.
Mode Settings
Opens a menu from which you can adjust settings pertaining to the current clock mode (analog, digital, binary).
General Settings
Reset Settings
Reset all settings to their default values.
Save Settings
Save all settings to disk.
Show Counter
Toggle Counter display.
Save
Choose whether to disable automatic saving, saving to disk on exit, or saving to disk every settings change.
Backlight
Choose whether to disable the backlight, use the user’s timeout setting, or keep the backlight on.
Idle Poweroff
Toggle Idle Poweroff.

Note: This setting is not saved to disk.

Help
Opens a brief help screen with key mappings and functionality.
Credits
Displays a credits roll.
Analog mode

Small, round, analog clock is displayed in the middle of the LCD. Time readout, if enabled, is displayed at the upper left. If Time readout is in 12-hour (“12h”) mode, AM or PM will be displayed at the upper right. The Date readout, if enabled, is displayed at the lower left. The Counter, if enabled, is displayed at the lower right. The second hand, if enabled, is displayed along with the hour and minute hands. Digit display, if enabled, places “12”, “3”, “6”, and “9” around the face of the clock in their respective positions.

Digital mode

An imitation of an LCD, this mode shows a Clock comprised of digital “segments”. The Date readout, if enabled, is displayed at the bottom, center. The Second readout, if in “Text” mode, is displayed at the top, center; if in “Bar” mode, is displayed as a progress bar at the top of the LCD; if in “Invert” mode, will invert the LCD left-to-right as the seconds pass (a fully-inverted LCD means the entire minute has passed). The Counter, if displayed, is shown at the upper left. The Blinking Colon, if enabled, blinks the colon once every second. 12-hour mode, if enabled, will display the time in a 12-hour format.

LCD mode

Based on the Digital Mode, the LCD mode is another imitation of an LCD. The settings available in this mode are exactly the same as Digital Mode, but they are independent of Digital Mode. For example, you can have the Date Readout enabled in Digital Mode and disabled in LCD Mode.

Fullscreen

A Fullscreen clock is displayed. Show Border, if enabled, will draw a small box at every hour position (1 to 12 inclusive). Invert Seconds, if enabled, will invert the LCD as the seconds pass. Second Hand, if enabled, will draw a second hand among the hour and minute hands.

Binary mode

This mode shows a Binary clock. The hour is displayed on the top line, the minute is displayed on the middle line, and the seconds are on the last line. Circle mode, if enabled, draws empty and full circles, instead of zeros and ones. For help on reading binary, please visit: http://en.wikipedia.org/wiki/Binary_numeral_system

Plain mode

This mode shows a “plain” clock in large text that takes up nearly the whole LCD.

10.4.7  Disk Tidy

Disk Tidy deletes junk files left behind by Windows, Linux or OS X after a USB connection. Select the OS’s files you want to delete in the ’Files to Clean’ menu and select ’Start Cleaning’ to begin to process. The settings are stored in .rockbox/rocks/apps/disktidy.config, in a plain text file that is user-modifiable to allow more entries to be added.

Available Options
All
selects all Linux, OS X, and Windows files.
None
deselects all file options.
Linux
selects Linux files. Default files are .dolphinview, .d3lphinview, and .Trash-*/.
Windows
selects Windows files. Default files are Thumbs.db, RECYCLE.BIN, Desktop.ini, /Recycled and /System Volume Information.
Mac
selects OS X files. Default files are ._*, .DS_Store and /.Trashes.
Other
selects additional files added in by the user.


Key

Action



Prev or Long Play

Exit / Abort


10.4.8  Keybox

Keybox is an encrypted password storage using the “Tiny Encryption Algorithm” with a key derived using md5.

Using Keybox

To get started, start up the plugin and select Enter Keybox. The first time you enter Keybox you will be prompted for a master password and for confirmation of the master password. The master password is the password that you must use to access your stored passwords.

Once inside, enter the context menu by pressing Long Select. From the context menu you can create new entries, delete entries and edit entries. Each entry has a “title”, a “user name” and a “password”.

Selecting Reset Keybox from the main menu will delete the current list of passwords and a new, empty list will be created the next time you select Enter Keybox after prompting for a new master password. Entries are automatically saved when the plugin is exited.

10.4.9  Lamp

Lamp is a simple plugin to use your player as a lamp (flashlight, torch). You get an empty screen with maximum brightness.


Key

Action



Long Play

Quit


10.4.10  md5sum

Open a file, a directory or just launch it from the plugin menu to create an md5sum of the file, the directory’s contents or the whole filesystem. If the file’s extension is .md5 or .md5sum, it will check the md5 sums in the file instead. If the file’s extension is .md5list it will compute md5 sums for all the files listed.

10.4.11  Metronome

This plugin can be used as a metronome to keep time during music practice. Adjust the tempo through the interface or by tapping it out on the appropriate button.


Key

Action



Menu

Exit plugin

Play

Start / Stop

Select

Tap tempo

Prev / Next

Adjust tempo

Scroll Forward / Scroll Backward

Adjust volume


10.4.12  Random Folder Advance Configuration

This plugin is used to configure the folders which will be considered when the Auto-Change Directory feature is set to Random.

Menu
Generate Folder List
Generates a list of all folders found on the player. You can filter the directories which are scanned by creating a file called
/.rockbox/folder_advance_dir.txt. Only the directories in this file and any contained directories will be scanned. You can have up to 10 directories ignored by the scan by placing a minus sign before them in the list (i.e. -/CDs will cause everything in the /CDs directory to be ignored.). If you just want /CDs to be ignored but want to include the folders within it you need to have both -/CDs and CDs as entries.
Edit Folder List
Enter the folder list editor
Export List To Textfile
Exports the list to /.rockbox/folder_advance_list.txt
Import List From Textfile
Imports the list from /.rockbox/folder_advance_list.txt
Play Shuffled
Starts playback with the selected directories in random order. Tracks within a directory will be played in normal order. The plugin will exit after starting playback.
Quit

Folder List Editor Keys


Key

Action



Select or Next

Delete selected folder

Long Select

Bring up the context menu which allows you to remove the selected folder or it’s entire folder tree

Prev or Long Play

Exit


10.4.13  Stats


PIC

Figure 10.45: The stats-plugin

The stats-plugin simply counts the number of files, music files and directories on your player. Press Menu to abort counting and exit the plugin. Press it again to quit after counting has finished.

10.4.14  Stopwatch


PIC

Figure 10.46: Stopwatch

A simple stopwatch program with support for saving times.


Key

Action



Menu

Quit Plugin

Select

Start / stop

Prev

Reset timer (only when timer is stopped)

Next

Take lap time

Scroll Forward / Scroll Backward

Scroll through lap times


10.4.15  Text Editor

This plugin allows you to view and edit simple text documents on your DAP. You can view files by using Open with from the Context Menu (see section 4.1.2).

Usage

If you start the Text Editor from the plugin browser you will be greeted with a blank screen. When started from the Open with menu item your file should be shown on the screen. You can now edit the file. The Text Editor is line based. This means you can edit one line at a time using the Virtual Keyboard (see section 4.1.3).

Note: When you have not changed the file the Text Editor will quit immediately.


Key

Action



Select or Next

Edit Line / Select Character

Prev or Long Play

Exit / Abort Editing

Menu

Show Item Menu

Long Select

Delete Line