ruarai / CompilePal

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

TC Round Overviews are not automatically packed #198

Closed 14bit closed 1 year ago

14bit commented 1 year ago

When packing maps for Team Fortress 2, round overview files (such as those used for the map in Territorial Control maps like Hydro, Strata, and National) are not automatically packed.

These files are not referenced by the .vmf at all, but they are always in the same place in the file structure and have the same name as the map they belong to. The three files and their paths are:

tf/resource/roundinfo/mapname.res
tf/materials/overviews/mapname.vmt
tf/materials/overviews/mapname.vtf

(these can also be placed in a folder inside the tf/custom folder)

For example, in my map National the three files I packed in version a6a were:

tf/custom/national/resource/roundinfo/tc_national_a6a.res
tf/custom/national/materials/overviews/tc_national_a6a.vmt
tf/custom/national/materials/overviews/tc_national_a2a.vtf

Since all these files must be renamed every version, it is common to only change the .res and .vmt file names, and leave the .vtf alone since the .vmt already contains the correct reference to the .vtf inside.

For an example of the file structure, more details on how the round overview works, and a map to test it on, you can use this prefab: https://tf2maps.net/downloads/14bits-improved-territorial-control-prefab.14774/

Exactol commented 1 year ago

Can you try this build? https://www.dropbox.com/s/27gwbexhqdbwmeq/Compile%20Pal%20028.1.zip?dl=0