StrangeLoopGames / EcoIssues

131 stars 21 forks source link

Stuck on Connecting to Server #23830

Closed Loutrinos closed 7 months ago

Loutrinos commented 1 year ago

I am trying to load 2 game servers that were working some months ago. After that something happened and there not seem to be able to connect to the servers and start the worlds.

Part of the player log:

NullReferenceException: Object reference not set to an instance of an object.
  at SteamSocialNetwork.IsSteamInitialized () [0x00000] in <00000000000000000000000000000000>:0 
  at SteamSocialNetwork.ClearRichPresenceStatus () [0x00000] in <00000000000000000000000000000000>:0 
  at PlatformUtils.VerifyPlatformAction (System.Action action, System.String actionName, System.Type platformType) [0x00000] in <00000000000000000000000000000000>:0 
  at SocialNetworkManager.ClearRichPresence () [0x00000] in <00000000000000000000000000000000>:0 
  at SocialNetworkManager.Shutdown () [0x00000] in <00000000000000000000000000000000>:0 
EcoEngine.Logging.LogManager:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
PlatformUtils:VerifyPlatformAction(Action, String, Type)
SocialNetworkManager:ClearRichPresence()
SocialNetworkManager:Shutdown()

server logs don't show any sign of issue.

Player.log Player-prev.log log_230520054429.log log_230520053829.log

D3nnis3n commented 1 year ago

Unfortunately none of the logs contain any hints towards a crash or a problem, hence we're not able to investigate the problem with these logs. The description is also lacking what actually happens when you try to load a world.

What I can already say though is that your hardware is below our minimum requirements and hence not supported. To take any look we'd need logs that actually contain the crash or problem, though.

Loutrinos commented 1 year ago

@D3nnis3n the issue is that it hangs on both local world and remote world and never passed the screen of Connecting to Server. On the client log the last message before getting stuck is this:

[03:07:49.182] Nat introduction received with token = 1e25853e-a896-436e-984f-bbeba6c8becf
EcoEngine.Logging.LogManager:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Eco.Shared.Networking.NetworkClient:HandleCompleteUnconnectedDataMessage(UdpDataMessage&)
Eco.Shared.Networking.NetworkClient:HandleUnconnectedDataMessage(UdpDataMessage&)
Eco.Networking.ENet.ENetUdpPeer:OnRawDataReceived(Address&, IntPtr, Int32, Boolean&)
Eco.Networking.ENet.ENetUdpPeer:Intercept(Event&, Address&, IntPtr, Int32)
ENet.Host:Service(Int32, Event&)
Eco.Networking.ENet.ENetUdpPeer:Service(Int32)
NetworkManager:<StartServiceThread>b__78_0()
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)

After that there is no other log on client and server log. It seems that this might be an issue with the connectivity from the pc to the network. There was no network change during this time so it seems to be something from the game update.

From the hardware specification point, you are correct but the game was functioning properly till recently (around 3 months ago was working) so it could not be a specification point (I see the vga is the main point under the specifications).

D3nnis3n commented 1 year ago

The game is not responsible for the network connection, but your network is. The logs indicate you cannot make contact with any network services, which means there is a problem on your PC preventing it. Mostly that is due to security software. It's also not unusual for security software to block Eco on a new update as we don't pay for whitelisting, so it can of course be update related, but still caused by third party.

The log you quoted is not an error. Network is simply not doing anything further, reaching no connection. The fact there is no game error for the networking is the problematic one, as it means Eco is not involved in that problem.

D3nnis3n commented 1 year ago

What you do have in the earlier log that could be causing the issue you described more detailed now is a potential steam update related issue of having unremoved outdated files (which would typically trigger a server log error, though), so I would recommend saving your storage and configs directory in /steamapps/common/Eco/Eco_Data/Server, then uninstall Eco via Steam, remove the whole /steamapps/common/Eco folder and the AppData/Local Low/Strange Loop Games folder, then install Eco again and restore the backupped folders. This might solve the local loading, but you still have blocks for Vivox network connection, so can't promise this can help for online servers.

Refering to this:

[05:46:38.929] Duplicate object name detected! CedarLogItem and CedarLogItem EcoEngine.Logging.LogManager:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:LogError(Object) ModBundleManager:FindModObjectsRecursive(Object, String) UnityEngine.ResourceManagement.<>c__DisplayClass92_01:<ProvideResources>b__0(AsyncOperationHandle) UnityEngine.ResourceManagement.AsyncOperations.<>c__DisplayClass58_0:<remove_CompletedTypeless>b__0(AsyncOperationHandle1) System.Action1:Invoke(T) DelegateList1:Invoke(T) UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase1:InvokeCompletionEvent() UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase1:Complete(TObject, Boolean, Exception, Boolean) UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1:ProviderCompleted(T, Boolean, Exception) UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle:Complete(T, Boolean, Exception) UnityEngine.ResourceManagement.ResourceProviders.InternalOp:ActionComplete(AsyncOperation) UnityEngine.AsyncOperation:InvokeCompletionEvent()

Mentioning when the saves were last played (version) could also help. There is also potential issues when trying to load very old saves. If Eco was never uninstalled since last play it's also more likely that Steam didn't remove files from some updates in the past.

D3nnis3n commented 1 year ago

And yes, your VGA is problematic in regards to minimum requirements, as it only offers 2 GB of VRAM, which for most people leads to instant crashes, given 4 GB is the absolute minmum. I'm surprised that worked for you and hope it continues to do, but in case you ever experience crashes with D3D11 log lines, it's the VRAM being too little.

D3nnis3n commented 1 year ago

Also if all that failed, please try renaming your save file in /Storage to Game.db and Game.eco, then start the EcoServer.exe manually and let me know what happens.

Loutrinos commented 1 year ago

It will take a bit of time to try those out as the PC is not close by and I am not the one playing, but will let you know how the above suggestions helped. Thanks a lot for the time you invested in this.

D3nnis3n commented 1 year ago

All good, just let me know so we know the state of the problem :)

D3nnis3n commented 1 year ago

Any news?

D3nnis3n commented 7 months ago

Closing due to no further information provided.