Jorik Mantana
Jorik Mantana2mo ago

The player disappears a few seconds after the launch. What could this be related to?

The player disappears a few seconds after the launch. What could this be related to?
18 Replies
kapa.ai
kapa.ai2mo ago
Hi @Jorik Mantana. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The issue of the player disappearing a few seconds after the launch could be related to a few things based on the information provided in the knowledge sources: 1. Room Server Shutdown: If the last player leaves a room, the room server will remain running for about 30 seconds before it's shut down. When this happens, any objects that are not flagged to destroy will be written to persistent storage. If the player object is not flagged correctly, it might be destroyed when the server shuts down. source (https://normcore.io/documentation/realtime/common-questions#what-happens-to-my-objects-when-a-room-server-shuts-down) 2. Avatar Disappearance on Disconnect: The root RealtimeView is set to destroyWhenOwnerLeaves by default. If you change this value, or if you clear the owner of the avatar itself, then it will not be cleaned up properly by the server. source (https://normcore.io/documentation/realtime/common-questions#why-doesnt-my-avatar-disappear-on-remote-clients-when-i-disconnect) 3. Client Crash or Disconnect: The server pings connected clients every five seconds. If their connection is dropped suddenly, the server will disconnect them after five seconds and any models that they own that are tagged destroyWhenOwnerLeaves will be destroyed automatically. source (https://normcore.io/documentation/architecture/common-questions#what-happens-when-a-client-crashes-how-long-does-it-take-the-server-to-disconnect) Please check these settings and ensure that the player object is configured correctly. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@358312117364981761> kapa.ai is still learning and improving, please let us know how it did by reacting below
Jorik Mantana
Jorik Mantana2mo ago
@Normcore Assistant connection lost in few seconds after start and player disappears, problem is not on my side. How to fix it?
kapa.ai
kapa.ai2mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- If you're experiencing connection loss a few seconds after starting and the player disappears, there could be several reasons for this. Here are some potential issues and solutions based on the information provided in the knowledge sources: 1. Firewall or Network Restrictions: If you're on a corporate network or behind a firewall, it might be blocking the necessary ports or IP ranges that Normcore uses. Make sure the following IP ranges and ports are enabled. source (https://normcore.io/documentation/architecture/firewalls)
Protocol: TCP
Ports: 443, 3000
Source: All Normcore Clients
Destination: *.normcore.io

Protocol: UDP
Ports: 32,768 - 65,535
Source: All Normcore Clients
Destination: No outbound IP limit
Protocol: TCP
Ports: 443, 3000
Source: All Normcore Clients
Destination: *.normcore.io

Protocol: UDP
Ports: 32,768 - 65,535
Source: All Normcore Clients
Destination: No outbound IP limit
2. DLL Not Found Exception: If you're trying to run your application on another computer or device and you get a DllNotFoundException for RealtimeClient, make sure that RealtimeClient.dll exists in the Plugins folder of your standalone build. If you're on Windows, you might need to install the Microsoft Visual Studio 2019 redistributables. If you're on Mac, you might need to strip the quarantine attribute that’s added by macOS. source (https://normcore.io/documentation/platforms/common-questions#when-i-try-to-run-my-application-on-another-computer-or-device-i-get-dllnotfoundexception-realtimeclient) 3. RealtimeTransform Ownership: If your player object uses a RealtimeTransform, it requires an owner to designate which client is responsible for its movement. If the object gets stuck and can't move, try calling RequestOwnership(). source (https://normcore.io/documentation/realtime/common-questions#my-realtimetransform-gets-stuck-and-i-cant-move-it-what-can-i-do-about-this) If none of these solutions work, it might be a good idea to reach out to Normcore's support for further assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@358312117364981761> kapa.ai is still learning and improving, please let us know how it did by reacting below
Jorik Mantana
Jorik Mantana2mo ago
@Normcore Assistant Console writes "Pinging clusters to determine server with lowest latency for this client." then connection failed
kapa.ai
kapa.ai2mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- The message "Pinging clusters to determine server with lowest latency for this client" is a normal part of the connection process where Normcore is trying to find the best server for the client to connect to. If the connection fails after this, it could be due to several reasons: 1. Network Issues: There might be network issues preventing the client from establishing a connection. This could be due to firewall settings, network restrictions, or internet connectivity problems. Make sure your network allows the necessary IP ranges and ports that Normcore uses. source (https://normcore.io/documentation/architecture/firewalls) 2. DLL Not Found Exception: If you're trying to run your application on another computer or device and you get a DllNotFoundException for RealtimeClient, make sure that RealtimeClient.dll exists in the Plugins folder of your standalone build. If you're on Windows, you might need to install the Microsoft Visual Studio 2019 redistributables. If you're on Mac, you might need to strip the quarantine attribute that’s added by macOS. source (https://normcore.io/documentation/platforms/common-questions#when-i-try-to-run-my-application-on-another-computer-or-device-i-get-dllnotfoundexception-realtimeclient) 3. Realtime Settings: Check the settings of the Realtime component in your Unity project. Make sure the roomToJoinOnStart is set correctly if you want to join a room on start. Also, check the joinRoomOnStart boolean to see if Realtime will try to automatically connect on Start(). source (https://normcore.io/documentation/reference/classes/Normal.Realtime.Realtime) If none of these solutions work, it might be a good idea to reach out to Normcore's support for further assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@358312117364981761> kapa.ai is still learning and improving, please let us know how it did by reacting below
Mechabit
Mechabit2mo ago
def a network issue, what country are you in?
Jorik Mantana
Jorik Mantana2mo ago
Russia
Mechabit
Mechabit2mo ago
home or office network? I know there aren't any servers in China, dunno about Russia
Jorik Mantana
Jorik Mantana2mo ago
college network
Mechabit
Mechabit2mo ago
yeah prob firewall
Jorik Mantana
Jorik Mantana2mo ago
it's not about the firewall - it doesn't apply to my PC. Normcore works differently at different times, now we can connect with several attempts and everything works well, but sometimes connection failures start
Mechabit
Mechabit2mo ago
yeah it sometimes gets through but cos of the nature of cloud infrastructure some nodes are accessible and you don't get to choose which one you connect to
Jorik Mantana
Jorik Mantana2mo ago
so can I fix it somehow?
Mechabit
Mechabit2mo ago
maybe with normcore private you can get API access to choose a server I would email support and ask them about it
Jorik Mantana
Jorik Mantana2mo ago
Yeah, maybe I should try it Thx