ruarai / CompilePal

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

files.txt overwritten for every map #105

Closed Fennecai closed 4 years ago

Fennecai commented 4 years ago

Describe the bug files.txt produced by running with "pack" and dry run enabled, gets overwritten for every map when multiple maps are compiled at one time.

Steps to reproduce

  1. add multiple vmfs with different custom content in each one
  2. run pack with dry-run enabled
  3. observe that files.txt will only include the files of one of the maps, not all of them

Expected behavior I expected the files.txt to contain the paths of all custom content from all the maps, but instead it only lists files from a single map.

Debug.log not applicable

Crash logs not applicable

Additional context I am trying to use this with a custom pipeline of sorts, for a portal 2 mod. Essentially i need a way to automatically find and include only the assets the mod actually uses (out of a huge library of stuff it probably doesn't use all of). I created scripts and stuff; which relied upon the assumption that files.txt generated by this program would contain all the custom content. my scripts use the files.txt to copy files to the mod folder.

I realize that compile pal has automated in-bsp packing; but this does not work with the customized compile tools im using, and it is more ideal to include the content as part of the mod and not packed into the bsp maps themselves.

Exactol commented 4 years ago

I don’t think combining them all into one file would be the best way, as most people will probably only want the files for each map. Would having a separate files.txt for each map work for you?

On Mar 9, 2020, at 11:41 PM, Fennecai notifications@github.com wrote:

 Describe the bug files.txt produced by running with "pack" and dry run enabled, gets overwritten for every map when multiple maps are compiled at one time.

Steps to reproduce

add multiple vmfs with different custom content in each one run pack with dry-run enabled observe that files.txt will only include the files of one of the maps, not all of them Expected behavior I expected the files.txt to contain the paths of all custom content from all the maps, but instead it only lists files from a single map.

Debug.log not applicable

Crash logs not applicable

Additional context I am trying to use this with a custom pipeline of sorts, for a portal 2 mod. Essentially i need a way to automatically find and include only the assets the mod actually uses (out of a huge library of stuff it probably doesn't use all of). I created scripts and stuff; which relied upon the assumption that files.txt generated by this program would contain all the custom content. my scripts use the files.txt to copy files to the mod folder.

I realize that compile pal has automated in-bsp packing; but this does not work with the customized compile tools im using, and it is more ideal to include the content as part of the mod and not packed into the bsp maps themselves.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Fennecai commented 4 years ago

Yeah; that would work. i would probably end up just combining them with my own scripts anyways, but it is still a good solution for my use case. this would need to generate them automatically for each map, however; instead of the current way.

Exactol commented 4 years ago

https://github.com/ruarai/CompilePal/releases/tag/v027.8 This should fix your issue. When dry run is enabled, the files.txt that is generated will be named MAPNAME_files.txt stored in the BSPZipFiles folder.