Skip to content

Tangled craft in save, Stored Parts etc #1

Answered by mark9064
darthgently asked this question in Q&A
Discussion options

You must be logged in to vote

Basically all sfsutils does is take the SFS file and naively parse it into plain dictionaries/lists (equivalent with JSON). It doesn't do any special processing or interpretation with any of the fields in the file, so the way arrays are indexed may well differ.

If the library is working properly, the loading an SFS file and then saving it to disk should give you the exact same file back, if it's not doing that then there's a bug here

Provided the above works, there could also be an issue with the file not being parsed sensibly. If it malformed according to my assumption of the SFS spec, parsing may crash (which you're not seeing) or be partial and/or nonsensical (this is also a bug)

Could…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@darthgently
Comment options

@mark9064
Comment options

Answer selected by darthgently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants