Difference between revisions of "Portal Placement Tricks"

From P2SR Wiki

(→‎Execution of Trick: Added updated video by MrCatMcFly, adjusted references and page accordingly)
(→‎Portal Bumping: Added maximum portal bump distance)
 
(14 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
When portal bumping, the new portal will be bumped away from the centre of the existing portal, based on where you aimed the new portal. E.g. if you shoot to the left of the existing portal's centre, the new portal will be bumped to the left (assuming there is space available in that direction). If you aim above the existing portal's centre, the new portal will be bumped upwards etc.
 
When portal bumping, the new portal will be bumped away from the centre of the existing portal, based on where you aimed the new portal. E.g. if you shoot to the left of the existing portal's centre, the new portal will be bumped to the left (assuming there is space available in that direction). If you aim above the existing portal's centre, the new portal will be bumped upwards etc.
  
Portal bumping works in both single player and cooperative, but you can only portal bump off of your own portals (if you try to portal bump off another player's portal, you will normally replace their portal instead).
+
Portal bumping works in both single player and cooperative, but you can only portal bump off your own portals reliably (when you try to portal bump off another player's portal, you will usually replace their portal unless you aim precisely around the edge).
  
 
==Execution of Trick==
 
==Execution of Trick==
Line 17: Line 17:
  
 
Portals can sometimes be bumped out of bounds ("OoB" for short) as well. One example of this is in [[Bridge Fling]], which is demonstrated in '''Video 2.1.A''' at the 11:15 mark.
 
Portals can sometimes be bumped out of bounds ("OoB" for short) as well. One example of this is in [[Bridge Fling]], which is demonstrated in '''Video 2.1.A''' at the 11:15 mark.
 +
 +
The maximum distance a portal can be bumped past an obstacle is 65 units. This is 64 units, which is the width of a portal, + 1 additional unit.
  
 
{{P2_Video|url=https://www.youtube.com/watch?v=_D3rgvIq4ZA|desc='''Video 2.1.B''' - Laser Platform portal bump by swagatron (happens at 5 seconds, easy to miss without playing in slow motion).}}
 
{{P2_Video|url=https://www.youtube.com/watch?v=_D3rgvIq4ZA|desc='''Video 2.1.B''' - Laser Platform portal bump by swagatron (happens at 5 seconds, easy to miss without playing in slow motion).}}
Line 27: Line 29:
 
* [[Turret Sabotage]] (suboptimal but beginner-friendly route)
 
* [[Turret Sabotage]] (suboptimal but beginner-friendly route)
 
* [[Laser Platform]]
 
* [[Laser Platform]]
 +
* [[Finale 3]]
  
 
Cooperative, Speedrun:
 
Cooperative, Speedrun:
* [[Bridge Fling]]
+
* [[Bridge Fling]] (out of bounds)
  
 
Miscellaneous:
 
Miscellaneous:
Line 38: Line 41:
  
 
==Execution of Trick==
 
==Execution of Trick==
 +
{{P2_Video|url=https://www.youtube.com/watch?v=5Lc--3TGMcE|desc='''Video 3.1.A''' - Portal 2 Mechanics - Placement Helpers by Krzyhau.}}
 +
 
Placement helpers can be exploited as they have relatively simple checks when redirecting a portal. In most official levels, for a helper to affect a portal, the following conditions must be met:
 
Placement helpers can be exploited as they have relatively simple checks when redirecting a portal. In most official levels, for a helper to affect a portal, the following conditions must be met:
 
# The portal must land on a surface within the helper's radius (each helper has its own radius)
 
# The portal must land on a surface within the helper's radius (each helper has its own radius)
Line 43: Line 48:
 
# The surface the helper is aligned against must be suitable (e.g. flat, portalable, big enough to hold a portal). In official levels this effectively means it must not already be occupied by a differently-coloured portal
 
# The surface the helper is aligned against must be suitable (e.g. flat, portalable, big enough to hold a portal). In official levels this effectively means it must not already be occupied by a differently-coloured portal
 
# The player must be facing the helper when they fire the portal
 
# The player must be facing the helper when they fire the portal
 
{{P2_Video|url=https://www.youtube.com/watch?v=5Lc--3TGMcE|desc='''Video 3.1.A''' - Portal 2 Mechanics - Placement Helpers by
 
Krzyhau.}}
 
  
 
Helpers with unusual placements (e.g. in custom levels) may have additional criteria. See '''Video 3.1.A''' for explanations.
 
Helpers with unusual placements (e.g. in custom levels) may have additional criteria. See '''Video 3.1.A''' for explanations.
Line 53: Line 55:
 
* The game does not check for obstacles between the surface the portal lands on and the surface the helper is aligned against
 
* The game does not check for obstacles between the surface the portal lands on and the surface the helper is aligned against
  
Due to these gaps, some helpers with an oversized radius can redirect portals to a surface the player cannot hit directly from their current position. This can easily be seen in [[PotatOS]], as demonstrated in '''Video 3.1.A''' at around the 4:14 mark.
+
Due to these gaps, some helpers with an oversized radius can redirect portals to a surface the player cannot hit directly from their current position. One notable example of this is in [[PotatOS]], as demonstrated in '''Video 3.1.A''' at the 4:14 mark.
  
 
Although placement helpers are common in official levels, each case where they can be abused for routing is unique. While not allowed in runs, the following console commands can be used to make helpers and their radius visible for practice or research:
 
Although placement helpers are common in official levels, each case where they can be abused for routing is unique. While not allowed in runs, the following console commands can be used to make helpers and their radius visible for practice or research:
Line 68: Line 70:
 
* [[Future Starter]] (suboptimal but beginner-friendly route)
 
* [[Future Starter]] (suboptimal but beginner-friendly route)
 
* [[PotatOS]] (suboptimal but beginner-friendly route)
 
* [[PotatOS]] (suboptimal but beginner-friendly route)
 +
 +
=Grate Shot=
 +
{{P2_Video|url=https://www.youtube.com/watch?v=7UhvdbS5ZNI|desc='''Video 4.0.A''' - Funnel Catch grate shot by Rex.}}
 +
 +
"Grate shot" is a design oversight, where shooting a small area with portal shot collision (too small to support a portal) can place a portal on a nearby larger area that does not have portal shot collision, but is still flagged as a portabable surface.
 +
 +
Grate shot is named after the level feature that typically enables it, which is a mesh floor grate (no portal shot collision) that is surrounded by a white metal outline (has portal shot collision). Firing a portal onto the latter can place it on the former. One example of this is in [[Funnel Catch (singleplayer)]], which is demonstrated in '''Video 4.0.A''' at 6 seconds.
 +
 +
==Execution of Trick==
 +
{{P2_Video|url=https://www.youtube.com/watch?v=n_e0Xd4m2iA|desc='''Video 4.1.A''' - Portal 2 Speedrun Tutorial - Chapter 8 by Can't Even (Funnel Catch starts at 20:21).}}
 +
 +
Performing a grate shot simply requires hitting the correct part of the white solid outline around the grate. This is a very small target, and there are several grate assets used in Portal 2. An example of the setup for [[Funnel Catch (singleplayer)]] is demonstrated in '''Video 4.1.A''' (trick setup starts at 20:43, actual shot starts at 21:05). For specific details of each grate shot used in routing, see the level the shot appears in (listed below).
 +
 +
==Uses of Trick==
 +
 +
Single Player, Speedrun:
 +
* [[Funnel Catch_(singleplayer)|Funnel Catch]]
 +
 +
Cooperative, Speedrun:
 +
* [[Multifling]]
 +
* [[Crazier Box]]
 +
 +
=Seam Shot=
 +
"Seam shots" are a design oversight, where two pieces of level geometry are placed in direct contact with no gap, but due to a mistake in the portal collision code, it is possible to fire a portal "between" these pieces, as if through an invisible seam.
 +
 +
The full explanation of what makes seam shots possible is technically complex. In brief, all basic level geometry in Portal 2 is made up of 3D shapes, called brushes (e.g. walls, floors, stairs, railings). There are 2 categories of brushes in Portal 2:
 +
* Simple Brushes: Every facing of a simple brush needs to be "axis-aligned", which means perfectly aligned with the X, Y and Z cardinal directions on the map. This generally means a cube or cuboid shape, although one brush made of multiple cubes (such as the steps on a staircase) can have each facing axis-aligned.
 +
* Complex Brushes: Any brush that is not simple is instead complex. This includes every brush with a diagonal facing, as well as brushes that may be cubes or cuboids, but are not axis-aligned. For example, two cubic metal containers may have identical dimensions, and one may be axis-aligned with the map, but the other may be "skewed" sideways, which makes it not axis-aligned.
 +
 +
Note that "simple" or "complex" is a quality of the entire brush. This means that even when some facings of a brush are axis-aligned, a brush may be flagged "complex" due to other facings.
 +
 +
Portal 2's code uses different logic to check for collisions with simple and complex brushes. Due to these differences and an oversight in the complex brush code, it is possible to fire a shot near the point where a simple and complex brush touch, and have each collision check fail to detect any obstacles, allowing the portal shot to pass through a "gap" between the brushes.
 +
 +
==Execution of Trick==
 +
{{P2_Video|url=https://www.youtube.com/watch?v=yzIByUDNpA4|desc='''Video 5.1.A''' - Seamshot Tutorial // Portal 2 by fin.}}
 +
Performing a seam shot requires firing a portal at a precise target and angle to have it slip through the seam. Also, while a lot of seams exist in Portal 2 official levels, they can only be used for a seam shot if a portable surface can be hit on the other side of the seam. Due to these factors, seam shots normally require large amounts of in-depth research to discover, and executing one often requires the use of on-screen coordinates / specific setups to hit targets that are not visually evident.
 +
 +
The easiest seam shot currently used in routing is in [[Incinerator]], which is demonstrated in '''Video 5.1.A''' at the 5:01 mark. Note that this seam shot (and the other seam shot in [[Incinerator]]) is an out of bounds shot ("OoB" for short), which are not allowed in some "in bounds" categories of speedrunning.
 +
 +
If you are using the [[SAR]] (Source Auto Record) speedrun plugin tool, the console command <code>sar_seamshot_finder 1</code> can be used to enable a tool that highlights seam shot locations (<code>sv_cheats 1</code> must be enabled in challenge mode).
 +
 +
==Uses of Trick==
 +
 +
Single Player, Speedrun:
 +
* [[Secret Panel]] (out of bounds, known as "Waffle Shot")
 +
* [[Incinerator]] (2 different routes, both out of bounds)
 +
* [[Repulsion Intro]]
 +
* [[Crazy Box]]
 +
 +
Single Player, Least Portals:
 +
* [[Incinerator]] (2 different routes, both out of bounds, both suboptimal but beginner-friendly routes)
 +
* [[Crazy Box]] (suboptimal but beginner-friendly route)
 +
* [[Conversion Intro]]
 +
 +
=Pancake Shot=
 +
 +
"Pancake shot" is a design oversight, where a small gap exists between two pieces of level geometry that were likely intended to be in contact. From a player perspective pancake shots and seam shots appear similar, as they both involve firing a portal through a seemingly invisible gap. From a technical perspective, in a seam shot no gap actually exists, and the portal passes through due to a coding bug. In a pancake shot the gap does exist, although it may be too small / too obscured to see in-game.
 +
 +
Pancake shot is named after its first discovered instance, which is a gap in the first vertically-splitting door in [[Secret Panel]] (this is different from test chamber doors, which split open horizontally). The gap is at the top of the door, and is a long, thin, flat line, similar in shape to a pancake. Since this door asset is used frequently in Portal 2, this gap exists in every level where it appears, but in most instances the level design around the door means it cannot be usefully exploited.
 +
 +
Note that gaps for pancake shots exist in some other repeated level assets, e.g. some of the window panes used in observation rooms. An individual level can also have a unique pancake shot, if some level assets have not been properly placed in contact.
 +
 +
==Execution of Trick==
 +
{{P2_Video|url=https://www.youtube.com/watch?v=fQ8Fkw15DuQ|desc='''Video 6.1.A''' - Turret Sabotage pancake shot by shane.}}
 +
Performing a pancake shot requires firing a portal at a precise target and angle to have it slip through the gap. Also, while a lot of "pancake gaps" exist in Portal 2 official levels, they can only be used for a pancake shot if a portable surface can be hit on the other side of the gap. Due to these factors, pancake shots normally require dedicated research to discover, and executing one often requires the use of on-screen coordinates / specific setups to hit targets that are not visually evident.
 +
 +
One example of a pancake shot in routing is bypassing the vertical door in [[Turret Sabotage]] without Wheatley's help, which is demonstrated in '''Video 6.1.A''' (this is one setup for this pancake shot, other setups exist based on e.g. coordinates).
 +
 +
==Uses of Trick==
 +
 +
Single Player, Speedrun:
 +
* [[Secret Panel]] (in bounds, for out of bounds a superior seam shot route called "Waffle Shot" exists)
 +
* [[Column Blocker]] (the pancake shot itself is in bounds, but the route it is used in goes out of bounds)
 +
* [[Turret Factory]]
 +
* [[Turret Sabotage]] (technically suboptimal, but vastly more reliable / practical than the optimal route)

Latest revision as of 08:50, 26 October 2022

Portal Placement Tricks


Overview

Portal 2 has several techniques for placing portals in ways not intended by the developers. These tricks can create shortcuts by reaching portalable surfaces early, or even creating portals on surfaces not intended to support them. This page describes each trick, explains the trick's execution and mechanics, and lists currently-known places where that trick can be used in routing.

Portal Bumping

Portal bumping is an intended mechanic with some unintended uses. When a player has an existing portal on a surface and shoots their other portal at the same location, rather than replacing the existing portal or allowing both portals to overlap, the game will reposition (or "bump") the second portal to the closest available space on that portable surface, if such a space exists.

When portal bumping, the new portal will be bumped away from the centre of the existing portal, based on where you aimed the new portal. E.g. if you shoot to the left of the existing portal's centre, the new portal will be bumped to the left (assuming there is space available in that direction). If you aim above the existing portal's centre, the new portal will be bumped upwards etc.

Portal bumping works in both single player and cooperative, but you can only portal bump off your own portals reliably (when you try to portal bump off another player's portal, you will usually replace their portal unless you aim precisely around the edge).

Execution of Trick

Video 2.1.A - Portal 1 and Portal 2 portal bumps by MrCatMcFly (Portal 2 routes start at 10:28).


Portal bumping can be exploited as it ignores some checks when placing the new portal. Firstly, the portal can only be bumped a short distance, but this is enough to cross thin obstacles, and the game does not check if there are any obstacles between the existing portal and new portal. This can easily be seen in Turret Sabotage, where a beginner route involves firing a portal beside the door where Wheatley breaks the glass, then bumping the other portal past the door instead of waiting for Wheatley's actions to finish. This is demonstrated in Video 2.1.A at the 10:28 mark.

Portals can sometimes be bumped out of bounds ("OoB" for short) as well. One example of this is in Bridge Fling, which is demonstrated in Video 2.1.A at the 11:15 mark.

The maximum distance a portal can be bumped past an obstacle is 65 units. This is 64 units, which is the width of a portal, + 1 additional unit.

Video 2.1.B - Laser Platform portal bump by swagatron (happens at 5 seconds, easy to miss without playing in slow motion).


Secondly, portals can be bumped onto a portalable surface that is normally too small to support a portal. One example of this is in Laser Platform, where a portal can be bumped slightly nearer the player early in the chamber, as demonstrated in Video 2.1.A at the 10:44 mark (while only saving a fraction of a second, this was used to set a world record in Video 2.1.B).

Uses of Trick

Single Player, Speedrun:

Cooperative, Speedrun:

Miscellaneous:

  • Various observation rooms can be portal bumped into if there is a portable ceiling outside of them (e.g. in Turret Intro)

Placement Helper Abuse

Placement helpers (also called portal aligners) are an invisible entity intentionally placed within levels by the developers, some of which have unintended uses. Placement helpers are meant to help players correctly place portals when making a precise shot, and will redirect portals that land inside a helper's radius to appear at the centre of the helper. This is intended to avoid the frustration of e.g. missing a close jump or failing to redirect a laser to its target due to a slight misalignment.

Execution of Trick

Video 3.1.A - Portal 2 Mechanics - Placement Helpers by Krzyhau.


Placement helpers can be exploited as they have relatively simple checks when redirecting a portal. In most official levels, for a helper to affect a portal, the following conditions must be met:

  1. The portal must land on a surface within the helper's radius (each helper has its own radius)
  2. The portal must land on a surface facing the same way as the surface the helper is aligned against (e.g. the surfaces must be parallel, but one can be further forward / back from the other)
  3. The surface the helper is aligned against must be suitable (e.g. flat, portalable, big enough to hold a portal). In official levels this effectively means it must not already be occupied by a differently-coloured portal
  4. The player must be facing the helper when they fire the portal

Helpers with unusual placements (e.g. in custom levels) may have additional criteria. See Video 3.1.A for explanations.

While the above conditions are detailed, they leave several gaps for exploits:

  • The surface the portal lands on does not need to be portalable (only the surface the helper redirects it to needs to be)
  • The game does not check for obstacles between the surface the portal lands on and the surface the helper is aligned against

Due to these gaps, some helpers with an oversized radius can redirect portals to a surface the player cannot hit directly from their current position. One notable example of this is in PotatOS, as demonstrated in Video 3.1.A at the 4:14 mark.

Although placement helpers are common in official levels, each case where they can be abused for routing is unique. While not allowed in runs, the following console commands can be used to make helpers and their radius visible for practice or research:

  1. developer 1
  2. sv_cheats 1 (if in challenge mode)
  3. ent_rbox info_placement_helper

Uses of Trick

Single Player, Speedrun:

Single Player, Least Portals:

Grate Shot

Video 4.0.A - Funnel Catch grate shot by Rex.


"Grate shot" is a design oversight, where shooting a small area with portal shot collision (too small to support a portal) can place a portal on a nearby larger area that does not have portal shot collision, but is still flagged as a portabable surface.

Grate shot is named after the level feature that typically enables it, which is a mesh floor grate (no portal shot collision) that is surrounded by a white metal outline (has portal shot collision). Firing a portal onto the latter can place it on the former. One example of this is in Funnel Catch (singleplayer), which is demonstrated in Video 4.0.A at 6 seconds.

Execution of Trick

Video 4.1.A - Portal 2 Speedrun Tutorial - Chapter 8 by Can't Even (Funnel Catch starts at 20:21).


Performing a grate shot simply requires hitting the correct part of the white solid outline around the grate. This is a very small target, and there are several grate assets used in Portal 2. An example of the setup for Funnel Catch (singleplayer) is demonstrated in Video 4.1.A (trick setup starts at 20:43, actual shot starts at 21:05). For specific details of each grate shot used in routing, see the level the shot appears in (listed below).

Uses of Trick

Single Player, Speedrun:

Cooperative, Speedrun:

Seam Shot

"Seam shots" are a design oversight, where two pieces of level geometry are placed in direct contact with no gap, but due to a mistake in the portal collision code, it is possible to fire a portal "between" these pieces, as if through an invisible seam.

The full explanation of what makes seam shots possible is technically complex. In brief, all basic level geometry in Portal 2 is made up of 3D shapes, called brushes (e.g. walls, floors, stairs, railings). There are 2 categories of brushes in Portal 2:

  • Simple Brushes: Every facing of a simple brush needs to be "axis-aligned", which means perfectly aligned with the X, Y and Z cardinal directions on the map. This generally means a cube or cuboid shape, although one brush made of multiple cubes (such as the steps on a staircase) can have each facing axis-aligned.
  • Complex Brushes: Any brush that is not simple is instead complex. This includes every brush with a diagonal facing, as well as brushes that may be cubes or cuboids, but are not axis-aligned. For example, two cubic metal containers may have identical dimensions, and one may be axis-aligned with the map, but the other may be "skewed" sideways, which makes it not axis-aligned.

Note that "simple" or "complex" is a quality of the entire brush. This means that even when some facings of a brush are axis-aligned, a brush may be flagged "complex" due to other facings.

Portal 2's code uses different logic to check for collisions with simple and complex brushes. Due to these differences and an oversight in the complex brush code, it is possible to fire a shot near the point where a simple and complex brush touch, and have each collision check fail to detect any obstacles, allowing the portal shot to pass through a "gap" between the brushes.

Execution of Trick

Video 5.1.A - Seamshot Tutorial // Portal 2 by fin.

Performing a seam shot requires firing a portal at a precise target and angle to have it slip through the seam. Also, while a lot of seams exist in Portal 2 official levels, they can only be used for a seam shot if a portable surface can be hit on the other side of the seam. Due to these factors, seam shots normally require large amounts of in-depth research to discover, and executing one often requires the use of on-screen coordinates / specific setups to hit targets that are not visually evident.

The easiest seam shot currently used in routing is in Incinerator, which is demonstrated in Video 5.1.A at the 5:01 mark. Note that this seam shot (and the other seam shot in Incinerator) is an out of bounds shot ("OoB" for short), which are not allowed in some "in bounds" categories of speedrunning.

If you are using the SAR (Source Auto Record) speedrun plugin tool, the console command sar_seamshot_finder 1 can be used to enable a tool that highlights seam shot locations (sv_cheats 1 must be enabled in challenge mode).

Uses of Trick

Single Player, Speedrun:

Single Player, Least Portals:

Pancake Shot

"Pancake shot" is a design oversight, where a small gap exists between two pieces of level geometry that were likely intended to be in contact. From a player perspective pancake shots and seam shots appear similar, as they both involve firing a portal through a seemingly invisible gap. From a technical perspective, in a seam shot no gap actually exists, and the portal passes through due to a coding bug. In a pancake shot the gap does exist, although it may be too small / too obscured to see in-game.

Pancake shot is named after its first discovered instance, which is a gap in the first vertically-splitting door in Secret Panel (this is different from test chamber doors, which split open horizontally). The gap is at the top of the door, and is a long, thin, flat line, similar in shape to a pancake. Since this door asset is used frequently in Portal 2, this gap exists in every level where it appears, but in most instances the level design around the door means it cannot be usefully exploited.

Note that gaps for pancake shots exist in some other repeated level assets, e.g. some of the window panes used in observation rooms. An individual level can also have a unique pancake shot, if some level assets have not been properly placed in contact.

Execution of Trick

Video 6.1.A - Turret Sabotage pancake shot by shane.

Performing a pancake shot requires firing a portal at a precise target and angle to have it slip through the gap. Also, while a lot of "pancake gaps" exist in Portal 2 official levels, they can only be used for a pancake shot if a portable surface can be hit on the other side of the gap. Due to these factors, pancake shots normally require dedicated research to discover, and executing one often requires the use of on-screen coordinates / specific setups to hit targets that are not visually evident.

One example of a pancake shot in routing is bypassing the vertical door in Turret Sabotage without Wheatley's help, which is demonstrated in Video 6.1.A (this is one setup for this pancake shot, other setups exist based on e.g. coordinates).

Uses of Trick

Single Player, Speedrun:

  • Secret Panel (in bounds, for out of bounds a superior seam shot route called "Waffle Shot" exists)
  • Column Blocker (the pancake shot itself is in bounds, but the route it is used in goes out of bounds)
  • Turret Factory
  • Turret Sabotage (technically suboptimal, but vastly more reliable / practical than the optimal route)