为非 x86 平台提供开箱即用的启动支持 (#1610)

* Replace native libraries on non-x86 platforms

* Add support for Linux ARM

* Relax the constraint 'JavaVersionConstraint.VANILLA_X86'

* Fix several hints

* Add OpenGL software renderer option

* Add support for OpenGL software renderer on windows

* Add __GLX_VENDOR_LIBRARY_NAME on Linux

* Catch GLFW error 65543

* Allow users to disable auto completion of native libraries

* fix NPE when violated mandatory constraint

* Add support for Minecraft 1.13

* Add support for Minecraft 1.6~1.12

* Add base support for linux-loongarch64

* Improve warnings on Loongson platform

* Add linux launcher script

* fix typo

* Add support for loongarch64 (old world)
This commit is contained in:
Glavo
2022-08-21 19:00:05 +08:00
committed by GitHub
parent c8652012c5
commit b80c787b60
25 changed files with 1570 additions and 104 deletions

View File

@@ -337,6 +337,8 @@ extension.sh=Bash Shell Script
fatal.javafx.incompatible=Missing JavaFX environment.\n\
HMCL cannot automatically install JavaFX under Java versions below 11.\n\
Please try to switch to Java versions like Oracle Java 8 which has JavaFX built-in, or update to version 11 or higher.
fatal.javafx.incompatible.loongson=Missing JavaFX environment.\n\
Please try to switch to Loongson JDK 8 (http://www.loongnix.cn/zh/api/java/downloads-jdk8/index.html) to start HMCL.
fatal.javafx.missing=Missing JavaFX environment.\n\
If you are using Java 11 or higher, please downgrade it to Oracle JRE 8 (java.com), or install BellSoft Liberica Full JRE (bell-sw.com/pages/downloads/?package\=jre-full).\n\
Or, if you are using OpenJDK distributions, please make sure it has OpenJFX included.
@@ -354,7 +356,11 @@ You can update manually by downloading a newer version of the launcher from %s.\
If the problem persists, please consider reporting this to us.
fatal.samba=If you launched HMCL from a Samba network drive, some features might not be working. Please try updating your Java version or copy and run the launcher in a local folder.
fatal.illegal_char=Your user path contains an illegal character '\=', so some features might not function properly.\n\
For example, you will not be able to use authlib-injector or change the skin of your offline account. Besides, this may cause security issues during multiplayer.
For example, you will not be able to use authlib-injector or change the skin of your offline account. Besides, this may cause security issues during multiplayer.
fatal.unsupported_platform=Minecraft is not yet fully supported for your platform, so you may experience missing functionality, \nor even be unable to launch the game.\n\
\n\
If you can't start Minecraft 1.17 and above, you can try turning on the "Use OpenGL software renderer" option\n\
in instance settings to use CPU rendering for better compatibility.
feedback=Feedback
feedback.add=Add a Feedback
@@ -445,6 +451,8 @@ If your computer has a discrete graphics card, you need to check whether the gam
\n\
If you are using your integrated graphics card, please notice that Minecraft 1.16.5 or older requires <a href\="https\://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html">Java 1.8.0_51 or older</a> for Intel(R) Core(TM) 3000 processor series or earlier.\n\
\n\
Turning on the "Use OpenGL software renderer" option in the instance settings can also solve this problem, but when this option is turned on, the frame rate will be significantly reduced in the case of insufficient CPU performance. So it is only recommended to turn it on for debugging purposes or in case of emergency.\n\
\n\
You can go to <a href\="https\://hmcl.huangyuhui.net/help/game/graphics-card">this website (in Chinese)</a> for more information.
game.crash.reason.illegal_access_error=The game crashed because of some mod(s).\n\
\n\
@@ -625,10 +633,7 @@ launch.advice.too_large_memory_for_32bit=You have allocated a memory size larger
launch.advice.vanilla_linux_java_8=Minecraft 1.12.2 or below only supports Java 8 for the Linux x86-64 platform, because later versions cannot load 32-bit native libraries like liblwjgl.so\n\
\n\
Please download it from java.com, or install OpenJDK 8.
launch.advice.vanilla_x86=Minecraft currently does not provide official support for architectures other than x86 or x86-64.\n\
You can try to download the native library of your platform and specify its path, then try again.
launch.advice.vanilla_x86.translation=Minecraft does not currently provide official support for architectures other than x86 and x86-64.\n\
Please install Java for x86-64 to play Minecraft via the Rosetta translation environment, or download your corresponding native libraries and specify its path.
launch.advice.vanilla_x86.translation=Minecraft is not yet fully supported for your platform, so you may experience missing functionality, or even be unable to launch the game.\nYou can play through the Rosetta translation environment for a full gaming experience.\nDo you still want to continue?
launch.failed=Unable to launch
launch.failed.cannot_create_jvm=We are unable to create a Java virtual machine. It may be due to an issue with the provided launch arguments, you can try to fix it by removing all arguments you added under instance settings.
launch.failed.creating_process=We are unable to create a new process, please check your Java path.
@@ -642,7 +647,7 @@ launch.failed.execution_policy.hint=The current execution policy prevents the ex
\n\
Click on 'OK' to allow the current user to execute PowerShell scripts, or click on 'Cancel' to keep it as it is.
launch.failed.exited_abnormally=Game crashed. Please refer to the crash log for more details.
launch.failed.no_accepted_java=Unable to find a compatible Java version. If you do believe you've downloaded a compatible one, you can set it manually in settings.
launch.failed.no_accepted_java=Unable to find a compatible Java version, do you want to start the game with the default Java?\nClick on 'Yes' to start the game with the default Java.\nOr, you can go to the instance settings to select one yourself.
launch.state.dependencies=Resolving dependencies
launch.state.done=Completing launch
launch.state.java=Checking Java version
@@ -1026,6 +1031,7 @@ settings.advanced.custom_commands.hint=The following environment variables are p
- $INST_FABRIC\: set if Fabric installed
settings.advanced.dont_check_game_completeness=Do not check game integrity
settings.advanced.dont_check_jvm_validity=Do not check JVM compatibility
settings.advanced.dont_patch_natives=Do not attempt to automatically replace native libraries
settings.advanced.game_dir.default=Default (.minecraft/)
settings.advanced.game_dir.independent=Isolated (.minecraft/versions/<instance name>/, except for assets and libraries)
settings.advanced.java_permanent_generation_space=PermGen Space
@@ -1064,6 +1070,7 @@ settings.advanced.server_ip=Server Address
settings.advanced.server_ip.prompt=Join automatically after launching the game.
settings.advanced.use_native_glfw=[Linux Only] Use system GLFW
settings.advanced.use_native_openal=[Linux Only] Use system OpenAL
settings.advanced.use_software_renderer=Use OpenGL software renderer (better compatibility, but less performance)
settings.advanced.workaround=Workarounds
settings.advanced.workaround.warning=Workaround options are intended only for expert users. Tweaking with these options may crash the game. Unless you know what you are doing, please do not modify these options.
settings.advanced.wrapper_launcher=Wrapper Command