fix various typos

Co-authored-by: DeinBerater <niklas.hernitscheck@gmail.com>
This commit is contained in:
Bixilon 2020-11-27 15:23:44 +01:00
parent 2da9c29a39
commit 35b1dd4626
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
4 changed files with 17 additions and 17 deletions

View File

@ -59,7 +59,7 @@ Sadly, we cannot support all versions. We will add support for all major version
### Partly supported versions ### Partly supported versions
- Protocol lacking; See [snapSupportToDo.txt](/doc/snapSupportToDo.txt) - Protocol lacking; See [snapSupportToDo.txt](/doc/snapSupportToDo.txt)
- Entities everything below `19w36a` (shortly after 1.14.4) (except `1.14.4` and `1.8.9`). Why? There is simply no time to generate an `entities.json`. The [Generator](/util) only works after that version. - Entities everything below `19w36a` (shortly after 1.14.4) (except `1.14.4` and `1.8.9`). Why? There is simply no time to generate an `entities.json`. The [Generator](/util) only works after that version.
And 1.8.9 is only supported, because it this version is widely spread, and I wrote (~ 1000 lines) by hand. And 1.8.9 is only supported, because this version is widely spread, and I wrote (~ 1000 lines) by hand.
## Modding ## Modding
Minosoft is modding friendly. I am working hard on a reasonable API. See !17 for more details. See [Modding.md](doc/Modding.md) for more details. The code is pretty dynamic (all blocks, items, entities, etc are stored in json files). It is pretty easy to load custom entities, etc. Minosoft is modding friendly. I am working hard on a reasonable API. See !17 for more details. See [Modding.md](doc/Modding.md) for more details. The code is pretty dynamic (all blocks, items, entities, etc are stored in json files). It is pretty easy to load custom entities, etc.

View File

@ -19,7 +19,7 @@ Assets are [Game Files](https://wiki.vg/Game_files). For example:
"minecraft/lang/de_de.json": "a8f1b2babf63e3fa21d24728271eaef0d8d33041" "minecraft/lang/de_de.json": "a8f1b2babf63e3fa21d24728271eaef0d8d33041"
} }
``` ```
Next, in the `version.json` ([Example 1.16.4-pre1](https://launchermeta.mojang.com/v1/packages/edcca0531de05c4b15007ca689b575a33b9d96a2/1.16.4-pre1.json)) there is sub json object called `assetIndex`. Next, in the `version.json` ([Example 1.16.4-pre1](https://launchermeta.mojang.com/v1/packages/edcca0531de05c4b15007ca689b575a33b9d96a2/1.16.4-pre1.json)) there is a sub json object called `assetIndex`.
The asset index will be downloaded and stored. The hash of the file is hardcoded into minosoft to ensure that the assets are compatible. Next we loop over all elements and check if the file exists. The asset index will be downloaded and stored. The hash of the file is hardcoded into minosoft to ensure that the assets are compatible. Next we loop over all elements and check if the file exists.
If not, we will download it and store it gzip compressed. If not, we will download it and store it gzip compressed.

View File

@ -55,18 +55,18 @@ There is a config file located in:
``` ```
## General ## General
- `version`: The current version of the config. Used for migration between versions. A new version will be tagged, once a new release of minosoft is there, and the format of the config changed. - `version` The current version of the config. Used for migration between versions. A new version will be tagged, once a new release of minosoft is there, and the format of the config changed.
- `log-level`: Self explaining, valid log levels are defined in [LogLevels.java](/src/main/java/de/bixilon/minosoft/logging/LogLevels.java). - `log-level` Self explaining, valid log levels are defined in [LogLevels.java](/src/main/java/de/bixilon/minosoft/logging/LogLevels.java).
- `language`: Self explaining. All values are valid, if the specific language cannot be loaded (or specific strings are not available), `en_US` will be used (as fallback). - `language` Self explaining. All values are valid, if the specific language cannot be loaded (or specific strings are not available), `en_US` will be used (as fallback).
## Network ## Network
- `fake-network-brand`: Minosoft send its brand to the server. If true, minosoft will say, that we use standard `vanilla`. - `fake-network-brand` Minosoft send its brand to the server. If true, minosoft will say, that we use standard `vanilla`.
- `show-lan-servers`: If true, minosoft will listen for lan servers (singleplayer and share to LAN) and show them in the server list. - `show-lan-servers` If true, minosoft will listen for lan servers (singleplayer and share to LAN) and show them in the server list.
## Accounts ## Accounts
- `selected`: userId of the current selected account, can be empty - `selected` userId of the current selected account, can be empty
- `client-token`: A random uuid (generated at first startup), used as unique identifier for all authentication communication with mojang. - `client-token` A random uuid (generated at first startup), used as unique identifier for all authentication communication with mojang.
- `entries`: A account array: - `entries` An account array:
### Account ### Account
```json ```json
@ -82,7 +82,7 @@ There is a config file located in:
``` ```
## Servers ## Servers
- `entries`: A server array: - `entries` A server array:
### Server ### Server
```json ```json
@ -97,9 +97,9 @@ There is a config file located in:
} }
``` ```
## Download ## Download
- `url`: - `url`
- `mappings`: URL for resources. For example mappings. The data is in a folder starting with the first digs of the hash, followed by the hash - `mappings` URL for resources. For example mappings. The data is in a folder starting with the first digs of the hash, followed by the hash
The URL must contain .tar.gz files named after minecraft versions (e.g. `0a/0aeb75059ef955d4cf2b9823d15775d0eacb13d5.tar.gz`). The URL must contain .tar.gz files named after minecraft versions (e.g. `0a/0aeb75059ef955d4cf2b9823d15775d0eacb13d5.tar.gz`).
## Debug ## Debug
- `verify-assets`: If true, minosoft will check the sha1 of every asset. Must be false, if you want to modify assets. (Should be true, can be false, if you want to improve the start time) - `verify-assets` If true, minosoft will check the sha1 of every asset. Must be false, if you want to modify assets. (Should be true, can be false, if you want to improve the start time)

View File

@ -60,7 +60,7 @@ def downloadAndReplace(url, filename, destination):
file.write(json) file.write(json)
def getMinsoftEntityFieldNames(obfuscationMapLines, clazz, obfuscatedFields): def getMinosoftEntityFieldNames(obfuscationMapLines, clazz, obfuscatedFields):
classLineStart = -1 classLineStart = -1
for i in range(0, len(obfuscationMapLines)): for i in range(0, len(obfuscationMapLines)):
if obfuscationMapLines[i].endswith(" -> %s:" % clazz): if obfuscationMapLines[i].endswith(" -> %s:" % clazz):
@ -198,7 +198,7 @@ for version in VERSION_MANIFEST["versions"]:
entity = {} entity = {}
# generate (deobfuscated) className # generate (deobfuscated) className
entityOriginalClassName, unused = getMinsoftEntityFieldNames(obfuscationMapLines, burgerEntityData["class"], []) entityOriginalClassName, unused = getMinosoftEntityFieldNames(obfuscationMapLines, burgerEntityData["class"], [])
# check if entity was already parsed # check if entity was already parsed
if entityOriginalClassName in entities: if entityOriginalClassName in entities:
@ -236,7 +236,7 @@ for version in VERSION_MANIFEST["versions"]:
for entry in metadataEntry["data"]: for entry in metadataEntry["data"]:
metadataObfuscatedFields.append(entry["field"]) metadataObfuscatedFields.append(entry["field"])
metadataEntryOriginalClassName, metadataOriginalFields = getMinsoftEntityFieldNames(obfuscationMapLines, metadataEntry["class"], metadataObfuscatedFields) metadataEntryOriginalClassName, metadataOriginalFields = getMinosoftEntityFieldNames(obfuscationMapLines, metadataEntry["class"], metadataObfuscatedFields)
metaDataEntityData = {} metaDataEntityData = {}