Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

When you pack the PCK, you specify the root folder that will be packed with the hierarchy preserved. First, unpack the PCK somewhere, then change the contents of the extracted files and specify the same folder when packing.

  • But there are problems here: Firstly, usually exported resources/textures are not located like res://Graphic/icon.png'. This path usually contains a remap file that references file inside .godot/imported`.
  • Secondly, this image can be loaded from the script, which will also have to be changed.
(+1)

I see.
The reason I ask this question is because my file path looks a little like this:

res://App/Extensions/My_current_extension/files_i_want_to_pack

res://App/Extensions/My_other_extension/files_i_dont_want_to_pack

etc..

the problem is that I want to pack only 'my_current_extension' but with the full file path from res://

If I wanted to do the full file path I would need to select 'App' as the root folder and deselect every other file but I have too many files for that to be something feasible so I was hoping there was an alternative way of customizing the file path used in the pck.

I was thinking like a textbox where I can write a custom path to attach to the front of the root folder path.

Like this: 'res://App/Extensions/' and then my root folder is 'my_current_extension'

This would remove the need to deselect a ton of misc files that I don't want exported.

(2 edits) (+2)

need to select ‘App’ as the root folder

Actually if you specify as the root C:/My/App, then inside the PCK there will be paths without App.

I think I need to add a preview of the paths inside the PCK 😅 (link)

It is also probably worth adding packing and extraction modes that would take into account only filtered/visible elements. (link)

Regarding the prefix, I created a issue

(+1)

ahh good to know!

Thanks for taking my idea into consideration, I think your filter based pack/extracting is also a great feature to include as well!

This is a fantastic tool and I'm glad you are working on it. Thank you!

If I have any other ideas I'll be sure to let you know :)