Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where/how to indicate the Godot project root directory? #8

Open
tylerecouture opened this issue Apr 27, 2020 · 8 comments
Open

Where/how to indicate the Godot project root directory? #8

tylerecouture opened this issue Apr 27, 2020 · 8 comments

Comments

@tylerecouture
Copy link

tylerecouture commented Apr 27, 2020

Giving this a stab, very cool!

But, my godot project's root is in a directory, not at the github repo's root, and I'm not familiar enough with docker volumes to fix it:

Setting environment variables from .travis.yml
$ export GAME_NAME="Panjwayi"
rvm
0.58s$ rvm use default
ruby.versions
$ ruby --version
install
23.64s$ docker pull gamedrivendesign/godot-export
$ docker run -e EXPORT_NAME="HTML5"           -e OUTPUT_FILENAME="index.html"           -v $(pwd)/panjwayi:/build/src -v $(pwd)/output/html5:/build/output   gamedrivendesign/godot-export
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.

Here's my repo, with all the godot source in the panjwai directory:
https://github.com/Weingardt-Games/panjwayi

@tylerecouture tylerecouture changed the title Where/how to indicate src directory? Where/how to indicate the Godoto project root directory? Apr 27, 2020
@tylerecouture tylerecouture changed the title Where/how to indicate the Godoto project root directory? Where/how to indicate the Godot project root directory? Apr 27, 2020
@tom95
Copy link
Contributor

tom95 commented Apr 28, 2020

Just adapting the -v already sounds like a good idea to me without thinking about it too much... Further, the error would have likely been a bit more explicit had it not found anything. So, I might be wrong, but my guess is that one of your resources is referring to a broken link for example. If you run docker locally from the command line, you should be able to see the same error I would assume, should it actually be a problem in your repository. Could you give that a quick try?

@tylerecouture
Copy link
Author

tylerecouture commented Apr 28, 2020

When I try it locally, it creates an empty /output/html5 directory and then hangs?

$ export GAME_NAME="Panjwayi"
$ docker run -e EXPORT_NAME="HTML5" -e OUTPUT_FILENAME="index.html" -v $(pwd)/panjwayi:/build/src -v $(pwd)/output/html5:/build/output   gamedrivendesign/godot-export

Could my Godot version be an issue? I'm using 3.2.1

@tylerecouture
Copy link
Author

tylerecouture commented Apr 28, 2020

Note that this works for me locally (i..e the game at least builds and exports properly as is)

~/apps/Godot_v3.2.1-stable_x11.64 --export HTML5 --path ~/Godot/panjwayi/panjwayi ~/Godot/panjwayi/output/html5/panjwayi

@tom95
Copy link
Contributor

tom95 commented Apr 28, 2020

Any possibility that you haven't pushed something that is important? Fastest way to check would be to do a fresh git clone and try there once.

@tylerecouture
Copy link
Author

Only thing different is the ouput directory it created:

$ git pull
Already up to date.
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	output/

nothing added to commit but untracked files present (use "git add" to track)
tylere@sparagus:~/Godot/panjwayi$ 

@tom95
Copy link
Contributor

tom95 commented May 2, 2020

Hey, sorry for the late reply! I see you switched to GH actions in your repo, so you no longer have need for this repo? Or does it do not quite the same?

@tylerecouture
Copy link
Author

Yes I switched over because I couldn't get this one to work. Sorry!

@tom95
Copy link
Contributor

tom95 commented May 2, 2020

Ah no problem, just wanted to know if it's still urgent. I'll keep the issue open for documentation purposes, but probably only get back to it if it's needed again.

Good luck with your project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants