Godot Version
4.4 linux
Question
Hi!
When I export, regardless of the target, the code appears in readable form in the pck file, even if I set script to “compressed binary token”. Is it normal ? Can this be changed ? Thank you for your answers.
4.4 linux
Hi!
When I export, regardless of the target, the code appears in readable form in the pck file, even if I set script to “compressed binary token”. Is it normal ? Can this be changed ? Thank you for your answers.
See:
Thank you, that would work.
However I don’t understand why the script needs to appear as is (even the comments are there), I was under the assumption that scripts only needed a “pre-compiled” form to run, like bytecode in java. I first assumed this was due to debug mode, but even in release mode the code is there.
Is there some rational behind this ?
If you are using built-in scripts they will always be saved as is as text embedded in the .tscn
file.
GDScript files ( .gd
) will be tokenized in binary and compressed (.gdc
) They can be converted back to text files but comments aren’t saved so you won’t get those back.