Open Bard09 opened 5 months ago
Thank you for the report.
After a bunch of testing, this looks like a regression in Godot itself, and was reported as such^1.
In the meantime, you should be able to call the long versions of those methods. E.g., calling story.EvaluateFunction("now")
is the same thing as calling story.EvaluateFunction("now", [])
. The second arguments being the array of arguments you'd pass to the ink function (nothing).
Sorry for the inconvenience.
It looks like https://github.com/godotengine/godot/pull/90968 was fixed in the recent 4.3 release. I haven't had a chance to upgrade yet but looking forward to see if this resolves this issue!
Describe the bug After upgrading from 4.2 to 4.2.2 I am seeing several errors in my GDScript code that reference GodotInk C# methods via Interop. Here are two examples of the error:
GDScript references to C# methods appear to be binding now to the non-Interop C# methods in InkStory in GDScript rather than the Interop ones.
To Reproduce Call C# methods successfully in GDScript via Interop in 4.2; upgrade to Godot 4.2.2, and there should be errors displayed on load of the 4.2 project.
As an example of the EvaluateFunction error above, here's what reproduces it in 4.2.2 with an Ink Story that has a function called "now":
Environment
Additional context This is the first time I've upgraded Godot, so if there's an implicit post-upgrade step I've missed, let me know :)
Could this 4.2.2 C# change be indicative that perhaps we may not need the Interop methods any more? (maybe I'm talking crazy!)