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

Add user:// folder for files to be exported on game run #1738

Closed
Shadowblitz16 opened this issue Oct 27, 2020 · 4 comments
Closed

Add user:// folder for files to be exported on game run #1738

Shadowblitz16 opened this issue Oct 27, 2020 · 4 comments

Comments

@Shadowblitz16
Copy link

Shadowblitz16 commented Oct 27, 2020

Describe the project you are working on:
Mario Bros 1 Editor

Describe the problem or limitation you are having in your project:
I would like to export some files to user:// while allowing them to be used in the editor

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
I suggest adding a user:// folder to go along side of res:// so that we can export files we want people to be able to edit

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Anything placed in the user:// folder will be available when running the game from the editor similar to res:// files,
However when the game is ran from executable if the files do not exist they are created in the user:// folder.

So all you need to do is include your modding files in the user:// directory and load them like so..
my_resource = load("user://path to resource") and it works both in editor and from executable

If this enhancement will not be used often, can it be worked around with a few lines of script?:
This would be used for modding and it can be worked around but its not very trivial as you have to treat user and res files differently depending on whether your running from editor or from executable

Is there a reason why this should be core and not an add-on in the asset library?:
I think it would be easier to do this way and would be easier to understand.

@Shadowblitz16
Copy link
Author

one of the issues from the reason of this suggestion is exporting images.
however it seems godot converts images to .res files instead of leaving them the format they are.
this creates issues when it comes to modding because you can't easily open the image and edit it

@Shadowblitz16
Copy link
Author

Shadowblitz16 commented Oct 27, 2020

This is related:
#1740
#1739

@Xrayez
Copy link
Contributor

Xrayez commented Oct 27, 2020

I think fundamentally, this may be related to #1632.

@Calinou
Copy link
Member

Calinou commented May 16, 2021

Duplicate of #1632 (same goal).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants