Wiki
Clone wikiPokemonium / Easy fixes
No OpenGL Context Found
When an 'No OpenGL context found' exception occurs, you can easily fix it in the following manner:
- Identify the place the exception occurs
- Wrap it in:
#!java GameClient.getInstance().getGUI().invokeLater(new Runnable() { @Override public void run() { //Put the code here } });
This exception occurs because you try to do GUI stuff outside of the GUI thread. This method makes that the piece of code gets executed on the GUI thread.
Jesus bug (walking through walls and stuff)
This usually is caused by a server-client message that doesn't get read fully. For instance, you put 5 ints in the message but only read 4. There is now some data left in there and causes the connection to go out of sync.
Can be fixed by identifying the faulty message and reading it fully/removing unnecessary data.
Updated