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

How to play 1.16.5 online without turning off the internet? #150

Open
1 task
SakiGhuleh opened this issue Mar 3, 2024 · 4 comments · May be fixed by #153
Open
1 task

How to play 1.16.5 online without turning off the internet? #150

SakiGhuleh opened this issue Mar 3, 2024 · 4 comments · May be fixed by #153
Labels
bug Something isn't working

Comments

@SakiGhuleh
Copy link

SakiGhuleh commented Mar 3, 2024

Operating System

No response

Version of PollyMC

PollyMC 8.0

Version of Qt

Qt 6.6.0

Description of bug

I would like to know if there is a way to make the multiplayer mode of version 1.16.5 available to play. When entering the game, it always appears disabled and the only way to activate it is by turning off my internet and turning it on again while in the game,
But I would like to know if there is a way to have multiplayer mode available without having to disconnect from the internet in this specific version.

Steps to reproduce

Starting version 1.16.5 while connected to the internet.

Suspected cause

No response

This issue is unique

  • I have searched the issue tracker and did not find an issue describing my bug.
@SakiGhuleh SakiGhuleh added the bug Something isn't working label Mar 3, 2024
@evan-goode
Copy link
Contributor

Are you launching the game with an offline account or with an authlib-injector account? For authlib-injector accounts, #140 should fix the issue (if/when it is merged). For offline accounts, we might be able to automatically do FabricMC/fabric-loom#915 (comment). I'll investigate that today and prepare a PR if it seems like a good idea.

In the meantime, if you are using an offline account, you can try this workaround:

  1. Edit your instance
  2. Go to "Settings" in the sidebar, then to the "Java" tab of the instance settings page
  3. Check the "Java arguments" checkbox and paste in
-Dminecraft.api.env=custom
-Dminecraft.api.auth.host=https://invalid.invalid
-Dminecraft.api.account.host=https://invalid.invalid
-Dminecraft.api.session.host=https://invalid.invalid
-Dminecraft.api.services.host=https://invalid.invalid

@SakiGhuleh
Copy link
Author

SakiGhuleh commented Mar 3, 2024

Are you launching the game with an offline account or with an authlib-injector account? For authlib-injector accounts, #140 should fix the issue (if/when it is merged). For offline accounts, we might be able to automatically do FabricMC/fabric-loom#915 (comment). I'll investigate that today and prepare a PR if it seems like a good idea.

In the meantime, if you are using an offline account, you can try this workaround:

  1. Edit your instance
  2. Go to "Settings" in the sidebar, then to the "Java" tab of the instance settings page
  3. Check the "Java arguments" checkbox and paste in
-Dminecraft.api.env=custom
-Dminecraft.api.auth.host=https://invalid.invalid
-Dminecraft.api.account.host=https://invalid.invalid
-Dminecraft.api.session.host=https://invalid.invalid
-Dminecraft.api.services.host=https://invalid.invalid

I'm using both. the solution for offline accounts worked for me, but how do i apply the one for authlib-injector accounts?

@furokku
Copy link

furokku commented Mar 4, 2024

For now you'll need to recompile PollyMC with the fix from my fork, as it hasn't been merged yet.

evan-goode added a commit to unmojang/PollyMC that referenced this issue Mar 5, 2024
Resolves fn2006#150

If the game is launched in offline mode, pass invalid API servers via
the -Dminecraft.api.* system properties. This workaround is mentioned
here:
FabricMC/fabric-loom#915 (comment)

I think this change is appropriate to make here in PollyMC even though
the Fabric developers decided against using it there. If a user wants to
override the API servers back to the vanilla values (in order to use
Auth Me or something), they can do so by setting the following custom
JVM args on the instance:

-Dminecraft.api.env=PROD
-Dminecraft.api.auth.host=https://authserver.mojang.com
-Dminecraft.api.account.host=https://api.mojang.com
-Dminecraft.api.session.host=https://sessionserver.mojang.com
-Dminecraft.api.services.host=https://api.minecraftservices.com

Previously, auth args would override any user-specified args, but this
patch also changes that behavior so user-specified args are now passed
last.
@evan-goode evan-goode linked a pull request Mar 5, 2024 that will close this issue
@evan-goode evan-goode mentioned this issue Apr 18, 2024
1 task
@hero-persson
Copy link

This is fixed in Fjord Launcher Unlocked: https://github.com/hero-persson/FjordLauncherUnlocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants