inkle / ink-unity-integration

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

Unity 2022.3.7f1 issues: demo scenes do not open, reload doesnt work. #196

Closed SamTyurenkov closed 2 months ago

SamTyurenkov commented 10 months ago

Hi, I'm first time ever Ink user, maybe Im doing something wrong:

I downloaded unity ink integration via unity package manager, downloaded inkly for editing.

I had some javascript crash in inkly, and probably after that (or maybe its unrelated) in unity ink doesnt reload/restart json, doesnt open demo scene and maybe doesnt work in some other ways as well:

image

and this is shown when trying to reload json

image

here is the ink file that doesnt reload:

Start before knot
* This is a choice that can only be chosen once
-> start_dialog

=== start_dialog ===
Started Dialog.
* Choice one 1
-> finish_dialog
* Choice two
-> finish_dialog
-> END

=== finish_dialog ===
Finished dialog.
-> END
tomkail commented 10 months ago

Oh thanks for the report! The pptr error is normally because the scene is from an older Unity version or something. It normally goes away after a save. Bit annoying but I doubt that’s the issue here. The one about the editor window I’m less sure of. I’ll have a look. In any case a restart of unity should fix it? Let me know in any case!

On Tue, 24 Oct 2023 at 17:25, SamTyurenkov @.***> wrote:

Hi, I'm first time ever Ink user, maybe Im doing something wrong:

I downloaded unity ink integration via unity package manager, downloaded inkly for editing.

I had some javascript crash in inkly, and probably after that (or maybe its unrelated) in unity ink doesnt reload/restart json, doesnt open demo scene and maybe doesnt work in some other ways as well:

[image: image] https://user-images.githubusercontent.com/19373777/277735639-abc83448-eb48-43b3-b62e-3222c36f32c9.png

and this is shown when trying to reload json

[image: image] https://user-images.githubusercontent.com/19373777/277735995-8cefb050-b35d-4a85-8e1a-bed9c755e97b.png

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

SamTyurenkov commented 10 months ago

After Unity restart Im able to open the demo scene and it works, I suppose json reload doesnt work cause my ink syntax isnt correct then?

tomkail commented 10 months ago

Most likely yeah - it should recompile ink automatically. Are there errors in the console? Or inky?

On Tue, 24 Oct 2023 at 18:45, SamTyurenkov @.***> wrote:

After Unity restart Im able to open the demo scene and it works, I suppose json reload doesnt work cause my ink syntax isnt correct then?

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