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

No Interface for HTML5? #118

Open
Sunnigen opened this issue Nov 21, 2022 · 2 comments
Open

No Interface for HTML5? #118

Sunnigen opened this issue Nov 21, 2022 · 2 comments

Comments

@Sunnigen
Copy link

Sunnigen commented Nov 21, 2022

Running the HTML5 exported project has run into an issue. When bringing up developer tools on either Chrome or Microsoft Edge I get the following:

ERROR: Interface does not have a library for the current platform.
at: init_library (modules/gdnative/nativescript/nativescript.cpp:1479) - Condition "lib_path.length() == 0" is true.
SCRIPT ERROR: Attempt to call function 'new' in base 'NativeScript' on a null instance.
at: GameScreen._reset_dungeon (res://GameScreen.gdc:130) - Attempt to call function 'new' in base 'NativeScript' on a null instance.

The GameScreen._reset_dungeon() issue at line 130 is this following code:

dijkstra_map = DijkstraMap.new()

Then, I also tried the HTML5 export without my code: Minimum Working Example

Just from the Visualisation.tscn demo, I get the same errors as above on both Chrome and Edge.

From the picture attached below when I make a selection from the visualizer dialog box, neither the cost map nor the direction map updates. I'm not sure why it can't. I was able to successfully export onto desktop and play around with the visualizer.

Also, I noticed after downloading from AssetLib, this module doesn't appear in the plugins for me to toggle?

Tested on:

  • Godot 3.5.1
  • Window 11
  • Chrome(latest) and Microsoft Edge(latest)

How to reproduce:

  1. Create new project and create a parent node
  2. Download via AssetLib and attach visualisation.tscn as child node
  3. Download HTML5 template & run
  4. select either "cost map" or "direction map" in dialog box
  5. Open developer tools

issue

@astrale-sharp
Copy link
Collaborator

astrale-sharp commented Dec 3, 2022 via email

@astrale-sharp
Copy link
Collaborator

Oh my bad they totally do support it but it's a bit of a pain, got it working on one of my project, see godot rust book for details and ask them or me if you can't get it working

if someone is interested in bringing support for this go ahead

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