Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail with error instead of crashing #16

Open
JohanForngren opened this issue Sep 14, 2021 · 1 comment
Open

Fail with error instead of crashing #16

JohanForngren opened this issue Sep 14, 2021 · 1 comment

Comments

@JohanForngren
Copy link
Contributor

If I mistype something, I would like the game to try to continue and instead giving we a warning or error in the console.

Examples:

- dude says: Hello
- dudesays: It's me
- dude says: Just wanted to say hi

Suggested message: "Warning: Action dudesays does not exist at Story.yaml:

- show exhibitA: AT LEFT
- show typo: AT CENTER
- show exhibitC: AT RIGHT

Suggested message: "Warning: Asset typo does not exist at Story.yaml:

@lunafromthemoon
Copy link
Owner

One way to do this:
Catch exception when parsing/executing task, if it fails, print the error. Specific error messages could be done per task eventually.
Currently you can also use debugMode: true (in config object in boot.js) to see step by step the execution of the story tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants