You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README-EN.md
+27-11Lines changed: 27 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,15 @@ An unofficial Fabric Port of Vault Patcher. Let the hard coded strings change in
8
8
9
9
[ZH-CN](README.md) / English
10
10
11
+
## ⚠Warning: Version 1.0.1 and below is no longer supported!
12
+
11
13
</div></center>
12
14
13
15
# Configs File
14
16
15
17
## Modular
16
18
17
-
the format in `config/HardcodePatcher/` directory like is `config.json` and several `module.json`. (Module files are currently required to exist in one or more of the Fabric versions)
19
+
The format in `config/HardcodePatcher/` directory like is `config.json` and several `module.json`. (Module files are currently required to exist in one or more of the Fabric versions)
18
20
19
21
`config.json` must be provided.
20
22
It is as follows:
@@ -27,6 +29,11 @@ It is as follows:
27
29
"is_enable": false,
28
30
"output_mode": 0,
29
31
"output_format": "<source> -> <target>"
32
+
},
33
+
"optimize_params": {
34
+
"disable_export": true,
35
+
"stack_min": -1,
36
+
"stack_max": -1
30
37
}
31
38
}
32
39
```
@@ -36,24 +43,33 @@ It is as follows:
36
43
Only in this way can `module.json` read and used normally.
37
44
38
45
### Debug Mode
39
-
**(Tips: ONLY DEBUG)**
46
+
Can be used when debugging and finding text.
40
47
41
-
`is_enable` determines whether the debugging feature is enabled.
42
-
If it is `true`, a line of debugging information will be output to the log when replacing the string,
43
-
The format of debugging information is `output_format`, and determines the content of debugging information by `output_format`.
44
-
If it is `false`, Will not output anything to the log when replacing the string.
48
+
`is_enable` determines whether the debugging feature is enabled. If it is `true`, a line of debugging information will be output to the log when replacing the string,
49
+
The format of debugging information is `output_format`, and determines the content of debugging information by `output_mode`.
45
50
46
51
`output_format` determines the format of debugging information. The default is `<source> -> <target>`.
47
-
`<source>` is the source string, that is, the string before replacement. and `<target>`is the replacement string.
48
-
There is another `<stack>` that is not shown, if you include it in `output_format`,
49
-
the log will be polluted because of the large amount of output information.
50
-
`<stack>` is a stacktrace array, which is the `StackTrace` (including this mod) of the class of this string,
51
-
This value is more for `stack_depth` and `name` in `target_class`.
52
+
*`<source>`: Source string, the string before replacement.
53
+
*`<target>`: The replacement string.
54
+
*`<stack>`: Stacktrace array, which is the `StackTrace` (including this mod) of the class of this string.
55
+
*`<method>`: The method called when this text rendering.
52
56
53
57
`output_mode` determines the content of debugging information.
54
58
If it is 0, only the replaced string will be output,
55
59
If it is 1, only the strings that are not replaced are output.
56
60
61
+
### Optimization Parameters
62
+
63
+
Optimize the parameters of the algorithm.
64
+
65
+
`disable_export` determines whether to disable the `export` feature, which is very useful for optimization.
66
+
But at the same time, `/vaultpatcher export` will also be disabled.
67
+
The default is false.
68
+
69
+
`stack_min` and `stack_max` determines the upper and lower limits of the stack trace array,
70
+
and the optimization effect can be achieved by properly adjusting the parameters.
71
+
The default is -1 (The upper and lower limits are not changed).
72
+
57
73
## Module
58
74
59
75
The format of the Module File is roughly as follows:
0 commit comments