[SOLVED] Can someone help with fixing a Godot 3.4 plugin for Godot 4.1?

3 years ago by HobbesHK to c/godot

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!

load all comments
Ategon 10 points 3 years ago

The JavaScript singleton no longer exists in Godot 4. Instead theres something called JavaScriptBridge. Docs about it here: https://docs.godotengine.org/... but havent used it before so cant give more than that

path: 0 3290198, hotness: undefined, score: 10, children: 2
HobbesHK 4 points 3 years ago

Thank you! I had a look through the documentation and managed to fix the error.

path: 0 3290198 3291952, hotness: undefined, score: 4, children: 1
Ategon 11 points 3 years ago

Nice, if you want you can also say how you solved it here in case someone stubles on this post in the future

path: 0 3290198 3291952 3293114, hotness: undefined, score: 11, children: 0
godot
godot

@programming.dev

login for more options
7961
1187
478

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

  • Posts need to be in english
  • Posts with explicit content must be tagged with nsfw
  • We do not condone harassment inside the community as well as trolling or equivalent behaviour
  • Do not post illegal materials or post things encouraging actions such as pirating games

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

  • The icon is a modified version of the official godot engine logo (changing the colors to a gradient and black background)
  • The banner is from Godot Design

go to feed...