I am creating an RTS game involving a server and a client. I have recently been getting an ArrayOutOfBoundsIndexException error that I cant seem to solve. Any help would be appreciated.
this is the server
import processing.net.*; //Imports processing.net.* Library -- for server
Server gameServer; //Server -- This program is the server
Client gameClient; //Client -- The partner program is the Client
String input; //Stores data recieved from Client
int data[]; //Separates data stored in input
void ServerSetup(){
if(NumberOfUnits > 0){ //If you have any units
//Send the array indexes and Team Coordinates to the client
I am trying to create an Real-Time-Strategy game with processing and to do this i am trying to program a server and client. Both my server and the client that I have created keeps getting the error: "StringOutOfBoundsException: String index out of range: -1".