kairoh / studio

STUdio - Story Teller Unleashed
Mozilla Public License 2.0
116 stars 16 forks source link

Release Sonar Build Native Build

Quality Scale Reliability Rating Security Rating Coverage Vulnerabilities Bugs

STUdio - Story Teller Unleashed

Instructions en français

Create and transfer your own story packs to and from the Lunii[^1] story teller device.

DISCLAIMER

This software relies on reverse engineering research, which is limited to gathering the information necessary to ensure interoperability with the Lunii[^1] story teller device, and does not distribute any protected content.

USE AT YOUR OWN RISK. Be advised that despite the best efforts to keep this software safe, it comes with NO WARRANTY and may brick your device.

[^1]: Lunii and Luniistore are registered trademarks of Lunii SAS. This work is in no way affiliated with Lunii SAS.

USAGE

Choose your edition

:rocket: "Native edition" is faster and doesn't need java to be installed. Few architecture are available (depending on available Github Host Runners), but you may build your own.

:hotsprings: "Java edition" needs java and supports almost any architecture (restricted by usb4java )

CPU/OS Linux Windows MacOS
x86_64, amd64 :hotsprings: :rocket: :hotsprings: :rocket: :hotsprings: :rocket:
x86, i386 :hotsprings: :hotsprings:
armhf, armv7l, aarch32 :hotsprings:
arm64, aarch64 :hotsprings: :hotsprings:

Nowadays most PC and Mac are amd64 except Apple M1, M2, M3 which are arm64.

Prerequisite

Installation

Note: avoid running the script as superuser/administrator, as this may create permissions issues.

Configuration

Studio is portable by default: everything (except JRE for java edition) is relative to current directory.

Customization Configuration order is : 1. (if defined) Java System property (ie: `-Dstudio.port=8081`) 2. (if defined) environment variable (ie: `STUDIO_PORT=8081`) 3. default value (inside code) | Environment variable | Java System Property | Default value | Description | | ---------------------- | -------------------- | ------------- | ----------- | | `STUDIO_HOME` | `studio.home` | `.` (=current dir) | Studio home | | `STUDIO_HOST` | `studio.host` | `localhost` | HTTP listen address | | `STUDIO_PORT` | `studio.port` | `8080` | HTTP listen port | | `STUDIO_DB_OFFICIAL` | `studio.db.official` | `${studio.home}/db/official.json` | Official json file database | | `STUDIO_DB_UNOFFICIAL` | `studio.db.unofficial` | `${studio.home}/db/unofficial.json` | Unofficial json file database | | `STUDIO_LIBRARY` | `studio.library` | `${studio.home}/library/` | Library path | | `STUDIO_TMPDIR` | `studio.tmpdir` | `${studio.home}/tmp/` | Temporary path | | `STUDIO_MOCK_DEVICE` | `studio.mock.device` | `${studio.home}/device/` | Mock device path | | `STUDIO_OPEN_BROWSER` | `studio.open.browser` | `true` | Auto open browser | Sample to listen on port 8081 (with system property) : - On Windows: `studio.bat -Dstudio.port=8081` - On Linux / MacOS: `./studio.sh -Dstudio.port=8081`

Using the application

The web UI is made of 2 screens:

Local library and transfer to/from the device

The pack library screen always shows the story packs in your local library. These are the packs located on your computer (in studio library subfolder). 3 file formats may exist in your library:

Conversion of a story pack will happen automatically when a transfer is initiated, or may be triggered manually. Variations of a given story pack are grouped together in the UI for better readability. The most recent file (highlighted in the UI) gets transferred to the device.

When the device is plugged, another pane will appear on the left side, showing the device metadata and story packs. Dragging and dropping a pack from or to the device will initiate the transfer.

Pack editor

The pack editor screen shows the current story pack being edited. By default, it shows a sample story pack intended as a model of correct usage.

A pack is composed of a few metadata and the diagram describing the various steps in the story:

The editor supports several file formats for audio and image assets.

Images

Image files may use the following formats (formats marked with asterisks are automatically converted when transferring to the device) :

Image dimensions must be 320x240. Images may use colors, even though some colors may not render accurately due to the screen being behind the plastic cover. Bear in mind that the cover may alter image color.

Audio

Audio files may use the following formats (formats marked with asterisks are automatically converted when transferring to the device) :

MP3 and OGG files are expected to be sampled at 44100Hz.

Wiki

More information, including an illustrated usage guide courtesy of @appenzellois, available in the project wiki.

FOR DEVELOPERS

Build with gitops

Build Java edition

Prerequisite

Local build

Build Native edition

See Quarkus native guide

Prerequisite

Local build

This will produce the distribution archive in web-ui/target/. On Windows, some required DLL will be in native-image subfolder.

THIRD-PARTY APPLICATIONS

If you liked STUdio, you will also like:

LICENSE

This project is licensed under the terms of the Mozilla Public License 2.0. The terms of the license are in the LICENSE.md file.

The jvorbis library, as well as the VorbisEncoder class are licensed by the Xiph.org Foundation. The terms of the license can be found in the LICENSE-jvorbis.md file.

The com.jhlabs.image package is licensed by Jerry Huxtable under the terms of the Apache License 2.0. The terms of the license can be found in the LICENSE-jhlabs.md file.