0 votes

WHen I export game, it doesn't run on other PCs, saying:

Can't load dependency: C:/Users/yiffstorage/Documents/Dark Field/materials/map/env/metal.png

It works on my PC when exported, because path in dependency file is MY PC, not their.

in Engine by (129 points)

I don't know what genius silently pressed down vote, this isn't reddit. Anyways, all paths in my code are started with res://, there's nothing in my code that may trigger it, there's no code at all for metal.png or anything. After exporting exe for windows 10, it doesn't work on other PCs because it says errors like these saying about not being able to do something because it can't find it at that path, which is obvious because that path doesn't even exist on other PCs.
I opened issue, but moderator closet it saynig it's not an issue and I have to ask here.

1 Answer

0 votes

If the path is pointing towards a resource inside your project directory, make sure you use a resource path (as described here) starting with "res://". If not, use the user path (as described here).

by (10,265 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.