@@ -163,6 +163,8 @@ namespace Content.Server.GameTicking
|
|||||||
|
|
||||||
var gridIds = _map.LoadMap(targetMapId, ev.GameMap.MapPath.ToString(), ev.Options);
|
var gridIds = _map.LoadMap(targetMapId, ev.GameMap.MapPath.ToString(), ev.Options);
|
||||||
|
|
||||||
|
_metaData.SetEntityName(_mapManager.GetMapEntityId(targetMapId), "Station map");
|
||||||
|
|
||||||
var gridUids = gridIds.ToList();
|
var gridUids = gridIds.ToList();
|
||||||
RaiseLocalEvent(new PostGameMapLoad(map, targetMapId, gridUids, stationName));
|
RaiseLocalEvent(new PostGameMapLoad(map, targetMapId, gridUids, stationName));
|
||||||
|
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ public sealed partial class ShuttleSystem
|
|||||||
|
|
||||||
if (HasComp<FTLComponent>(uid))
|
if (HasComp<FTLComponent>(uid))
|
||||||
{
|
{
|
||||||
_sawmill.Warning($"Tried queuing {ToPrettyString(uid)} which already has HyperspaceComponent?");
|
Log.Warning($"Tried queuing {ToPrettyString(uid)} which already has HyperspaceComponent?");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -404,7 +404,7 @@ public sealed partial class ShuttleSystem
|
|||||||
_console.RefreshShuttleConsoles(uid);
|
_console.RefreshShuttleConsoles(uid);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_sawmill.Error($"Found invalid FTL state {comp.State} for {uid}");
|
Log.Error($"Found invalid FTL state {comp.State} for {uid}");
|
||||||
RemComp<FTLComponent>(uid);
|
RemComp<FTLComponent>(uid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -453,7 +453,8 @@ public sealed partial class ShuttleSystem
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
_hyperSpaceMap = _mapManager.CreateMap();
|
_hyperSpaceMap = _mapManager.CreateMap();
|
||||||
_sawmill.Info($"Setup hyperspace map at {_hyperSpaceMap.Value}");
|
_metadata.SetEntityName(_mapManager.GetMapEntityId(_hyperSpaceMap.Value), "FTL");
|
||||||
|
Log.Debug($"Setup hyperspace map at {_hyperSpaceMap.Value}");
|
||||||
DebugTools.Assert(!_mapManager.IsMapPaused(_hyperSpaceMap.Value));
|
DebugTools.Assert(!_mapManager.IsMapPaused(_hyperSpaceMap.Value));
|
||||||
var parallax = EnsureComp<ParallaxComponent>(_mapManager.GetMapEntityId(_hyperSpaceMap.Value));
|
var parallax = EnsureComp<ParallaxComponent>(_mapManager.GetMapEntityId(_hyperSpaceMap.Value));
|
||||||
parallax.Parallax = "FastSpace";
|
parallax.Parallax = "FastSpace";
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public sealed partial class ShuttleSystem
|
|||||||
|
|
||||||
if (!valid)
|
if (!valid)
|
||||||
{
|
{
|
||||||
_sawmill.Error($"Error loading gridspawn for {ToPrettyString(uid)} / {path}");
|
Log.Error($"Error loading gridspawn for {ToPrettyString(uid)} / {path}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ public sealed partial class ShuttleSystem
|
|||||||
|
|
||||||
if (!valid)
|
if (!valid)
|
||||||
{
|
{
|
||||||
_sawmill.Error($"Error loading gridfill dock for {ToPrettyString(uid)} / {component.Path}");
|
Log.Error($"Error loading gridfill dock for {ToPrettyString(uid)} / {component.Path}");
|
||||||
}
|
}
|
||||||
|
|
||||||
_mapManager.DeleteMap(mapId);
|
_mapManager.DeleteMap(mapId);
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
|||||||
[Dependency] private readonly EntityLookupSystem _lookup = default!;
|
[Dependency] private readonly EntityLookupSystem _lookup = default!;
|
||||||
[Dependency] private readonly FixtureSystem _fixtures = default!;
|
[Dependency] private readonly FixtureSystem _fixtures = default!;
|
||||||
[Dependency] private readonly MapLoaderSystem _loader = default!;
|
[Dependency] private readonly MapLoaderSystem _loader = default!;
|
||||||
|
[Dependency] private readonly MetaDataSystem _metadata = default!;
|
||||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||||
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
|
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
|
||||||
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
||||||
@@ -43,14 +44,11 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
|||||||
[Dependency] private readonly ThrusterSystem _thruster = default!;
|
[Dependency] private readonly ThrusterSystem _thruster = default!;
|
||||||
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
|
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
|
||||||
|
|
||||||
private ISawmill _sawmill = default!;
|
|
||||||
|
|
||||||
public const float TileMassMultiplier = 0.5f;
|
public const float TileMassMultiplier = 0.5f;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
_sawmill = Logger.GetSawmill("shuttles");
|
|
||||||
|
|
||||||
InitializeFTL();
|
InitializeFTL();
|
||||||
InitializeGridFills();
|
InitializeGridFills();
|
||||||
|
|||||||
Reference in New Issue
Block a user