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

Automatically install Legacy Java Fixer when necessary #303

Closed
dgelessus opened this issue Jan 6, 2017 · 6 comments
Closed

Automatically install Legacy Java Fixer when necessary #303

dgelessus opened this issue Jan 6, 2017 · 6 comments
Labels
enhancement Feature requests.

Comments

@dgelessus
Copy link
Contributor

People ask frustratingly often on the Discord why their 1.6 packs crash right at the start. Maybe the launcher should automatically install the Legacy Java Fixer into any new 1.6 instances. Since the fix is compatible with all Java versions, even the ones that don't trigger the crash, I'd say we install it no matter what Java the user has, in case someone has Java 7 and updates to Java 8 later.

@RyanTheAllmighty
Copy link
Member

Are you sure it doesn't affect anything if installed when not necessary?

If not then best to check the forge version and add it in 1.7 packs on affected forge versions also.

Considering the number of packs running on 1.6 or low versions of 1.7, I think this should be implemented because it's a pretty good idea to prevent support issues

@dgelessus
Copy link
Contributor Author

Yes, the fixer should be okay to install on any 1.7.10 version actually. The method which is fixed is cpw.mods.fml.relauncher.CoreModManager.sortTweakList, and all changes to CoreModManager.java since the fix do not change the sortTweakList method. This means that the patched method provided by the Legacy Java Fixer is equivalent to the one in the latest 1.7.10 FML, so it's safe to install the Legacy Java Fixer on any modpack on 1.6, 1.7.2 or 1.7.10.

In any case we should add an option in the launcher settings to turn this off though, just to be sure. And perhaps also add a link to https://github.com/LexManos/LegacyJavaFixer next to the option. (We don't have to include the full license text with the launcher as far as I can tell, because it's already included in the mod jar, but we should be nice and give credit.)

@RyanTheAllmighty
Copy link
Member

Alright I'll redistribute the jar with the launcher (have it download on startup) then correct me if I'm wrong here @dgelessus but it should auto install in these cases:

  • Installs a pack on Minecraft 1.6 or less
  • Installs a pack on Minecraft 1.7.10 with an older version of forge

I'm not sure which version of forge on 1.7.10 is broken up until, need to go through their changelog I think to figure that out

@RyanTheAllmighty
Copy link
Member

Actually looks like the Forge version it was fixed in was 10.13.1.1217

I think simply checking the Forge version to see if the last number is < 1217 should be an easy indicator to make it simple rather than checking mc versions. Luckily forge always keeps that number incrementing

@dgelessus
Copy link
Contributor Author

dgelessus commented Jan 6, 2017

It should be fine to install the fixer on any 1.7.10 version, because the code in Forge (for 1.7.10) hasn't changed since the fix was released, see my previous comment. But yes, an extra check for the build number would be nice, to stop it from being installed unnecessarily. Also don't forget that 1.7.2 exists, I think there are even packs for it.

If you're going to distribute the fixer with the launcher instead of downloading it, I think we do need to include the license somewhere. I don't think we have an "About" tab with credits and such yet, maybe this would be the time to add one and list all the libraries that we're using.

@stale stale bot added the wontfix The ATLauncher team has decided not to fix these issues for now for some reason. label May 23, 2019
@RyanTheAllmighty RyanTheAllmighty removed wontfix The ATLauncher team has decided not to fix these issues for now for some reason. labels May 25, 2019
@RyanTheAllmighty RyanTheAllmighty removed their assignment May 25, 2019
@ATLauncher ATLauncher deleted a comment from stale bot May 25, 2019
@RyanTheAllmighty RyanTheAllmighty added the enhancement Feature requests. label May 25, 2019
@RyanTheAllmighty
Copy link
Member

Fixed with 3.2.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests.
Development

No branches or pull requests

2 participants