Skip to content

Latest commit

 

History

History
78 lines (67 loc) · 3.48 KB

README.md

File metadata and controls

78 lines (67 loc) · 3.48 KB

Game Boy Printer Web

Basic usage

Supported formats

  • This Project is mainly built around the serial output of the original GBP Emulator
  • Cart .SAV files are also supported. The previously selected frame will be applied as well. If you're importing from a JP-Cartridge (Pocket Camera), you may want to change the "Frames when importing Cartridge dumps" option in the settings page

ToDos

  • User manual
  • Global Storage for images
  • Edit palettes
  • Export without frame
  • Other blendmodes than multiply for RGB-Images
  • trash bin for raw-data of deleted images (must implement global storage first for this)
  • Allow some gesture/swipe in gallery on touch devices

Local Setup

You can run this app locally to directly use the gbp-emulator on your serial port

  • Install node.js if you haven't already.
  • Check out/clone/download this repository
  • Run npm i in the root directory via your commandline
  • Add a config.json in the root dir (see below)
  • Run npm start via your commandline
  • Open localhost:3000
  • Go to the 'Settings' page and change the 'Remote Socket URL' to localhost:3001
  • Print something

Serial config with config.json

Create a file config.json in the root dir and configure it like the following example (multiple ports are supported):

{
  "ports": [
    {
      "path": "COM19",
      "baudRate": 115200,
      "dataBits": 8,
      "stopBits": 1,
      "parity": "none",
      "retry": false
    },
    ...
  ] 
}

you can set retry to a number of milliseconds after which a retry will be attempted to open the port.

Optional deployment config with config.json

Add a deploy section in config.json to automatically copy the created files to another location.
If you set the option gzip to true, each file will be separately compressed. Useful for servers capable serving pre-zipped files. This saves ~1kB storage space which is very useful on small systems.

{
  "ports": [...], 
  "deploy": {
    "dir": "/copy/all/files/to/that/folder",
    "gzip": true
  }
}

Future Plans

This tool is partially integrated into the WiFi GBP Emulator, for which, you'll best use the latest release

Links and research

Research