StrataSource / Engine

Issue tracker for Strata Source
46 stars 2 forks source link

Feature: Add packing / repacking default steps during compile process #363

Open hexaflexahexagon opened 2 years ago

hexaflexahexagon commented 2 years ago

Which component should be improved?

Hammer

Describe your feature suggestion in more detail

Add the ability to automatically pack assets into maps and repack (compress) maps into the default "Expert" compile configurations. Other tools like Compile Pal do this and it saves a good amount of time when releasing maps for other players. image

Note, in our pack implementation we should probably respect mounting order somehow so that textures that get packed appear the same to everyone as they do the mapper.

vrad-exe commented 2 years ago

HammerAddons (which is bundled in with P2CE, not sure about Momentum) already does auto-packing, repacking would be nice though.

hexaflexahexagon commented 2 years ago

did not know that, very nice. i assumed hammeraddons was basically just a fancy FGD creation tool but if it has that ability as well we should definitely be utilizing it (or, if we already can, adding that to default configs so it just automagically happens)

vrad-exe commented 2 years ago

It's on by default unless you specify -nopack, although you do need to configure what folders to pack content from in srctools.vdf.

For P2CE specifically though, I'm actually not sure if we want autopacking enabled by default, since the plan is to make workshop items VPKs which would contain custom resources themselves instead of needing to pack them into the individual maps. Of course it would still be nice to have a tool that automatically packs all the custom resources needed for a map(s) into a VPK, but that would probably be better to integrate into the game as some sort of "create addon" utility.

TeamSpen210 commented 2 years ago

I could fairly easily add that to Hammer Addons or make a standalone tool.

hexaflexahexagon commented 2 years ago

that's nice, so more of just adding it to mmods default config if nothing else. should be an easy job then.