Closed Pshy0 closed 5 months ago
Maybe you are not remapping the file you export, and maybe you also need to use skip()
.
Thank you for this valuable issue! I assumed that PCK cannot have two files with the same path and that the contents of the PCK are equivalent to ZIP. So I didn't call skip()
, figuring Godot would just replace the file or at least report an error (we should report this to the Godot repo).
Unfortunately, remaps do not work well with GDScript (global names and preload
). I'll try adding skip()
.
Actually this is what I see when exporting to zip:
Perhaps your zip explorer program does not show when a zip contains two files with the same file name?
I didnt know it was possible btw, and apparently my computer neither, I can only open the later...
Unfortunately, remaps do not work well with GDScript (global names and preload). I'll try adding skip().
I think it will be fine if you remap (using add_file
) to the same path and then skip the currently being exported script, it works in my plugin.
Fixed in 461016c29c418713028e797822ab04b83d51fa50. Thanks for testing! Please let me know if you find any new issues.
Plugin version: 1.1-dev Godot version: 4.2.2.rc1
When exporting the project, editing the exported binary shows that the scripts are exported in both their preprocessed and original version.