scenarioworld / articy-js

Loads and allows for navigation of exported Articy JSON data (http://www.articy.com)
MIT License
7 stars 2 forks source link

Unable to startupGameFlowState whenever localization is used #164

Open Sp1d3rbite opened 1 year ago

Sp1d3rbite commented 1 year ago

Hi there, I've been using Articy-Js for a project recently and its been an absolute lifesaver feature wise!

I am however running into an issue when implementing localization as mentioned in the docs. First off all, due to a lack of webpack I am using an own way of supplying the localized key-value pairs. I suspect this IS working, because whenever I request a text field for a given node it uses the text from the localization excel. For reference, I created a single depth array where the key is the LocalD and the value is the string in the Value column.

But when using that same data, whenever I try to startup the gameflow (which is working without localization) it gives me the following error:

TypeError: `target` argument of Proxy must be an object, got undefined

Do you have any clue what might cause this to happen?

Thank you in advance!

brwarner commented 1 year ago

Hey there,

First of all, really cool someone's using this. Glad it's (mostly) working for you.

As for your issue, any clue what line is triggering this?

I never ended up using localization in the projects I shipped with this so I'm not surprised there's some hidden bugs.

I'll try to snoop around this evening for the cause.

Sp1d3rbite commented 1 year ago

Hi,

Yeah, its been a really excellent tool for us to use so far, thank you for creating it!

As for the line where it breaks, it happens whenever I try to start a dialogue using startupGameFlowState using an id I know is valid.

And no rush for looking at it though! It would be a nice-to-have for us and we do not depend on it, but I appreciate the effort none the less.