Still looking for help on this.
|
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.
Still looking for help on this.
45 views no response? Any pointers or guesses would be much appreciated.
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);
}
}
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 ");
It's probably to do with Player updating. I don't think your updating other players correctly
Client sided issue. I forgot how to fix though.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |