Pandora's box V4/4S

Buy It Now (eBay) Buy It Now (eBay) Buy It Now (eBay) Buy It Now (Aliexpress) Buy It Now (Amazon)

Pandora's box V4S

The newest version of Pandora's box is PB4s. This version include the following game option. User can enter game option select menu by hold 1P start key and 1P fire 2 key when boards boot.

Please note, some game options may not work in CGA mode.

What is VGA and CGA mode

PB4S has a dedicated circuit to detect whether there is a VGA cable connect to the VGA port when boards boot. When the boards connect a VGA cable, it start a VGA mode program, and output 800x600 VGA signal or it start a CGA mode program, and output 320x240 CGA signal. And PB4 does not support CGA and VGA mode simultaneously.

Demo Video

If you have any issues, please feel free to contact us with mengxipeng@gmail.com

Fackbook page: https://www.facebook.com/pb3aracde/

Note: There are so many versions of PB4. Everything I said in here only works with the following versions of PCB.

846 In 1

The game option of 846 in1 .

  • High quality game video
  • all game is horizontal
  • Support CGA and VGA

It has 846 games:

The list of Games

815 In 1 (Pandora's box V4s+)

The game option of Pandora's Box V4s+.

  • High quality game video
  • all game is horizontal
  • Support CGA and VGA

It has 815 games:

The list of Games

The list of Games(alphabet ordered, no snap)

800 In 1 (Pandora's box V4x)

The game option of Pandora's Box V4x.

  • High quality game video
  • all game is horizontal
  • Support CGA and VGA

It has 800 games:

The list of Games

The list of Games(Alphabet ordered, no snap)

680 In 1 (Pandora's box V4S)

The game option of Pandora's Box V4s.

  • High quality game video
  • all game is horizontal
  • Support CGA and VGA

It has 680 games:

The list of Games

645 In 1 (Pandora's box V4S)

The game option of Pandora's Box V4.

  • High quality game video
  • all game is horizontal
  • Support CGA and VGA

It has 645 games:

The list of Games

51 In 1 (The king of Air)

The game option of KOA.

  • High quality game video
  • all game is vertical
  • Support CGA and VGA

It has 51 games:

The list of Games

Mame player

The game option of Mame player.

  • This game option actually is the option for developer
  • all game is horizontal
  • all game does not use HD filter
  • Support CGA and VGA

It has only one game

  • This default game is 'Cadillacs and Dinosaurs'
  • It uses MAME for game emulation, and the game experience of 'Cadillacs and Dinosaurs' is not good as 'Cadillacs and Dinosaurs' of PB4. PB4 uses FBA( Final burner alpha ) for game emulation

TF card infos

The TF card stores all software and games, users can open plastic package of game card to check the TF card.

The TF card has 2 partitions.

  • The first partition is of FAT32 format, and stores some boot files, game configuration files, and Linux kernel image files.

  • The second partition is of EXT3 format, and stores all programs for game, game roms and program resources.

How to modify game card

  • how to change game list of lemonlaunch
  • In the newest version software , PB4X , there is a little program for xmame player, lemonlauch .

    It is a open source project. Link

    The path '/usr/emu/lemonlaunch.config.vga' of the 2nd partition stores some configuration file for VGA mode

    The path '/usr/emu/lemonlaunch.config.cga' of the 2nd partition stores some configuration file for CGA mode

    There is a datebase file 'games.db' in each path to store game lists.

    if you want to edit game list, add game , you can do the following :

    • check the file '/usr/emu/xmame.games.xml' , this file list all roms info supported by xmame
    • copy game roms to folder '/usr/sd/roms/', NOTE, all emulator use same rom folder, and FBA and MAME's some rom may different, so try to no to overwrite exist, or some games in PB4X will may not run.
    • insert a record for new rom in file gaems.db, I use sqlite3 module in Python to access this file. This database has a table 'games'

      the table format

      CREATE TABLE games ( id INTEGER NOT NULL, filename VARCHAR, name VARCHAR, genre VARCHAR, clone_of VARCHAR, manufacturer VARCHAR, year INTEGER, last_played DATETIME, params VARCHAR, count INTEGER, favourite BOOLEAN, hide BOOLEAN, broken BOOLEAN, missing BOOLEAN, stars INTEGER, PRIMARY KEY (id), CHECK (favourite IN (0, 1)), CHECK (hide IN (0, 1)), CHECK (broken IN (0, 1)), CHECK (missing IN (0, 1)) );

      note: please set favourite field to 1 , or the game list will not display new game

    • copy snap file to path '/usr/emu/snaps'

    note:you'd better to connect serial port on the boards, to check the program log

  • how to change game options
  • The boards suupport 3 game modes. The file 'game' of the first partition store current game options. You change its content.

    • pb4 -- Pandora's Box 4 game option
    • kzbw -- The King of Air game option
    • xmame -- Mame player game option

    The file '/usr/emu/runGame' of the second partition is the boot script of software, you can check it for detail.

  • how to change default game of Mame player
  • The directory /usr/sd/roms of the second partition stores all game roms, you can copy your roms to here. The file xmame.game of the first partition stores game roms name, the default content should be 'dino'

  • how to disable boot video
  • Modify file '/usr/emu/runGame' of the second partition, try to comment the commands for play boot video and logo video.

  • About Mortal Kombat serial games
  • Some guys strongly ask me to add these game. I did some tests with Xmame player , but the result is not very happy.

    https://drive.google.com/file/d/0B2A9AdN2h8n8ZFlST3dkODh5U1k/view?usp=sharing is the share link of the roms I tested.

    Test instructions:

  • a. Decompress the download files, and copy all roms file to '/usr/sd/roms' of the 2nd partition of TF card
  • b. Edit the file 'xmame.game' of the 1st partition of TF card to the rom names , such as 'mk', 'mk2' etc.
  • c. Select 'xmame player ' option, when boot boards.
  • Test result:

  • mk, and mk2 is playable, but is not very smooth;
  • mk3, and mk4 is unplayable, some rom files miss;
  • how to select game when no coins
  • Press side button to enter configuration menu, and set 'game selection mode' as 'any'

  • how to disable sound when game start in PB4
  • Some users feel this sound is not very good. The files '/lib/pb4/config.stdcse/config/sound/go.wav' and '/lib/pb4/config.stdcses/config/sound/go.wav' of the second partition is the sound file, one for CGA, and the other for VGA. Try to replace this sound file to you wanted.

    https://drive.google.com/file/d/0B2A9AdN2h8n8NFJnMVV6RmZJUTg/view?usp=sharing includes all sound files, and replace the 'tank' sound and 'ready go' sound with silent sounds.

    Warning: do not delete or rename the sound files, or the game program will crash.

  • how to debug program
  • The J36 on the PCB is the pins for debug serial port.

    • pin1 -- Rxd
    • pin2 -- Txd
    • pin3 -- 3.3V (Not connect)
    • pin4 -- Gnd

    Debug Serial port configuration : 115200 8N1

    Users can connect serial port to check debug information, and login in Linux system to run commands.

  • how to change program monitor mode manually
  • PB4 support 2 kind of monitor mode, VGA and CGA. And PB4 does not output VGA and CGA signal at same tim. There is a dedicate circuit to detect whether a VGA cable connect to the boards when boot. But sometimes, this circuit is out of work. Program starts wrong monitor mode, so users can not get good video.

    the file list related to monitor mode in the first partition

    • script.bin --- configuration file of VGA mode
    • script1.bin --- configuration file of CGA mode
    • uImage.pb4 --- linux kernel of PB4 game option of VGA mode
    • uImage1.pb4 --- linux kernel of PB4 game option of CGA mode
    • uImage.kzbw --- linux kernel of KOA game option of VGA mode
    • uImage1.kzbw --- linux kernel of KOA game option of CGA mode
    • uImage.xmame --- linux kernel of mame player game option of VGA mode
    • uImage1.xmame --- linux kernel of mame player game option of CGA mode

    Users can modify this file to change monitor mode manually. Program load these file accord to file name. So users can copy files.

    Force to VGA mode:

    replace all CGA file with VGA file

    $ cp script.bin script1.bin

    $ cp uImage.pb4 uImage1.pb4

    $ cp uImage.kzbw uImage1.kzbw

    $ cp uImage.xmame uImage1.xmame

    Force to CGA mode:

    replace all VGA file with CGA file

    $ cp script1.bin script.bin

    $ cp uImage1.pb4 uImage.pb4

    $ cp uImage1.kzbw uImage.kzbw

    $ cp uImage1.xmame uImage.xmame

    WARNING: please backup all files you will overwrite.

  • romlist of xmame
  • download XML file( 20+ mb )

  • jamma drv of pb4x boards
  • pb4xjammadrv github