diff --git a/QSB/ElevatorSync/WorldObjects/QSBElevator.cs b/QSB/ElevatorSync/WorldObjects/QSBElevator.cs index 82ba826b..d3af41b9 100644 --- a/QSB/ElevatorSync/WorldObjects/QSBElevator.cs +++ b/QSB/ElevatorSync/WorldObjects/QSBElevator.cs @@ -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("_interactVolume") != null, InitValues); diff --git a/QSB/ItemSync/CustomNomaiRemoteCameraPlatform.cs b/QSB/ItemSync/CustomNomaiRemoteCameraPlatform.cs index 7d286180..c6893efc 100644 --- a/QSB/ItemSync/CustomNomaiRemoteCameraPlatform.cs +++ b/QSB/ItemSync/CustomNomaiRemoteCameraPlatform.cs @@ -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); } diff --git a/QSB/ItemSync/WorldObjects/QSBOWItem.cs b/QSB/ItemSync/WorldObjects/QSBOWItem.cs index 37663a7e..3a9e25db 100644 --- a/QSB/ItemSync/WorldObjects/QSBOWItem.cs +++ b/QSB/ItemSync/WorldObjects/QSBOWItem.cs @@ -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; } diff --git a/QSB/Player/PlayerHUDMarker.cs b/QSB/Player/PlayerHUDMarker.cs index f750c751..6e7031fd 100644 --- a/QSB/Player/PlayerHUDMarker.cs +++ b/QSB/Player/PlayerHUDMarker.cs @@ -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); diff --git a/QSB/WorldSync/QSBWorldSync.cs b/QSB/WorldSync/QSBWorldSync.cs index 020b1629..e6bbad14 100644 --- a/QSB/WorldSync/QSBWorldSync.cs +++ b/QSB/WorldSync/QSBWorldSync.cs @@ -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;