ruarai / CompilePal

A tool to assist in the compiling of source engine maps
GNU General Public License v3.0
224 stars 25 forks source link

add -include and -exclude options for packing #44

Closed maxdup closed 6 years ago

maxdup commented 6 years ago

-include: provides a list of assets to be added regardless of detection -exclude: provides a list of assets or directories to be ignored by packing

Exactol commented 6 years ago

I had someone ask me to add this feature, and since this issue has been open for a while I assumed you weren't working on it.

Right now the current behavior for what I added is for Compile Pal to detect any dependencies of the manually included file and pack them as well, but I'm not sure if that should be the default behavior, since this is kind of a manual override. If anyone thinks it shouldn't do that, feel free to change it.

Something for the future might be to add a option to exclude or include files in a csv file.

maxdup commented 6 years ago

Good stuff man, I was going to do it but then real life and stuff. Can't wait to look into what you've done .

Exactol commented 6 years ago

Something that I realized I might have overlooked is how the internal path is extracted from the path the user gives. Currently it's generated assuming the user is storing their content in a subdirectory of the game folder. Ex. tf/materials. I don't think the solution I have currently would support something outside of the game folder or in the custom folder. It's something that I'll still need to look into.