imjp94 / gd-YAFSM

Yet Another Finite State Machine for godot
MIT License
559 stars 26 forks source link

Unable to upload exported pck to gotm.io #71

Open quimnuss opened 1 year ago

quimnuss commented 1 year ago

Using godot 4.1.1

If I upload the pck to https://gotm.io/web-player the inspector says

USER SCRIPT ERROR: Parse Error: Function "_init()" not found in base Node. at: GDScript::reload (res://addons/imjp94.yafsm/src/StackPlayer.gd:23)

I also had issues exporting, which it told me it couldn't find the scripts although it magically worked at a later export.

I have no idea why this happens, since Node should have _init()

Can you reproduce the issue uploading a pck to that web? The game plays but errors when calling yafsm freeze all my game animations.

imjp94 commented 1 year ago

Confirmed, I am getting similar errors for uploading game build from gd-YAFSM-demo:

[GODOT] USER SCRIPT ERROR: Parse Error: Function "_init()" not found in base RefCounted.
[GODOT] USER SCRIPT ERROR: Parse Error: Could not resolve class "res://addons/imjp94.yafsm/src/StackPlayer.gd".
......
rsubtil commented 1 year ago

Possible https://github.com/godotengine/godot/issues/76938?