GithubHelp home page GithubHelp logo

dhowe / dialogic Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 5.0 31.07 MB

Dialogic: generative interactive dialog

License: GNU General Public License v3.0

C# 24.51% JavaScript 71.38% HTML 3.09% Shell 0.05% CSS 0.92% Roff 0.05%

dialogic's Issues

Staleness/Increment not working as expected

Steps to Reproduce: Parse this set of Chats, repeatedly pass a ResumeEvent with parameters {type=test}

CHAT CORE_Stale_Slow {type=test, stage=CORE, stalenessIncr=0.05}
SAY slow!

CHAT CORE_Stale_Med {type=test, stage=CORE, stalenessIncr=1}
SAY medium!

CHAT CORE_Stale_Fast {type=test, stage=CORE, stalenessIncr=20}
SAY fast!

Expected: CORE_Stale_Slow will appear with increasing frequency, CORE_Stale_Fast will appear with decreasing frequency.

Actual: All three chats appear at the same frequency. In fact, after all three have played, they repeat that same pattern infinitely.

Realizing variables in Chat metadata

Chat metadata is intentionally not realized at this point. However I can imagine edge cases where this might be useful... (though given a large number of chats and/or searches, it may be quite inefficient)

Support for saving symbol state

SET hero = (Jane | Jill)
SAY Long ago there was a girl named [selected=$hero]. 
SAY $selected was a clever girl.

OUTPUT:

Long ago there was a girl named Jane. Jane was a clever girl.
    OR
Long ago there was a girl named Jill. Jill was a clever girl.

Max group recursion depth issue

Reported by @dcannizzaro

seems like nesting more than three level deep breaks groupings

CHAT myGrammar {noStart=true}
SAY (I|(You|(doh|why|no)|oUY)|They) (want|hate|like|love) (coffee|bread|milk)

Editor: Warning in console

A parser-blocking, cross site (i.e. different eTLD+1) script, http://files.aw20.net/jquery-linedtextarea/jquery-linedtextarea.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
success @ (index):78

Linter: allow URL for script-file, in addition to copy paste

You can use the 'LoadUrl' button on this page as an example.

We should be able to use a github raw URL, or a Google-docs URL.

Start by testing with URLs of these files (in RAW mode): https://github.com/dcannizzaro/tendAR/tree/ca06ee409fd15420135e9567ed921645b337b0b4/TendAR/Assets/Libraries/Dialogic/GuppyScripts

For example: https://raw.githubusercontent.com/dcannizzaro/tendAR/ca06ee409fd15420135e9567ed921645b337b0b4/TendAR/Assets/Libraries/Dialogic/GuppyScripts/gscript.gs.txt?token=AAtBZge0aTiAfaPesTi2C3SE8_Zssiuwks5ay-qjwA%3D%3D

For the Google docs case, see also: #25

Labels are considered constants and not realized

We currently do not treat #Labels as dynamic data (which means $variables and (value1|value2) are not replaced with literals. There may be cases however where this would be useful...

This applies to Labels in GO, DO, and OPT.action(Go).

This was requested in meeting on April 4. Syntax should be:

GO #(LabelA | LabelB)

Resumes not working as expected

Steps to Reproduce: Parse the following chats. Trigger CORE_Long_Interruptable, while it is playing, trigger CORE_Short_Interruption.

CHAT CORE_Long_Interruptable {type=poke, stage=CORE}
SAY Oh, it's you...
SAY It's been a long time. How have you been?
SAY I've been really busy being dead.
SAY You know
SAY After you MURDERED ME
SAY Okay. Look. We both said a lot of things that you're going to regret.
SAY But I think we can put our differences behind us.
SAY For science.
SAY You monster.

CHAT CORE_Short_Interruption {type=shake, stage=CORE}
SAY Stop that.

Expected: CORE_Long_Interruptable will resume after CORE_Short_Interruption

Actual: CORE_Long_Interruptable does not resume after CORE_Short_Interruption

Auto-generate docs

generate html class documentation (like javadoc), preferably from within Visual Studio

Add smoothing functionality

Enable authors to specify a transitional (smoothing) Chat to run whenever the specified Chat is interrupted. This should be settable via the metadata key 'onResume'. See this script

Address Chat scoping issues

Correctly handle local scope on Chat completion

Note: if we clear, conditional exit of Chat will be a problem (all branches of an Ask thus must go to other Chats) - otherwise (or if they return) scope will be empty

Accept multi-keys in Chat

Such as:

CHAT c1 { emotion = (sad,depressed,gloomy) }

OR

CHAT c1 { emotion = (sad | depressed | gloomy) }

Need to allow arrays as metadata values, at least for Chats

On hold for post Chat-refactor

Global timing constant

[Pending Question]

I've implemented a constant for all Command event durations, called Defaults.GLOBAL_TIME_SCALE, which defaults to 1. This affects only the scheduler timing (that is, the duration for each Command). Setting it to 1.5, for example, would extend these durations by 50% (thus slowing the system down)

What, if any, other timing properties should be affected here? Should this include literal properties (set by either the game or a Chat author) as well? For example, if an author specifies an Ask timeout of 5 seconds, should this be scaled as well? I think not, but want to verify the thinking here

SAY bug, repeating realizations

Example:

CHAT myGrammar {noStart=true,defaultCmd=SET}
start = <subject> <verb> <object>.
subject = I | You | They
object = coffee | bread | milk
verb = want | hate | like | love
SAY $Start

-> You want milk. You want milk. You want milk. You want milk. You want milk. You want milk. You want milk.

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.