Thread: Synchronising other players movements, how does this procedure work?

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11  
    Registered Member
    Join Date
    Sep 2019
    Posts
    29
    Thanks given
    2
    Thanks received
    8
    Rep Power
    65
    Quote Originally Posted by Fire Cape View Post
    The client doesn't need to know about the physical existence of other clients. The server interfaces between the them. What do you think an appearance update is doing? It is notifying the client about the appearance not just of a player but of all players in the list (notice that the walk and run animation is set in this block). A movement update is doing the same thing. This is sent for every player in the list so that the player who the client is actually controlling can see them moving. There aren't actually multiple players in an OOP sense, it is fake.
    We still gotta send the updated direction and move type bits per other players though? I really don't understand how my local players client is going to be aware of other players movements without the server explicitly saying so, and it's even in the client code lol. My question wasn't really this though, it was about how to approach this. I've updated my post with a general idea.

    Also appearance updating is done in two parts, the local players and other players, as is the movement...
    Reply With Quote  
     

  2. #12  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    Quote Originally Posted by wolfajk View Post
    We still gotta send the updated direction and move type bits per other players though? I really don't understand how my local players client is going to be aware of other players movements without the server explicitly saying so, and it's even in the client code lol. My question wasn't really this though, it was about how to approach this. I've updated my post with a general idea.

    Also appearance updating is done in two parts, the local players and other players, as is the movement...
    No you are not wrong. Your client will not know without the server saying so. That's the point. The server sets the bits for every client in the player list every cycle. It knows the index and you have told it how many players to update, so it loops through and does this for every player in the list. It then sets the bits by a loop.

    Code:
     for (int I = 0; I < 5; I++) set bits
    Pseudocode on a phone is actually hard to write lol but point is every cycle your client will be told because you have told the client which index to loop and yes you're wondering how it will know if two players have different values set. They will know because those players will have two different flags set, and they will be told to the client. One might be running, one might be walking. You need to tell the client this but not individually, just set the bits to work out if the player is walking or not and change it for the current player.

    Anyway I don't think we're getting anywhere if anyone else wants to weigh in go ahead I'd be interested if I'm wrong but it works on my server so yeah.
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Sep 2019
    Posts
    29
    Thanks given
    2
    Thanks received
    8
    Rep Power
    65
    Quote Originally Posted by Fire Cape View Post
    No you are not wrong. Your client will not know without the server saying so. That's the point. The server sets the bits for every client in the player list every cycle. It knows the index and you have told it how many players to update, so it loops through and does this for every player in the list. It then sets the bits by a loop.

    Code:
     for (int I = 0; I < 5; I++) set bits
    Pseudocode on a phone is actually hard to write lol but point is every cycle your client will be told because you have told the client which index to loop and yes you're wondering how it will know if two players have different values set. They will know because those players will have two different flags set, and they will be told to the client. One might be running, one might be walking. You need to tell the client this but not individually, just set the bits to work out if the player is walking or not and change it for the current player.

    Anyway I don't think we're getting anywhere if anyone else wants to weigh in go ahead I'd be interested if I'm wrong but it works on my server so yeah.
    I agree, thanks anyway though dude.
    Reply With Quote  
     

  4. #14  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    You should probably message some of the programmer ranks directly. I don't think they pay much attention to these threads in the help section because they're usually just people asking about not being able to call a compiler from a batch file lol.

    Let me know if you make any progress with your idea, if you cannot do it I would be happy to try explain it to you again another time.
    Reply With Quote  
     

  5. #15  
    Registered Member
    Join Date
    Sep 2019
    Posts
    29
    Thanks given
    2
    Thanks received
    8
    Rep Power
    65
    Quote Originally Posted by Fire Cape View Post
    You should probably message some of the programmer ranks directly. I don't think they pay much attention to these threads in the help section because they're usually just people asking about not being able to call a compiler from a batch file lol.

    Let me know if you make any progress with your idea, if you cannot do it I would be happy to try explain it to you again another time.
    Oh lol and sure thing, appreciate it .

    RESOLVED. Updated post with my findings.
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 14
    Last Post: 07-21-2015, 03:59 PM
  2. [Rep++] How does this dupe works?
    By Gr1nderscape in forum Help
    Replies: 4
    Last Post: 01-02-2012, 01:22 PM
  3. How does this look, guys?
    By Xenocide in forum Graphics
    Replies: 22
    Last Post: 07-09-2010, 05:03 AM
  4. How does this look?
    By Proffessor Oak in forum Chat
    Replies: 3
    Last Post: 02-19-2010, 02:24 PM
  5. How does this work??Rep++
    By Mini in forum Help
    Replies: 1
    Last Post: 12-20-2009, 11:22 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •