JunyDeveloper / GamblingModLethalCompany

3 stars 7 forks source link

leaving company #38

Closed MOEanimel closed 5 months ago

MOEanimel commented 5 months ago

unable to enter orbit from the company moon with this mod on

JunyDeveloper commented 5 months ago

Are you using Thunderstore as your mod manager? If so can you copy your logs and paste it here the next time you get this bug again.

Logs

ybeauchamph commented 5 months ago

I have the same problem. The ship is stuck on "Waiting For Ship To Land". Here's the error from my log as the host:

[Info   :Junypai.GamblersMod] End of round: despawning gambling machines
[Message:Junypai.GamblersMod] Despwawning gambling machine...
NullReferenceException
  at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
  at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <e27997765c1848b09d8073e5d642717a>:IL_0021 
  at GamblersMod.GamblingMachineManager.DespawnAll () [0x00029] in <602ca3702f0c497ba824eeb805bb8522>:IL_0029 
  at GamblersMod.RoundManagerCustomSpace.RoundManagerCustom.DespawnGamblingMachineServerRpc () [0x00107] in <602ca3702f0c497ba824eeb805bb8522>:IL_0107 
  at GamblersMod.RoundManagerCustomSpace.RoundManagerCustom.__rpc_handler_3258984052 (Unity.Netcode.NetworkBehaviour target, Unity.Netcode.FastBufferReader reader, Unity.Netcode.__RpcParams rpcParams) [0x0007b] in <602ca3702f0c497ba824eeb805bb8522>:IL_007B 
  at (wrapper delegate-invoke) <Module>.invoke_void_NetworkBehaviour_FastBufferReader___RpcParams(Unity.Netcode.NetworkBehaviour,Unity.Netcode.FastBufferReader,Unity.Netcode.__RpcParams)
  at Unity.Netcode.RpcMessageHelpers.Handle (Unity.Netcode.NetworkContext& context, Unity.Netcode.RpcMetadata& metadata, Unity.Netcode.FastBufferReader& payload, Unity.Netcode.__RpcParams& rpcParams) [0x0004e] in <895801699cfc4b4ab52267f31e2a4998>:IL_004E 
Rethrow as Exception: Unhandled RPC exception!

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Unity.Netcode.RpcMessageHelpers:Handle(NetworkContext&, RpcMetadata&, FastBufferReader&, __RpcParams&)
Unity.Netcode.ServerRpcMessage:Handle(NetworkContext&)
Unity.Netcode.NetworkBehaviour:__endSendServerRpc(FastBufferWriter&, UInt32, ServerRpcParams, RpcDelivery)
GamblersMod.RoundManagerCustomSpace.RoundManagerCustom:DespawnGamblingMachineServerRpc()
GamblersMod.Patches.RoundManagerPatch:DespawnPropsAtEndOfRoundPatch()
RoundManager:DMD<RoundManager::DespawnPropsAtEndOfRound>(RoundManager, Boolean)
<EndOfGame>d__260:DMD<StartOfRound+<EndOfGame>d__260::MoveNext>(<EndOfGame>d__260)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

[Message:Junypai.GamblersMod] Despwawning gambling machine...
NullReferenceException
  at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
  at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <e27997765c1848b09d8073e5d642717a>:IL_0021 
  at GamblersMod.GamblingMachineManager.DespawnAll () [0x00029] in <602ca3702f0c497ba824eeb805bb8522>:IL_0029 
  at GamblersMod.RoundManagerCustomSpace.RoundManagerCustom.DespawnGamblingMachineServerRpc () [0x00107] in <602ca3702f0c497ba824eeb805bb8522>:IL_0107 
  at GamblersMod.Patches.RoundManagerPatch.DespawnPropsAtEndOfRoundPatch () [0x00011] in <602ca3702f0c497ba824eeb805bb8522>:IL_0011 
  at (wrapper dynamic-method) RoundManager.DMD<RoundManager::DespawnPropsAtEndOfRound>(RoundManager,bool)
  at (wrapper dynamic-method) StartOfRound+<EndOfGame>d__260.DMD<StartOfRound+<EndOfGame>d__260::MoveNext>(StartOfRound/<EndOfGame>d__260)
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <e27997765c1848b09d8073e5d642717a>:IL_0026
JunyDeveloper commented 5 months ago

Thank you! It looks like this issue happens if you exit to the main menu while your on "The Company" moon and then start another game. I'll get a fix for that 👍

JunyDeveloper commented 5 months ago

@MOEanimel @ybeauchamph If you updated to version 1.3.5+ it should be fixed :)