Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch Instances Offline From Command Line -o <name> #1059

Open
1 task done
Jazztache opened this issue May 5, 2023 · 2 comments · May be fixed by #2331
Open
1 task done

Launch Instances Offline From Command Line -o <name> #1059

Jazztache opened this issue May 5, 2023 · 2 comments · May be fixed by #2331
Labels
enhancement New feature or request

Comments

@Jazztache
Copy link

Role

I play modded Minecraft, with a custom setup that allows me to play local co-op without an internet connection.

Suggestion

Add in a launch flag for launching instances offline. Using -l <instance> -o <name> as a way of launching offline instances with a specific name.

Benefit

This is so you can do offline LAN games, or quickly spin up offline instances for pure singleplayer.

This suggestion is unique

  • I have searched the issue tracker and did not find an issue describing my suggestion, especially not one that has been rejected.

You may use the editor below to elaborate further.

This is specifically good for quickly spinning up offline instances. There is a really important use case for this as well.

Using a tiling window manager (or Bismuth on KDE), turning off 'pause on unfocus' in the minecraft config, creating a controller-modded instance for each player, and launching the seperate instances in offline mode, you can have offline splitscreen LAN minecraft.

For everything above, it's scriptable using Bash. Find and replace on text files for configs in both Minecraft and WMs, copying instances and duplicating them, and launching instances... but not in offline mode. You have to use the GUI for this, which makes scripting this setup impossible.

I believe that adding the -o flag would be very helpful, especially because if you want to test on a server offline, you can do this:

prismlauncher -l Offline1 -o OfflinePlayerOne -s localhost
prismlauncher -l Offline2 -o OfflinePlayerTwo -s localhost
@Jazztache Jazztache added the enhancement New feature or request label May 5, 2023
@eff3ry
Copy link

eff3ry commented May 8, 2023

you can create offline profiles/accounts in the launcher first and then launch with --profile "<profile>" to open an offline game

@Jazztache
Copy link
Author

I am not sure this would work.
This would require 8 offline profiles if we wanted to play with 8 players locally offline, so this would not be scaling up, especially if I have to manually create each account.

On top of that, creating all of the offline users using a script (if even possible) would pollute the account list, and users/accounts aren't easily group-able like the instances.

Is there a way to launch offline without previously creating an offline account? This would be much better for the use case described above.

michaeltyson added a commit to michaeltyson/PrismLauncher that referenced this issue Apr 23, 2024
This allows launching an offline instance with --offline --name=OffflineName. This is useful for playing split screen by creating two side-by-side instances, which is impossible online, unless one is using two separate paid accounts.

With this PR, it makes it possible to launch from a script - otherwise, one has to launch manually, which is a pain, or create offline profiles for each instance, which interferers with some functionality like skins (my autistic son takes great issue with his skin not being visible, when using offline profiles!).

See also PrismLauncher#1059 for discussion.
michaeltyson added a commit to michaeltyson/PrismLauncher that referenced this issue Apr 23, 2024
This allows launching an offline instance with --offline --name=OffflineName. This is useful for playing split screen by creating two side-by-side instances, which is impossible online, unless one is using two separate paid accounts.

With this PR, it makes it possible to launch from a script - otherwise, one has to launch manually, which is a pain, or create offline profiles for each instance, which interferers with some functionality like skins (my autistic son takes great issue with his skin not being visible, when using offline profiles!).

Implementation is from MultiMC, which supports this feature.

See also PrismLauncher#1059 for discussion.

Signed-off-by: Michael Tyson <michael@tyson.au>
michaeltyson added a commit to michaeltyson/PrismLauncher that referenced this issue Apr 23, 2024
This allows launching an offline instance with --offline --name=OfflineName. This is useful for playing split screen by creating two side-by-side instances, which is impossible online, unless one is using two separate paid accounts.

With this PR, it makes it possible to launch from a script - otherwise, one has to launch manually, which is a pain, or create offline profiles for each instance, which interferes with some functionality like skins (my autistic son takes great issue with his skin not being visible, when using offline profiles!).

Implementation is based on MultiMC, which supports this feature.

See also PrismLauncher#1059 for discussion.

Signed-off-by: Michael Tyson <michael@tyson.au>
michaeltyson added a commit to michaeltyson/PrismLauncher that referenced this issue Apr 23, 2024
This allows launching an offline instance with --offline --name=OfflineName. This is useful for playing split screen by creating two side-by-side instances, which is impossible online, unless one is using two separate paid accounts.

With this PR, it makes it possible to launch from a script - otherwise, one has to launch manually, which is a pain, or create offline profiles for each instance, which interferes with some functionality like skins (my autistic son takes great issue with his skin not being visible, when using offline profiles!).

Implementation is based on MultiMC, which supports this feature.

See also PrismLauncher#1059 for discussion.

Signed-off-by: Michael Tyson <michael@atastypixel.com>
@Trial97 Trial97 linked a pull request Apr 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants