Page 1 of 2

Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Sun May 03, 2020 3:35 am
by Melimeli
I tried exporting the demo from github - to desktop .exe (I changed nothing) And I can't play it. Creature works fine on Godot Editor but not on export.


I also tried using HTML5 export and got these errors:

Code: Select all

**SCRIPT ERROR**: Parse Error: Unknown class: "CreatureGodot" index.js:7:35827
   At: res://morphTest.gdc:1:GDScript::load_byte_code() - Parse Error: Unknown class: "CreatureGodot" index.js:7:35827
**ERROR**: Method failed. Returning: ERR_PARSE_ERROR index.js:7:35827
   At: modules/gdscript/gdscript.cpp:778:load_byte_code() - Method failed. Returning: ERR_PARSE_ERROR index.js:7:35827
**ERROR**: Cannot load byte code from file 'res://morphTest.gdc'. index.js:7:35827
   At: modules/gdscript/gdscript.cpp:2240:load() - Condition "err != OK" is true. Returned: RES() index.js:7:35827
**ERROR**: Failed loading resource: res://morphTest.gdc. index.js:7:35827
   At: core/io/resource_loader.cpp:278:_load() - Condition "found" is true. Returned: RES() index.js:7:35827
**SCRIPT ERROR**: Parse Error: Unknown class: "CreatureGodot" index.js:7:35827
   At: res://morphTest.gdc:1:GDScript::load_byte_code() - Parse Error: Unknown class: "CreatureGodot" index.js:7:35827
**ERROR**: Method failed. Returning: ERR_PARSE_ERROR index.js:7:35827
   At: modules/gdscript/gdscript.cpp:778:load_byte_code() - Method failed. Returning: ERR_PARSE_ERROR index.js:7:35827
**ERROR**: Cannot load byte code from file 'res://morphTest.gdc'. index.js:7:35827
   At: modules/gdscript/gdscript.cpp:2240:load() - Condition "err != OK" is true. Returned: RES() index.js:7:35827
**ERROR**: Failed loading resource: res://morphTest.gdc. index.js:7:35827
   At: core/io/resource_loader.cpp:278:_load() - Condition "found" is true. Returned: RES() index.js:7:35827
**WARNING**: Couldn't load external resource: res://morphTest.gd index.js:7:35827
   At: scene/resources/resource_format_text.cpp:175:_parse_ext_resource() - Couldn't load external resource: res://morphTest.gd index.js:7:35827
**ERROR**: Cannot get class 'CreatureGodot'. index.js:7:35827
   At: core/class_db.cpp:1329:is_class_enabled() - Condition "!ti" is true. Returned: false index.js:7:35827
WebGL warning: generateMipmap: Tex image TEXTURE_CUBE_MAP_POSITIVE_X level 0 is incurring lazy initialization. index.js:7:260712
WebGL warning: generateMipmap: Tex image TEXTURE_CUBE_MAP_NEGATIVE_X level 0 is incurring lazy initialization. index.js:7:260712
WebGL warning: generateMipmap: Tex image TEXTURE_CUBE_MAP_POSITIVE_Y level 0 is incurring lazy initialization. index.js:7:260712
WebGL warning: generateMipmap: Tex image TEXTURE_CUBE_MAP_NEGATIVE_Y level 0 is incurring lazy initialization. index.js:7:260712
WebGL warning: generateMipmap: Tex image TEXTURE_CUBE_MAP_POSITIVE_Z level 0 is incurring lazy initialization. index.js:7:260712
WebGL warning: generateMipmap: Tex image TEXTURE_CUBE_MAP_NEGATIVE_Z level 0 is incurring lazy initialization.

I have also tried exporting with GLES 2 but still failed.

Just to clarify - the export process was successful but I couldn't play the result (.exe or .html).

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Sun May 03, 2020 8:53 am
by chong
Hello,

This looks like a Godot Engine export bug. I will investigate but it looks like a bug for Godot Engine.
Not sure if this thread is useful for you:
https://github.com/kestrelm/Creature_Godot/issues/5

And this more recent one:
https://github.com/kestrelm/Creature_Godot/issues/16

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Sun May 03, 2020 10:28 am
by Melimeli
This is my error with desktop export btw (3.2.1): http://prntscr.com/sa300u

Honestly it's really discouraging to see this. I just want it to work - what game engine is fully supported? Because you said that Godot is supported but it's not. It can't even export.

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Wed May 06, 2020 4:54 am
by Melimeli
Uh - whatever happens to your investigation please reply back here... Because the game is quite dependent on the animation :|

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Wed May 06, 2020 11:58 am
by chong
Did you follow the instructions here:
https://github.com/kestrelm/Creature_Godot/issues/16

The user above got it working. Also, if you want to use all the features with a stable engine, try Unity or UE4. Godot Engine is in constant development so their export code might not be as stable.

Also, for your error in particular, can you try posting it on the Godot Engine issues page:
https://github.com/godotengine/godot/issues

Put your screenshot error in there as well. It seems like their Exporter is not finding the appropriate plugin module even though it is already specified and loads properly in the editor.

Thanks

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Wed May 06, 2020 12:26 pm
by chong
I also just filed an issue here for the export failure:
https://github.com/godotengine/godot/issues/38504

Feel free to add your screenshot and information as well.

Thanks

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Thu May 07, 2020 12:02 am
by Melimeli
(I have tried it but it didn't work, still class error)

I posted my issue as well, but the issue isn't JSON, it's the class itself won't even load.

Code: Select all

**SCRIPT ERROR**: Parse Error: Unknown class: "CreatureGodot" index.js:7:35827
At: res://morphTest.gdc:1:GDScript::load_byte_code() - Parse Error: Unknown class: "CreatureGodot" index.js:7:35827
Also - they just replied:
Since this is a C++ module (which is compiled statically into the engine), you need to recompile all the export templates you plan to use as well. Otherwise, the class won't be available in the export template binary.
I hope there's a fix / further direction on how to compile export templates (with the class CreatureGodot)

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Thu May 07, 2020 8:18 am
by chong
Hello,

This is a Godot Engine thing, I suggest you ask Godot Engine on how to perform this step. I noticed the people are quite helpful on the issues thread so you can most probably ask them for the specific steps.

Thanks

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Thu May 07, 2020 11:35 am
by Melimeli
I compiled the export template as well and it works!

Alright then, thanks! :D

Re: Godot 3.2.1 Fail to play after export (Desktop .exe and .html)

Posted: Wed Apr 14, 2021 9:59 pm
by HeroicNate
Melimeli wrote:
Thu May 07, 2020 12:02 am
Since this is a C++ module (which is compiled statically into the engine), you need to recompile all the export templates you plan to use as well. Otherwise, the class won't be available in the export template binary.
I hope there's a fix / further direction on how to compile export templates (with the class CreatureGodot)
Since you got it working, can you point me in the right direction? I do not know what it means to recompile all the export templates.