offline-minecraft-launcher/README.md

57 lines
2.9 KiB
Markdown
Raw Normal View History

2021-03-27 23:17:40 +00:00
Just start Minecraft. **Does not download assets.**
# Prerequisites:
2021-03-28 01:00:49 +00:00
> ### All the stuff you need to play Minecraft
> Java, etc...
2021-03-27 23:17:40 +00:00
2021-03-28 01:00:49 +00:00
> ### 7-zip (for extracting natives)
> **Debian:** `apt install p7zip`
> **Windows:** https://www.7-zip.org/download.html - Copy 7z.exe/7z.dll to the same folder as the launcher.
> ### Python 3.x
> (3.4 is supported, lower may work)
> **Debian:** `apt install python3`
> **Windows:** https://www.python.org/downloads/ (use 3.8.x on Win7, 3.4.4 on WinXP)
2022-06-19 13:41:38 +00:00
> ### Distutils
> **Debian:** `apt install python3-distutils`
> **Windows:** comes pre-installed.
2021-06-19 11:26:24 +00:00
> ### Colorama
2021-06-20 19:47:33 +00:00
> (optional, for color)
2021-06-19 11:26:24 +00:00
> **Debian:** `apt install python3-colorama`
> **Windows:** `python -m pip install colorama`
2021-03-28 01:00:49 +00:00
# Simple usage:
2021-03-29 08:59:37 +00:00
- Extract the .py and .ini to `.minecraft`
2021-03-28 01:00:49 +00:00
- Edit `offline-minecraft-launcher.ini` to your liking
- Start `offline-minecraft-launcher.py`
2021-03-27 23:17:40 +00:00
- Enter data
- Profit
2021-03-28 01:35:26 +00:00
# .ini Configuration:
2021-03-27 23:17:40 +00:00
- **name:** Your player name
2021-03-28 01:00:49 +00:00
- **version:** The ID of the version you wanna start (Example: b1.8.1)
- **console:** Whether to show console output (1/0)
2021-03-28 02:27:28 +00:00
- **gamePath:** Where the game is located
2021-06-17 11:04:05 +00:00
- **profileFolder:** Whether to make a profile folder (`profiles/$name/$version/.minecraft`) in `gamePath` to store user-specific data in, `0` recommended for compatibility (1/0)
2021-03-28 01:00:49 +00:00
- **osName:** Override your OS in case it isn't detected (windows/linux/macos)
2021-03-29 23:22:21 +00:00
- **osVersion:** Override your OS version in case it isn't detected
2021-03-29 09:02:11 +00:00
- **jvmArch:** Override the architecture of your JVM in case it isn't detected (amd64/x86). If your JVM is neither amd64/x86, pick `amd64` if it's 64-bit and `x86` if it's 32-bit, for the best results
2021-03-29 09:01:36 +00:00
- **jvmArguments:** The arguments to use to launch your JVM, json formatted - You may need to escape ", if you're changing this value from the console
2021-06-16 09:24:06 +00:00
- **java:** The path to the java executable. Try not to append a file ending, as `w` will be appended to it, if `console` is `0`
2021-03-28 01:35:26 +00:00
2021-06-19 11:26:24 +00:00
The script will parse variables within settings values, the variables are sourced from the script itself. `$+var$` for global variables, `$var$` for local variables. `$+sp$` gives you the script's path, for example.
# Commandline - Flags:
- **-downloadonly:** Only download the required files for the specified version, don't extract natives, don't launch the game.
- **-verifydata:** Verify the file-integrity of libraries, natives and assets
2021-06-19 11:30:05 +00:00
- **-nocolor:** Disable text color, if preferred or issues occur.
2021-03-28 01:35:26 +00:00
2021-06-19 11:26:24 +00:00
# Commandline - Overriding settings:
You can automatize entering data or override settings by using commandline arguments. Each argument works like this: `key=value` - These act like the settings in the ini, and will override the corresponding settings. However, settings you set via this method will not have the aforementioned variable support enabled, use console variables instead.
2021-03-28 02:42:08 +00:00
2021-03-29 07:35:30 +00:00
**Example:** `offline-minecraft-launcher.py name=fier version=1.16.5` - Launch Minecraft `1.16.5` as `fier`.
# Other:
2022-05-13 10:42:52 +00:00
- [Installing Forge](oml/docs/installing-forge.md)