TASmod icon indicating copy to clipboard operation
TASmod copied to clipboard

Connect to custom server in the main menu

Open ScribbleTAS opened this issue 2 years ago • 0 comments

Right now, the custom server is started when the vanilla server is opened, which is cool and all, but we can do better. A big issue we have is that we can't really start a TAS when we are in multiplayer. Syncing multiple clients when they are in the main menu is not possible rn, since the network connection is closed when we leave the server, at the same time ticksync is really important generally.

Behaviour

  • Start the local packet server when the game starts and connect to it by default.
  • Using a textbox, you can enter the ip of another minecraft server with an open packet server and connect to it
  • When connecting to a server that has a packet server open or when joining singleplayer
    • If the currently connected ip is different, close the connection to the old packet server and connect to the current packet server present on that minecraft server
  • When connecting to a server that doesn't have a packet server open:
    • Abort connection to the main menu

The Solution

  • [x] Open the custom server even in the main menu
  • [ ] Make a textbox and button to choose the ip of the custom server
  • [x] Open a local server on startup and connect to the custom server automatically when joining a dedicated server
  • [ ] Display a connection status in the main menu

ScribbleTAS avatar Nov 01 '22 20:11 ScribbleTAS