Hi all,
I'm attempting to add a teleport interface where it displays the NPC on the interface based on which teleport is selected.
Whenever I open the interface the client crashes with the following error:
Code:
Error: T1 - Packet: 194, Packet Size: 0 - Previous packet: 75 Previous packet size: 4, 2nd Previous packet: 126, 2nd Previous packet size: 18
In PlayerAssistant.java server sided I have:
Code:
public void sendInterfaceModelSettings(int interfaceId, int modelZoom, int rotation1, int rotation2) {
if (c.getOutStream() != null && c != null) {
c.getOutStream().createFrame(230);
c.getOutStream().writeDWord(interfaceId);
c.getOutStream().writeWord(modelZoom);
c.getOutStream().writeWord(rotation1);
c.getOutStream().writeWord(rotation2);
}
}
public void sendNPCOnInterface(int interfaceId, int npcId) {
// synchronized(c) {
if (c.getOutStream() != null && c != null) {
c.getOutStream().createFrame(75);
c.getOutStream().writeByte(6);
c.getOutStream().writeWord(npcId);
c.getOutStream().writeDWord(interfaceId);
}
}
public void sendNPCOnInterfaceReset(int interfaceId) {
// synchronized(c) {
if (c.getOutStream() != null && c != null) {
c.getOutStream().createFrame(75);
c.getOutStream().writeByte(0);
c.getOutStream().writeWord(0);
c.getOutStream().writeDWord(interfaceId);
c.flushOutStream();
}
}
Is this likely an issue with my packet sizes in SizeConstants.java where I define the packetsizes? Any help is appreciated.