Thread: MMORPG question

  1. #1
    Registered User ~Kyo~'s Avatar
    Join Date
    Jun 2004
    Posts
    320

    MMORPG question

    Does anyone have a good way to update the client when say a npc walks onto their screen or even another player? Currently I have it send a out of date packet to the client to kick it into the refresh loop but this is horribly slow. The other idea is to keep everyone informed about what everyone is doing - this makes the amount of data to be sent fairly large which still bogs the game down since the maps are fairly large and the amount of players will be large enough to really lagg the place down. I know half life uses a "This is what is near you" kind of packet send, but I was wondering if there was a better way that someone knows of. Thanks in advance.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by ~Kyo~
    The other idea is to keep everyone informed about what everyone is doing - this makes the amount of data to be sent fairly large which still bogs the game down since the maps are fairly large and the amount of players will be large enough to really lagg the place down. I know half life uses a "This is what is near you" kind of packet send, but I was wondering if there was a better way that someone knows of. Thanks in advance.
    Keep informing the player what erveryone is doing who is near the player. Your player dosen't need to know what somone who is in an area of the map that he cannot see or interact with is doing.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    8

    depends

    It depends how big your maps are. If they are really big this won't work but with small enough maps what I would do is just track what map every user is on either by number(int) or name(string/char). and when your server recieves an action from a user forward that information to only users on the same map.

    If the map(s) are too big for that then you could store the x,y, and z axis then do a radius check like the other guys was talking about.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New MMORPG
    By Tantalar in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 11-25-2007, 12:42 PM
  2. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  3. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM