Hypnospace Page to HTML Converter



Convert Hypnospace Outlaw Page (HSP) files to HTML format.

Upload size limit: 500kB; Timeout limit: 5 sec; Process limit: 5 simultaneous requests; Custom assets are unsupported.


Download

hsp2html.jvm.jar

Source code

Repository @ GitHub

Limitations

Requirements

Usage

java -jar hsp2html.jvm.jar --resourcePath [RESOURCE_PATH] --fontPath [FONT_PATH] --pagePath [PAGE_PATH] > [OUTPUT_PATH]

Options

--resourcePath [RESOURCE_PATH] - Path to game resources folder (usually, it's "data" folder in Hypnospace Outlaw game folder).

--fontPath [FONT_PATH] - Path to the font file that will be used to render text (since there is no support for rendering from font images yet).

--pagePath [PAGE_PATH] - Path to the page file that will be converted.

Example

With following command:

java -jar hsp2html.jvm.jar --resourcePath "~/.steam/steam/steamapps/common/Hypnospace Outlaw/data"] --fontPath "./somybmp01_7.ttf" --pagePath "./input.hsp" > "./output.html"

The input HSP file is parsed as JSON data object. Page data from object is converted to HTML/CSS/JS equivalents. External game resources from resourcePath are fetched and embedded into page. All external content is embedded under Base64 data URLs to provide HTML document with all required resources included. The content is printed out in standard output, which can be piped to file.

License

This program is licensed under AGPL-3.0-only.