[SOLVED] Can someone help with fixing a Godot 3.4 plugin for Godot 4.1?
[SOLVED] Can someone help with fixing a Godot 3.4 plugin for Godot 4.1?
Hi everyone,
Pretty much as I described in my toot (text copied here). Is anyone aware of what I may need to fix to get this plugin to work again?
I'm hoping someone can help me with a Godot engine question. With the Q&A forum being read-only, I'm hoping Lemmy people can answer this one for me.
I'm trying to use this plugin for HTML5 downloads in Godot 4.1:
https://github.com/Pukkah/HTML5-File-Exchange-for-Godot
It's for Godot 3.4, but I've upgraded my projects and want to stay in 4.1.
Currently, it throws an error “Identifier JavaScript not defined in scope” (see screenshot).
Would anyone have an idea on what to fix here? Thanks!
The JavaScript singleton no longer exists in Godot 4. Instead theres something called JavaScriptBridge. Docs about it here: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_web.html#calling-javascript-from-script but havent used it before so cant give more than that
10 0 ReplyThank you! I had a look through the documentation and managed to fix the error.
5 0 ReplyNice, if you want you can also say how you solved it here in case someone stubles on this post in the future
11 0 Reply