inkle / ink

inkle's open source scripting language for writing interactive narrative.
http://www.inklestudios.com/ink
MIT License
3.97k stars 482 forks source link

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

Open heyacfox opened 8 months ago

heyacfox commented 8 months ago

So I made a game with external functions referenced

image

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

image

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

image

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