Posted 07 June 2014 - 12:25 PM
I have modified the chat program slightly to act as a real life system that is like iMessage. (I DO NOT PLAN ON DISTRIBUTING THE CODE AS THIS IS COPYRIGHT BREAKING) I have added a signal bar at the top like any phone and also a wifi bar for when near wifi networks (the user needs to connect to them first in a different program) and it seems to work fine until a Java error appears, breaking/stopping the program!
I have downloaded a big city map to run this whole 'internet' system in and the error seems to be happening when the chat program is 'supposedly' out of range of a transmitter/computer (i have the main chat server in the center and repeaters going around nearly the whole map) and the signal bar updates automatically as you move around. If you are out of range of a repeater/transmitter the program will not allow you to send/receive any messages.
However a Java error appears randomly I think, it displays this:
window: 277: vm error: java.lang.ArrayIndexOutOfBoundsException
and then it just disconnects. When I then try and connect again, it just constantly searches for a transmitter(computer) to connect to (even if you go and stand right next to one!) Can anyone help with this error? Thanks :)/>
I have downloaded a big city map to run this whole 'internet' system in and the error seems to be happening when the chat program is 'supposedly' out of range of a transmitter/computer (i have the main chat server in the center and repeaters going around nearly the whole map) and the signal bar updates automatically as you move around. If you are out of range of a repeater/transmitter the program will not allow you to send/receive any messages.
However a Java error appears randomly I think, it displays this:
window: 277: vm error: java.lang.ArrayIndexOutOfBoundsException
and then it just disconnects. When I then try and connect again, it just constantly searches for a transmitter(computer) to connect to (even if you go and stand right next to one!) Can anyone help with this error? Thanks :)/>