totengeist / iv-parsers
Introversion save file parsers.
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ^9.4||^8.5||^4.8.35||^5.7
README
This library aims to provide parsers for common Introversion file formats. It is currently focused on the early access game The Last Starship, but will hopefully include other parsers in the future.
This library is developed by the community. We are not affiliated with Introversion Software.
Installation
Use the package manager composer to install IVParsers.
composer require totengeist/iv-parsers
Usage
IVParsers currently supports .ship
and .space
files for The Last Starship. Files can be loaded, modified and saved.
$ship = ShipFile(file_get_contents('science-vessel.ship')); $ship->setName('Crusher'); $ship->setAuthor('Totengeist'); file_put_contents('Crusher.ship', $ship->toString());
$save = SaveFile(file_get_contents('Fun Time.space')); $save->getSaveVersion(); TiddletBug::resolveBug($save); file_put_contents('Fun Time.space', $save->toString());
Support
For questions not related to contributing directly to the project, please reach out on Discord.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.