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

load_directories error #17

Open
brokolja opened this issue May 25, 2023 · 9 comments
Open

load_directories error #17

brokolja opened this issue May 25, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@brokolja
Copy link

brokolja commented May 25, 2023

System: Macbook Pro i5 Ventura 13.3.1
Godot: 4.0.3
Unity: 2020.3.48f1

  1. Generated unity package of polygonFantasyKingdom by rightclick on the directory in unity
  2. Tried loading the ...unitypackage in godot
  3. Got the following error (import folder with catalog.json and location.txt is created but nothing else btw.)

E 0:00:08:0516 browser.gd:91 @ load_directories(): Condition "err" is true. Returning: err
<C++ Source> core/io/marshalls.cpp:1522 @ encode_variant()
browser.gd:91 @ load_directories()
browser.gd:83 @ load_package()
browser.gd:45 @ ()

@barcoderdev
Copy link
Owner

Does the catalog.json file contain any data, or just "null"?

@brokolja
Copy link
Author

Just an empty: {}

@barcoderdev
Copy link
Owner

barcoderdev commented May 25, 2023

Odd. That sounds like it was able to read the package file but it contained nothing. The load_directory error is due to it expecting at least one file in there.

What does it show if you run unitypackage_util from the command line?

unitypackage_util path/to/some.unitypackage list -p

Does it contain a json list of guid/filepath?

@brokolja
Copy link
Author

Yes, works without errors. Looks like:

[ [ "./83e571106d7981a4780e11ce38b7a834", "Assets/PolygonFantasyKingdom" ], [ "./8745814a0cc532044bf8af9962b3c8e4", "Assets/PolygonFantasyKingdom/Materials" ], [ "./5178a4e572280fb4985bacb2abe5c1d4", "Assets/PolygonFantasyKingdom/Materials/Alts" ], [ "./e3d8c45c9df90aa4d8a6a4a1dc5a3b95", "Assets/PolygonFantasyKingdom/Materials/Alts/PolygonFantasyKingdom_Mat_01_B.mat" ], [ "./f8cdfec67051f5b49b89bb558b39d63c", "Assets/PolygonFantasyKingdom/Materials/Alts/PolygonFantasyKingdom_Mat_01_C.mat" ], [ "./7a55ee699ad0a2f42af5eb327296d022", "Assets/PolygonFantasyKingdom/Materials/Alts/PolygonFantasyKingdom_Mat_02_B.mat" ], ...

@barcoderdev
Copy link
Owner

Ahh I see the issue. The guid's should not have the leading ./. I'll update unitypackage_util to correct that.

@barcoderdev
Copy link
Owner

Can you try the updated unitypackage_util? https://github.com/barcoderdev/unitypackage_util/actions/runs/5092738498

It looks like the ./guid issue was only with the list command which isn't used during the import. Try running unitypackage_util path/to/package.unitypackage debug and see if it errors out on a particular file/guid.

@brokolja
Copy link
Author

brokolja commented May 27, 2023

./unitypackage_util unity_packages/PolygonFantasyKingdom.unitypackage debug logs nothing.

I also noticed that:
./unitypackage_util unity_packages/PolygonFantasyKingdom.unitypackage list -p
now logs: []%

In godot, when running the project the load_directories error from above is gone now. Sadly there's another error now:

E 0:00:21:0560 upackgd_base.gd:66 @ directories(): UPackGD::_directories::NotReady
<C++ Source> core/variant/variant_utility.cpp:903 @ push_error()
upackgd_base.gd:66 @ directories()
browser.gd:95 @ load_directories()
browser.gd:88 @ load_package()
browser.gd:45 @ ()

I also tried with another package but same result...

@CadanoX
Copy link

CadanoX commented Aug 31, 2023

I experience the same issue as described above. Trying to load any package just results in an empty output {} and gives the message UPackGD::_directories::NotReady.
I tried following this comment #14 and ran unitypackage_util from source with the println's and dump, but it just returns {} without any errors. list -p returns [].
I'm on macOS 13.4.1 with Unity 2022.3.7f1 and tried multiple different packages, including this free asset https://assetstore.unity.com/packages/3d/environments/landscapes/low-poly-simple-nature-pack-162153

@SolAZDev
Copy link

I experience the same issue as described above. Trying to load any package just results in an empty output {} and gives the message UPackGD::_directories::NotReady. I tried following this comment #14 and ran unitypackage_util from source with the println's and dump, but it just returns {} without any errors. list -p returns []. I'm on macOS 13.4.1 with Unity 2022.3.7f1 and tried multiple different packages, including this free asset https://assetstore.unity.com/packages/3d/environments/landscapes/low-poly-simple-nature-pack-162153

I happen to experience the same thing. With the new CI Builds, a local build and someone's fork
My system is a Garuda (Arch) Linux and packages were made with 2022.3

@barcoderdev barcoderdev self-assigned this Sep 16, 2023
@barcoderdev barcoderdev added the bug Something isn't working label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants