offline-minecraft-launcher/README.md

41 lines
2.1 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)
# 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-03-28 01:00:49 +00:00
- **osName:** Override your OS in case it isn't detected (windows/linux/macos)
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-03-28 02:28:47 +00:00
- **java:** The path to the java executable. Try not to append a file ending, as `w` will be added, if `console` is `0`
2021-03-28 01:35:26 +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:
2021-03-28 04:34:22 +00:00
You can automatize entering the data or change 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:
- [Installing Forge](docs/forge.md)