You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using inkgd with Godot 4 (using the godot4 branch of inkgd).
This works well when I run my project inside Godot and when I export it to a Windows Desktop app.
However, inkgd fails when I do a Web export.
#@onready var _ink_player = InkPlayer.new()@onreadyvar_ink_player=$InkPlayerfunc_ready() ->void:
# _ink_player.ink_file = load("res://stories/grocery.ink.json")print("ink_file: ", _ink_player.ink_file.json)
_ink_player.connect("loaded", _story_loaded)
_ink_player.connect("prompt_choices", _prompt_choices)
_ink_player.connect("continued", _continued)
_ink_player.create_story()
func_story_loaded(successfully: bool):
# this is never calledpass
The print call above shows that _ink_player correctly has the compiled json file.
However, _story_loaded is not called.
When I call _ink_player.continue_story(), I get an error (in the JS console):
USER ERROR: The _story is 'null', was it loaded properly?
I'm new to Godot and to inkgd. Did I miss something, or is it a bug?
I've tried loading _ink_player in two different ways, but the same problem happens.
Hi,
I'm using inkgd with Godot 4 (using the godot4 branch of inkgd).
This works well when I run my project inside Godot and when I export it to a Windows Desktop app.
However, inkgd fails when I do a Web export.
The
print
call above shows that_ink_player
correctly has the compiled json file.However,
_story_loaded
is not called.When I call
_ink_player.continue_story()
, I get an error (in the JS console):I'm new to Godot and to inkgd. Did I miss something, or is it a bug?
I've tried loading
_ink_player
in two different ways, but the same problem happens.Environment:
Thanks!
The text was updated successfully, but these errors were encountered: