BEE2.4 icon indicating copy to clipboard operation
BEE2.4 copied to clipboard

Un-hardcode DLC folder usage

Open vrad-exe opened this issue 3 years ago • 0 comments

BEE2 is currently hardcoded to use portal2_dlc3 as the folder for VPK texture overrides, which is a problem since this folder is also commonly used for user customizations. For this, vpk_override is provided, but this is a somewhat clunky solution since it requires re-exporting from BEE every time you want to modify custom content. There's no reason DLC3 needs to be used specifically, so BEE2 should sequentially scan through all DLC folders on export and use whatever the first available one is. To avoid infinitely creating new DLC folders, a bee2_edit_flag file would be created in whichever DLC folder was used; on future exports, this file would be detected and the same folder as before would be used.

The only problem this could potentially cause is if the user had pre-existing custom DLC folders, exported BEE2, then deleted one of the existing folders causing BEE2's to no longer be loaded. Since the DLC folder is only used for editor texture overrides though this shouldn't be a huge concern, they'd come back after the next export anyway.

vrad-exe avatar Feb 12 '22 06:02 vrad-exe