Hey, well I have this problem, I am making a game in Java and it is getting really far. If anyone saw my last problem, that is resolved and I finished my networking code. Here is the problem, to start a new game window in my code, one would write something like this:
new Engine(1, "18.104.22.168", 2);
If I do this in the main entry point of the program in the class ENGINE itself, I do something like this:
Because I have to distribute the game to a few friends, I made another class called loader, and all it does is it gives the option to the user whether to be player 1 or player 2. The 1st parameter for initializing a new object of "Engine" is the player ID, the second is the server address, and the third is the total players. If I use this EXACTLY same code:
new Engine(2, "22.214.171.124", 2);
In the loader class, it starts a new game window that is ALL blank, until player 1 ends their turn. Player 1's game window starts fine from the loader though. I do not understand what is wrong in the program. It is pretty complicated to understand.
Debugging it actually let me find that the RECIEVE method of the network is blocking the loading as well, it actually loaded the map, but then went blank after the recieve method is called. Please help! Thank you!
Edited by WargRider: Keep it on site, no email IDs in posts