Release Visualboyadvance


cosam

Active Member
Joined
Sep 1, 2008
Messages
703
Location
Netherlands
Website
www.cosam.org
A quick build/package of VBA for the Pandora.

http://dl.openhandhelds.org/cgi-bin/pandora.cgi?0,0,0,0,71,84

GB is pretty good, GBA needs frameskip (configured by default) and maybe some extra umph in the MHz department. Config file gets copied to appdata/vba.cfg so you can experiment with it.

Enjoy!


PS. Not sure if the key mappings for Select and the shoulders are right, so if there's anything amiss let me know.
 
Can't get it to work,have tried 4 roms that work on my psp uncompressed files.

Does it require the bios file
 
I've not tried many, but everything I did try worked. Which ones are you having trouble with? Any clues in /tmp/pndrunvba<foo>?

AFAIK it doesn't require a BIOS file.
 
Brilliant stuff, Steve, thanks :) Still waiting for my Pandora, but this is welcome news.
 
mariokart,fzero,sonic advance 2,castlevania moon,metroid zero mission . tested zipped and unzipped from the sd and nand dirs.
 
in fork!
mountpoint: /media/mmcblk0p1
/usr/pandora/scripts/pnd_run.sh: line 120: [: !: integer expression expected
not mounted on loop yet, doing so
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Filetype is ISO
sudo mount /dev/loop1 /mnt/pnd/vba.cosam.1.7.2.0/
mounting union!
Filesystem is vfat
VisualBoyAdvance version 1.7.2 [SDL]
Searching for file VisualBoyAdvance.cfg
Searching current directory: /mnt/utmp/vba.cosam.1.7.2.0
Searching home directory: /home/paddy
Searching system config directory: /usr/local/etc
Searching executable directory
Configuration file NOT FOUND (using defaults)
Unknown file type /media/mmcblk0p1/Misc
app exited
rmdir: failed to remove `/mnt/utmp/vba.cosam.1.7.2.0': Device or resource busy
rm: cannot remove `/mnt/utmp/vba.cosam.1.7.2.0': Is a directory
rmdir: failed to remove `/media/mmcblk0p1/pandora/appdata/vba.cosam.1.7.2.0/.wh..wh.plnk': No such file or directory
rmdir: failed to remove `/media/mmcblk0p1/pandora/appdata/vba.cosam.1.7.2.0/.wh..wh..tmp': No such file or directory
rmdir: failed to remove `/media/mmcblk0p1/pandora/appdata/vba.cosam.1.7.2.0/': Directory not empty
cleanup done
 
I can't even get the .PND to copy to my SD card from OpenHandhelds or the Apps.open-pandora.org

No big deal, SNES, calls.

Peace & Pandora

Link

PS I started a topic about this in the I Need Help section
 
Hi

If I can help

After the PND launches this is the contents of /mnt/utmp/vba.cosam.1.7.2.0

Code:
dave-openpandora:/mnt/utmp/vba.cosam.1.7.2.0$ ls -l
total 5267
-r-xr-xr-x 1 dave root  131072 Apr 15  1997 R-Type (U) [!].gb
-rwxr-xr-x 1 dave root 4194304 Dec 24  1996 R-Type III - The Third Lightning (Europe) (En,Fr,De,Es,It).gba
-r-xr-xr-x 1 dave root   65536 Apr  1  2000 Solar Striker (JU) [!].gb
-rwxr-xr-x 1 dave root    5215 Jun  3 02:10 VisualBoyAdvance.cfg
-r-xr-xr-x 1 root root    5215 Jun  3  2010 default.cfg
-r-xr-xr-x 1 root root     731 Jun  3  2010 pxml.xml
-r-xr-xr-x 1 root root  920468 Jun  3  2010 vba
-rwxr-xr-x 1 dave root    5215 Jun  2 21:54 vba.cfg
-r-xr-xr-x 1 root root    8392 Jun  3  2010 vba.png
-r-xr-xr-x 1 root root     135 Jun  3  2010 vba.sh

Here is the contents of VisualBoyAdvance.cfg

dave-openpandora:/mnt/utmp/vba.cosam.1.7.2.0$ cat VisualBoyAdvance.cfg
# All numeric values are in hexadecimal
# Use TAB or EQUAL sign to separate name from value

#
# Key configuration (all numbers are in hexadecimal!)
#
# Keys values are in the format YXXX where Y is the device number. 0 means
# keyborad and XXX is the SDL define for the desired key (read SDL_keysym.h).
#
# If Y is greater than 0, it means joystick number Y-1 and it uses the
# following format for XXX:
#
# - if XXX < 20, XXX is the axis number multiplied by 2. An even number means
# movement to the negative side (on the X axis, it means left). An odd
# number means movement to the positive side (on the X axis, it mean
# right). For the Y axis, negative means up and positive means down.
# X axis is usally axis number 0 and Y is axis number 1.
# - if 20 >= XXX > 30, then XXX is the HAT number multiplied by 4 plus the
# direction: 0 for up, 1 for down, 2 for right and 3 for left. Example:
# 0021 is HAT 0 down, 0026 is HAT 1 right.
# - if 80 >= XXX > 100, XXX is the joystick button number (XXX-080).
#
# Default key configuration is (value in parenthesis):
#
# Left Left Arrow (0114)
# Right Right Arrow (0113)
# Up Up Arrow (0111)
# Down Down Arrow (0112)
# A Z (007a)
# B X (0078)
# L A (0061)
# R S (0073)
# Start ENTER (000d)
# Select BACKSPACE (0008)
# Speed up SPACE (0020)
# Capture F12 (0125)
#
Joy0_Left=0114
Joy0_Right=0113
Joy0_Up=0111
Joy0_Down=0112
Joy0_A=0119
Joy0_B=0116
Joy0_L=0130
Joy0_R=0131
Joy0_Start=0134
Joy0_Select=0132
Joy0_Speed=0020
Joy0_Capture=0125

# Motion support keys. Same format as above
#
# Default keys are (value in parenthesis):
#
# Left Numeric Pad 4 (0104)
# Right Numeric Pad 6 (0106)
# Up Numeric Pad 8 (0108)
# Down Numeric Pad 2 (0102)
#
Motion_Left=0104
Motion_Right=0106
Motion_Up=0108
Motion_Down=0102

# Frame skip setting. Allowed values are from 0 to 5 only.
frameSkip=2

# Gameboy Frame skip setting. Allowed values are from 0 to 5 only.
gbFrameSkip=0

# Video setting. 0=1x, 1=2x, 2=3x, 3=4x.
video=2

# Use fullscreen mode. 0=false, any other value means true
fullScreen=1

# Disables MMX support
disableMMX=1

# Use bios file. 0=false, any other value means true
useBios=0

# Bios file full path and name (ZIP not supported)
biosFile=none

# Filter to use. 0=no filter, 1=TV Mode, 2=2xSaI, 3=Super 2xSaI, 4=Super Eagle
# 5=Pixelate, 6=Motion Blur, 7=AdvanceMAME Scale2x, 8=Simple 2x,
# 9=Bilinear, A=Bilinear Plus, B=hq2x, C=lq2x
filter=0

# Disable status messages. 0=false, any other value means true
disableStatus=0

# Enable Gameboy border. 0=false, any other value means true
borderOn=0

# Gameboy emulator type. 0=automatic, 1=CGB/GBC, 2=SGB, 3=GB, 4=GBA, 5=SGB2
emulatorType=0

# Enable washed colors. 0=false, any other value means true
colorOption=1

# Directories. Not setting one them makes the file go the rom directory.

# Save state directory
#saveDir=

# Screen shot Capture directory
#captureDir=

# Battery directory
#batteryDir=

# Screen capture format
# 0=PNG, anything else for BMP
captureFormat=0

# Sound quality
# 1=44 Khz, 2=22Khz, 4=11Khz
soundQuality=2

# Sound Echo
# 0=false, anything else for true
soundEcho=0

# Sound Low pass filter
# 0=false, anything else for true
soundLowPass=0

# Sound reverse stereo
# 0=false, anything else for true
soundReverse=0

# Remove GBA intros (not supported anymore)
# 0=false, anything else for true
# removeIntros=0

# Save Type
# 0=automatic, 1=EEPROM, 2=SRAM, 3=Flash, 4=EEPROM+Sensor, 5=NONE
saveType=0

# Flash size
# 0=64K Flash, 1=128K Flash

flashSize=0

# Sound volume
# 0=1x, 1=2x, 2=3x, 3=4x
soundVolume=0

# Interframe blending
# 0=none, 1=motion blur, 2=smart
ifbType=0

# Show emulation speed
# 0=none, 1=percentage, 2=detailed
showSpeed=0

# Show speed in transparent mode
# 0=normal, anything else for transparent
showSpeedTransparent=1

# Enable/Disable auto frameskip
# 0=disable, anything else to enable
autoFrameSkip=0

# Sets the desired throttle
# 0=disable, 5...1000 valid throttle speeds
throttle=0

# Pauses the emulator when the window is inactive
# 0=disable, anything else to enable
pauseWhenInactive=0

# Enables AGBPrint support
# 0=disable, anything else to enable
agbPrint=0

# Enables GBA RTC support
# 0=disable, anything else to enable
rtcEnabled=1

# Sound OFF flag
# 0=sound on, anything else turns off sound
soundOff=0

# Sound Enable
# Controls which channels are enabled: (add values)
# 1 - Channel 1
# 2 - Channel 2
# 4 - Channel 3
# 8 - Channel 4
# 100 - DirectSound A
# 200 - DirectSound B
# 30f=all enabled, 0=mute all
soundEnable=30f

# Controls automatic SGB border
# 0=disable, anything else enables automatic SGB border display
borderAutomatic=0

# Skip bios code
# 0=disable, anything else skips BIOS code
skipBios=0

# The interval between the rewind saves
# Minimum of 0 seconds to disable rewind support,
# Maximum of 60 minutes. Value in seconds (hexadecimal numbers)
rewindTimer=0

# Enable enhanced save type detection
# 0=disable, anything else to enable (no longer used)
#enhancedDetection=1

On selecting a rom here is the log output

Code:
dave-openpandora:/tmp$ cat pndrunvba.cosam.1.7.2.0.out
in fork!
mountpoint: /media/mmcblk0p1
/usr/pandora/scripts/pnd_run.sh: line 120: [: !: integer expression expected
not mounted on loop yet, doing so
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Filetype is ISO
sudo mount /dev/loop0 /mnt/pnd/vba.cosam.1.7.2.0/
mounting union!
Filesystem is vfat
VisualBoyAdvance version 1.7.2 [SDL]
Searching for file VisualBoyAdvance.cfg
Searching current directory: /mnt/utmp/vba.cosam.1.7.2.0
Reading configuration file.
Unknown file type /mnt/utmp/vba.cosam.1.7.2.0/Solar
app exited
rmdir: failed to remove `/mnt/utmp/vba.cosam.1.7.2.0': Device or resource busy
rm: cannot remove `/mnt/utmp/vba.cosam.1.7.2.0': Is a directory
umount: /mnt/utmp/vba.cosam.1.7.2.0: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount: /mnt/utmp/vba.cosam.1.7.2.0: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount failed, didnt clean up

Hope that helps
 
I think the full file name is not being passed.

Unknown file type /mnt/utmp/vba.cosam.1.7.2.0/Solar
Unknown file type /media/mmcblk0p1/Misc

:)
 
paddy said:
...
Searching home directory: /home/paddy
Searching system config directory: /usr/local/etc
Searching executable directory
Configuration file NOT FOUND (using defaults)
Unknown file type /media/mmcblk0p1/Misc
app exited
...

paddy - do you have any spaces in the directory names where your roms are stored, or in the names of the rom files?

I had a similar issue which I fixed by removing spaces from the file names...
 
Last edited by a moderator:
Yep, this is why I abhor spaces in file names ;-) I uploaded a new PND to the archive which should fix this. The link in my original post has been changed too.

http://dl.openhandhelds.org/cgi-bin/pandora.cgi?0,0,0,0,71,84

I didn't upload it entirely correctly by the looks of it - should have been an update to the existing package. Still getting the hang of the file archive, I'm afraid... URL may therefore change again when this is fixed.
 
There is a version of VBA that supports link cable emulated over network.

I absolutely MUST know about this!! Anyone got it to work yet? I'd love to see how this works and to try it out - I've got two Pandoras, so if anyone can tell me what I need to do to get it working, I'd be very appreciative!
 
Wow... I just got the update for this emulator and loaded a GBA game. While it is slow (not for long right?) GBA games look like they were made for the pandora.
 
HackModford said:
GBA games look like they were made for the pandora.
Lucky, that. GBA = 240x160, scale it up 3x and that's 720x480, so just tiny borders at the sides.

BTW: Left shoulder was indeed incorrectly configured. Line 44 of vba.cfg should be:

Code:
Joy0_L=012f
I'll put out a new PND, but existing users can simply edit this file in pandora/appdata/vbaXXX.
 
Last edited by a moderator:
Back
Top