Skip to content

Pull information about a StoryFormat from the format file itself#51

Open
sgranade wants to merge 1 commit intoDan-Q:masterfrom
sgranade:master
Open

Pull information about a StoryFormat from the format file itself#51
sgranade wants to merge 1 commit intoDan-Q:masterfrom
sgranade:master

Conversation

@sgranade
Copy link

@sgranade sgranade commented Apr 1, 2019

These changes pull a StoryFormat's name and version directly from the StoryFormat .js file, and add the format's version to the compiled output as a format-version attribute on the tw-storydata tag. That matches the recent behavior of Twine, and means that we can go back to compiled stories and confirm what version of the story format was used. It also divorces story formats' names from the directory name in the storyFormats directory, which then supports having multiple versions of the same story format.

…e itself, and the story file to record a story format's version in the 'format-version' tag on compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant