deep-entertainment / issues

Issue tracker for deep Entertainment projects
1 stars 0 forks source link

References to resources in Escoria commands are parsed as spoken text by ink bridge. #43

Open cidneyhamilton opened 9 months ago

cidneyhamilton commented 9 months ago

Project:

Describe the bug A command like >> change_scene "res://my_test_scene.tscn" will match the regexp (?[a-z]+):\s*(?.+), and the Escoria bridge will try to parse it as a text command and look for a character named "res".

To Reproduce Need to expand the test project to demonstrate.

  1. Create a new scene.
  2. Add a change scene command to the test ink script, ie `>> change_scene "res://my_test_scene.tscn"
  3. Run game and ink script.
  4. See error.

Expected behavior Scene should change (command should be executed).

Additional context My solution locally is to check to see if it's an Escoria command first (and insert escape characters). But want to open an issue for discussion.