Closed sawcisson closed 1 month ago
Hello,
Hosting the server (host) on the same machine ur playing right? Do you have DNS/RDNS setup ? If you do, i had the same problem in MMO, you need to modify ur windows host file and add "DNS name":localhost
The host and client are on different machines through steam. I just had some people who managed to make it work but they had huge delay in loading so my supposition now is that maybe some client load faster than server and don't have anything telling them to update coordinates.
Fixed: https://youtu.be/6_JB_vYzVpo
Could you please tell me how you fixed it and where should I update my file ?
In LanRpaNetworkManager.cs
Add
private readonly HashSet<string> _teleportingPlayerCharacterIds = new HashSet<string>();
In function SpawnPlayerCharacter
, find !CurrentMapInfo.Id.Equals(playerCharacterData.CurrentMapName)
Add || _teleportingPlayerCharacterIds.Contains(playerCharacterData.Id)
condition, and remove character ID from _teleportingPlayerCharacterIds
later
In function WarpCharacter
add character ID to _teleportingPlayerCharacterIds
before proceeding to warp
Player who are not host don't spawn on the spawn position of the map inside the instance for some reason. They spawn else where and fall through ground
Reproduce :
Host a lan game Go into a warp to another map NON host player get teleported to wrong coordinate