You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a recent Portal 2 update, attempting to compile a map located anywhere outside of the Portal 2 directory will fail almost immediately producing an output similar to the following:
This is a major problem for modders who often need to store maps in a Git repository, cloud storage platform, or other location which cannot be easily relocated inside the Portal 2 directory.
The problem appears to be in the filesystem code, as replacing filesystem_stdio.dll with an old version allows the maps to compile again. My guess would be that one of the recent security patches implemented a check to prevent the game from writing files outside the intended locations as a safeguard for exploits, but whoever did that forgot that the map compilers are supposed to be able to write files anywhere. You'd probably need to implement the ability for this check to be bypassed in specific contexts.
This is potentially related to #403 as that issue can also be worked around by reverting the filesystem binary to an old version.
The text was updated successfully, but these errors were encountered:
Since a recent Portal 2 update, attempting to compile a map located anywhere outside of the Portal 2 directory will fail almost immediately producing an output similar to the following:
This is a major problem for modders who often need to store maps in a Git repository, cloud storage platform, or other location which cannot be easily relocated inside the Portal 2 directory.
The problem appears to be in the filesystem code, as replacing
filesystem_stdio.dll
with an old version allows the maps to compile again. My guess would be that one of the recent security patches implemented a check to prevent the game from writing files outside the intended locations as a safeguard for exploits, but whoever did that forgot that the map compilers are supposed to be able to write files anywhere. You'd probably need to implement the ability for this check to be bypassed in specific contexts.This is potentially related to #403 as that issue can also be worked around by reverting the filesystem binary to an old version.
The text was updated successfully, but these errors were encountered: