abarichello / godot-ci

Docker image to export Godot Engine games. Templates for Gitlab CI and GitHub Actions to deploy to GitLab Pages/GitHub Pages/Itch.io.
https://hub.docker.com/r/barichello/godot-ci
MIT License
759 stars 133 forks source link

Script class not found #31

Open myin142 opened 4 years ago

myin142 commented 4 years ago

When I build the project with this docker image, I get for example this error: **SCRIPT ERROR**: Parse Error: The identifier "Health" isn't a valid type (not a script or class), or couldn't be found on base "self".

But building it locally works fine. I tried 3.2.2, 3.2.1 and latest but they all cause this error. Not sure if the problem is in this docker image. I assume it is since it works locally.

realkotob commented 4 years ago

I think this could be an issue with running the build before the class database is cached. We can try to add an extra command to force it to init the class database earlier, although I can't guarantee that will work.

It could be an issue with the headless version of godot itself, if that is the case then there is nothing we can do, it has to be fixed upstream.

myin142 commented 4 years ago

Just some information. I don't think there is any problem with the docker image or godot headless itself. Because I tried building it locally with this image using docker and it seems to work. It only does not work on Github Actions and Gitlab CI, maybe even other CI providers. Only builds on these CI providers fails for me.

Calinou commented 3 years ago

@myin142 Can you still reproduce this issue with the latest Godot and godot-ci versions?

myin142 commented 3 years ago

@Calinou Seems like it is still happening. I changed it to the latest version but the newest is 3.2.3 anyway so I think nothing changed since last time. I used the project I mentioned in this issue.