Application:VBA

=VisualBoyAdvance= VisualBoyAdvance (commonly abbreviated as VBA) is an emulator of the Game Boy, Game Boy Color, and Game Boy Advance handheld game consoles sold by Nintendo.

Credit
Ported by Will Dietz Jan 2010. Thanks to #webos-internals for their feedback throughout testing! Icon created by Austin (Used with Permission)

License
All source is under the GPLv2 license. The original source code is available here

And the latest VBA for webOS source is available on git here

Donate
Lots of work has gone into making this a great game for you to enjoy!

If you like it please consider purchasing the app App Catalog. A percentage of the proceeds go to WebOS Internals.

Alternatively you might wish to donate. See official thread for the paypal link if you're interested.

Installing VBA
VBA is available in both the official app catalog as well as for *FREE* in preware. Both versions are identical other than packaging.

To purchase this app, just go here: App Catalog.

To get VBA for Free: Install Preware, and then launch it. Click on "Available Packages" then "Applications, or "Available Applications" then "All" depending on the Preware preferences you have chosen. Now type in "visualb" (no quotes). VisualBoyAdvance should show up. If not, make sure your feeds are up to date. Click on VBA and then click install.

As of Version 1.2.X VBA requires WebOS 1.4.5 and up!!!

Now you are ready to add ROMs(games)!

Support
For support, please:
 * Check this wiki for information
 * Check the official VBA thread, and post if you want to. This way your problems are something others can see (and knowledgeable users can help when I'm not available).
 * Email webos@wdtz.org

Rom Availability
Many games are available for VBA. Sources of free open source and free homebrew roms are listed at the end of this article.

There exist sources of copyright game ROMS on the interent which webos-internals will not link to. There also exist explanations of how to copy roms you own into files which VBA can use. Those topics are outside the scope of this article.

ROM File definitions
VBA ROMs extensions indicate what device is being emulated. There are three valid extensions:
 * .gba (Game Boy Advance)
 * .gbc (Game Boy Color)
 * .gb (Game Boy)

If you find a ROM image which has a ".bin" extension just rename it to the proper extension (for example, rename a gameboy advance game to end with .gba without quotes).

Installing ROMS to the device
Once you have installed VBA on your Pre, click on it from the launcher to see short instructions on how to install ROMs, which we'll explain in more detail here.

Now connect your Pre to your computer via USB mode. Once the Pre shows up on your computer, open it. You now should be at the "root" of your Pre's storage. If you look at the folders in the root, there should be a few including the "wallpapers", and "ringtones" folders. Create a folder called "vba" (no caps). Click on that and inside that create a folder called "roms" (again, no caps). Copy the ROMs from your computer and move them here. DO NOT put the ROMs (.gb, .gbc, .gba) in folders within the "roms" folder.

VBA cannot create these folders for you due to the 1.4.5 fstab bug.

Notes:
VBA can also handle rom files stored inside a zip files.

Controls
To select a rom, just tap on it in the rom selector. Note that if you have more roms than fit on the screen, simply scroll to them. Hit a letter key to jump to that letter in the rom list (useful when you have lots of roms)

These are the current controls (while playing):

Instructions
VBA also allows you to customize the controls to fit what you find most useful!

To start customizing, while running a game, hit '=' (orange+p), or '?' (orange+n).

Then follow the on-screen instructions, hitting the keys you want the various buttons bound to.

To stop the binding and cancel, hit '=' or '?' again.

Note Due to the pre's keyboard limitations, some keys cannot be detected when pressed down at same time (j/k is an example of such a pair). Keep this in mind, it is not a bug in VBA.

Community-suggested bindings
If you have a binding you think is great, please share it here!

Alternate D-Pad position: Up-R, Down-F, Left-D, Right-G. Since there is a small bump on the F key, you may find it easier to know where your fingers are on the keyboard this way.

For playing Fire Emblem one-handed in Landscape mode: Up-G, Down-F, Left-R, Right-C, A-X, B-D. For Fire Emblem and other strategy games (and some RPGs) you can play with one hand since there's no need to use the D-pad and the action buttons at the same time.

Skins
VBA also supports skins! Shipped by default (as of this writing) are skins from VincentLaw, zsoc, nights0223 and crzisme.

Skins are stored with the app, but if you want to add more from the community, put them in /vba/skins.

Each skin has a folder containing two files:
 * controller.png
 * controller.cfg

For an idea of what controller.cfg should contain, look at the other controller.cfg files, it should be mostly self-explanatory. Hopefully :).

NOTES


 * The x/y for each control object are the centers of the button.
 * The screen size variables are the maximum in each direction--the game will still scale them according to their aspect ratios.
 * The screens will always be drawn at the x,y indicated--they won't be centered.
 * There is support for turbo buttons, just no skin uses it yet.
 * orange+q (slash) cycles through the skins

Screenshots / Videos
Videos of latest VBA (v1.3.3): Older Videos of VBA:
 * Playing GBC and GBA Games (@800Mhz)
 * Pokemon - Ruby Edition (@800Mhz v1.3.1)
 * Mario Kart Advance (@800Mhz v1.2.4)
 * Mario Kart Advance (v1.0.1)
 * Metroid Fusion (v1.0.1)
 * Zelda DX (v1.0.1)
 * Pokemon Crystal (v1.0.1)
 * Super Mario Land 2 (v1.0.1)

Feature Requests/TODO
Here's a list of feature requests I'm aware of and/or things I plan to do.
 * ALSA instead of pulseaudio (hopefully to improve emulation speed with sound enabled)
 * Additional keybinding options, such as:
 * Diagonal keys (up+right, right+down, etc)
 * Pause emulation key? (Minimizing Card works fine)
 * Better performance on GBA!!
 * See iphone/GP2X ports and their ARM optimizations! (dynarec?)
 * Include a homebrew rom to demo the app?
 * system messages, draw them somewhere else and make them legible.
 * custom background for rom selector
 * haptic feedback on touchscreen controls?
 * other orientations for touchscreen

Known issues

 * Poor performance in GBA. Try disabling sound (press '*'/orange+z) or overclocking.
 * Audio doesn't seem to be fully disabled (you won't hear anything, but Pulseaudio is still doing a little work)
 * @ Turbo key can have keys bound to it, causing turbo AND the bound key to go at the same time.
 * Touchscreen Controls slow emulation down. Controlling with Pre Keyboard is faster.

Changelog

 * 1.3.3
 * Center screen in skin virtual screen
 * Fix scaling code (broken GB in previous release!)
 * Added Sonic-NKTs transparent_small skin
 * Better handling of small amount of ROMs
 * Force correct orientation when skin is on
 * Fix performance regression introduced in previous release
 * Fix crash from Rom selector
 * Be sure to show user the highlighted ROM before loading it
 * 1.3.2
 * Transparent skin support (calling all skin creators!)
 * Kinetic scrolling+scrollbar in rom selector
 * Added reset option
 * Added 'stretch' option.
 * Fix notification orientation when in menus
 * Display skin count
 * 1.3.1
 * Added skin preview in when changing skins in the menu.
 * Fixed initial screen not launching help.
 * Fixed actually disabling autoframeskip when user turns it off.
 * 1.3.0
 * Improved UI, new menu. Menu includes save states, settings, skins, and in-game help!
 * Turbo toggle (see the settings menu). When activated the turbo button toggles turbo instead of only being on while the button is down.
 * Autosave defaults to being on. Your existing settings should stay in tact, but new users I think this is useful.
 * Support saving in Tactics Ogre. Note that you'll have to delete the corresponding *.sav and *.sgm files (aka START OVER) to see this in effect. Sorry.
 * Misc minor bug fixes, including one in the rom selector.
 * 1.2.4
 * Added two skins (Wiimote2 and cfbauer2!)
 * Fix loading of duplicate skins
 * Changed default skin to have a/b buttons
 * Removed unused GBA debugger code
 * Small performance tweaks
 * 1.2.1
 * Internal optimizations in rendering, faster on some games.
 * Portrait rom selector.
 * Swipe to return to rom selector while playing
 * WebOS 1.4.5 support!
 * 1.1.2
 * Better d-pad behavior.
 * Notifications appear appropriately depending on orientation.
 * Better experience for new users -- link to wiki is now clickable
 * Updated skins (thanks to everyone who contributed!)
 * Skins no longer appear in photos
 * 1.1.1
 * Skin support! Thanks to VincentLaw, zsoc, crzisme, and nights0223 for their work!
 * Support for turbo/capture bindings in custom controls!
 * 1.1.0
 * New ARM assembly implementation of emulated instructions. (small speed boost, about 5% on average in GBA games)
 * touchscreen controls!
 * NOTE: just touching the screen (regardless of touch controls enabled) slows things down. I'm working on why, but it seems to be the same code that draws the ripple.  This is a known issue.
 * toggle is '+' (orange+w)
 * 0 (orange+@) will rotate the window for those used to the old layout/keyboard controls.
 * new 'autosave' feature (toggle enabled with '&' (orange+a))
 * saves to a special state when you quit, when you load the rom resumes there immediately
 * zip file support
 * options are now saved across sessions (orientation, mute, displaying emulation speed, etc)
 * rom selector strips file extensions, and cleans up rom names
 * rom selector doesn't show hidden files
 * 1.0.6
 * Fixed crash when creating custom configs (permissions issue)
 * 1.0.5
 * Fixed saving issues
 * Added ability to create custom keybindings (see wiki)
 * Removed annoying battery messages
 * Updated icon (thanks Spyral!) (might need to restart to see it)
 * Fixed name for hopefully better word-wrap in launcher
 * 1.0.4
 * Remove dependence on upstart, should fix problem with VBA not launching.
 * backported sound fixes for (slight) speed, also added code to hopefully fix freezing on pause
 * save/load state support
 * jump-to-letter functionality in rom selector for better management of large libraries
 * sort roms case insensitively
 * 1.0.3 Added toggle for displaying emulation speed to help compatability reports
 * 1.0.2 Small metadata fix.
 * 1.0.1 Small performance boost, public release!
 * 1.0.0 Initial release (testing feed). Reimplemented rendering engine, rom selector.

Compatibility List
This is a list of games and how well they run. PLEASE include a version number (on rom selector) when adding entries! To see the emulation speed percentage, hit orange+s while playing. All Entries please in Portrait Mode without Touchscreen Control!

Gameboy/Gameboy Color
All GB/GBC Games should be compatible (99.9%) at 100% Speed, please just report those NOT working.

Gameboy Advance
Orange: Not Playable/Very Slow Yellow: Semi-Playable Green: Playable

Free Roms
There are several places where you can get free homebrew games for the GB and GBA that are 100% legal to download and try on the emulator. The best source for homebrew games for any console is http://www.pdroms.org but there are several other homebrew sites around that offer something similar such as this site specifically for gameboy advance: http://www.gameboy-advance-roms.info/ Here is a small list of free games that are worth trying, if you have more add them to the list!

Free GBA Roms links and playability
{| border="1" class="freeware" ! rowspan="2" | Title ! colspan="2" | Speed @500 Mhz ! colspan="2" | Speed @800 Mhz ! colspan="2" | Speed @1.0 Ghz ! rowspan="2" | VBA Version ! rowspan="2" | Notes ! rowspan="2" | Link ! Sound ! No Sound ! Sound ! No Sound ! Sound ! No Sound If the downloaded game has a ".bin" extension just rename it to ".gba"
 * Anguna
 * bgcolor="lightgreen"|80%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.pdroms.de/files/1724/
 * Another World
 * bgcolor="yellow"|60%
 * bgcolor="lightgreen"|85%
 * 1.0.3
 * http://www.foxysofts.com/index.php?l=content/gba/anworld.inc
 * Arkanoid Clone
 * bgcolor="yellow"|70%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.playeradvance.org/forum/showthread.php?t=4039
 * BulletGBA
 * bgcolor="yellow"|80%
 * bgcolor="lightgreen"|100%
 * 1.0.4
 * http://pqrs.org/gba/bulletgba/
 * Bust-A-Move Clone
 * bgcolor="lightgreen"|100%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.russprince.com/gba/
 * Dangerous XMAS
 * bgcolor="lightgreen"|95%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.rickdangerous.co.uk/rickxmas.htm
 * Hergs Solitaire
 * bgcolor="lightgreen"|100%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.pdroms.de/files/1317/
 * The Last Seal
 * bgcolor=""|%
 * bgcolor=""|%
 * 1.0.3
 * http://www.pdroms.de/files/895/
 * Motocross Challange
 * bgcolor="yellow"|58%
 * bgcolor="lightgreen"|80%
 * 1.0.3
 * http://www.pdroms.de/files/495/
 * -}
 * bgcolor="lightgreen"|100%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.russprince.com/gba/
 * Dangerous XMAS
 * bgcolor="lightgreen"|95%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.rickdangerous.co.uk/rickxmas.htm
 * Hergs Solitaire
 * bgcolor="lightgreen"|100%
 * bgcolor="lightgreen"|100%
 * 1.0.3
 * http://www.pdroms.de/files/1317/
 * The Last Seal
 * bgcolor=""|%
 * bgcolor=""|%
 * 1.0.3
 * http://www.pdroms.de/files/895/
 * Motocross Challange
 * bgcolor="yellow"|58%
 * bgcolor="lightgreen"|80%
 * 1.0.3
 * http://www.pdroms.de/files/495/
 * -}
 * 1.0.3
 * http://www.pdroms.de/files/1317/
 * The Last Seal
 * bgcolor=""|%
 * bgcolor=""|%
 * 1.0.3
 * http://www.pdroms.de/files/895/
 * Motocross Challange
 * bgcolor="yellow"|58%
 * bgcolor="lightgreen"|80%
 * 1.0.3
 * http://www.pdroms.de/files/495/
 * -}
 * 1.0.3
 * http://www.pdroms.de/files/895/
 * Motocross Challange
 * bgcolor="yellow"|58%
 * bgcolor="lightgreen"|80%
 * 1.0.3
 * http://www.pdroms.de/files/495/
 * -}
 * 1.0.3
 * http://www.pdroms.de/files/495/
 * -}
 * 1.0.3
 * http://www.pdroms.de/files/495/
 * -}
 * http://www.pdroms.de/files/495/
 * -}