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

How does the include system work? #195

Closed wilg closed 3 months ago

wilg commented 1 year ago

The include system is not documented, so I am having trouble figuring out why the include system changes in https://github.com/inkle/ink-unity-integration/commit/89af8014635c00fffd7c5c569a788328d383b6c8 broke compiling Ink for me.

It seems that it now thinks all my included files are master files, and fails to compile them as such because they don't have functions and knots etc defined. Why might this be happening?

wilg commented 1 year ago

Unchecking "Compile all ink automatically" in settings does not work, because then a change to a file that is included in my story file does not cause the story to recompile.

wilg commented 1 year ago

Oh, I randomly chose "Rebuild Ink Library" and it fixed itself. I'm not sure what the Ink Library is or why I had to rebuild it, but it worked.

tomkail commented 1 year ago

The InkLibrary is the part of the integration plugin that tracks ink files and their relationships to each other. So. Your fix was the correct one! I’d not realised that upgrade would affect libraries - let me know if it happens again!

On Fri, 6 Oct 2023 at 22:29, Wil Gieseler @.***> wrote:

Oh, I randomly chose "Rebuild Ink Library" and it fixed itself. I'm not sure what the Ink Library is or why I had to rebuild it, but it worked.

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