Frodo45127 / rpfm

Rusted PackFile Manager (RPFM) is a... reimplementation in Rust and Qt5 of PackFile Manager (PFM), one of the best modding tools for Total War Games.
MIT License
357 stars 57 forks source link

Add ability to provide rpfm_reserved files or options when creating or adding to a pack using rpfm_cli #274

Open ilia-sharafutdinov opened 10 months ago

ilia-sharafutdinov commented 10 months ago

Possible usage example: rpfm_cli --game empire pack create -p my.pack --settings settings.rpfm_reserved.json --notes notes.rpfm_reserved.md

Frodo45127 commented 10 months ago

It already should work adding them as normal files. It's just the added files do not show up as files.

ilia-sharafutdinov commented 10 months ago

I see. This part, indeed, works. However, my concern is, when you add a folder using cli, the files which are marked to be ignored in the settings are imported anyway.

An example of what I do:

rpfm_cli --game empire pack create -p my.pack
rpfm_cli --game empire pack add -p my.pack -f tgg_core/settings.rpfm_reserved.json
rpfm_cli --game empire pack add -p my.pack -F tgg_core

compile.sh file is listed to ignore in settings.rpfm_reserved.json, but is imported anyway.