-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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 a plugin-specific root directory shortcut path, e.g. "pgn://" #12153
Comments
Wouldn't a (I'm for the idea itself, just for the record.) |
That works for me. In fact, that's actually more appropriate considering |
Mentioned in #6023 (comment) as well.
|
BTW, note that you can just use relative paths in this example: # script2.gd
extends "script1.gd" |
Well, if I understand correctly, that Issue was more about what to actually call the "addons" directory, where to put it, if it can be optional, if plugins can be dropped directly into a location OTHER than
Yeah, I suppose I could have mentioned that. I just gave a simple example, but my current use case is a lot more involved than that. It can get pretty irritating having to remember how many |
@willnationsdev you know that the task of locating assets with paths isn't just a fact about plugins, but the whole resource system in Godot? I'm not sure adding another xxx:// will solve this, especially if it's just a subset of |
@Zylann it's not exactly about "solving" the problem. This issue is purely a convenience / usability enhancement. Plugins have no business needing to be aware of the full resource environment for a project (they should only care about their resources). It makes defining paths within a plugin just more of a hassle. As such, it seems silly for them to have to use a hardcoded path from |
@Zylann Funny, I remember reduz talking about this a few days ago... @willnationsdev This solution would have to work with:
All of those functions would have to know which plugin/addon made the request, so they can properly resolve it. One might work around this requirement by using something like |
Well creating a shortcut is essentially what this Issue was all about anyway. XD Although, ultimately it would be ideal if the shortcut didn't have to change based on the name of the plugin. I understand why that would be a lot simpler though. :-/ |
@bojidar-bg yeah I know it's quite a big deal, if Reduz has a solution about this GUID stuff it would be interesting. There could be a way to have them for things assigned in editor (path resolution could look like |
Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine. The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker. If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance! |
It would be very convenient if plugins developed for the engine could refer to a path that automatically searched relative to the plugin root directory (where the
plugin.cfg
file resides).Example:
Then, in code, it might be....
The text was updated successfully, but these errors were encountered: