Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off Binkplayer error on external function fallbacks #17

Merged
merged 5 commits into from
Dec 4, 2024

Conversation

IFcoltransG
Copy link
Contributor

This was meant to be #16 but I have no idea what's going on with the commits in that PR due to force pushes, so this PR is a replacement for it.


Currently, Binkplayer throws an error if the provided .ink.json contains a fallback for an external function. With this PR, it does not throw that error unless the -e CLI flag is passed.

The CLI doesn't let you properly handle external functions, so without this change, it's not possible to run Ink with external functions at all, even if they have fallbacks.

I'm also sneaking in a fix for an off-by-one error in the display of randomly chosen choices — happy to cherry-pick into a different PR. My reason for including it is that both changes came from attempting to use that auto_play mode to test an existing Ink story, and finding both issues.

@IFcoltransG
Copy link
Contributor Author

And while looking at it again I realised I'd forgotten to change one of the doc-comments in the old PR — updated now.

@bladecoder bladecoder merged commit 623d007 into bladecoder:main Dec 4, 2024
1 check passed
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.

2 participants