Update 'README.md'

This commit is contained in:
Fierelier 2021-06-19 11:26:24 +00:00
parent 13e7140112
commit e0d2f18452

View File

@ -13,6 +13,11 @@ Just start Minecraft. **Does not download assets.**
> **Debian:** `apt install python3` > **Debian:** `apt install python3`
> **Windows:** https://www.python.org/downloads/ (use 3.8.x on Win7, 3.4.4 on WinXP) > **Windows:** https://www.python.org/downloads/ (use 3.8.x on Win7, 3.4.4 on WinXP)
> ### Colorama
> (Optional, for color)
> **Debian:** `apt install python3-colorama`
> **Windows:** `python -m pip install colorama`
# Simple usage: # Simple usage:
- Extract the .py and .ini to `.minecraft` - Extract the .py and .ini to `.minecraft`
- Edit `offline-minecraft-launcher.ini` to your liking - Edit `offline-minecraft-launcher.ini` to your liking
@ -32,10 +37,14 @@ Just start Minecraft. **Does not download assets.**
- **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 - **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
- **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` - **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`
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. 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: # Commandline - Flags:
You can automatize entering the 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. - **-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
# 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.
**Example:** `offline-minecraft-launcher.py name=fier version=1.16.5` - Launch Minecraft `1.16.5` as `fier`. **Example:** `offline-minecraft-launcher.py name=fier version=1.16.5` - Launch Minecraft `1.16.5` as `fier`.