change logs

This commit is contained in:
Mister_Nebula 2021-03-28 14:28:51 +01:00
parent 77a1b976d5
commit 9a60e77f4a
5 changed files with 2 additions and 13 deletions

View File

@ -16,7 +16,6 @@ namespace QSB.ElevatorSync.WorldObjects
public override void Init(Elevator elevator, int id)
{
DebugLog.DebugWrite($"init with id {id}");
AttachedObject = elevator;
ObjectId = id;
QSBCore.UnityEvents.RunWhen(() => AttachedObject.GetValue<SingleInteractionVolume>("_interactVolume") != null, InitValues);

View File

@ -637,7 +637,6 @@ namespace QSB.ItemSync
{
OnRemotePlayerExit(id);
}
DebugLog.DebugWrite($"Removing {id} from _playerToHologram");
_playerToHologram.Remove(player);
}
@ -647,7 +646,6 @@ namespace QSB.ItemSync
{
return;
}
DebugLog.DebugWrite($"Remote player enter {playerId}");
var player = QSBPlayerManager.GetPlayer(playerId);
if (_playerToHologram.ContainsKey(player))
{
@ -691,7 +689,6 @@ namespace QSB.ItemSync
DebugLog.ToConsole($"Error - Trying to remove remote player {playerId} that isn't in _playerToHologram!", MessageType.Error);
return;
}
DebugLog.DebugWrite($"Remote player exit {playerId}");
_playerToHologram[player].SetActive(false);
}

View File

@ -44,7 +44,6 @@ namespace QSB.ItemSync.WorldObjects
InitialSocket.PlaceIntoSocket(this);
return;
}
DebugLog.DebugWrite($"OnPlayerLeave {player} for item {AttachedObject.name}");
AttachedObject.transform.parent = InitialParent;
AttachedObject.transform.localPosition = InitialPosition;
AttachedObject.transform.localRotation = InitialRotation;
@ -62,7 +61,6 @@ namespace QSB.ItemSync.WorldObjects
public virtual void SocketItem(Transform socketTransform, Sector sector)
{
AttachedObject.SocketItem(socketTransform, sector);
DebugLog.DebugWrite($"{AttachedObject.name} set holding to 0");
HoldingPlayer = 0;
}
@ -70,7 +68,6 @@ namespace QSB.ItemSync.WorldObjects
public virtual void PickUpItem(Transform holdTransform, uint playerId)
{
AttachedObject.PickUpItem(holdTransform);
DebugLog.DebugWrite($"{AttachedObject.name} set holding to {playerId}");
HoldingPlayer = playerId;
}
@ -85,7 +82,6 @@ namespace QSB.ItemSync.WorldObjects
AttachedObject.transform.position = sector.transform.TransformPoint(position) + AttachedObject.transform.TransformDirection(localDropOffset);
AttachedObject.SetSector(sector);
AttachedObject.SetColliderActivation(true);
DebugLog.DebugWrite($"{AttachedObject.name} set holding to 0");
HoldingPlayer = 0;
}

View File

@ -47,16 +47,13 @@ namespace QSB.Player
public void Remove()
{
DebugLog.DebugWrite($"Remove HUD marker of {_player.PlayerId}");
// do N O T destroy the parent - it completely breaks the ENTIRE GAME
if (_canvasMarker != null)
{
DebugLog.DebugWrite($" - destroy canvas marker");
_canvasMarker.DestroyMarker();
}
if (_markerTarget != null)
{
DebugLog.DebugWrite($" - destroy marker target");
Destroy(_markerTarget.gameObject);
}
Destroy(this);

View File

@ -50,12 +50,12 @@ namespace QSB.WorldSync
}
if (!QSBCore.IsInMultiplayer)
{
DebugLog.DebugWrite($"Warning - Trying to run GetWorldFromUnity while not in multiplayer!");
DebugLog.ToConsole($"Warning - Trying to run GetWorldFromUnity while not in multiplayer!");
return default;
}
if (!WorldObjectsToUnityObjects.ContainsKey(unityObject))
{
DebugLog.DebugWrite($"Error - WorldObjectsToUnityObjects does not contain \"{unityObject.name}\"!", MessageType.Error);
DebugLog.ToConsole($"Error - WorldObjectsToUnityObjects does not contain \"{unityObject.name}\"!", MessageType.Error);
return default;
}
return WorldObjectsToUnityObjects[unityObject] as TWorldObject;