Utilities for serialization of Sunless Skies data.
Python 3.7 is required.
This codebase is largely based off fl-utils.
convert.py
will take individual serialized data files and combine them into a single data file, in a usable format.
init.py
loads the data file produced by convert.py
.
skyless.py
contains methods to format the data.
- Extract the TextAsset files from the Unity resources files.
- Convert from binary format to JSON format.
The C# fileReserialize.cs
will perform this function.
NamespaceSkyless.Assets.Code.Skyless.Utilities.Serialization
is defined inAssembly-CSharp.dll
, in the Sunless Skies directory.
Running convert.py
from the directory containing the JSON-serialized data will produce a file suitable for use with init.py
.
Run python -i init.py
from the directory containing the data file.
To format Storylets, Qualities, etc., print(skyless.Storylet.get(284781))
or print(skyless.Quality.get(804))
, for example.