0.0
No commit activity in last 3 years
No release in over 3 years
A simple gem/library for working with Starbound files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 5.0
~> 10.0

Runtime

~> 1.2.0
 Project Readme

RBStarbound

This is a library to parse Starbound's file formats which are used to store worlds, player characters, assets, etc.

Frankly, it's just a ruby version of py-starbound. All thanks to blixt.

Also, see changelog to know what's new.

Installation

I. option

Add this line to your application's Gemfile:

gem 'rbstarbound'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rbstarbound

II. option

You just

$ git clone https://github.com/JetPirate/rb-starbound.git
$ cd rb-starbound

Usage

with executables

To get YAML file with all parsed player data:

$ ./bin/rbstarbound dump -f yaml -i path/to/save/file -o path/to/output/file

For more see:

$ ./bin/rbstarbound --help

with installed as a gem you could use (from any folder):

$ rbstarbound --help

with the gem/library

Exapmle 1: Get the player name

require 'rbstarbound'

path = 'path/to/your/save/file'
player = RBStarbound.parse_player_save_file(path)
# simple way
puts player.player_name
# advanced way
puts player['data']['identity']['name']

For more see: https://github.com/JetPirate/rb-starbound/blob/master/examples


Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

Contributing

Feel free to contribute either via submitting pull requests or writing up issues with suggestions and/or bugs.

Bug reports and pull requests are welcome on GitHub at https://github.com/JetPirate/rb-starbound. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.


License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the RBStarbound project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct .