-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Material Maker 0.92 Macos fails to load resources #140
Comments
I don't have a Mac and thus cannot maintain a Mac release. Your current problem is that there are missing resources in your export. Replicating the resources exported in the Windows or Linux release should solve it. It is also necessary to copy some of the files alongside the executable (and I absolutely don't know how this applies to Mac). You may want to download a Windows or Linux release to know which files are needed. If you succeed in creating a working Mac release, I'd really like to hear about it. :) |
Hi @RodZill4, I can find the resource files, the issue is where to put them 👍 Is there a way in Godot to trace "res://" to a file location? On macOS there's an equivalent for %APPDATA%, called "Application Support". Also, the application bundle itself (the .app file) may contain resource files. However, when generated, the Material Maker.app seems to be looking somewhere else for it's resources. A solution might be in the material here. Question: do the project settings create a portable application on export? I don't know how to verify that in Godot as I have too little experience with it. I'll investigate further, will update here if I find a solution. |
Yes:
By default, exported projects are "portable" in the sense that they don't need to be installed, but they will save user configuration to a location in |
Material Maker tries to find its resource files (node definitions, nodes IO definitions, documentation etc.) next to the executable file. |
@Calinou thanks! I'll look into that. @RodZill4 On macOS, applications are a bit more involved, they are (generally) copy-paste-install containers, acting a bit like zip files (if you look at them on Windows, they appear to be directories). The actual (unix style) executable is inside the container in the folder [application.app]/Contents/MacOS. The container also contains required libraries, frameworks and resources, the last ones in [application.app]/Contents/Resources. That is where I would expect the Material Maker resources initially. This is where Godot puts the .pck file. Applications are generally located in the /Applications folder. Being containers, you won't find any accessory files next to them. You could, but it would be considered bad form, I guess. On install or use files in ~/Library/Application Support/[application name] may be created. Also, on use, temporary files may be created in /var/[somewhere, not entirely sure], which could contain read-write copies of the resources. I'm guessing Godot needs additional direction on where to put the project/application resource files. I'll try and dig some more. In the mean time, I can run MM from within the Godot environment. I will also try and manually put the resources next to the pkg file to see what happens. |
A question: where can I find this setting in Godot? |
@robw001 |
@robw001 Would it be possible for you to test it (I'd say there's 0.7% chance that it will work, but that's all I have for now :D)? |
FYI, while trying to get the latest snapshot of material maker (https://github.com/RodZill4/material-maker/actions/runs/526845726) launching on Mojave, I've had success by moving the resource files beside the executable (material_maker.app/Contents/MacOS) instead of under material_maker.app/Contents/Resources. |
@ZiJingToh thanks a lot for testing. I modified the scripts, the new build should be a bit better. |
On macOS Catalina (10.15.6), Material Maker runs fine in Godot engine but fails to load resources after export to MacOS.
When run inside Godot engine, the app stats up fine and I can create materials. Run as a compiled app, it starts up, but with an empty library.
when I start the compiled app from the command line, I get the following errors:
Where are the resources supposed to be located?
The text was updated successfully, but these errors were encountered: