fn2006 / PollyMC

DRM-free Prism Launcher fork with support for custom auth servers.
GNU General Public License v3.0
824 stars 51 forks source link

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

Open SakiGhuleh opened 7 months ago

SakiGhuleh commented 7 months ago

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

evan-goode commented 7 months ago

Are you launching the game with an offline account or with an authlib-injector account? For authlib-injector accounts, https://github.com/fn2006/PollyMC/pull/140 should fix the issue (if/when it is merged). For offline accounts, we might be able to automatically do https://github.com/FabricMC/fabric-loom/issues/915#issuecomment-1609154390. 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 commented 7 months ago

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 commented 7 months ago

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

hero-persson commented 3 months ago

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