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

Merged
merged 1 commit into from
Jul 8, 2024

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

@AThousandShips AThousandShips Apr 29, 2024

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

@AThousandShips AThousandShips Apr 29, 2024

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
@Mickeon Mickeon requested a review from AThousandShips July 5, 2024 20:16
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

Doing this makes sense but I'm not too fond of the wording.

I'm aware the following would practically turn this PR into my own but-

doc/classes/ProjectSettings.xml Outdated Show resolved Hide resolved
@jsjtxietian jsjtxietian force-pushed the project-binary-doc branch from b0c43a5 to 9d18983 Compare July 8, 2024 03:12
@akien-mga akien-mga merged commit e1a145b into godotengine:master Jul 8, 2024
18 checks passed
@jsjtxietian jsjtxietian deleted the project-binary-doc branch July 8, 2024 09:53
@akien-mga
Copy link
Member

Thanks!

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
5 participants