Giter VIP home page Giter VIP logo

articy-js's People

Contributors

brwarner avatar dependabot[bot] avatar sinkapoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

articy-js's Issues

Unable to startupGameFlowState whenever localization is used

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!

Jumps not functioning correctly

Hi there,

I am still using your library with much pleasure!
However I am unable to figure out how to get Jump nodes to work, and was hoping you could help.

Do you have any idea what the reason might be for the simple example below not to work?
image

In short, what is supposed to happen is:

  • The conversation is started at the Ruben node (top left).
  • Because there is no condition or anything after it, it automatically 'jumps' to the node 'Kees' at the bottom row.
  • Which should then display: "nothing to do here...".

What happens in my build:

  • It starts the conversation correctly, I see "Hi there" spoken by Ruben.
  • Is does not see a node to stop at afterwards so it thinks its the end of a dialogue and the bottom node is never shown.

Even if I manually add "Jump" as a stopAtType, it won't detect it correctly and progress to the bottom row.
And for completion sake, if I create a direct connection between Ruben and Kees, it obviously does work as intended, but I would like to use Jump nodes to keep my project a bit neater.

Is there anything obvious I am missing here?

Please let me know if you require further info regarding this problem.

Kind regards,
Tony

There should be a function to open Articy to a given node

The Unreal Articy extension has a button to "view this node in Articy" which directs an open instance of Articy to select and focus the given node.

ArticyJS should have a function that takes an ID and does the same. This way games can, for example, provide a debug bar to show the current node.

No Way to Auto-Generate Feature/Template Properties from a Project

The Unity and Unreal plugins have the ability to auto-generate template and feature definitions from an exported JSON file. There should be a node cli program included or as part of a separate package. It should generate Typescript files with interfaces for features and templates including comments extracted from the tooltips.

Should it generate classes? Or just interfaces. If it generates classes how can users add new methods to them without them being overriden?

When using with Hot Reload, Feature and Template handlers get duplicated

When using with a framework supporting hot reload like Webpack, feature and template handlers get duplicated every time you hot reload. This means your function is effectively called two, three, or even more times than its supposed to every time it hits a matching node.

This doesn't affect script handlers, as they are registered by name and thus are overriden with each hot reload.

TextExtensions are not supported.

A custom text extension like feature is available in ArticyJS, modelled off the list printing functionality in Ink, but there's currently no support for the TextExtensions described in the Unity extension.

The format display text function should support both, potentially allowing you to use one, the other, or both.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.