inkle / ink-unity-integration

Unity integration for the open source ink narrative scripting language.
http://www.inklestudios.com/ink
Other
578 stars 101 forks source link

Exception: Trying to call EXTERNAL function which has not been bound #164

Closed aschearer closed 2 years ago

aschearer commented 2 years ago

Just downloaded the latest off github and I get constant errors: Trying to call EXTERNAL function 'raiseEvent' which has not been bound (and ink fallbacks disabled). when viewing a story in the Ink Player -- disabling Auto-Continue seems to fix it.

tomkail commented 2 years ago

Hmm a search for "raiseEvent" turns up nothing at all for me. Do you have an external function called that in your ink, and are you tethering your story to the ink player window on start?

On Thu, Mar 3, 2022 at 4:09 AM Alex Schearer @.***> wrote:

Just downloaded the latest off github and I get constant errors: Trying to call EXTERNAL function 'raiseEvent' which has not been bound (and ink fallbacks disabled). when viewing a story in the Ink Player -- disabling Auto-Continue seems to fix it.

— Reply to this email directly, view it on GitHub https://github.com/inkle/ink-unity-integration/issues/164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJR3UAEJVVT3NEUQVRHB2DU6A3QHANCNFSM5PZKGN7A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Profakos commented 2 years ago

I have the same issue. The exception displays my external function that is the first defined in the ink file, despite fallback functions existing, and likewise, disabling Auto-continue solves the issue when playing an ink file outside of play mode.

Once the file is loaded successfully, toggling auto-continue on works without a problem.

During play, if i tether the story to the window, it fails similarly, otherwise, it works fine.

tomkail commented 2 years ago

Can someone share an example ink file so I can debug this please?

On Tue, Mar 22, 2022 at 12:47 PM Profakos @.***> wrote:

I have the same issue. The exception displays my external function that is the first defined in the ink file, despite fallback functions existing, and likewise, disabling Auto-continue solves the issue when playing an ink file outside of play mode.

— Reply to this email directly, view it on GitHub https://github.com/inkle/ink-unity-integration/issues/164#issuecomment-1075567837, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJR3UFVJKT4MD5ZRORNAK3VBIPWXANCNFSM5PZKGN7A . You are receiving this because you commented.Message ID: @.***>

Profakos commented 2 years ago

I will prepare a sample file later today.

Profakos commented 2 years ago

test_function.zip I have attached a zip file containing an ink file that successfully reproduces the issue caused by auto-play being enabled on the initial play.

EDIT: I have found another instance of this issue: when i try to use the Ink Player editor in unity to divert to a knot or stitch containing an external function, I will get the same error. Otherwise, while running normally, the game runs fine.

tomkail commented 2 years ago

Thank you! I've fixed this on latest.

aschearer commented 2 years ago

Y'all are the best!

Profakos commented 2 years ago

Thank you for the fix! :)