Let' start.
If you write something in to the CLI, the client send this to the server.
Not as a stupid
Code:
A|0|BRB...
So if you write as example "ship 98", you need to check, if the packetHeader Contains ship. As every packet
Code:
if (packetHeader.StartsWith("ship"))
You can easily read types.
So:
Code:
if (packetHeader.StartsWith("ship"))
{
this.Ship.ID = packetHeader.ReadUInt32();
}
Open the packets.cs and edit one of the first lines, where the | get splitted.
Code:
if (packet.Contains("|"))
{
packetData = packet.Split('|');
}
else //for the spacebar
{
packetData = packet.Split(' ');
}
But you don't want to relog?
Send the RDY packet again.
Code:
private void updateShip()
{
INSERT HERE THE RDY PACKET FROM START
}
Code:
if (packetHeader.StartsWith("ship"))
{
this.Ship.ID = packetHeader.ReadUInt32();
this.updateShip();
}
Requi






