-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnotes.txt
178 lines (147 loc) · 7.99 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
NNNNNNNN NNNNNNNN OOOOOOOOO TTTTTTTTTTTTTTTTTTTTTTTEEEEEEEEEEEEEEEEEEEEEE SSSSSSSSSSSSSSS
N:::::::N N::::::N OO:::::::::OO T:::::::::::::::::::::TE::::::::::::::::::::E SS:::::::::::::::S
N::::::::N N::::::N OO:::::::::::::OO T:::::::::::::::::::::TE::::::::::::::::::::ES:::::SSSSSS::::::S
N:::::::::N N::::::NO:::::::OOO:::::::OT:::::TT:::::::TT:::::TEE::::::EEEEEEEEE::::ES:::::S SSSSSSS
N::::::::::N N::::::NO::::::O O::::::OTTTTTT T:::::T TTTTTT E:::::E EEEEEES:::::S
N:::::::::::N N::::::NO:::::O O:::::O T:::::T E:::::E S:::::S
N:::::::N::::N N::::::NO:::::O O:::::O T:::::T E::::::EEEEEEEEEE S::::SSSS
N::::::N N::::N N::::::NO:::::O O:::::O T:::::T E:::::::::::::::E SS::::::SSSSS
N::::::N N::::N:::::::NO:::::O O:::::O T:::::T E:::::::::::::::E SSS::::::::SS
N::::::N N:::::::::::NO:::::O O:::::O T:::::T E::::::EEEEEEEEEE SSSSSS::::S
N::::::N N::::::::::NO:::::O O:::::O T:::::T E:::::E S:::::S
N::::::N N:::::::::NO::::::O O::::::O T:::::T E:::::E EEEEEE S:::::S
N::::::N N::::::::NO:::::::OOO:::::::O TT:::::::TT EE::::::EEEEEEEE:::::ESSSSSSS S:::::S
N::::::N N:::::::N OO:::::::::::::OO T:::::::::T E::::::::::::::::::::ES::::::SSSSSS:::::S
N::::::N N::::::N OO:::::::::OO T:::::::::T E::::::::::::::::::::ES:::::::::::::::SS
NNNNNNNN NNNNNNN OOOOOOOOO TTTTTTTTTTT EEEEEEEEEEEEEEEEEEEEEE SSSSSSSSSSSSSSS
#########################################################################
# #
# Changing Forge/MC Version (IntelliJ IDEA) #
# #
#########################################################################
1) Update your gradle directory with the one from the MDK you're targeting
2) gradle.properties
+ Update all Minecraft/Forge versions. The easiest thing is to just grab an MDK and diff against its
gradle.properties to see what the correct values should be.
3) build.gradle
+ Update with the one from the MDK. Make sure you preserve your custom archivesName
3) update.json
+ Add new version info
4) In IDEA
+ Gradle > build > clean (if you get a 'ProjectScopeServices has been closed' error, run ./gradlew --stop)
+ Reload Gradle project
+ Gradle > forgegradle runs > genIntellijRuns
If any of these steps fail, try restarting IDEA.
5) Update the code to fix anything broken by the update. Note that you might need to update the access transformers
Key codes can be found at the bottom of net.minecraft.client.util.InputMappings (in 1.16 at least)
Simulate server latency on linux:
sudo tc qdisc add dev <nic> root netem delay 100ms
Show current rule(s):
tc -s qdisc
Remove the latency:
sudo tc qdisc del dev <nic> root netem
#########################################################################
# #
# BOOK FORMATS #
# #
#########################################################################
~~~~~~~~~~~~~~~~~~~~
| GHB File format! |
~~~~~~~~~~~~~~~~~~~~
* Java style comments, both single and multi-line, either of which are allowed to start at any point though a line (not just at the start)
* Author and title are optional, but they must each be on their own line, and prefaced by author: and title: respectively
For example:
title:Kicking Over Sandcastles
author:HCF_Kids
The title and author keys can appear anywhere within the file, and are case insensitive
Whitespace on either side of the value (e.g. 'title: The day of the Triffids ') will be ignored (the title would be read as 'The day of the Triffids')
Only the first instance of each title and author will be accepted. Subsequent lines will be treated as part of the book.
* Linebreaks are indicated by a pair of hashes (##) which can be repeated as many times as the user wants. The can be separated by a space but don't have to
be. Any whitespace preceding a pair of hashes will be removed.
* Ordinary linebreaks will be ignored
* Pagebreaks are denoted by four 'greater than' angled brackets (>>>>)
Whitespace preceding a pagebreak will be removed.
* The linebreak and pagebreak symbols can be escaped with a single backslash if they need to be used literally
* Blank lines will be removed
* Whitespace at the end of a page will be removed
Example file:
//This is a single line comment by waffle_stomper on 2014-05-28. It will not appear in the book
author:PETN //Comments can start at any point on a line
title:Truncating excessively long names
/* This is a multi-line comment
None of this will be included in the book
Please note that I had to put a space between the asterisk
and forward-slash to prevent it from terminating the
comment that this is being posted in. In practice there should
be no space between those two
* /
This is the first page.##
This is going to be on a new line!
>>>>
This is the second page. The pagebreak character can go on the end of the line if you'd like.>>>>
This is the third page.
You
can
use
as
many
lines
as
you
like
but anything between pagebreaks will be considered as one page (unless it's too long to fit on a single page).
Also, don't forget to insert a space
if you're splitting a line //See the space there?
otherwise your words will be joined together.
>>>>
title: This is considered to be part of the text for the book.
~~~~~~~~~~~~~~~~~~~~~~~~~
| Bookworm File format! |
~~~~~~~~~~~~~~~~~~~~~~~~~
== Bookworm save algorithm: ==
writer.write(id+"");
writer.newLine();
writer.write(title);
writer.newLine();
writer.write(author);
writer.newLine();
for (String s : hiddenData.keySet()) {
writer.write("|!|" + s + "|" + hiddenData.get(s));
writer.newLine();
}
writer.write(text);
writer.newLine();
writer.close();
Bookworm format:
<id number>
<title>
<author>
(optional)|!|hidden_key_n>|<hidden_data_n> (this may be repeated on successive lines)
<Book text as a single line>
<empty line>
e.g.
###################################
46
Valentino Rossi - Portrait of a speed god
Mat Oxley
|!|hiddenkey0|hiddendata0
|!|hiddenkey1|hiddendata1
"The first time you ride the 500, it's like, F**K!" -Valentino Rossi ::This is the next paragraph.
###################################
#########################################################################
# #
# OTHER NOTES #
# #
#########################################################################
Note on these notes: Some of the following information may be out of date.
Mojang loves to change things for seemingly no reason.
Please double-check anything you find here to make sure it's still relevant.
- The vanilla client restricts titles to 15 characters (as of 1.16.1), but the server will accept many more
- The vanilla client will mark any book with a title longer than 32 characters as invalid and will refuse to display it
- There is a 256 character/page limit for multiplayer servers (as of 1.16.1)
Single player saves have a much higher limit
- A standard page is now 14 lines long, (ReadBookScreen 1.16.1 has a page text height of 128 pixels, and lines are 9
pixels high)
- The font isn't monospaced so there are an arbitrary number of characters on each line
- Under some conditions you can write up to 15 lines, but as of 1.16.1 the ReadBookScreen will only display 14 lines
- Lines used to be 116 pixels wide but now seem to be 114 (as of 1.16.1)