StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
146 stars 3 forks source link

Bug: Postcompiler uses backslashes for vactube_mover model directory, incompatible with recent BSP format changes #1586

Open Wheattttt opened 7 months ago

Wheattttt commented 7 months ago

Describe the bug

HammerAddons vactubes seem to be broken. as far as I can tell, this is because the postcompiler uses backslashes in the vactube_mover's model directory to point to the generated animation model instead of normal slashes, which is incompatible with recent BSP format changes which, as far as I am aware, make backslashes act as escape characters instead.

Issue Map

vactubetestmap.zip

test map containing a vmf and bsp with a simple vactube setup.

To Reproduce

  1. Compile vactubetest.vmf
  2. Note that the vactube entities do not function correctly

Operating System

No response

TeamSpen210 commented 7 months ago

Here's the two lines you need to change to fix this: https://github.com/TeamSpen210/HammerAddons/commit/c8864f915e5d910056d20ae0433d7affa983ba89