-
Notifications
You must be signed in to change notification settings - Fork 8
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 (Old version of PR) #16
Conversation
I'm not really sure what's going on with GitHub — it's saying that diffs can't be viewed for this PR? — but it doesn't look like your |
Sorry, I had to force push from my main branch to fix some commits with wrong email from the commit story and maybe I overwrite this PR :-( . Please, rebase and I will apply the PR again. |
I've made a new PR instead because I wasn't able to figure out how to put this one back together: #17 |
This PR has been replaced by #17 because I couldn't figure out what the commits were doing after the force push.
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.