TeamSpen210 / HammerAddons

Useful tweaks and content for Source Engine Games
123 stars 36 forks source link

Postcompiler (apparently) corrupting map #242

Open electrovoyage opened 1 year ago

electrovoyage commented 1 year ago

I'm working on a rather large map for Portal 2, and i seem to have reached some sort of threshold at which either HA starts corrupting the map or VVIS and VRAD simply cannot read it. If i remove 1 texture from the map, VIS and RAD suddenly are suddenly able to run. The same happens with the Postcompiler turned off. So i suppose the packing is corrupting the map file here. VIS and RAD just say

Reading <path to map BSP>...
Done. Press any key to continue...

(the 'press any key' text is because i enabled 'Wait for keypress when done compiling') Is there a workaround / fix i can use in this situation?

TeamSpen210 commented 1 year ago

Indeed this has been happening recently. What you can do is set the pack-dump configuration option in srctools.vdf woth a # at the start. That'll make it dump the packfile to a folder instead of packing into the BSP. Then afterwards you can pack the contents with another tool.

electrovoyage commented 1 year ago

image Will this work or do i need to uncomment this line?

TeamSpen210 commented 1 year ago

Uncomment it, yes.

electrovoyage commented 1 year ago

I uncommented it, does this mean it will now dump all packed files to Portal 2/dump?