Skip to content

Need to persist runner state #1

@mapto

Description

@mapto

Hello,
I'm participating in the Interact-IF jam. My team decided to use yarn, and I'm now trying to make a python web-based storytelling app.

My current challenge is that I need to preserve state across web requests. One naive option is to memorise the state as a sequence of player choices and re-run the narrative up to the current point. Clearly, this is suboptimal, even if the story is deterministic (not sure for how long this would be a given in a storytelling context).

A better solution would be to be able to initialise the runner with an optional state. Clearly this would not only be a node, but also variables, etc. I'd appreciate a comment on whether such an approach is consistent with your vision and wouldn't mind giving it a try aiming for a pull request.

Thanks a lot!
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions