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

Mention ProjectSettings won't be affected by convert_text_resources_to_binary #91300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsjtxietian
Copy link
Contributor

@jsjtxietian jsjtxietian requested a review from a team as a code owner April 29, 2024 08:30
@@ -917,6 +917,7 @@
</member>
<member name="editor/export/convert_text_resources_to_binary" type="bool" setter="" getter="" default="true">
If [code]true[/code], text resources are converted to a binary format on export. This decreases file sizes and speeds up loading slightly.
[b]Note:[/b] Project Settings are not a resource so "project.godot" will always be converted to "project.binary" on export.
[b]Note:[/b] If [member editor/export/convert_text_resources_to_binary] is [code]true[/code], [method @GDScript.load] will not be able to return the converted files in an exported project. Some file paths within the exported PCK will also change, such as [code]project.godot[/code] becoming [code]project.binary[/code]. If you rely on run-time loading of files present within the PCK, set [member editor/export/convert_text_resources_to_binary] to [code]false[/code].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be changed to some useful example, it now contradicts what it just said above

However a file like foo.tscn isn't saved as foo.scn but instead export-{md5}-foo.scn etc. so unsure how to explain it here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the converted name (export-{md5}-foo.scn) is an implementation detail, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, so let's just mention it like "it will turn tscn to scn and tres to res" and perhaps mention something about how you can't open these with FileAccess, as per:

And so on, unsure exactly where to refer to, so making a note about not being able to open them directly, and to use ResourceLoader instead generally

@AThousandShips AThousandShips added enhancement documentation cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Apr 29, 2024
@AThousandShips AThousandShips added this to the 4.3 milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release documentation
Projects
None yet
3 participants