When the player spawn point is the default position, but I use this teleport. (teleport to old camp castle)
The server lost me after the teleport, but it rejoin me after 1-2s. After this rejoin I see NPCs from the game, but they are hidden after a couple seconds.
The logs, after the /castle:
My thought is, that my laptop is weak a bit and when it has to load the old camp castle, the client-server communication is stuck for a couple seconds.
Quote:addCommandHandler("castle", function(playerId, commandName)
setPlayerPosition(
playerId,
1116.75,
-1007.51,
-36.66
)
end)
The server lost me after the teleport, but it rejoin me after 1-2s. After this rejoin I see NPCs from the game, but they are hidden after a couple seconds.
The logs, after the /castle:
Quote:[lua][chat][info] command player=1 name=castle argc=0 args=[]That's why the onPlayerJoin will run twice and if it has some random generation (for example: select a random position from a list) will run twice too.
[authority] movement snapshot held awaiting position acknowledgement player=1 command=1 action=set_position sequence=574
[lifecycle] onPlayerQuit final state player=1 sequence=576 position=(111675.000,-100751.000,-3666.000) yaw=0.000 snapshotAgeMs=2089
CONNECT_PENDING provisional=2 address=192.168.0.1 peer=00000165DF7F5010 event=connect
AUTH player=2 name=Xardas0327 serial=fa61cd5cb66e2a40e68a3ec5ab8ab9de address=192.168.0.1
My thought is, that my laptop is weak a bit and when it has to load the old camp castle, the client-server communication is stuck for a couple seconds.