Fix airlocks on some maps (#8363)

* Fix airlocks on some maps

* Make MapsLoadableTest say the map that failed
This commit is contained in:
wrexbe
2022-05-22 20:31:39 -07:00
committed by GitHub
parent b491dc543d
commit 4c84dba2f2
5 changed files with 213 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using System.IO;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NUnit.Framework;
@@ -87,8 +88,22 @@ namespace Content.IntegrationTests.Tests
server.Post(() =>
{
var mapId = mapManager.CreateMap();
mapLoader.LoadMap(mapId, rootedPath.ToString());
mapManager.DeleteMap(mapId);
try
{
mapLoader.LoadMap(mapId, rootedPath.ToString());
}
catch (Exception ex)
{
throw new Exception($"Failed to load map {rootedPath}", ex);
}
try
{
mapManager.DeleteMap(mapId);
}
catch (Exception ex)
{
throw new Exception($"Failed to delete map {rootedPath}", ex);
}
});
await server.WaitIdleAsync();
}

View File

@@ -677,6 +677,19 @@ entities:
parent: 0
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2

View File

@@ -114392,6 +114392,19 @@ entities:
parent: 131
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -114428,6 +114441,19 @@ entities:
parent: 131
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -114604,6 +114630,19 @@ entities:
state: Opening
type: Door
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -114623,6 +114662,19 @@ entities:
state: Opening
type: Door
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -137288,6 +137340,19 @@ entities:
state: Opening
type: Door
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -137308,6 +137373,19 @@ entities:
state: Opening
type: Door
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -137321,6 +137399,19 @@ entities:
parent: 12173
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -137334,6 +137425,19 @@ entities:
parent: 12173
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -142172,6 +142276,19 @@ entities:
parent: 131
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2

View File

@@ -1357,6 +1357,19 @@ entities:
parent: 25
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -1618,6 +1631,19 @@ entities:
parent: 25
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -3923,6 +3949,19 @@ entities:
parent: 25
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2

View File

@@ -7074,6 +7074,19 @@ entities:
parent: 852
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2
@@ -7131,6 +7144,19 @@ entities:
parent: 852
type: Transform
- fixtures:
- shape: !type:PolygonShape
vertices:
- 0.49,-0.49
- 0.49,0.49
- -0.49,0.49
- -0.49,-0.49
mask:
- Impassable
layer:
- Impassable
- ThrownItem
- Opaque
mass: 100
- shape: !type:PhysShapeCircle
position: 0,-0.5
radius: 0.2