ruarai / CompilePal

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

Case sensitive autopacking #73

Open MAGNAT2645 opened 5 years ago

MAGNAT2645 commented 5 years ago

Autopack always pack files with lowercase filenames. Would be good if this feature could pack files with same filenames as you have.

maxdup commented 5 years ago

Yes, source is not case sensitive and CompilePal takes advantage of that by lowercasing everything to make searching easier. I hadn't thought about this before but you bring a good point. I'd be tempted to output paths as they appear in the bsp instead, so that everything is consistent in the output bsp. But I think your idea is better. It's better to not have multiple versions of the same assets under different filenames floating around.

Exactol commented 5 years ago

After some quick investigation, it looks like we do output everything as appears in the BSP, and bspzip is the one lower casing the filenames @maxdup . As far as I'm aware, Source isn't case sensitive, so is there any reason you want this feature @MAGNAT2645 ?

MAGNAT2645 commented 5 years ago

I wanted the case sensitivity to work like in VIDE Pakfile. Sometimes mappers leave Easter eggs in file names or just leave funny names. Case-sensitive text is more readable.

Exactol commented 5 years ago

I looked into this, but I can't figure out how VIDE managed to pack it with uppercase. I'm putting this feature on hold until I can find out how.