-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add option to import resources using a command line argument #1362
Comments
|
In smaller project it usually works, but with https://github.com/godotengine/tps-demo it close after 2/3 second, which is impossible import all files because normal importing take ~30 minutes. |
I vote yes! My legit use case godotengine/godot#39396 (comment). |
I support this. I've worked the headless godot a lot and I found that Additionally, on gitlab the community CI runners don't cache pipelines when it's told to because the runners are shared and don't share their caches together. If there was an import CLI argument then at least I could try to have the cache be shared across jobs within the same pipeline. |
I would like to see this implemented to avoid spurious CI errors when exporting via Godot headless:
It reports an error because it can't find the |
I second @knightofiam 's comment. Projects using build pipelines, without ./.import in repo are facing this issue. Build works, but with an error for each asset. |
I ran into this issue today. I tried
So, as mentioned above, |
This comment was marked as off-topic.
This comment was marked as off-topic.
@PoolloverNathan Please don't bump issues without contributing significant new information. Use the 👍 reaction button on the first post instead. |
What is the best workaround for this issue for now?
|
With Godot 4, With Godot 3, use a Linux headless editor binary which can be downloaded from the official website. |
We had the same problem and opening the project via command line in editor mode with |
I did not test it right. However, I noticed, that rebuilding the cache can cause other problems. |
Describe the project you are working on:
I'm working on PR which import and check project to test PR - godotengine/godot#40994
Describe the problem or limitation you are having in your project:
I can't find(because probably doesn't exists) any flag, that would only import all files(scenes, resources, images etc...)
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Now I use timeout to prevent godot from quiting during importing, which sadly doesn't always work in CI
but this isn't also universal solution, because a lot of projects have a lot of assets which is impossible to measure time which is needed to import all files.
So better idea is to add new flag e.g.
--import-only
which would import files and after that just close Godot.It would be great if the editor wasn't even running.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
The best if it would work without needing initializing all graphics editor components, but I know that this isn't now possible, because code which imports resources exists in
EditorFileSystem
The easiest way to do this is to save to variable if user used
--import-only
option and check it inEditorFileSystem::_notification
insideNOTIFICATION_EXIT_TREE
if is set, so it may wait until all files will be imported.If this enhancement will not be used often, can it be worked around with a few lines of script?:
Like I wrote, it can be used timeout but it is really really really bad solution for any project greater than 1 image.
Is there a reason why this should be core and not an add-on in the asset library?:
It would be very helpful for all people wanting to integrate their projects into CI
The text was updated successfully, but these errors were encountered: