inkle / inkle/ink

Export of web build results in ink.js file that has allowExternalFunctionFallbacks disabled

Open
#880 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

So I made a game with external functions referenced

![image](https://github.com/inkle/ink/assets/10360723/91c8114d-db6a-4e26-8276-fa946d4687da)

But when I exported the web build, I got errors for function bindings missing

![image](https://github.com/inkle/ink/assets/10360723/e2c9ec5d-61e6-4114-aeac-43075b26b0bd)

I found the "Ink fallbacks disabled" curious, and I looked in the source code for ink.js, and it was indeed disabled.

![image](https://github.com/inkle/ink/assets/10360723/6e5ed744-083c-4e17-be30-3b541183874a)

But this line implies the value should always be true. Why is this getting turned off on web build exports? I changed it in the source code from =!1 to =1 and my story fully works now in the web build.

https://github.com/inkle/ink/blob/6a512190365002f54bd501b0863ded40123cb8e5/inklecate/CommandLineTool.cs#L186

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.