Thread: Friend List Not Saving

Results 1 to 5 of 5
  1. #1 Friend List Not Saving 
    Donator
    nonononooooooo's Avatar
    Join Date
    Nov 2012
    Posts
    370
    Thanks given
    13
    Thanks received
    4
    Rep Power
    20
    Title says the problem, it use to work I must have messed it up at some point before I quit working on it, and now I'm trying to get back into it and I don't remember what I did.

    I've checked playerSave and compared it to working examples, mine matches, I'm fairly sure that's not the problem can someone help me out?

    Contact Me (Discord) @ Phantasye#0001
    Reply With Quote  
     

  2. #2  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    So you say it's saving. But is it loading?
    Also, when the player logs in, is the client made aware of the friends on the list (is the addFriend packet sent?).
    Reply With Quote  
     

  3. #3  
    Donator
    nonononooooooo's Avatar
    Join Date
    Nov 2012
    Posts
    370
    Thanks given
    13
    Thanks received
    4
    Rep Power
    20
    I believe the client sided part of sending the packet is the problem, not sure where/how to fix it though, don't even know when I messed it up.

    Contact Me (Discord) @ Phantasye#0001
    Reply With Quote  
     

  4. #4  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Normally, you send packet 221 (1 byte fixed size) with content 2 to indicate the contact server (that's what I call it, even though I don't use a separate server) is online and connected.

    Then you should use packet 50 to add (and possibly set online) all friends: fixed size: 1 long (friendsNameLong) and 1 byte (world).
    For the worlds greater than 0 means online (in that world) and 0 means offline.

    The ignores are all sent at once by packet 214 (variable short): for every ignore you append the ignoreNameLong as a long value to the packet.

    Check out the packetIds and if found, usages thereof.
    Reply With Quote  
     

  5. #5  
    Donator
    nonononooooooo's Avatar
    Join Date
    Nov 2012
    Posts
    370
    Thanks given
    13
    Thanks received
    4
    Rep Power
    20
    I'm not finding the problem, but I'm sure I'm doing it wrong, I've just finished comparing both files and packets mentioned to a working copy and I can't find any differences.


    Summary of problem, I get online I add a player, the player will show as online if they're online, and offline if they'e offline, if they log out, it still shows them as online, and if I log out then my friend list is cleared.

    Contact Me (Discord) @ Phantasye#0001
    Reply With Quote  
     


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: 1
    Last Post: 04-26-2010, 12:45 AM
  2. Friends List Not saving but Ignores are
    By CrazyPanda in forum Help
    Replies: 0
    Last Post: 10-25-2009, 05:45 AM
  3. My friends list still dont save!
    By Effect in forum Help
    Replies: 11
    Last Post: 10-18-2009, 02:53 PM
  4. Espeon, Friends List Saving
    By Effect in forum Help
    Replies: 3
    Last Post: 08-15-2009, 12:19 PM
  5. Espeon Friends list saving
    By Mario in forum Help
    Replies: 2
    Last Post: 04-29-2009, 07:36 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
  •