inkle / inky

An editor for ink: inkle's narrative scripting language
http://www.inklestudios.com/ink
2.39k stars 290 forks source link

Inky fails to run without any error message when undeclared EXTERNAL functions exist. #440

Open tomkail opened 1 year ago

tomkail commented 1 year ago

If you have EXTERNAL functions referenced in your script that don't have a fallback, calling them anywhere in your story prevents inky from showing anything in the right-hand player window, and doesn't show a warning or anything else to hint at the issue.

Struck me as something to fix (perhaps writing blank fallback functions invisibly+automatically in inky when an EXTERNAL is defined without a fallback?), or just adding a warning.


= Intro

Intro story text!
+ Go to the shop
    ~ OpenShop()
->Intro

EXTERNAL OpenShop()
// Here's the issue. If you remove this, it won't run in inky, nor will it give any indication of why not.
=== function OpenShop()
Open Shop```