godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

Support project exporting

Open touilleMan opened this issue 7 years ago • 6 comments

touilleMan avatar Apr 07 '18 17:04 touilleMan

Hello Touilleman, exporting the project for windows or HTML5 is still not supported currently?? I'm running on Godot 3.0.6 on windows 10 64bits with a project running pytorch in Godot. When I try packaging the game, I get an error when I launch the .exe

fuderiki avatar May 17 '19 14:05 fuderiki

Hi @fuderiki,

exporting the project for windows or HTML5 is still not supported currently??

Project exporting is not supported yet (and HTML5 export even further away !)

When I try packaging the game, I get an error when I launch the .exe

Yep, that's because Goto export doesn't export python stuff, so you're missing files to run the game. The solution could be to correct the export by hand by adding the missing files (typically the pythonscript folder)

touilleMan avatar May 17 '19 22:05 touilleMan

Yes it works! Thank you Touilleman!

fuderiki avatar May 18 '19 04:05 fuderiki

How did you hand add the files? Errors:

pythonscript/x11-64-cpython/libpythonscript.so: cannot open shared object file: No such file or directory翼缁������

Followed later when loading a python file:

ERROR: _load: No loader found for resource: res://scenes/ImportExcel/ValidateExcel.py
   At: core/io/resource_loader.cpp:285.
ERROR: poll: res://scenes/ImportExcel/ImportExcel.tscn:5 - Parse Error: [ext_resource] referenced nonexistent resource at: res://scenes/ImportExcel/ValidateExcel.py
   At: scene/resources/resource_format_text.cpp:440.

Currently Additional Non-Resource Includes are: pythonscript/*, *.py

FeralBytes avatar Jun 08 '19 03:06 FeralBytes

So in order to work around this problem, I found that I could export, just to get the pre-compiled binary of Godot, and then place that binary in an unpacked version of the project and it would all run just fine so long as I had used pip for the specific ~~version~~ OS to install the needed requirements. it is very interesting what you can pull off with this technique.

FeralBytes avatar Jun 08 '19 06:06 FeralBytes

Hi @fuderiki,

exporting the project for windows or HTML5 is still not supported currently??

Project exporting is not supported yet (and HTML5 export even further away !)

When I try packaging the game, I get an error when I launch the .exe

Yep, that's because Goto export doesn't export python stuff, so you're missing files to run the game. The solution could be to correct the export by hand by adding the missing files (typically the pythonscript folder)

Heya, I know this might be an old thread but I need help.

How would I go about adding the files to the export?

Thx in advance

GetAGripGal avatar Oct 16 '19 09:10 GetAGripGal