Thread: Chatbox - Player chat

Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1 Chatbox - Player chat 
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    So i have an issue with the chatbox on my server, instead of typing a novel trying to explain i just took a screenie.

    Rep for whoever can figure this out... Jason, Poessy, and myself along with many others on skype couldn't figure this out.

    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    Still looking for help on this.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    45 views no response? Any pointers or guesses would be much appreciated.
    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
    Are public messages received as a packet on the server (And set on the server)? What I see is people only seeing their own message, which makes me think the server isn't setting the chat messages for players.
    See chatpackethandler or something.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    Quote Originally Posted by TheChosenOne View Post
    Are public messages received as a packet on the server (And set on the server)? What I see is people only seeing their own message, which makes me think the server isn't setting the chat messages for players.
    See chatpackethandler or something.
    I'm assuming there is no packet recognition.. i'm just not sure, i can check if you know where to find that.

    Chat.java
    package server.model.players.packets;
    import server.model.players.Player;
    import server.model.players.PlayerHandler;
    import server.model.players.Client;
    import server.model.players.PacketType;
    import server.util.Misc;
    import server.Connection;
    import server.Config;

    /**
    * Chat
    **/
    public class Chat implements PacketType {

    @Override
    public void processPacket(Client c, int packetType, int packetSize) {

    c.setChatTextEffects(c.getInStream().readUnsignedB yteS());
    c.setChatTextColor(c.getInStream().readUnsignedByt eS());
    c.setChatTextSize((byte)(c.packetSize - 2));
    c.inStream.readBytes_reverseA(c.getChatText(), c.getChatTextSize(), 0);
    c.getPA().writeChatLog(Misc.textUnpack(c.getChatTe xt(), packetSize-2));
    if (!Connection.isMuted(c))
    c.setChatTextUpdateRequired(true);
    }

    }
    Reply With Quote  
     

  6. #6  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    At first sight, that could work.
    Has it worked before?
    To make sure the packet is recognised (so we can rule out that possibility), could you print out a little message like:
    System.out.println("Chatpacket received ");
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    Quote Originally Posted by TheChosenOne View Post
    At first sight, that could work.
    Has it worked before?
    To make sure the packet is recognised (so we can rule out that possibility), could you print out a little message like:
    System.out.println("Chatpacket received ");
    As i thought, its working.

    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    It's probably to do with Player updating. I don't think your updating other players correctly
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Banned

    Join Date
    Mar 2013
    Posts
    256
    Thanks given
    356
    Thanks received
    109
    Rep Power
    0
    Client sided issue. I forgot how to fix though.
    Reply With Quote  
     

  11. #10  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    Quote Originally Posted by Faris View Post
    It's probably to do with Player updating. I don't think your updating other players correctly
    Any idea's on a fix? or can i provide you with some information to look over my code? (if so where and what)
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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. Chatbox - Player chat not showing up?
    By treeman in forum Help
    Replies: 0
    Last Post: 04-10-2013, 03:34 PM
  2. Player Chat Heads
    By RuneDeviant in forum Help
    Replies: 10
    Last Post: 08-20-2012, 11:12 PM
  3. PI player chat not working 15$
    By Happy Days in forum Help
    Replies: 7
    Last Post: 02-16-2011, 10:52 PM
  4. player chat
    By 2pro in forum Help
    Replies: 0
    Last Post: 01-27-2010, 11:17 PM
  5. Small problem with player chat order
    By Colby in forum Help
    Replies: 37
    Last Post: 07-09-2009, 12:33 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •