The screen displayed while connecting to a server just says Downloading terrain even before it's technically downloading terrain. This makes it confusing to figure out why server connection isn't working when it breaks.
[ ] Add more connection phases and display messages for them
[ ] Check that the new messages are helpful by direct connecting to a minecraft server that doesn't exist (e.g. play.stackotter.dev:12345. At the moment it just says Downloading terrain and after solving this problem it should be pretty obvious that connecting to the server has failed.
Extra information
The way updates are sent from the networking thread (in DeltaCore) to the UI (in DeltaClient) is through the event bus. To add an event create a struct that conforms to Event. See the existing events as reference. Then in the networking or wherever required, you can use eventBus.dispatch(YourNewEvent(...)) to notify listeners of the event. Then add handling code for the event to PlayServerView.handleClientEvent.
The screen displayed while connecting to a server just says
Downloading terrain
even before it's technically downloading terrain. This makes it confusing to figure out why server connection isn't working when it breaks.play.stackotter.dev:12345
. At the moment it just saysDownloading terrain
and after solving this problem it should be pretty obvious that connecting to the server has failed.Extra information
The way updates are sent from the networking thread (in
DeltaCore
) to the UI (inDeltaClient
) is through the event bus. To add an event create a struct that conforms toEvent
. See the existing events as reference. Then in the networking or wherever required, you can useeventBus.dispatch(YourNewEvent(...))
to notify listeners of the event. Then add handling code for the event toPlayServerView.handleClientEvent
.