This is a web app that lets you open your Starbound directory and view the worlds etc. within.
This project is under an MIT license.
The easiest way to try it out is to go to the demo page.
For now, you'll have to follow the steps below to run this Chrome app. In the future it will be available on the Chrome Web Store (for free, of course!)
First of all, you'll need to have some things installed:
If you have all of the above, start by cloning this repository. Then run this in the cloned directory:
$ npm install
# ... lots of output ...
$ node_modules/gulp/bin/gulp.js
[gulp] Using file /.../starbounded/gulpfile.js
[gulp] Working directory changed to /.../starbounded
[gulp] Running 'browserify-worker-assets'...
[gulp] Running 'browserify-worker-world'...
[gulp] Finished 'browserify-worker-world' in 486 ms
[gulp] Finished 'browserify-worker-assets' in 545 ms
[gulp] Running 'browserify-app'...
[gulp] Running 'browserify-web'...
[gulp] Finished 'browserify-app' in 155 ms
[gulp] Finished 'browserify-web' in 154 ms
[gulp] Running 'default'...
[gulp] Finished 'default' in 5.9 μs
If you want to try the simple web viewer, you just need to serve the
current directory somehow. One easy way to do so is to use the serve
package:
$ npm install -g serve
# ... lots of output ...
$ serve
serving /.../starbounded on port 3000
Now you can open http://localhost:3000/web.html in your browser.
To actually run this Chrome app, you need to add it to Chrome. Here's how:
chrome://extensions
(or go to Settings and
click Extensions)To launch the app, you can click the Launch link on the Extensions page, or you can launch it through any of the normal means of launching a Chrome app.
This project has a number of dependencies that you may want to have a look at, as they hold most of the logic for parsing Starbound files and rendering worlds.
To avoid having to write that long path to run gulp, you can install gulp globally:
$ npm install -g gulp
Now you only need to run this to run gulp:
$ gulp
If you want gulp to automatically build whenever you change a file, run
this instead of gulp
:
$ gulp watch
It will now watch for changes to any of the source files.
This project is written to be run completely in a browser. Here's some technologically interesting things that this project does/has:
require
and ECMAScript 6 (Harmony) code using BrowserifyWhile it's amazing that browsers can support the things that this are done in this project, there were some snags (which will hopefully be resolved some time in the future):
image-rendering: pixelated
for <canvas>
In the future, these technologies may also be used in this project: