ATLauncher / ATLauncher

ATLauncher is a Launcher for Minecraft which integrates multiple different ModPacks to allow you to download and install ModPacks easily and quickly.
GNU General Public License v3.0
645 stars 190 forks source link

Support Quick Play #748

Closed RyanTheAllmighty closed 1 week ago

RyanTheAllmighty commented 1 year ago

23w14a added in Quick Play which allows launching directly into a server, realm or singleplayer world (https://www.minecraft.net/en-us/article/minecraft-snapshot-23w14a).

Would be good to have a setting per instance to auto launch into a server (old MC versions support --server and --port) or singleplayer world

RyanTheAllmighty commented 1 year ago

Looks like it's in the game arguments in the json definition now:

      {
        "rules": [
          {
            "action": "allow",
            "features": {
              "has_quick_plays_support": true
            }
          }
        ],
        "value": [
          "--quickPlayPath",
          "${quickPlayPath}"
        ]
      },
      {
        "rules": [
          {
            "action": "allow",
            "features": {
              "is_quick_play_singleplayer": true
            }
          }
        ],
        "value": [
          "--quickPlaySingleplayer",
          "${quickPlaySingleplayer}"
        ]
      },
      {
        "rules": [
          {
            "action": "allow",
            "features": {
              "is_quick_play_multiplayer": true
            }
          }
        ],
        "value": [
          "--quickPlayMultiplayer",
          "${quickPlayMultiplayer}"
        ]
      },
      {
        "rules": [
          {
            "action": "allow",
            "features": {
              "is_quick_play_realms": true
            }
          }
        ],
        "value": [
          "--quickPlayRealms",
          "${quickPlayRealms}"
        ]
      }
    ],
Jack-McKalling commented 1 year ago

This would be my vision for how it should work;

When your instance already has worlds, its Play dropdown button should provide an option for quickplay mode, and if it hasn't already have settings for that saved, clicking the option would provide with a selection of all available worlds to choose from that instance, and once selected the setting is saved on the instance.

Since the play button already has an online and offline option, you could split the quickplay similarly as well. Both quickplay options having their own settings.

The Servers tab could have a similar quickplay button for the multiplayer mode.

At all times, each instance and server should offer a dedicated settings tab for modifying or removing any previously defined quickplay settings, or manually define any anew.

EchoEllet commented 3 months ago

When your instance already has worlds, its Play dropdown button should provide an option for quickplay mode, and if it hasn't already have settings for that saved, clicking the option would provide with a selection of all available worlds to choose from that instance, and once selected the setting is saved on the instance.

Since the play button already has an online and offline option, you could split the quickplay similarly as well. Both quickplay options having their own settings.

The Servers tab could have a similar quickplay button for the multiplayer mode.

At all times, each instance and server should offer a dedicated settings tab for modifying or removing any previously defined quickplay settings, or manually define any anew.

image

Did you imagine it like this? The UI still needs to be updated

Jack-McKalling commented 3 months ago

Yes, that would be the settings screen of an instance, offering the settings for the quick play. Of course this is only a part of what I described. But it looks good so far.

EchoEllet commented 3 months ago

Yes, that would be the settings screen of an instance, offering the settings for the quick play. Of course this is only a part of what I described. But it looks good so far.

I would like to hear more about what you suggested so I can improve it

EchoEllet commented 3 months ago

(old MC versions support --server and --port) or singleplayer world

Any idea how to load a single-player world in older versions of Minecraft? Which argument should be used?

Jack-McKalling commented 3 months ago

I'm not sure how the mechanic works internally, so I can't suggest how to handle older worlds. I also don't know whom to ask, besides mojang but I'd prefer not to ask them if I can avoid it.

How I'd like to see it work though, if possible. Is that with this settings screen you can save the specific parameters and other details about what you need to make it run the game like that. And then in the Instances menu (and Servers menu too), there already is the Play button with a dropdown, which could be extended to include the options to play the game in this quick-play mode. It would add e.g. a "Quickplay online" and "Quickplay offline" option, which would launch the game with the previously saved settings in the above screen.

Instances: image

And somewhere here for servers: image

But really, it's just a basic suggestion about the interface, I don't know anything about the mechanism itself. Maybe you could use the dropdown label "Quick Play Single Player World" for the 2nd dropdown box (bold words added), just to clarify for the first glance that the option is used for quick play settings. I'm thinking about a horizontal rule too, but I notice none of the menus have one, so that would be out of place.

atlauncher-bot commented 1 week ago

This has been fixed with version 3.4.37.0