I would not think that InSim would implement a spam protection mechanism, seeing as you have to have the admin password to connect to it. I'll do some testing now. . .
I was also working on some InSim stuff (starting tool for running starts), and was trying to use MTC packets as well, but couldn't get it to work at all... Didnt work in MPR, multiplayer server or single player.
public void sendMTC (String mes, int uId) { byte[] temp = new byte[68]; Arrays.fill(temp, (byte)0);
for (int i=0; i < Math.min (mes.length(), 64); i++) temp[i+8] = (byte)mes.charAt(i);
temp[67] = (byte)0;
for (int i=0; i < temp.length; i++) System.out.print ((char)temp[i]);
System.out.println ("\n" + uId);
IO_OUT.sendPacket.setData(temp); IO_OUT.send(); }
It's Java code and pretty nasty, but it works in a very similar way for MST packets. The MTC messages are supposed to pop up in the chat area, correct?
MTC packets are like an admin typing /msg <insert message> but with the message only appearing for a certain player. I think that makes sense.
MST packets are like an admin typing /msg <insert message> where the message appears for everyone.
I don't know about constructing the packet for MTC, I'm using an API so I've never done any of the actual connecting and sending. I would guess that there's something wrong with your code. I'll try finding what the packet should look like.
EDIT: @Dygear - ok, no problem, I'm not really bothered when it gets fixed.
EDIT2:
MTC ☺ ^7Welcome to the server!
That is sent to Insim for MTC packets, try comparing it to what your app sends Frank.