Compare commits
1049 Commits
1.11.2-2.1
...
test
| Author | SHA1 | Date | |
|---|---|---|---|
| 96bce7f38d | |||
| 4e7c027ec0 | |||
| 9be1fd8f6b | |||
| 0fae99c535 | |||
| 9f51c59508 | |||
| 6024227716 | |||
| 69013c2124 | |||
| 3b070a7efc | |||
| 646577e97f | |||
|
|
a4c8dafa07 | ||
|
|
6e64f2acd0 | ||
|
|
27d5432fff | ||
|
|
b72fad4055 | ||
|
|
f08607a599 | ||
|
|
a5dec5db25 | ||
|
|
dad0ac18a3 | ||
|
|
caffd41358 | ||
|
|
713db19928 | ||
|
|
d3929cb6dc | ||
|
|
e6db9daf80 | ||
|
|
f299644254 | ||
|
|
4d644a44c3 | ||
|
|
85fb0847ee | ||
|
|
926f6b6624 | ||
|
|
928094bd27 | ||
|
|
d7b563768f | ||
|
|
8246085b84 | ||
|
|
55e6044bdd | ||
|
|
a8c1d19240 | ||
|
|
7aad4dcfd9 | ||
|
|
b2dde7da97 | ||
|
|
f21fed031c | ||
|
|
7f7b4e1891 | ||
|
|
50cfcbabfb | ||
|
|
8cf598d781 | ||
|
|
14229ef1fe | ||
|
|
17d87faa34 | ||
|
|
193e51b3c2 | ||
|
|
a0c5f25e61 | ||
|
|
8503ff0e67 | ||
|
|
73fe633819 | ||
|
|
9f5a8c3d0f | ||
|
|
5959da8744 | ||
|
|
6de0e37d96 | ||
|
|
5b766b4fe7 | ||
|
|
203aad687d | ||
|
|
1836b7fb18 | ||
|
|
ca6ae4b983 | ||
|
|
d2cdcb02fc | ||
|
|
b537822d3c | ||
|
|
6b5993ad64 | ||
|
|
b4ead9e064 | ||
|
|
8adb65d724 | ||
|
|
329530de0e | ||
|
|
a04fd5b00b | ||
|
|
486056de24 | ||
|
|
2b2ab2ba8b | ||
|
|
d70e41006d | ||
|
|
a4e0abec7f | ||
|
|
1433fccaf1 | ||
|
|
310dc90e11 | ||
|
|
454e990849 | ||
|
|
76a68b7867 | ||
|
|
5218feb6b6 | ||
|
|
3f12413c6b | ||
|
|
675134e6d6 | ||
|
|
4df627029c | ||
|
|
046a50f326 | ||
|
|
f388e4af54 | ||
|
|
8900d5a4fb | ||
|
|
acd56a7ba3 | ||
|
|
c74ef8c0e4 | ||
|
|
fe0677923c | ||
|
|
ad49a69f37 | ||
|
|
706d46f6a9 | ||
|
|
c11fffedc1 | ||
|
|
ba6078e080 | ||
|
|
f8379fa317 | ||
|
|
61ef87eebe | ||
|
|
6e5536305b | ||
|
|
1bf1e0d7be | ||
|
|
faebeb525a | ||
|
|
43576efeb3 | ||
|
|
b8ab7aa5a7 | ||
|
|
e8f9234bf0 | ||
|
|
329ac51309 | ||
|
|
f506d5ac65 | ||
|
|
96dbc54a53 | ||
|
|
094ca1ce01 | ||
|
|
24237557f1 | ||
|
|
d8c6ce9b5e | ||
|
|
7726550131 | ||
|
|
96a05e256f | ||
|
|
587eff59fe | ||
|
|
f92d6f5281 | ||
|
|
fb4ae1b60a | ||
|
|
0c5009db8d | ||
|
|
81509a9acf | ||
|
|
fd740a4af6 | ||
|
|
36741b97fa | ||
|
|
bf32672536 | ||
|
|
8037a9ad30 | ||
|
|
78bd060249 | ||
|
|
ae5f893014 | ||
|
|
043664ab0c | ||
|
|
9a5b88fd48 | ||
|
|
77ce90b2b0 | ||
|
|
3816671207 | ||
|
|
000ff19749 | ||
|
|
ffcca61b5b | ||
|
|
d571e8fed5 | ||
|
|
e8ea70aabc | ||
|
|
e0a682a5df | ||
|
|
19404032fe | ||
|
|
bee13fc9a1 | ||
|
|
3cec8fde9f | ||
|
|
cce65ec76d | ||
|
|
06f1e0c36c | ||
|
|
35d1b7f24b | ||
|
|
82d4408567 | ||
|
|
e8ff8a2066 | ||
|
|
ff98260216 | ||
|
|
c34f75d95a | ||
|
|
62b9cd0538 | ||
|
|
42d04d123c | ||
|
|
7550e3dcb7 | ||
|
|
af3f6ddbe2 | ||
|
|
962f08718f | ||
|
|
a9401a9779 | ||
|
|
400ec6bda5 | ||
|
|
bdea84b9a2 | ||
|
|
6db47ee070 | ||
|
|
a95edaa31d | ||
|
|
89d771fdbf | ||
|
|
f0299fed66 | ||
|
|
05387b0ac7 | ||
|
|
738320e896 | ||
|
|
6e3d30e41b | ||
|
|
633ac10d89 | ||
|
|
42aef017c1 | ||
|
|
3526ec526c | ||
|
|
7457f9c13b | ||
|
|
08c86ce574 | ||
|
|
517591d72a | ||
|
|
a3f4049322 | ||
|
|
4f9a730b6d | ||
|
|
40f07279cf | ||
|
|
814d0b7c17 | ||
|
|
13ac8dcf0a | ||
|
|
df11ba2e36 | ||
|
|
9ce25f711f | ||
|
|
9f8957f468 | ||
|
|
f595d9ca23 | ||
|
|
716df74893 | ||
|
|
4364347a19 | ||
|
|
8b2d42f801 | ||
|
|
f2c96174bc | ||
|
|
497b8440ca | ||
|
|
5be57681af | ||
|
|
fd9be55f79 | ||
|
|
4558793030 | ||
|
|
fb36fc2ba8 | ||
|
|
01d37ab2cb | ||
|
|
a6c09bcb8a | ||
|
|
fb38a20465 | ||
|
|
d6c6220bdd | ||
|
|
463b947c2b | ||
|
|
8e140e8d01 | ||
|
|
c010a437fc | ||
|
|
f2425a693a | ||
|
|
9df2035ca9 | ||
|
|
4aa667fe04 | ||
|
|
1fa027f362 | ||
|
|
74049dad77 | ||
|
|
c146aa145c | ||
|
|
ee6b53b247 | ||
|
|
1efb17e144 | ||
|
|
8573a9b208 | ||
|
|
0356fef61d | ||
|
|
f9c58a1165 | ||
|
|
d178c0980e | ||
|
|
b8cf7e6df4 | ||
|
|
2e34a2abd9 | ||
|
|
e26480f041 | ||
|
|
a8d05a2bca | ||
|
|
7615499cef | ||
|
|
d9da2e135c | ||
|
|
fe67d7fa14 | ||
|
|
fb7900d805 | ||
|
|
4a5df2ad6d | ||
|
|
6cc370a117 | ||
|
|
abfb3d46f3 | ||
|
|
0b8a2a107c | ||
|
|
7e9a1e7c13 | ||
|
|
e378ae8f93 | ||
|
|
9528a5761c | ||
|
|
39ccea931d | ||
|
|
841c99148e | ||
|
|
e472713d1c | ||
|
|
1d76427a4d | ||
|
|
f943d11661 | ||
|
|
2df9049e6b | ||
|
|
ad62e51ab3 | ||
|
|
59ac665c81 | ||
|
|
f4196748f5 | ||
|
|
3d9d40656e | ||
|
|
bd68a80152 | ||
|
|
96f7b78a38 | ||
|
|
1b18b5c952 | ||
|
|
51aa07e01e | ||
|
|
29ef38213f | ||
|
|
b10b4fd25a | ||
|
|
9fa5adf395 | ||
|
|
d6cd917d9d | ||
|
|
88a23222b6 | ||
|
|
ff5c0f594e | ||
|
|
58ba590c84 | ||
|
|
549996b270 | ||
|
|
bd0dd10942 | ||
|
|
31817bcf11 | ||
|
|
ce5886a427 | ||
|
|
b6f623efb8 | ||
|
|
2ee8fe49c5 | ||
|
|
090778ca63 | ||
|
|
dd055e5c5b | ||
|
|
6e1febdab8 | ||
|
|
d2f27e3918 | ||
|
|
55f3a15db6 | ||
|
|
33328adc9f | ||
|
|
5f9297b78e | ||
|
|
411eaa4ca8 | ||
|
|
6428416bc4 | ||
|
|
0e5de6c816 | ||
|
|
0ceb95a5e2 | ||
|
|
de3f4dab7e | ||
|
|
612a90681e | ||
|
|
88dece679d | ||
|
|
82c7da8739 | ||
|
|
b243dfc625 | ||
|
|
27f365a60a | ||
|
|
463c51be85 | ||
|
|
9626a4c442 | ||
|
|
3db8c28505 | ||
|
|
110199044f | ||
|
|
4a587eed74 | ||
|
|
e2b0422965 | ||
|
|
a793cbee0d | ||
|
|
f95a943589 | ||
|
|
c88b4c1e76 | ||
|
|
a457bccf12 | ||
|
|
3cba99068e | ||
|
|
e9bf75b4d6 | ||
|
|
5bede327f3 | ||
|
|
0cb14a9106 | ||
|
|
35fef5176d | ||
|
|
3ef355a267 | ||
|
|
4090e7b540 | ||
|
|
2891c4e8fa | ||
|
|
83cb459957 | ||
|
|
3f4dae05db | ||
|
|
2f4360a2a1 | ||
|
|
2415a886e2 | ||
|
|
927db36baa | ||
|
|
d0620091d2 | ||
|
|
96bb1abc1d | ||
|
|
7a52a29ef3 | ||
|
|
7ab2edd738 | ||
|
|
f462a5b391 | ||
|
|
e85618a27c | ||
|
|
3f2456ba65 | ||
|
|
ed99e240ec | ||
|
|
0fcb27c6b2 | ||
|
|
5289026313 | ||
|
|
2be47e9810 | ||
|
|
1af4add932 | ||
|
|
8d3d705fed | ||
|
|
766d3346ee | ||
|
|
08165252d5 | ||
|
|
1802b1a7d0 | ||
|
|
5f2dca08d1 | ||
|
|
25a6cdc502 | ||
|
|
9d3583293b | ||
|
|
e380907334 | ||
|
|
4cdbfb7c46 | ||
|
|
59fb58c6fc | ||
|
|
f5af283492 | ||
|
|
3440b8d8a8 | ||
|
|
537795f9ca | ||
|
|
dda6bd41b6 | ||
|
|
8ff27437af | ||
|
|
c6b41d76fa | ||
|
|
4ca4f2def6 | ||
|
|
61d67a5e80 | ||
|
|
b7309283e9 | ||
|
|
a97190de1e | ||
|
|
c17fc79ab2 | ||
|
|
1924963d75 | ||
|
|
aba34d6c6f | ||
|
|
db5708f338 | ||
|
|
6974f8e60c | ||
|
|
3ec81d5c35 | ||
|
|
fad89626e5 | ||
|
|
e7a1fafdf9 | ||
|
|
cf1d7537e8 | ||
|
|
10426f9d39 | ||
|
|
2fb4f73ae4 | ||
|
|
6289545d84 | ||
|
|
cfb9e15b8a | ||
|
|
06a46e6f38 | ||
|
|
da16b0fb78 | ||
|
|
f34b88cf7e | ||
|
|
d7dde42add | ||
|
|
5f652ec7f2 | ||
|
|
05d7971332 | ||
|
|
4eeaca5af1 | ||
|
|
e4da7f331b | ||
|
|
3fbb4b50ea | ||
|
|
ab5b101f96 | ||
|
|
c729654f04 | ||
|
|
f19ee8ba63 | ||
|
|
90bbc68443 | ||
|
|
4b4d18026b | ||
|
|
74580e6649 | ||
|
|
87b55e187c | ||
|
|
026bc1fdcb | ||
|
|
470669b1f7 | ||
|
|
b8bcb4967f | ||
|
|
6fa746a2e3 | ||
|
|
01d47279fd | ||
|
|
06db2ebb92 | ||
|
|
6068aabea7 | ||
|
|
6bc130312a | ||
|
|
ba7c478da1 | ||
|
|
25247a2371 | ||
|
|
22d1048999 | ||
|
|
6094422792 | ||
|
|
029b228b26 | ||
|
|
9bde5fae49 | ||
|
|
f15eaf95c1 | ||
|
|
9e152f2655 | ||
|
|
1329f2d703 | ||
|
|
66c1f63219 | ||
|
|
633bc19650 | ||
|
|
0be2082fe7 | ||
|
|
bc9d8cb3d1 | ||
|
|
9a67a64555 | ||
|
|
1a35234b0a | ||
|
|
9d81265213 | ||
|
|
bcde675775 | ||
|
|
8c2d7d096c | ||
|
|
ff47174fd6 | ||
|
|
c0a95d278e | ||
|
|
fed90b5597 | ||
|
|
51a4ade37e | ||
|
|
2f0160c4f6 | ||
|
|
56e5df65d5 | ||
|
|
5f0218929b | ||
|
|
6d0d50f5b3 | ||
|
|
c54638db30 | ||
|
|
cdb93a1716 | ||
|
|
02a731e018 | ||
|
|
ae0b0e3f13 | ||
|
|
a9a0c2ddc3 | ||
|
|
72d5d43ad2 | ||
|
|
a5f874e571 | ||
|
|
9dfdfd6fe3 | ||
|
|
d8cae487c2 | ||
|
|
7e5734067f | ||
|
|
159f0e259f | ||
|
|
19ff1ef38b | ||
|
|
57c7362e34 | ||
|
|
dabb64340e | ||
|
|
99b1528dcc | ||
|
|
673964ea6a | ||
|
|
c3c59ec1c0 | ||
|
|
d06ef47f1c | ||
|
|
68ca92e8a2 | ||
|
|
f7f20ee6cb | ||
|
|
f895a13b61 | ||
|
|
4739d2278b | ||
|
|
d4b7fdf949 | ||
|
|
ee02944391 | ||
|
|
36276d32b6 | ||
|
|
6879729633 | ||
|
|
4a5d971be5 | ||
|
|
bcaf946f13 | ||
|
|
514c4fb30d | ||
|
|
6552fc68c0 | ||
|
|
0f67ba157e | ||
|
|
1b4e68e4b2 | ||
|
|
f1e197b830 | ||
|
|
d3f1ce92b9 | ||
|
|
3cc2a90b64 | ||
|
|
28b2f87324 | ||
|
|
ec862f0596 | ||
|
|
6308b8a859 | ||
|
|
3911ff4058 | ||
|
|
c620e2cf9e | ||
|
|
4bff201307 | ||
|
|
577e59fd41 | ||
|
|
28facc430e | ||
|
|
ccb08d37a7 | ||
|
|
6e6af1dcbb | ||
|
|
214100840e | ||
|
|
e7eef08512 | ||
|
|
fa8266f71c | ||
|
|
dd5935649d | ||
|
|
76bec31cd8 | ||
|
|
3ce10d4855 | ||
|
|
4402650971 | ||
|
|
6016ebece7 | ||
|
|
f51f6032ca | ||
|
|
e86a583558 | ||
|
|
6fc7b8fb0f | ||
|
|
8f094000fe | ||
|
|
d3230e1e38 | ||
|
|
d8135d9038 | ||
|
|
a7d424679b | ||
|
|
2b6d1b2359 | ||
|
|
f57286043d | ||
|
|
57900edf31 | ||
|
|
3b428c7574 | ||
|
|
5bd85e4c09 | ||
|
|
d9ba1d24f5 | ||
|
|
ad6c2aa3d9 | ||
|
|
45922acbc1 | ||
|
|
d7e309bca4 | ||
|
|
716ec321ca | ||
|
|
17e554b67c | ||
|
|
aee486c4f3 | ||
|
|
4c4c052d8a | ||
|
|
1486fe7fd0 | ||
|
|
b488e0b059 | ||
|
|
094b20d69a | ||
|
|
41390b02e7 | ||
|
|
9af562957f | ||
|
|
9cf8ec4e06 | ||
|
|
d7788b675a | ||
|
|
5721b6f8c9 | ||
|
|
a55320030f | ||
|
|
1382e9fb31 | ||
|
|
a62100071f | ||
|
|
afd0c27af9 | ||
|
|
49b0cbe4f8 | ||
|
|
85ea757253 | ||
|
|
fb447dc252 | ||
|
|
d9e3622254 | ||
|
|
12a49a4a5e | ||
|
|
2c2af8a6a6 | ||
|
|
f42f4d468d | ||
|
|
e24c4cd860 | ||
|
|
9abbea7fb9 | ||
|
|
39a2fba921 | ||
|
|
ba4bffda2a | ||
|
|
cff6034079 | ||
|
|
0561a9f53c | ||
|
|
3db25abe48 | ||
|
|
efd1cebff3 | ||
|
|
83690f4024 | ||
|
|
f623bb3ee7 | ||
|
|
00cb2b43a8 | ||
|
|
e5c0ca501b | ||
|
|
fcd1224fa0 | ||
|
|
76a8623531 | ||
|
|
9eb69375bd | ||
|
|
6878cefadc | ||
|
|
29653c7ccc | ||
|
|
b54645e5b7 | ||
|
|
000048cc8f | ||
|
|
8fac84bfe9 | ||
|
|
ebcf2bfa7b | ||
|
|
8ef3ab8647 | ||
|
|
d039009a9f | ||
|
|
9211fb524c | ||
|
|
4a6c0acc8b | ||
|
|
a92aa9cbbd | ||
|
|
f13e8834d6 | ||
|
|
1188ce4360 | ||
|
|
ae63b32268 | ||
|
|
fbed279e34 | ||
|
|
d95af541c7 | ||
|
|
db9db0280b | ||
|
|
098300f0db | ||
|
|
9314eab7ff | ||
|
|
c9b57dbcd7 | ||
|
|
9f590e93ce | ||
|
|
e294ebe8c9 | ||
|
|
fbf53d3842 | ||
|
|
9a27138e78 | ||
|
|
9c6f040364 | ||
|
|
39f958a7bb | ||
|
|
103d2204d6 | ||
|
|
c2d4ac20dc | ||
|
|
ab2b89f838 | ||
|
|
ebe6da28fb | ||
|
|
26f3c3639c | ||
|
|
739d5b2807 | ||
|
|
fd48e56238 | ||
|
|
c2f51d41fa | ||
|
|
9001fdc9de | ||
|
|
16c759f1dd | ||
|
|
23e51d7099 | ||
|
|
1208fb92a1 | ||
|
|
27edfcb4f3 | ||
|
|
34b0369775 | ||
|
|
0edebdc8d3 | ||
|
|
7c229c0216 | ||
|
|
2a8c802d43 | ||
|
|
8ffb98efd1 | ||
|
|
da275a6080 | ||
|
|
0e77235ef9 | ||
|
|
3ba37ab05c | ||
|
|
6537c30d6b | ||
|
|
17f5771906 | ||
|
|
d065868abb | ||
|
|
9c3c76e70d | ||
|
|
eb2c2f2e6b | ||
|
|
d26c9e508b | ||
|
|
9dc5e62b64 | ||
|
|
21dbafb860 | ||
|
|
d54c1c2be2 | ||
|
|
8ccffb9bd3 | ||
|
|
bd5af16e1e | ||
|
|
0295257fc0 | ||
|
|
335eb93858 | ||
|
|
cc3e950d6a | ||
|
|
621587c65e | ||
|
|
fd7b6030f9 | ||
|
|
063657af4c | ||
|
|
8d82953c0b | ||
|
|
a4b6e92627 | ||
|
|
35cc78c70c | ||
|
|
5983d99354 | ||
|
|
fc1ae0e109 | ||
|
|
34a7465b8e | ||
|
|
2957f46ade | ||
|
|
83cc4a035a | ||
|
|
3981fa3ada | ||
|
|
bc5182f98b | ||
|
|
fda09358da | ||
|
|
e177333af4 | ||
|
|
f578f0df20 | ||
|
|
a2342071b3 | ||
|
|
7510f717a4 | ||
|
|
3d7d51e2e0 | ||
|
|
a0e9f0b61b | ||
|
|
d49b06856f | ||
|
|
72bc8c87ee | ||
|
|
70494f3c6a | ||
|
|
3273b3c239 | ||
|
|
f61bfc4648 | ||
|
|
169c4857b3 | ||
|
|
b79848936b | ||
|
|
3aea7cdca4 | ||
|
|
a94f417822 | ||
|
|
2dcfbd6435 | ||
|
|
2ab92f554f | ||
|
|
d3ad55eb79 | ||
|
|
9ea52eadc7 | ||
|
|
a04ef22945 | ||
|
|
294f24c71e | ||
|
|
b8618b6165 | ||
|
|
d8e4b89413 | ||
|
|
88fab6a91d | ||
|
|
da59c75f8b | ||
|
|
e090e8f4f3 | ||
|
|
f1885ece41 | ||
|
|
dc31605b29 | ||
|
|
f83216ab91 | ||
|
|
ecee63491c | ||
|
|
9c49fdf4d1 | ||
|
|
62bbf0efd6 | ||
|
|
e83805bee6 | ||
|
|
f1f1f5dde2 | ||
|
|
9b98575c0b | ||
|
|
ffa66dd905 | ||
|
|
54b515fd2b | ||
|
|
23849bc8c4 | ||
|
|
e27c19f781 | ||
|
|
faf9b454d2 | ||
|
|
241b086ec4 | ||
|
|
5bf6773655 | ||
|
|
7118d55d62 | ||
|
|
a4af8c2610 | ||
|
|
bc05566d2e | ||
|
|
0ab1db9517 | ||
|
|
a6f5931e7e | ||
|
|
513f53f1ee | ||
|
|
6038d3c4df | ||
|
|
72b44c368b | ||
|
|
058346d247 | ||
|
|
0ba651d19c | ||
|
|
8e1f9f5a9c | ||
|
|
c04f3ab185 | ||
|
|
bad79ab286 | ||
|
|
9f3808f0ff | ||
|
|
5f284fcd3d | ||
|
|
04c902a792 | ||
|
|
33ec18ad1e | ||
|
|
5c446bbb8d | ||
|
|
d79c66cdd1 | ||
|
|
175efa55fe | ||
|
|
b79c835d53 | ||
|
|
dc9fcb11cd | ||
|
|
82200a7c34 | ||
|
|
30aa992ddb | ||
|
|
2ffde14c60 | ||
|
|
14b84c5e1b | ||
|
|
88be6b3935 | ||
|
|
6210cb09aa | ||
|
|
20b410f963 | ||
|
|
ef13d020a2 | ||
|
|
fabe4783c8 | ||
|
|
ef79331037 | ||
|
|
244aeb244f | ||
|
|
ea95863b4a | ||
|
|
3c526a6cd4 | ||
|
|
363a8d595c | ||
|
|
d1ff98c76a | ||
|
|
1123341182 | ||
|
|
a23f18d92e | ||
|
|
154952a8ac | ||
|
|
b68d077b38 | ||
|
|
c0be8da65b | ||
|
|
b534d1395d | ||
|
|
4e5122db5d | ||
|
|
8193006aea | ||
|
|
4aa256d53b | ||
|
|
62c6b36f08 | ||
|
|
a1cee391fb | ||
|
|
d4192b354c | ||
|
|
d24800160b | ||
|
|
9fb4dce367 | ||
|
|
811f52dc17 | ||
|
|
72ce522813 | ||
|
|
316f4e2c3c | ||
|
|
0962f1895e | ||
|
|
8e05a67c5e | ||
|
|
715bd8d366 | ||
|
|
195942cd62 | ||
|
|
9dfd25c3fd | ||
|
|
3d71f7c526 | ||
|
|
05f617a885 | ||
|
|
c8b7e5b213 | ||
|
|
1249ca4167 | ||
|
|
b852a1787d | ||
|
|
a733d301fd | ||
|
|
059063430c | ||
|
|
7c35e1c7d1 | ||
|
|
3b72a67d2b | ||
|
|
808793a121 | ||
|
|
023a1bcf0f | ||
|
|
5953435dc5 | ||
|
|
0d3a689f17 | ||
|
|
f8b22d449c | ||
|
|
f96ed03f12 | ||
|
|
3fedc22899 | ||
|
|
a514e53d11 | ||
|
|
4586cb5382 | ||
|
|
6ccb576637 | ||
|
|
82f86122c8 | ||
|
|
39ccf60f15 | ||
|
|
f5afeb918c | ||
|
|
dafbeb34d4 | ||
|
|
5aa1d7be53 | ||
|
|
c5476025ec | ||
|
|
8f7d263ad9 | ||
|
|
97f901408e | ||
|
|
1d7a49907c | ||
|
|
9970ac798a | ||
|
|
5d0ea19c72 | ||
|
|
7613fdd4c3 | ||
|
|
31caa68b34 | ||
|
|
b6ff3855a1 | ||
|
|
3be3072082 | ||
|
|
3f4156b91b | ||
|
|
e3f621b86a | ||
|
|
27bdc78688 | ||
|
|
ed6ba740bb | ||
|
|
4c577c4559 | ||
|
|
51e10d890a | ||
|
|
b4a2c1b266 | ||
|
|
ee68a63233 | ||
|
|
b119d2d127 | ||
|
|
f3c4092c72 | ||
|
|
065d713e94 | ||
|
|
de40b5aa47 | ||
|
|
c119392c92 | ||
|
|
4ea13051fd | ||
|
|
6113336c37 | ||
|
|
724c236524 | ||
|
|
0b31e8c9df | ||
|
|
8ce84e39e2 | ||
|
|
c0e27634f4 | ||
|
|
bf6f71ef89 | ||
|
|
2dbd5cde02 | ||
|
|
c9285ab4a1 | ||
|
|
d5fcdfb8c2 | ||
|
|
ad523009b4 | ||
|
|
4116a3a7c9 | ||
|
|
b11b9db548 | ||
|
|
2c3697c2ec | ||
|
|
d6559a21fc | ||
|
|
a3e1792fe7 | ||
|
|
5315c66943 | ||
|
|
9e7dc61d20 | ||
|
|
b69cd9fb81 | ||
|
|
527562549b | ||
|
|
ba83aa97b3 | ||
|
|
b3b73609cb | ||
|
|
78ba9bd55e | ||
|
|
190210f950 | ||
|
|
9107485c14 | ||
|
|
823e04a858 | ||
|
|
4c6684236b | ||
|
|
8b7ef8d1e3 | ||
|
|
49ea1ae40a | ||
|
|
13283fb5d2 | ||
|
|
eb1fbed0d8 | ||
|
|
5c13995e59 | ||
|
|
82bbf7b495 | ||
|
|
af8803d6b5 | ||
|
|
8bc0b0a4df | ||
|
|
f51298e2a3 | ||
|
|
d8ce4275af | ||
|
|
c7b0780111 | ||
|
|
94d6e7cb4b | ||
|
|
ea6e452dd0 | ||
|
|
7d6c263ce0 | ||
|
|
9c25396016 | ||
|
|
1245f38267 | ||
|
|
5bd9b0cb6b | ||
|
|
08f09dca6e | ||
|
|
3cd21b8a78 | ||
|
|
67d7af2dc3 | ||
|
|
c4c4b75022 | ||
|
|
4a115cd1a5 | ||
|
|
06fe165249 | ||
|
|
aea222d176 | ||
|
|
ac60e58da2 | ||
|
|
45ef15359e | ||
|
|
6ca1d037c1 | ||
|
|
c4d2be9e89 | ||
|
|
8261767657 | ||
|
|
cdf6ff4419 | ||
|
|
a0e397d1d5 | ||
|
|
8a75edb218 | ||
|
|
e497e5930b | ||
|
|
989a54b067 | ||
|
|
31d327efc7 | ||
|
|
d47c899ef8 | ||
|
|
55924c1d46 | ||
|
|
731ea1ab9f | ||
|
|
67e300bcff | ||
|
|
dc86da7a20 | ||
|
|
7eecb2664d | ||
|
|
7299ecd0ce | ||
|
|
4fe2fee456 | ||
|
|
b2b0ca1cd1 | ||
|
|
7241036e61 | ||
|
|
732e1ab32e | ||
|
|
954052aaa0 | ||
|
|
c051b0ba3b | ||
|
|
801f0871d5 | ||
|
|
fcb8cc329b | ||
|
|
a9f7e09e64 | ||
|
|
2351698b66 | ||
|
|
94d2e523ab | ||
|
|
9320bd931b | ||
|
|
654a640a60 | ||
|
|
214da6ba59 | ||
|
|
1f547f92ce | ||
|
|
862c8d9b36 | ||
|
|
b846d5308e | ||
|
|
e7deed73b5 | ||
|
|
4213d37c76 | ||
|
|
25ec311c86 | ||
|
|
4ec5ef75a1 | ||
|
|
75c4c7213f | ||
|
|
f1f760a0e9 | ||
|
|
b8d319eba9 | ||
|
|
de0f40f4dd | ||
|
|
5305352b77 | ||
|
|
44a70c8ecf | ||
|
|
481b7b4c9d | ||
|
|
b7136e6d70 | ||
|
|
70acd79431 | ||
|
|
af55951f42 | ||
|
|
357501e5db | ||
|
|
679e4805a0 | ||
|
|
e59b5db859 | ||
|
|
d417c58d00 | ||
|
|
bf2d72976c | ||
|
|
d02b239e74 | ||
|
|
73723ed9e2 | ||
|
|
8112c852ef | ||
|
|
a76268138a | ||
|
|
1eafc3fadf | ||
|
|
4dd02f8299 | ||
|
|
d15fa6a3f9 | ||
|
|
a840cadfb7 | ||
|
|
2a08c11598 | ||
|
|
c72392fb62 | ||
|
|
560982a14a | ||
|
|
047f216f73 | ||
|
|
898e29d7a1 | ||
|
|
208b9c1b60 | ||
|
|
d89655e69a | ||
|
|
f3acf8cde7 | ||
|
|
e7d96fca2a | ||
|
|
cfdc4b9713 | ||
|
|
26d8c97136 | ||
|
|
a57ce21ebb | ||
|
|
5f57f3a1e2 | ||
|
|
62c673f4bc | ||
|
|
05aec482c9 | ||
|
|
5e407cc9aa | ||
|
|
41251a1e18 | ||
|
|
cc9f2828c1 | ||
|
|
8627867b62 | ||
|
|
cf30f39b0e | ||
|
|
2d02948203 | ||
|
|
993cdeab73 | ||
|
|
fc1d99f985 | ||
|
|
3a45147974 | ||
|
|
1ef4f605d7 | ||
|
|
e5ee6a3d94 | ||
|
|
0e086d91a6 | ||
|
|
7cbf7f7c94 | ||
|
|
7f7d33def8 | ||
|
|
5f37ba48ff | ||
|
|
69e80fb3f4 | ||
|
|
7b97d9ea85 | ||
|
|
362f61a337 | ||
|
|
f1527c51fe | ||
|
|
d54905713f | ||
|
|
6ba05f3d99 | ||
|
|
2463e5dbf0 | ||
|
|
0f9150d7ce | ||
|
|
2c843f4b45 | ||
|
|
6b9b9c2131 | ||
|
|
bd91d0d3bd | ||
|
|
2094c518a0 | ||
|
|
1d21002eb0 | ||
|
|
b55dce280c | ||
|
|
a65f3efbc5 | ||
|
|
a02fe4e985 | ||
|
|
2b4bee84f0 | ||
|
|
08ff063a3b | ||
|
|
220b22869a | ||
|
|
af86faeaf9 | ||
|
|
3d009e45c7 | ||
|
|
17fe5b345f | ||
|
|
d5b9e60c4d | ||
|
|
2d572f6740 | ||
|
|
6f15df8081 | ||
|
|
df6f744d51 | ||
|
|
7cff2e0cf3 | ||
|
|
2ee91515f7 | ||
|
|
6127e0a027 | ||
|
|
fa8f8f52aa | ||
|
|
9968f81073 | ||
|
|
73597dd031 | ||
|
|
b8c892fcd4 | ||
|
|
2c0ae426de | ||
|
|
cf592bdedb | ||
|
|
2997d3e8f6 | ||
|
|
44151876cd | ||
|
|
f795b27251 | ||
|
|
fc0f070721 | ||
|
|
2e29632fab | ||
|
|
1e1104f4d3 | ||
|
|
7cc62b13c1 | ||
|
|
3cb1d8189b | ||
|
|
dc6de5bd5f | ||
|
|
cd16e014d1 | ||
|
|
22ab39c2db | ||
|
|
4eb5d2d9cf | ||
|
|
106f14d8c7 | ||
|
|
443c1ca2af | ||
|
|
27efc3c717 | ||
|
|
d7f2cba214 | ||
|
|
2d7696b09e | ||
|
|
1db94b7871 | ||
|
|
681e803d44 | ||
|
|
1d88ca044d | ||
|
|
51c073012e | ||
|
|
eb6e7b79d0 | ||
|
|
fe68f76bd1 | ||
|
|
9d315134fc | ||
|
|
32de147ae2 | ||
|
|
fde807f8ff | ||
|
|
79f02b5dfb | ||
|
|
8526264dab | ||
|
|
4da57dceb0 | ||
|
|
0f3a6253e0 | ||
|
|
e9ca1bb47e | ||
|
|
5f0bd1cf5d | ||
|
|
cdcd6f6893 | ||
|
|
f8fc3462e8 | ||
|
|
8705bbad9a | ||
|
|
528791c91f | ||
|
|
f13f2dda1c | ||
|
|
c8cf4d66c5 | ||
|
|
cae970ec6b | ||
|
|
1727702de4 | ||
|
|
344a550dc1 | ||
|
|
641014b0d1 | ||
|
|
c1fefdeb3c | ||
|
|
b6a4206816 | ||
|
|
1e584769af | ||
|
|
1470123ec9 | ||
|
|
9655677972 | ||
|
|
65295b311e | ||
|
|
3bc9bb32b9 | ||
|
|
c575049bd9 | ||
|
|
3f7818aeec | ||
|
|
c1b4964978 | ||
|
|
1da7060bb2 | ||
|
|
5366758cf6 | ||
|
|
60ef8df523 | ||
|
|
2737077828 | ||
|
|
1670ed4e80 | ||
|
|
c30520ad3d | ||
|
|
e989b60ea8 | ||
|
|
c8ecd17fe9 | ||
|
|
3319d4263c | ||
|
|
c94f5d17f4 | ||
|
|
d791eedae9 | ||
|
|
2f44d5f380 | ||
|
|
7c3fcd4e42 | ||
|
|
a7ec6524b7 | ||
|
|
ef368254cd | ||
|
|
20dfebbc2a | ||
|
|
8e2b0c304c | ||
|
|
a9e32a53ea | ||
|
|
85a167a0d5 | ||
|
|
73c52b5cf0 | ||
|
|
b6a7d3bcda | ||
|
|
34343a809f | ||
|
|
3db9d58f8f | ||
|
|
ec5ffe3e02 | ||
|
|
42a2ae35ed | ||
|
|
12605f51de | ||
|
|
6cb207fd47 | ||
|
|
ad9c82c991 | ||
|
|
edc54ce6d4 | ||
|
|
8314803cda | ||
|
|
832413dda0 | ||
|
|
c48187e784 | ||
|
|
c5229628e3 | ||
|
|
f96e715b0b | ||
|
|
16b40a5725 | ||
|
|
38892026c5 | ||
|
|
ab4153f375 | ||
|
|
5e6a85d475 | ||
|
|
1b9d430176 | ||
|
|
62d2ce4b37 | ||
|
|
efaa5b7c41 | ||
|
|
fb1254ce12 | ||
|
|
277e55a241 | ||
|
|
3f00c1f977 | ||
|
|
feb39f02ec | ||
|
|
65e3d45c9b | ||
|
|
8b044b344a | ||
|
|
9631f1cf5f | ||
|
|
63b2f3abcc | ||
|
|
0b262d1a74 | ||
|
|
75a14a7488 | ||
|
|
031582957f | ||
|
|
e32dab8749 | ||
|
|
3e23826c8d | ||
|
|
eb04eb47dc | ||
|
|
0a26f59c9c | ||
|
|
9cdd1bbca8 | ||
|
|
31a9e4eaf6 | ||
|
|
221991bf2c | ||
|
|
48b39fe551 | ||
|
|
76be6c1d2e | ||
|
|
13d5586583 | ||
|
|
34172cd737 | ||
|
|
fbbca76099 | ||
|
|
8ed9c75ba1 | ||
|
|
e7b5ba9e72 | ||
|
|
40da0d10c8 | ||
|
|
1bdf7da525 | ||
|
|
6794b58524 | ||
|
|
78ad02bc84 | ||
|
|
9c76f0fcc0 | ||
|
|
5d9dc9eb95 | ||
|
|
66312e4d40 | ||
|
|
180fda20d7 | ||
|
|
94c33df308 | ||
|
|
598827f074 | ||
|
|
49c756b97d | ||
|
|
5ce08874d6 | ||
|
|
da6d9e8167 | ||
|
|
2fa2d2f745 | ||
|
|
e508ac40cf | ||
|
|
f0d4d93936 | ||
|
|
95877be3e6 | ||
|
|
d9f318623c | ||
|
|
dd26163a7c | ||
|
|
5f4c15de2b | ||
|
|
7546d421b0 | ||
|
|
943fa45bbc | ||
|
|
ad6345de88 | ||
|
|
aabc3b52fe | ||
|
|
2f96694a73 | ||
|
|
c5ad912a79 | ||
|
|
aa1900bee6 | ||
|
|
748b9da443 | ||
|
|
ec50efec10 | ||
|
|
d7e3c4d242 | ||
|
|
b176dd9879 | ||
|
|
a090a00360 | ||
|
|
ddeaf37e8e | ||
|
|
d0e4475b40 | ||
|
|
5f2366e49d | ||
|
|
f6b4ea015d | ||
|
|
638cc59097 | ||
|
|
3a2abf05cb | ||
|
|
0f004537af | ||
|
|
dc1bc1ee8e | ||
|
|
c07080650a | ||
|
|
4ac418cdd5 | ||
|
|
42aa0d9b61 | ||
|
|
117dc6191f | ||
|
|
903762f042 | ||
|
|
f9b6fd1ced | ||
|
|
9592c6b8ea | ||
|
|
c8dc70af56 | ||
|
|
db1717ffdd | ||
|
|
d7dc2badf8 | ||
|
|
f2755f6e1f | ||
|
|
cfb990ad43 | ||
|
|
b1a2826cb4 | ||
|
|
0d6c1caffc | ||
|
|
922c039e43 | ||
|
|
0b462280fc | ||
|
|
cae95d1c8f | ||
|
|
67b7872c4d | ||
|
|
9b04d317c5 | ||
|
|
a6ffae2148 | ||
|
|
6109960d4a | ||
|
|
4dcecc5697 | ||
|
|
bef5e41a8d | ||
|
|
6ecb87e8dd | ||
|
|
921c9e0098 |
19
.drone.yml
@@ -1,19 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
clone:
|
|
||||||
image: plugins/git
|
|
||||||
tags: true
|
|
||||||
build:
|
|
||||||
image: maven:3.3.9-jdk-8
|
|
||||||
commands:
|
|
||||||
- curl --fail --create-dirs -o $HOME/.gradle/init.d/mirror.gradle https://maven.johni0702.de/config/gradle
|
|
||||||
- git config --global user.email "replaymod@drone" && git config --global user.name "Drone"
|
|
||||||
- SIGNED_JAR=$(! git describe --exact 2>&1 > /dev/null; echo $?) REPRODUCIBLE_BUILD=1 ./gradlew :build
|
|
||||||
archive:
|
|
||||||
image: plugins/s3
|
|
||||||
acl: public-read
|
|
||||||
region: "us-east-1"
|
|
||||||
bucket: "replaymod"
|
|
||||||
path_style: true
|
|
||||||
source: build/libs/*
|
|
||||||
strip_prefix: build/libs/
|
|
||||||
target: /
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgY2xvbmU6CiAgICBpbWFnZTogcGx1Z2lucy9naXQKICAgIHRhZ3M6IHRydWUKICBidWlsZDoKICAgIGltYWdlOiBtYXZlbjozLjMuOS1qZGstOAogICAgY29tbWFuZHM6CiAgICAgIC0gY3VybCAtLWZhaWwgLS1jcmVhdGUtZGlycyAtbyAkSE9NRS8uZ3JhZGxlL2luaXQuZC9taXJyb3IuZ3JhZGxlIGh0dHBzOi8vbWF2ZW4uam9obmkwNzAyLmRlL2NvbmZpZy9ncmFkbGUKICAgICAgLSBnaXQgY29uZmlnIC0tZ2xvYmFsIHVzZXIuZW1haWwgInJlcGxheW1vZEBkcm9uZSIgJiYgZ2l0IGNvbmZpZyAtLWdsb2JhbCB1c2VyLm5hbWUgIkRyb25lIgogICAgICAtIFNJR05FRF9KQVI9JCghIGdpdCBkZXNjcmliZSAtLWV4YWN0IDI-JjEgPiAvZGV2L251bGw7IGVjaG8gJD8pIFJFUFJPRFVDSUJMRV9CVUlMRD0xIC4vZ3JhZGxldyA6YnVpbGQKICBhcmNoaXZlOgogICAgaW1hZ2U6IHBsdWdpbnMvczMKICAgIGFjbDogcHVibGljLXJlYWQKICAgIHJlZ2lvbjogInVzLWVhc3QtMSIKICAgIGJ1Y2tldDogInJlcGxheW1vZCIKICAgIHBhdGhfc3R5bGU6IHRydWUKICAgIHNvdXJjZTogYnVpbGQvbGlicy8qCiAgICBzdHJpcF9wcmVmaXg6IGJ1aWxkL2xpYnMvCiAgICB0YXJnZXQ6IC8K.cFk9CFCSYjJSwQhcJJp0BqSMwigKYCBd6r-KkvxlQZ0
|
|
||||||
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* text=auto
|
||||||
BIN
.gitignore
vendored
3
.gitmodules
vendored
@@ -5,3 +5,6 @@
|
|||||||
[submodule "src/main/resources/assets/replaymod/lang"]
|
[submodule "src/main/resources/assets/replaymod/lang"]
|
||||||
path = src/main/resources/assets/replaymod/lang
|
path = src/main/resources/assets/replaymod/lang
|
||||||
url = https://github.com/ReplayMod/Translations
|
url = https://github.com/ReplayMod/Translations
|
||||||
|
[submodule "ReplayStudio"]
|
||||||
|
path = libs/ReplayStudio
|
||||||
|
url = ../ReplayStudio
|
||||||
|
|||||||
30
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
docker { image 'openjdk:8-jdk' }
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
environment {
|
||||||
|
GRADLE_USER_HOME = '.gradle/user_home'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
cache(maxCacheSize: 4096, caches: [
|
||||||
|
[$class: 'ArbitraryFileCache', excludes: 'modules-2/modules-2.lock,*/plugin-resolution/**', includes: '**/*', path: '.gradle/user_home/caches'],
|
||||||
|
[$class: 'ArbitraryFileCache', excludes: '', includes: '**/*', path: '.gradle/user_home/wrapper'],
|
||||||
|
[$class: 'ArbitraryFileCache', excludes: '', includes: '**/*', path: '.gradle/loom-cache'],
|
||||||
|
]) {
|
||||||
|
// sh './gradlew :jGui:1.7.10:setupCIWorkspace :1.7.10:setupCIWorkspace'
|
||||||
|
sh './gradlew --parallel'
|
||||||
|
}
|
||||||
|
archiveArtifacts 'versions/*/build/libs/*.jar'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
withAWS(endpointUrl: 'https://minio.johni0702.de', credentials: 'minio') {
|
||||||
|
s3Upload bucket: 'replaymod', includePathPattern: '*.jar', workingDir: 'build/libs', acl: 'PublicRead', pathStyleAccessEnabled: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
53
README.md
@@ -4,46 +4,38 @@ A Minecraft mod to record game sessions and replay them afterwards from any pers
|
|||||||
## Building
|
## Building
|
||||||
Make sure your sub-projects are up-to-date: `git submodule update --init --recursive`
|
Make sure your sub-projects are up-to-date: `git submodule update --init --recursive`
|
||||||
|
|
||||||
For each branch you visit the first time, running `./gradlew setupDecompWorkspace` is necessary.
|
For compiling 1.7.10, you must run `./gradlew :jGui:1.7.10:setupDecompWorkspace :1.7.10:setupDecompWorkspace` once after the initial clone. This may take quite some time.
|
||||||
This will also be necessary if the `replaymod_at.cfg` file has been changed (getting errors about code that is trying
|
|
||||||
to access private fields is a good indication that this has happened).
|
|
||||||
|
|
||||||
### No IDE
|
### No IDE
|
||||||
You can build the mod by running `./gradlew :build`. You can then find the final jar files in `build/libs/`.
|
You can build the mod by running `./gradlew build` (or just `./gradlew bundleJar`). You can then find the final jar files in `versions/$MCVERSION/build/libs/`.
|
||||||
|
You can also build single versions by running `./gradlew :1.8:build` (or just `./gradlew :1.8:bundleJar`) (builds the MC 1.8 version).
|
||||||
|
|
||||||
### IntelliJ
|
### IntelliJ
|
||||||
For the initial setup run `./gradlew idea genIntellijRuns`.
|
Ensure you have at least IDEA 2020.1.
|
||||||
You also need to enable the Mixin annotation processor:
|
Build the mod via Gradle as explained above at least once (`./gradlew compileJava` should be sufficient). This will ensure that the sources for all MC versions are generated.
|
||||||
1. Go to File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors
|
Then import the Gradle project from within IDEA: File -> Open -> build.gradle -> Open as Project
|
||||||
2. Tick "Enable annotation processing"
|
Finally configure IDEA to build everything by itself instead of delegating it to Gradle (cause that is slow): File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Build and run using: IntelliJ IDEA
|
||||||
3. Add a new entry to the "Annotation Processor options"
|
|
||||||
4. Set the name to "reobfSrgFile" and the value to "$path/build/mcp-srg.srg" where you replace $path with the full
|
|
||||||
path to the folder containing the gradlew file
|
|
||||||
|
|
||||||
Whenever you switch to another branch, you can either just run `./gradlew idea` or instead run
|
|
||||||
`./gradlew copySrg` and then refresh the gradle project from within IntelliJ.
|
|
||||||
|
|
||||||
### Eclipse
|
### Eclipse
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
### Branches
|
### Branches
|
||||||
New features are developed on the `1.8` branch and merged upwards for release. Larger features are developed on their
|
Loosely based on [this branching model](http://nvie.com/posts/a-successful-git-branching-model/) with `stable` instead of `master`.
|
||||||
own branch that is based on `1.8` and then merged back once it's finished.
|
|
||||||
|
|
||||||
Features or bug fixes that apply only to a specific Minecraft version are fixed on the branch corresponding to that
|
TL;DR:
|
||||||
version and reverted when merging upwards.
|
Main development happens on the `develop` branch, snapshots are built from this branch.
|
||||||
|
The `stable` branch contains the most recent release.
|
||||||
Both subprojects follow a similar branching model.
|
|
||||||
|
|
||||||
The user documentation (`docs` folder) is only committed to on the current development branch. Any changes committed on
|
|
||||||
a branch for a more recent Minecraft version are not kept up to date on the website and should only be
|
|
||||||
of importance once support for the previous Minecraft version is dropped.
|
|
||||||
|
|
||||||
The `master` branch is solely to be used for the `version.json` file that contains a list of all versions
|
The `master` branch is solely to be used for the `version.json` file that contains a list of all versions
|
||||||
used by the clients to check for updates of this mod.
|
used by the clients to check for updates of this mod.
|
||||||
|
|
||||||
|
### The Preprocessor
|
||||||
|
To support multiple Minecraft versions with the ReplayMod, a [JCP](https://github.com/raydac/java-comment-preprocessor)-inspired preprocessor is used.
|
||||||
|
It has by now acquired a lot more sophisticated features to make it as noninvasive as possible.
|
||||||
|
Please read the [preprocessor's README](https://github.com/ReplayMod/preprocessor/blob/master/README.md) to understand how it works.
|
||||||
|
|
||||||
### Versioning
|
### Versioning
|
||||||
The ReplayMod uses the versioning scheme outlined [here](http://mcforge.readthedocs.io/en/latest/conventions/versioning/)
|
The ReplayMod uses the versioning scheme outlined [here](https://docs.minecraftforge.net/en/1.12.x/conventions/versioning/)
|
||||||
with three changes:
|
with three changes:
|
||||||
- No `MAJORAPI`, the ReplayMod does not provide any external API
|
- No `MAJORAPI`, the ReplayMod does not provide any external API
|
||||||
- "Updating to a new Minecraft version" should not increment `MAJORMOD`, we maintain one version of the ReplayMod
|
- "Updating to a new Minecraft version" should not increment `MAJORMOD`, we maintain one version of the ReplayMod
|
||||||
@@ -52,20 +44,19 @@ keep the version name the same for all of them (with the exception of `MCVERSION
|
|||||||
"Multiple Minecraft Version" section does not apply.
|
"Multiple Minecraft Version" section does not apply.
|
||||||
- For pre-releases the shorter `-bX` is used instead of `-betaX`
|
- For pre-releases the shorter `-bX` is used instead of `-betaX`
|
||||||
|
|
||||||
When a new version is (pre-)release, a new annotated tag should be added with the name of the version and the
|
When a new version is (pre-)release, a new commit modifying the `version.txt` file should be added and the
|
||||||
`versions.json` file in the `master` branch should be updated. To simplify this process the gradle task `doRelease` can
|
`versions.json` file in the `master` branch should be updated. To simplify this process the gradle task `doRelease` can
|
||||||
be used: `./gradlew -PreleaseVersion=1.8-2.0.0-rc1 doRelease`. It will create the tag and update the version.json
|
be used: `./gradlew -PreleaseVersion=2.0.0-rc1 doRelease`. It will create the commit and update the version.json
|
||||||
accordingly.
|
accordingly.
|
||||||
|
|
||||||
Care should be taken that the updated `version.json` is not pushed before a jar file is available on the
|
Care should be taken that the updated `version.json` is not pushed before a jar file is available on the
|
||||||
download page (or Jenkins) as it will inform the users of the update.
|
download page (or Jenkins) as it will inform the users of the update.
|
||||||
|
|
||||||
### Bugs
|
### Bugs
|
||||||
Bugs in the mod are tracked via [Bugzilla](https://bugs.replaymod.com/).
|
GitHub should generally be used to report bugs.
|
||||||
GitHub should only be used for issues that are generally not likely to affect any end users.
|
|
||||||
|
|
||||||
Bug numbers in commits such as `(fixes #42)` refer to Bugzilla unless noted otherwise.
|
In the past, bugs were tracked via [Bugzilla](https://bugs.replaymod.com/), so bug numbers in commits prior to 2020 such as `(fixes #42)` generally referred to Bugzilla unless noted otherwise.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
The ReplayMod is provided under the terms of the GNU General Public License Version 3 or (at your option) any later version.
|
The ReplayMod is provided under the terms of the GNU General Public License Version 3 or (at your option) any later version.
|
||||||
See `LICENSE.md` for the full license text.
|
See `LICENSE.md` for the full license text.
|
||||||
|
|||||||
339
build.gradle
@@ -1,339 +0,0 @@
|
|||||||
import groovy.json.JsonOutput
|
|
||||||
|
|
||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
maven {
|
|
||||||
name = "forge"
|
|
||||||
url = "http://files.minecraftforge.net/maven"
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = "sponge"
|
|
||||||
url = "https://repo.spongepowered.org/maven"
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = "sonatype"
|
|
||||||
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
|
||||||
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
|
||||||
apply plugin: 'org.spongepowered.mixin'
|
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
|
||||||
targetCompatibility = 1.8
|
|
||||||
|
|
||||||
version = gitDescribe()
|
|
||||||
group= "com.replaymod"
|
|
||||||
archivesBaseName = "replaymod"
|
|
||||||
|
|
||||||
minecraft {
|
|
||||||
coreMod = 'com.replaymod.core.LoadingPlugin'
|
|
||||||
version = '1.11.2-13.20.0.2216'
|
|
||||||
runDir = "eclipse"
|
|
||||||
mappings = "snapshot_20161220"
|
|
||||||
replace '@MOD_VERSION@', project.version
|
|
||||||
// Includes intentional whitespace to stop Forge from declaring the mod to be compatible with
|
|
||||||
// a newer srg-compatible MC version (that may be using a different protocol version)
|
|
||||||
replace '@MC_VERSION@', "[ ${project.minecraft.version} ]"
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
maven {
|
|
||||||
name = "SpongePowered Repo"
|
|
||||||
url = "http://repo.spongepowered.org/maven/"
|
|
||||||
}
|
|
||||||
maven { url 'https://jitpack.io' }
|
|
||||||
}
|
|
||||||
|
|
||||||
configurations {
|
|
||||||
shade
|
|
||||||
compile.extendsFrom shade
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compile 'org.projectlombok:lombok:1.16.4'
|
|
||||||
|
|
||||||
compile 'org.spongepowered:mixin:0.7.5-SNAPSHOT'
|
|
||||||
shade 'com.googlecode.mp4parser:isoparser:1.1.7'
|
|
||||||
shade 'org.apache.commons:commons-exec:1.3'
|
|
||||||
shade 'com.google.apis:google-api-services-youtube:v3-rev178-1.22.0'
|
|
||||||
shade 'com.google.api-client:google-api-client-gson:1.20.0'
|
|
||||||
shade 'com.google.api-client:google-api-client-java6:1.20.0'
|
|
||||||
shade 'com.google.oauth-client:google-oauth-client-jetty:1.20.0'
|
|
||||||
|
|
||||||
shade 'org.aspectj:aspectjrt:1.8.2'
|
|
||||||
|
|
||||||
shade 'com.github.replaymod:ReplayStudio:9605121'
|
|
||||||
|
|
||||||
testCompile 'junit:junit:4.11'
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
||||||
|
|
||||||
dependsOn configurations.compile
|
|
||||||
dependsOn configurations.shade
|
|
||||||
|
|
||||||
def shade = {files(
|
|
||||||
configurations.compile.findAll {it.name.startsWith 'mixin-'}
|
|
||||||
+ configurations.shade
|
|
||||||
)}
|
|
||||||
|
|
||||||
def noticeDir = file("$buildDir/NOTICE")
|
|
||||||
doFirst {
|
|
||||||
noticeDir.deleteDir()
|
|
||||||
noticeDir.mkdirs()
|
|
||||||
shade().collect { it.isDirectory() ? fileTree(it) : zipTree(it) }.each {
|
|
||||||
it.matching { include '**/NOTICE*' }.each {
|
|
||||||
new File(noticeDir, 'NOTICE.txt') << it.getText('UTF-8') + '\n'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
from noticeDir
|
|
||||||
|
|
||||||
from ({shade().collect { it.isDirectory() ? it : zipTree(it) }}) {
|
|
||||||
exclude '**/NOTICE*'
|
|
||||||
// exclude everything taken in from jGui for running the mod in a dev environment
|
|
||||||
exclude { new File(file('jGui/src/main/resources'), it.relativePath.pathString).exists() }
|
|
||||||
eachFile {
|
|
||||||
if (getName() == 'LICENSE.txt') {
|
|
||||||
setName(getFile().getParentFile().getName().split('.jar_')[0] + '-LICENSE.txt')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
manifest {
|
|
||||||
attributes 'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
|
|
||||||
'TweakOrder': '0',
|
|
||||||
'FMLCorePluginContainsFMLMod': 'true',
|
|
||||||
'FMLAT': 'replaymod_at.cfg'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def gitDescribe() {
|
|
||||||
try {
|
|
||||||
def stdout = new ByteArrayOutputStream()
|
|
||||||
exec {
|
|
||||||
commandLine 'git', 'describe', '--always', '--dirty=*'
|
|
||||||
standardOutput = stdout
|
|
||||||
}
|
|
||||||
return stdout.toString().trim()
|
|
||||||
} catch (e) {
|
|
||||||
return "unknown"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources
|
|
||||||
{
|
|
||||||
// this will ensure that this task is redone when the versions change.
|
|
||||||
inputs.property "version", project.version
|
|
||||||
inputs.property "mcversion", project.minecraft.version
|
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
include 'mcmod.info'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
|
||||||
expand 'version': project.version, 'mcversion': project.minecraft.version
|
|
||||||
}
|
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'mcmod.info'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
// Directly include jGui into main build
|
|
||||||
// This could also be done by including it as a gradle subproject, however
|
|
||||||
// doing so caused classpath issues on some IntelliJ versions.
|
|
||||||
java {
|
|
||||||
srcDir 'jGui/src/main/java'
|
|
||||||
}
|
|
||||||
resources {
|
|
||||||
srcDir 'jGui/src/main/resources'
|
|
||||||
}
|
|
||||||
ext.refMap = "mixins.replaymod.refmap.json"
|
|
||||||
}
|
|
||||||
integrationTest {
|
|
||||||
compileClasspath += main.runtimeClasspath + main.output
|
|
||||||
java {
|
|
||||||
srcDir file('src/integration-test/java')
|
|
||||||
}
|
|
||||||
resources.srcDir file('src/integration-test/resources')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task copySrg(type: Copy, dependsOn: 'genSrgs') {
|
|
||||||
from {project.tasks.genSrgs.mcpToSrg}
|
|
||||||
into 'build'
|
|
||||||
}
|
|
||||||
|
|
||||||
setupDecompWorkspace.dependsOn copySrg
|
|
||||||
setupDevWorkspace.dependsOn copySrg
|
|
||||||
project.tasks.idea.dependsOn copySrg
|
|
||||||
|
|
||||||
|
|
||||||
import org.objectweb.asm.*
|
|
||||||
|
|
||||||
import java.util.zip.ZipEntry
|
|
||||||
import java.util.zip.ZipFile
|
|
||||||
import java.util.zip.ZipOutputStream
|
|
||||||
|
|
||||||
import static org.objectweb.asm.Opcodes.ASM5
|
|
||||||
|
|
||||||
// MC binaries were complied with a java version that produces invalid class files under certain circumstances
|
|
||||||
// This causes setupCIWorkspace to be insufficient for compiling.
|
|
||||||
// Related JDK bug: https://bugs.openjdk.java.net/browse/JDK-8066725
|
|
||||||
// As a workaround, to use setupCIWorkspace on Drone, we modify the bin jar in-place and remove all parameter annotations.
|
|
||||||
// WARNING: This piece of code ignores any and all gradle conventions and will probably fail horribly when run outside
|
|
||||||
// of a single-use environment (e.g. Drone). Use setupDecompWorkspace for normal use.
|
|
||||||
tasks.deobfMcMCP.doLast {
|
|
||||||
println "Applying RuntimeInvisibleParameterAnnotations workaround..."
|
|
||||||
File jar = getOutJar()
|
|
||||||
File tmp = new File((File) getTemporaryDir(), "workaround.jar")
|
|
||||||
tmp.withOutputStream {
|
|
||||||
new ZipOutputStream(it).withStream { dst ->
|
|
||||||
new ZipFile(jar).withCloseable { src ->
|
|
||||||
src.entries().each {
|
|
||||||
if (it.name.startsWith("net/minecraft/") && it.name.endsWith(".class")) {
|
|
||||||
def cw = new ClassWriter(0)
|
|
||||||
def cv = new ClassVisitor(ASM5, cw) {
|
|
||||||
@Override
|
|
||||||
MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
|
|
||||||
return new MethodVisitor(ASM5, cv.visitMethod(access, name, desc, signature, exceptions)) {
|
|
||||||
@Override
|
|
||||||
AnnotationVisitor visitParameterAnnotation(int parameter, String pdesc, boolean visible) {
|
|
||||||
return null // Strip all parameter annotations
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
new ClassReader(src.getInputStream(it)).accept(cv, 0)
|
|
||||||
dst.putNextEntry(new ZipEntry(it.name))
|
|
||||||
dst.write(cw.toByteArray())
|
|
||||||
} else {
|
|
||||||
dst.putNextEntry(it)
|
|
||||||
dst.write(src.getInputStream(it).bytes)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
jar.delete()
|
|
||||||
tmp.renameTo(jar)
|
|
||||||
}
|
|
||||||
|
|
||||||
task runIntegrationTest(type: JavaExec, dependsOn: ["makeStart", "jar"]) {
|
|
||||||
main = 'GradleStart'
|
|
||||||
standardOutput = System.out
|
|
||||||
errorOutput = System.err
|
|
||||||
workingDir file(minecraft.runDir)
|
|
||||||
|
|
||||||
def testDir = new File(minecraft.runDir, "integration-test")
|
|
||||||
doFirst {
|
|
||||||
testDir.deleteDir()
|
|
||||||
testDir.mkdirs()
|
|
||||||
}
|
|
||||||
|
|
||||||
doLast {
|
|
||||||
testDir.deleteDir()
|
|
||||||
}
|
|
||||||
|
|
||||||
afterEvaluate {
|
|
||||||
def runClient = tasks.getByName("runClient")
|
|
||||||
runIntegrationTest.jvmArgs = runClient.jvmArgs + "-Dfml.noGrab=true"
|
|
||||||
runIntegrationTest.args = runClient.args + "--gameDir" + testDir.canonicalPath
|
|
||||||
runIntegrationTest.classpath runClient.classpath + sourceSets.integrationTest.output
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def generateVersionsJson() {
|
|
||||||
// List all tags
|
|
||||||
def stdout = new ByteArrayOutputStream()
|
|
||||||
project.exec {
|
|
||||||
commandLine 'git', 'for-each-ref', '--sort=taggerdate', '--format=%(refname:short)', 'refs/tags'
|
|
||||||
standardOutput = stdout
|
|
||||||
}
|
|
||||||
def versions = stdout.toString().tokenize('\n').reverse()
|
|
||||||
def mcVersions = versions.collect {it.substring(0, it.indexOf('-'))}.unique().reverse()
|
|
||||||
|
|
||||||
def root = [
|
|
||||||
homepage: 'https://www.replaymod.com/download/',
|
|
||||||
promos: [:]
|
|
||||||
]
|
|
||||||
mcVersions.forEach { mcVersion ->
|
|
||||||
def mcVersionRoot = [:]
|
|
||||||
def latest
|
|
||||||
def recommended
|
|
||||||
versions.forEach {
|
|
||||||
def (thisMcVersion, modVersion, preVersion) = it.tokenize('-')
|
|
||||||
if (thisMcVersion == mcVersion) {
|
|
||||||
mcVersionRoot[it] = "See https://github.com/ReplayMod/ReplayMod/releases/$it"
|
|
||||||
if (latest == null) latest = it
|
|
||||||
if (preVersion == null) {
|
|
||||||
if (recommended == null) recommended = it
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
root[mcVersion] = mcVersionRoot
|
|
||||||
root.promos[mcVersion + '-latest'] = latest
|
|
||||||
if (recommended != null) {
|
|
||||||
root.promos[mcVersion + '-recommended'] = recommended
|
|
||||||
}
|
|
||||||
}
|
|
||||||
root
|
|
||||||
}
|
|
||||||
|
|
||||||
task doRelease() {
|
|
||||||
doLast {
|
|
||||||
// Parse version
|
|
||||||
def version = project.releaseVersion as String
|
|
||||||
if (project.version.endsWith('*')) {
|
|
||||||
throw new InvalidUserDataException('Git working tree is dirty. Make sure to commit all changes.')
|
|
||||||
}
|
|
||||||
def (mcVersion, modVersion, preVersion) = version.tokenize('-')
|
|
||||||
preVersion = preVersion != null && preVersion.startsWith('b') ? preVersion.substring(1) : null
|
|
||||||
|
|
||||||
// Create new tag
|
|
||||||
if (preVersion != null) {
|
|
||||||
project.exec {
|
|
||||||
commandLine 'git', 'tag',
|
|
||||||
'-m', "Pre-release $preVersion of $modVersion for Minecraft $mcVersion",
|
|
||||||
"$mcVersion-$modVersion-b$preVersion"
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
project.exec {
|
|
||||||
commandLine 'git', 'tag',
|
|
||||||
'-m', "Release $modVersion for Minecraft $mcVersion",
|
|
||||||
"$mcVersion-$modVersion"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Switch to master branch to update versions.json
|
|
||||||
project.exec { commandLine 'git', 'checkout', 'master' }
|
|
||||||
|
|
||||||
// Generate versions.json content
|
|
||||||
def versionsRoot = generateVersionsJson()
|
|
||||||
def versionsJson = JsonOutput.prettyPrint(JsonOutput.toJson(versionsRoot))
|
|
||||||
|
|
||||||
// Write versions.json
|
|
||||||
new File('versions.json').write(versionsJson)
|
|
||||||
|
|
||||||
// Commit changes
|
|
||||||
project.exec { commandLine 'git', 'add', 'versions.json' }
|
|
||||||
project.exec { commandLine 'git', 'commit', '-m', "Update versions.json for $version" }
|
|
||||||
|
|
||||||
// Return to previous branch
|
|
||||||
project.exec { commandLine 'git', 'checkout', '-' }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultTasks 'build'
|
|
||||||
377
build.gradle.kts
Normal file
@@ -0,0 +1,377 @@
|
|||||||
|
import com.replaymod.gradle.preprocess.PreprocessTask
|
||||||
|
import gg.essential.gradle.util.*
|
||||||
|
import net.fabricmc.loom.task.RemapJarTask
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
java
|
||||||
|
id("com.gradleup.shadow") apply false
|
||||||
|
id("gg.essential.multi-version")
|
||||||
|
id("gg.essential.defaults.repo")
|
||||||
|
id("gg.essential.defaults.java")
|
||||||
|
id("gg.essential.defaults.loom")
|
||||||
|
}
|
||||||
|
|
||||||
|
val mcVersion = platform.mcVersion
|
||||||
|
|
||||||
|
var jGuiVersion = project.name
|
||||||
|
if (jGuiVersion in listOf("1.10.2", "1.11", "1.11.2")) jGuiVersion = "1.9.4"
|
||||||
|
if (jGuiVersion in listOf("1.12.1", "1.12.2")) jGuiVersion = "1.12"
|
||||||
|
val jGui = project.evaluationDependsOn(":jGui:$jGuiVersion")
|
||||||
|
|
||||||
|
version = "${project.name}-${rootProject.version}"
|
||||||
|
base.archivesName.set("replaymod")
|
||||||
|
java.withSourcesJar()
|
||||||
|
|
||||||
|
loom {
|
||||||
|
noServerRunConfigs()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!platform.isUnobfuscated) {
|
||||||
|
loom.mixin.useLegacyMixinAp = true
|
||||||
|
loom.mixin.defaultRefmapName.set("mixins.replaymod.refmap.json")
|
||||||
|
}
|
||||||
|
|
||||||
|
if (platform.isLegacyForge) {
|
||||||
|
loom.runs.named("client") {
|
||||||
|
property("fml.coreMods.load", "com.replaymod.core.LoadingPlugin")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
maven("https://repo.spongepowered.org/maven/")
|
||||||
|
maven("https://maven.terraformersmc.com/releases/") {
|
||||||
|
content {
|
||||||
|
includeGroup("com.terraformersmc")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
maven("https://jitpack.io") {
|
||||||
|
content {
|
||||||
|
includeGroupByRegex("com\\.github\\..*")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exclusiveContent {
|
||||||
|
forRepository {
|
||||||
|
maven("https://api.modrinth.com/maven")
|
||||||
|
}
|
||||||
|
filter {
|
||||||
|
includeGroup("maven.modrinth")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Include dep in fat jar without relocation and, when forge supports it, without exploding (TODO)
|
||||||
|
val shade by configurations.creating
|
||||||
|
// Include dep in fat jar with relocation and minimization
|
||||||
|
val shadow by configurations.creating {
|
||||||
|
exclude(group = "net.fabricmc", module = "fabric-loader")
|
||||||
|
exclude(group = "com.google.guava", module = "guava-jdk5")
|
||||||
|
exclude(group = "com.google.guava", module = "guava") // provided by MC
|
||||||
|
exclude(group = "com.google.code.gson", module = "gson") // provided by MC (or manually bundled for 1.11.2 and below)
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
if (platform.isFabric) {
|
||||||
|
val fabricApiVersion = when (mcVersion) {
|
||||||
|
11404 -> "0.4.3+build.247-1.14"
|
||||||
|
11502 -> "0.5.1+build.294-1.15"
|
||||||
|
11601 -> "0.14.0+build.371-1.16"
|
||||||
|
11603 -> "0.17.1+build.394-1.16"
|
||||||
|
11604 -> "0.42.0+1.16"
|
||||||
|
11701 -> "0.46.1+1.17"
|
||||||
|
11800 -> "0.43.1+1.18"
|
||||||
|
11801 -> "0.43.1+1.18"
|
||||||
|
11802 -> "0.47.9+1.18.2"
|
||||||
|
11900 -> "0.55.3+1.19"
|
||||||
|
11901 -> "0.58.5+1.19.1"
|
||||||
|
11902 -> "0.68.0+1.19.2"
|
||||||
|
11903 -> "0.68.1+1.19.3"
|
||||||
|
11904 -> "0.76.0+1.19.4"
|
||||||
|
12001 -> "0.83.1+1.20.1"
|
||||||
|
12002 -> "0.91.2+1.20.2"
|
||||||
|
12004 -> "0.91.2+1.20.4"
|
||||||
|
12006 -> "0.98.0+1.20.6"
|
||||||
|
12100 -> "0.100.3+1.21"
|
||||||
|
12102 -> "0.106.1+1.21.2"
|
||||||
|
12104 -> "0.111.0+1.21.4"
|
||||||
|
12105 -> "0.119.9+1.21.5"
|
||||||
|
12107 -> "0.128.1+1.21.7"
|
||||||
|
12110 -> "0.135.0+1.21.10"
|
||||||
|
12111 -> "0.139.5+1.21.11"
|
||||||
|
26_01_00 -> "0.144.3+26.1"
|
||||||
|
else -> throw UnsupportedOperationException()
|
||||||
|
}
|
||||||
|
val fabricApiModules = mutableListOf(
|
||||||
|
"api-base",
|
||||||
|
"networking-v0",
|
||||||
|
"keybindings-v0",
|
||||||
|
"resource-loader-v0",
|
||||||
|
)
|
||||||
|
if (mcVersion >= 11600) {
|
||||||
|
fabricApiModules.remove("keybindings-v0")
|
||||||
|
fabricApiModules.add("key-binding-api-v1")
|
||||||
|
}
|
||||||
|
if (mcVersion >= 11604) {
|
||||||
|
fabricApiModules.add("screen-api-v1")
|
||||||
|
fabricApiModules.add("networking-api-v1")
|
||||||
|
}
|
||||||
|
if (mcVersion >= 11700) {
|
||||||
|
fabricApiModules.remove("networking-v0")
|
||||||
|
}
|
||||||
|
if (mcVersion >= 12109) {
|
||||||
|
fabricApiModules.add("resource-loader-v1")
|
||||||
|
}
|
||||||
|
if (mcVersion >= 26_01_00) {
|
||||||
|
fabricApiModules.remove("key-binding-api-v1")
|
||||||
|
fabricApiModules.add("key-mapping-api-v1")
|
||||||
|
}
|
||||||
|
for (module in fabricApiModules) {
|
||||||
|
val dep = fabricApi.module("fabric-$module", fabricApiVersion)
|
||||||
|
modImplementation(dep)
|
||||||
|
"include"(dep)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!platform.isFabric) {
|
||||||
|
// Mixin 0.8 is no longer compatible with MC 1.11.2 or older
|
||||||
|
val mixinVersion = if (mcVersion >= 11200) "0.8.2" else "0.7.11-SNAPSHOT"
|
||||||
|
compileOnly("org.spongepowered:mixin:$mixinVersion")
|
||||||
|
implementation(shade("org.spongepowered:mixin:$mixinVersion") {
|
||||||
|
isTransitive = false // deps should all be bundled with MC
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (platform.isFabric) {
|
||||||
|
"include"(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.3.6")!!)!!)
|
||||||
|
}
|
||||||
|
|
||||||
|
implementation(shadow("com.googlecode.mp4parser:isoparser:1.1.7")!!)
|
||||||
|
implementation(shadow("org.apache.commons:commons-exec:1.3")!!)
|
||||||
|
implementation(shadow("com.google.apis:google-api-services-youtube:v3-rev178-1.22.0")!!)
|
||||||
|
implementation(shadow("com.google.api-client:google-api-client-gson:1.20.0")!!)
|
||||||
|
implementation(shadow("com.google.api-client:google-api-client-java6:1.20.0")!!)
|
||||||
|
implementation(shadow("com.google.oauth-client:google-oauth-client-jetty:1.20.0")!!)
|
||||||
|
|
||||||
|
val lwjgl by configurations.creating
|
||||||
|
for (suffix in listOf("", ":natives-linux", ":natives-windows", ":natives-macos", ":natives-macos-arm64")) {
|
||||||
|
lwjgl("org.lwjgl:lwjgl:3.3.1$suffix")
|
||||||
|
lwjgl("org.lwjgl:lwjgl-tinyexr:3.3.1$suffix")
|
||||||
|
}
|
||||||
|
compileOnly("org.lwjgl:lwjgl-tinyexr:3.3.1")
|
||||||
|
shadow(prebundle(lwjgl, "com/replaymod/render/utils/lwjgl.jar"))
|
||||||
|
|
||||||
|
if (mcVersion < 11200) {
|
||||||
|
// The version which MC ships is too old, we'll need to ship our own
|
||||||
|
implementation(shadow("com.google.code.gson:gson:2.8.7")!!)
|
||||||
|
}
|
||||||
|
|
||||||
|
implementation(shadow("com.github.javagl.JglTF:jgltf-model:3af6de4")!!)
|
||||||
|
|
||||||
|
if (platform.isFabric) {
|
||||||
|
implementation(shadow("org.apache.maven:maven-artifact:3.6.1")!!)
|
||||||
|
}
|
||||||
|
|
||||||
|
implementation(shadow("org.aspectj:aspectjrt:1.8.2")!!)
|
||||||
|
|
||||||
|
implementation(shadow("com.github.ReplayMod.JavaBlend:2.79.0:a0696f8")!!)
|
||||||
|
|
||||||
|
implementation(shadow("com.github.ReplayMod:ReplayStudio")!!)
|
||||||
|
// FIXME hack because I don't know how to get this to be inherited properly
|
||||||
|
implementation(rootProject.files("libs/ReplayStudio/.gradle/prebundled-jars/viaVersion.jar"))
|
||||||
|
|
||||||
|
implementation(project(path = jGui.path, configuration = if (platform.isUnobfuscated) null else "namedElements"))
|
||||||
|
implementation(shadow("com.github.ReplayMod:lwjgl-utils:27dcd66")!!)
|
||||||
|
|
||||||
|
if (platform.isFabric) {
|
||||||
|
val modMenuVersion = when {
|
||||||
|
mcVersion >= 26_01_00 -> "18.0.0-alpha.8"
|
||||||
|
mcVersion >= 12111 -> "17.0.0-alpha.1"
|
||||||
|
mcVersion >= 12110 -> "16.0.0-rc.1"
|
||||||
|
mcVersion >= 12107 -> "15.0.0-beta.3"
|
||||||
|
mcVersion >= 12105 -> "14.0.0-rc.2"
|
||||||
|
mcVersion >= 12104 -> "13.0.0-beta.1"
|
||||||
|
mcVersion >= 12102 -> "12.0.0-beta.1"
|
||||||
|
mcVersion >= 12100 -> "11.0.0-rc.4"
|
||||||
|
mcVersion >= 12006 -> "10.0.0-beta.1"
|
||||||
|
mcVersion >= 12003 -> "9.0.0-pre.1"
|
||||||
|
mcVersion >= 12002 -> "8.0.0"
|
||||||
|
mcVersion >= 12000 -> "7.0.1"
|
||||||
|
mcVersion >= 11904 -> "6.1.0-rc.4"
|
||||||
|
mcVersion >= 11903 -> "5.0.0-alpha.4"
|
||||||
|
mcVersion >= 11901 -> "4.0.5"
|
||||||
|
mcVersion >= 11900 -> "4.0.4"
|
||||||
|
mcVersion >= 11802 -> "3.1.0"
|
||||||
|
mcVersion >= 11800 -> "3.0.0"
|
||||||
|
mcVersion >= 11700 -> "2.0.0-beta.7"
|
||||||
|
mcVersion >= 11602 -> "1.16.8"
|
||||||
|
mcVersion >= 11600 -> null // maven doesn't have one for this version (only 1.16.5)
|
||||||
|
mcVersion >= 11500 -> "1.10.6"
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
if (modMenuVersion != null) {
|
||||||
|
modCompileOnly("com.terraformersmc:modmenu:$modMenuVersion")
|
||||||
|
} else {
|
||||||
|
// Oldest modmenu on their maven is 1.10.5 for MC 1.15.2; for older versions we won't run it in dev
|
||||||
|
modCompileOnly("com.terraformersmc:modmenu:1.10.6")
|
||||||
|
}
|
||||||
|
// Lacks maven dependencies
|
||||||
|
if (mcVersion == 12006) {
|
||||||
|
//modRuntimeOnly("net.fabricmc.fabric-api:fabric-api:0.98.0+1.20.6")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val irisVersion = when {
|
||||||
|
mcVersion >= 26_01_00 -> "1.10.8+26.1-fabric"
|
||||||
|
mcVersion >= 12000 -> "1.7.2+1.20.1"
|
||||||
|
mcVersion >= 11600 -> "1.18.x-v1.2.0"
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
if (irisVersion != null) {
|
||||||
|
modCompileOnly("maven.modrinth:iris:$irisVersion")
|
||||||
|
}
|
||||||
|
|
||||||
|
testImplementation("junit:junit:4.11")
|
||||||
|
}
|
||||||
|
|
||||||
|
preprocess {
|
||||||
|
keywords.set(mapOf(
|
||||||
|
".java" to PreprocessTask.DEFAULT_KEYWORDS,
|
||||||
|
".kt" to PreprocessTask.DEFAULT_KEYWORDS,
|
||||||
|
".json" to PreprocessTask.DEFAULT_KEYWORDS,
|
||||||
|
".mcmeta" to PreprocessTask.DEFAULT_KEYWORDS,
|
||||||
|
".cfg" to PreprocessTask.CFG_KEYWORDS,
|
||||||
|
".vert" to PreprocessTask.DEFAULT_KEYWORDS,
|
||||||
|
".frag" to PreprocessTask.DEFAULT_KEYWORDS,
|
||||||
|
))
|
||||||
|
|
||||||
|
patternAnnotation.set("com.replaymod.gradle.remap.Pattern")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
archiveClassifier.set("raw")
|
||||||
|
|
||||||
|
if (!platform.isFabric) {
|
||||||
|
manifest {
|
||||||
|
attributes(
|
||||||
|
"TweakClass" to "com.replaymod.core.tweaker.ReplayModTweaker",
|
||||||
|
"TweakOrder" to "0",
|
||||||
|
"FMLCorePluginContainsFMLMod" to "true",
|
||||||
|
"FMLCorePlugin" to "com.replaymod.core.LoadingPlugin",
|
||||||
|
"FMLAT" to "replaymod_at.cfg",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!platform.isUnobfuscated) {
|
||||||
|
tasks.named<RemapJarTask>("remapJar") {
|
||||||
|
if (platform.isFabric) {
|
||||||
|
addNestedDependencies.set(true)
|
||||||
|
}
|
||||||
|
archiveClassifier.set("obf")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val configureRelocationOutput = project.layout.buildDirectory.file("configureRelocation")
|
||||||
|
val configureRelocation by tasks.registering {
|
||||||
|
dependsOn(tasks.jar)
|
||||||
|
dependsOn(shadow)
|
||||||
|
outputs.file(configureRelocationOutput)
|
||||||
|
doLast {
|
||||||
|
val pkgs = files(shadow).filter { it.exists() }.map {
|
||||||
|
val tree = if (it.isDirectory) fileTree(it) else zipTree(it)
|
||||||
|
val pkgs = mutableSetOf<String>()
|
||||||
|
tree.visit {
|
||||||
|
val file = this
|
||||||
|
if (!file.isDirectory && file.name.endsWith(".class") && file.path.contains("/")) {
|
||||||
|
val pkg = file.path.substring(0, file.path.lastIndexOf("/")) + "/"
|
||||||
|
if (pkg.startsWith("com/")) {
|
||||||
|
if (pkg.startsWith("com/google/")) {
|
||||||
|
if (!pkg.startsWith("com/google/common")) {
|
||||||
|
pkgs += pkg.substring(0, pkg.indexOf("/", "com/google/".length))
|
||||||
|
}
|
||||||
|
} else if (!pkg.startsWith("com/replaymod")) {
|
||||||
|
pkgs += pkg.substring(0, pkg.indexOf("/", 4))
|
||||||
|
}
|
||||||
|
} else if (pkg.startsWith("net/")) {
|
||||||
|
if (!pkg.startsWith("net/minecraft")
|
||||||
|
&& !pkg.startsWith("net/fabric")) {
|
||||||
|
pkgs += pkg.substring(0, pkg.indexOf("/", "net/".length))
|
||||||
|
}
|
||||||
|
} else if (pkg.startsWith("org/")) {
|
||||||
|
if (pkg.startsWith("org/apache/")) {
|
||||||
|
if (pkg.startsWith("org/apache/commons/")) {
|
||||||
|
if (!pkg.startsWith("org/apache/commons/io")) {
|
||||||
|
pkgs += pkg.substring(0, pkg.indexOf("/", "org/apache/commons/".length))
|
||||||
|
}
|
||||||
|
} else if (!pkg.startsWith("org/apache/logging")) {
|
||||||
|
pkgs += pkg.substring(0, pkg.indexOf("/", "org/apache/".length))
|
||||||
|
}
|
||||||
|
} else if (pkg.startsWith("org/lwjgl")) {
|
||||||
|
return@visit // either bundled with MC or uses natives which we can't relocate
|
||||||
|
} else if (!pkg.startsWith("org/spongepowered")) {
|
||||||
|
pkgs += pkg.substring(0, pkg.indexOf("/", 4))
|
||||||
|
}
|
||||||
|
} else if (pkg.startsWith("it/unimi/dsi/fastutil") && mcVersion >= 11400) {
|
||||||
|
return@visit // MC uses this as well
|
||||||
|
} else if (!pkg.startsWith("javax/")) {
|
||||||
|
// Note: we cannot just use top level packages as those will be too generic and we'll run
|
||||||
|
// into this long standing bug: https://github.com/johnrengelman/shadow/issues/232
|
||||||
|
val i = pkg.indexOf("/")
|
||||||
|
val i2 = pkg.indexOf("/", i + 1)
|
||||||
|
if (i2 > 0) {
|
||||||
|
pkgs += pkg.substring(0, i2)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pkgs
|
||||||
|
}.flatten().toSortedSet()
|
||||||
|
configureRelocationOutput.get().asFile.writeText(pkgs.joinToString("\n"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val bundleJar by tasks.registering(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
|
||||||
|
from((if (platform.isUnobfuscated) tasks.jar else tasks.named<RemapJarTask>("remapJar")).flatMap { it.archiveFile }.map { zipTree(it) })
|
||||||
|
|
||||||
|
from((if (platform.isUnobfuscated) jGui.tasks.jar else jGui.tasks.named<RemapJarTask>("remapJar")).flatMap { it.archiveFile }.map { zipTree(it) }) {
|
||||||
|
filesMatching("mixins.jgui.json") {
|
||||||
|
filter { it.replace("de.johni0702", "com.replaymod.lib.de.johni0702") }
|
||||||
|
}
|
||||||
|
filesMatching("mixins.jgui.refmap.json") {
|
||||||
|
filter { it.replace("de/johni0702", "com/replaymod/lib/de/johni0702") }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
relocate("de.johni0702", "com.replaymod.lib.de.johni0702")
|
||||||
|
|
||||||
|
manifest.from(tasks.jar.get().manifest)
|
||||||
|
from(shade.elements.map { it.map { zipTree(it) } })
|
||||||
|
configurations = listOf(shadow)
|
||||||
|
exclude("META-INF/INDEX.LIST", "META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA", "module-info.class")
|
||||||
|
|
||||||
|
dependsOn(configureRelocation)
|
||||||
|
inputs.file(configureRelocationOutput)
|
||||||
|
doFirst {
|
||||||
|
configureRelocationOutput.get().asFile.forEachLine { pkg ->
|
||||||
|
val pkgName = pkg.replace("/", ".")
|
||||||
|
relocate(pkgName, "com.replaymod.lib.$pkgName")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// No need to shadow netty, MC provides it
|
||||||
|
// (actually, pre-1.12 ships a netty which is too old, so we need to shade it there anyway)
|
||||||
|
if (mcVersion >= 11200) {
|
||||||
|
relocate("com.github.steveice10.netty", "io.netty")
|
||||||
|
exclude("com/github/steveice10/netty/**")
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mcVersion >= 11400) {
|
||||||
|
// MC ships this
|
||||||
|
exclude("it/unimi/dsi/fastutil/**")
|
||||||
|
}
|
||||||
|
|
||||||
|
minimize {
|
||||||
|
exclude(dependency(".*spongepowered:mixin:.*"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tasks.assemble { dependsOn(bundleJar) }
|
||||||
385
docs/content.md
Normal file → Executable file
@@ -1,16 +1,14 @@
|
|||||||
# Installation [installing]
|
# Installation [installing]
|
||||||
## Installing the Replay Mod [replaymod]
|
## Installing the Replay Mod [replaymod]
|
||||||
The **ReplayMod** requires **Minecraft Forge** to be installed.
|
### Minecraft 1.14 and above
|
||||||
|
The **ReplayMod** for Minecraft 1.14 and above requires **Fabric** to be installed.
|
||||||
|
|
||||||
Depending on your **Replay Mod** version we recommend the following **Forge** versions:
|
You can find Fabric and the installation instructions [here](https://fabricmc.net/use/).
|
||||||
|
|
||||||
- Replay Mod 2.0.0 or later for Minecraft 1.11: Forge [1.11-13.19.1.2189](https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.11.html)
|
After installing Fabric, simply put the downloaded ReplayMod .jar file into the `/mods` folder of your Minecraft directory.
|
||||||
- Replay Mod 2.0.0 or later for Minecraft 1.10.2: Forge [1.10.2-12.18.2.2099](https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.10.2.html)
|
|
||||||
- Replay Mod 2.0.0 or later for Minecraft 1.9.4: Forge [1.9.4-12.17.0.1976](https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.9.4.html)
|
|
||||||
- Replay Mod 2.0.0 or later for Minecraft 1.8: Forge [1.8-11.14.4.1563](https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.8.html)
|
|
||||||
- Replay Mod 1.0.8 or older for Minecraft 1.8: Forge [1.8-11.14.3.1450](http://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.8.html)
|
|
||||||
|
|
||||||
Other Forge Versions might, but don't necessarily work.
|
### Minecraft 1.12.2 and below
|
||||||
|
For Minecraft 1.12.2 and below it requires **Minecraft Forge** to be installed.
|
||||||
|
|
||||||
If you don't know how to install Forge, follow [this tutorial](https://www.youtube.com/watch?v=4i7-RystzC4).
|
If you don't know how to install Forge, follow [this tutorial](https://www.youtube.com/watch?v=4i7-RystzC4).
|
||||||
|
|
||||||
@@ -19,63 +17,44 @@ After installing Forge, simply put the downloaded `ReplayMod.jar` file in the `/
|
|||||||
> **Note:** The **Replay Mod** is entirely client side and can not be installed on the servers you play on.
|
> **Note:** The **Replay Mod** is entirely client side and can not be installed on the servers you play on.
|
||||||
|
|
||||||
## Installing FFmpeg [ffmpeg]
|
## Installing FFmpeg [ffmpeg]
|
||||||
To use the **Replay Mod**'s [Rendering Feature](#replaying-render), you need to have FFmpeg installed.
|
To render your creations with **Replay Mod** you will need to have FFmpeg installed.
|
||||||
|
|
||||||
### Windows [windows]
|
### Windows [windows]
|
||||||
Download the latest **FFmpeg Static Build** for your architecture from <http://ffmpeg.zeranoe.com/builds/>.
|
Download the latest FFmpeg release from https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip.
|
||||||
Then, extract the downloaded `.7z` file in the folder you want to install FFmpeg in.
|
|
||||||
|
|
||||||
Next, download this **Batch Script** to quickly install FFmpeg: <https://replaymod.com/files/ffmpeg-path-installer.bat>
|
Extract the downloaded .zip file into your `.minecraft` folder.
|
||||||
|
|
||||||
> **Note:** If your browser warns you about the download, dismiss the message. It's a simple Batch Script which won't damage your computer.
|
Historically the exact location inside the `.minecraft` folder was important, this is no longer the case.
|
||||||
|
It is sufficient for the `ffmpeg.exe` to be anywhere inside your `.minecraft` folder.
|
||||||
|
|
||||||
Put the downloaded script into the folder where you extracted FFmpeg and run itt by double-clicking it.
|
**Notes for alternative launchers**
|
||||||
If you see a success message in the console, you've sucessfully installed **FFmpeg**!
|
- Twitch launcher by default installs Minecraft instances in C:\\Users\\*username*\\Twitch\\Minecraft\\Instances\\*instancename*\\
|
||||||
|
- GD Launcher by default installs Minecraft instances in C:\\Users\\*username*\\AppData\\Roaming\\gdlauncher_next\\instances\\*instancename*\\
|
||||||
|
- MultiMC by default installs Minecraft instances in C:\\Program Files (x86)\\MultiMC\\instances\\*Instancename*\\.minecraft\\
|
||||||
|
|
||||||
Alternatively, starting with ReplayMod 2.0.0-b5, you can also extract the downloaded `.7z` file into a `ffmpeg` folder
|
For these launchers, make sure FFmpeg exists inside the corresponding folder.
|
||||||
(you have to create it, it doesn't exist by default) in your `.minecraft` folder. No need to run any **Batch Script**.
|
|
||||||
The FFmpeg executable should end up at `.minecraft/ffmpeg/bin/ffmpeg.exe`.
|
|
||||||
|
|
||||||
### Mac OSX [mac]
|
### Mac OSX [mac]
|
||||||
On OSX, you can install **FFmpeg** with **[Homebrew](http://brew.sh/)** using `brew install ffmpeg`.
|
On OSX, you can install **FFmpeg** with **[Homebrew](http://brew.sh/)** using `brew install ffmpeg`.
|
||||||
|
|
||||||
Alternatively, you can download the latest static build from <https://ffmpeg.org/> and copy the ffmpeg executable to `/usr/local/bin`.
|
Alternatively, you can download the latest static build from <https://ffmpeg.org/> and copy the FFmpeg executable to `/usr/local/bin`.
|
||||||
|
|
||||||
### Linux [linux]
|
### Linux [linux]
|
||||||
On Linux, you can install **FFmpeg** using your system's package manager, for example using `apt install ffmpeg`.
|
On Linux, you can install **FFmpeg** using your system's package manager, for example using `apt install ffmpeg`.
|
||||||
If in doubt, consult the documentation of your distribution.
|
If in doubt, consult the documentation of your distribution.
|
||||||
|
|
||||||
## Compatibility with other Mods [compatibility]
|
|
||||||
### General information [general]
|
|
||||||
In General, the Replay Mod _should_ be compatible with most Forge Mods.
|
|
||||||
|
|
||||||
### Shaders Mod [shaders]
|
|
||||||
[Karyonix' Shaders Mod](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1286604-shaders-mod-updated-by-karyonix)
|
|
||||||
is no longer compatible with Minecraft Forge starting with 1.9.4. As such it is not compatible with the Replay Mod either.
|
|
||||||
Please use [Optifine](https://optifine.net/) instead.
|
|
||||||
|
|
||||||
### Custom Main Menu [custom-main-menu]
|
|
||||||
The [Custom Main Menu](https://mods.curse.com/mc-mods/minecraft/226406-custom-main-menu) mod is often used in mod packs to customize their Main Menu with a button layout fitting the background image, links to their website / bug tracker and similar.
|
|
||||||
If you are familiar with it, the button ids for the Replay Mod are: **17890234** (text: `replaymod.gui.replayviewer`), **17890237** (text: `replaymod.gui.replayeditor`) and **17890236** (text: `replaymod.gui.replaycenter`)
|
|
||||||
|
|
||||||
Due to the nature of this Custom Main Menu mod, buttons added to the Main Menu by 3rd party mods like the **Replay Mod** will not show up by default.
|
|
||||||
Thus, to access the Replay Viewer/Editor/Center, you need to manually configure the position for those buttons.
|
|
||||||
To do so, you need to modify the Custom Main Menu configuration file.
|
|
||||||
Usually, you can find it at `.minecraft/config/CustomMainMenu/mainmenu.json` (if you're using a mod pack launcher, it normally has its own .minecraft folder).
|
|
||||||
For an explanation of this config file, have a look at Custom Main Menu's page.
|
|
||||||
|
|
||||||
You can find a list of already modified config files [here](https://gist.github.com/Johni0702/3f3fab81dbf7ada83d045d9fe8f345aa).
|
|
||||||
|
|
||||||
## Troubleshooting [troubleshooting]
|
|
||||||
If you need help installing the **Replay Mod** or **FFmpeg**, please read [this forum thread](https://www.replaymod.com/forum/thread/220)
|
|
||||||
by [bela333](https://www.replaymod.com/user/bela333) - it covers most of the problems that users encountered so far.
|
|
||||||
|
|
||||||
## Settings [settings]
|
## Settings [settings]
|
||||||
To access the **Replay Mod Settings** from the Main Menu click the **"Mods"** button, select the **Replay Mod** from the list and
|
To access the **Replay Mod Settings** from the Main Menu click the **"Replay Viewer"** button and click the **Settings** button.
|
||||||
the click the **"Config"** button.
|
|
||||||
|
While playing, you can click the 'Mods' button in the Pause screen to reach **Replay Mod Settings** if you use Minecraft 1.12.2 and below, or have the mod _Mod Menu_ installed.
|
||||||
|
|
||||||
When in a Replay, you can either bind a hotkey to the **Replay Mod Settings** in Minecraft's Control settings
|
When in a Replay, you can either bind a hotkey to the **Replay Mod Settings** in Minecraft's Control settings
|
||||||
or use the hotkey GUI by clicking on the arrow button in the lower left corner.
|
or use the hotkey GUI by clicking on the hamburger button in the lower left corner.
|
||||||
|
|
||||||
|
## Accounts [accounts]
|
||||||
|
In previous versions of ReplayMod we used accounts to deliver videos to the **Replay Center**. This has since been discontinued and with that, so have the accounts.
|
||||||
|
|
||||||
|
Instead of the forum, you can join our [Discord server](https://discord.gg/5GR7RSb) to get support and answers.
|
||||||
|
|
||||||
# Recording [recording]
|
# Recording [recording]
|
||||||

|

|
||||||
@@ -143,15 +122,13 @@ The minimum Speed value is **0.1 times** the normal Minecraft Tick Speed, and th
|
|||||||
To the right of the Speed Slider, there is the **Replay Timeline**.
|
To the right of the Speed Slider, there is the **Replay Timeline**.
|
||||||
On the Replay Timeline, you see a yellow cursor indicating your current position in the Replay.
|
On the Replay Timeline, you see a yellow cursor indicating your current position in the Replay.
|
||||||
By clicking somewhere on this Timeline, you will travel in time towards the specified point in time.
|
By clicking somewhere on this Timeline, you will travel in time towards the specified point in time.
|
||||||
Please note that it takes longer to do larger steps in time or to jump backwards in time.
|
Please note that it takes longer to do larger steps in time or to jump backwards in time (see also [Quick Mode](#replaying-quickmode)).
|
||||||
|
|
||||||
## Camera Paths [paths]
|
## Camera Paths [paths]
|
||||||
### Introduction [intro]
|
### Introduction [intro]
|
||||||
While in a Replay, you can create controlled **Camera Movements** using the Mods's **Keyframe System**.
|
While in a Replay, you can create controlled **Camera Movements** using the Mods's **Keyframe System**.
|
||||||
Those Camera Paths can be rendered to a video later (see [Rendering](#replaying-render)).
|
Those Camera Paths can be rendered to a video later (see [Rendering](#replaying-render)).
|
||||||
|
|
||||||
Camera Paths are inspired by the [PixelCam Mod](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2327429-pixelcam-camera-studio-for-minecraft-1-8) which is based on the Camera Studio Mod.
|
|
||||||
|
|
||||||
The **Replay Mod Keyframe System** is similar to many Video Editing Software's Keyframe Systems.
|
The **Replay Mod Keyframe System** is similar to many Video Editing Software's Keyframe Systems.
|
||||||
If you're new to Keyframe Systems, try reading [this Wikipedia article](https://en.wikipedia.org/wiki/Key_frame).
|
If you're new to Keyframe Systems, try reading [this Wikipedia article](https://en.wikipedia.org/wiki/Key_frame).
|
||||||
|
|
||||||
@@ -170,6 +147,8 @@ If two Keyframes are 5 seconds apart, the Camera Path will take 5 seconds to int
|
|||||||
|
|
||||||
You can drag Keyframes on the **Keyframe Timeline** by left-clicking them, holding the mouse button and moving your mouse.
|
You can drag Keyframes on the **Keyframe Timeline** by left-clicking them, holding the mouse button and moving your mouse.
|
||||||
|
|
||||||
|
> **Hint:** Made a mistake? You can use `Ctrl+Z` to undo your changes to the keyframe timeline. Changed you mind? Press `Ctrl+Y` (or `Ctrl+Shift+Z`) to redo them.
|
||||||
|
|
||||||
### Position Keyframes [place]
|
### Position Keyframes [place]
|
||||||
The basic components of a Camera Path are **Position Keyframes**.
|
The basic components of a Camera Path are **Position Keyframes**.
|
||||||
A Position Keyframe stores a **Camera Position** (x, y, z, yaw, pitch, roll).
|
A Position Keyframe stores a **Camera Position** (x, y, z, yaw, pitch, roll).
|
||||||
@@ -200,9 +179,6 @@ If you wish to disable smooth interpolation and want to make the Path follow str
|
|||||||
You can easily toggle between **Linear** and **Cubic Interpolation** using the `O` key.
|
You can easily toggle between **Linear** and **Cubic Interpolation** using the `O` key.
|
||||||
|
|
||||||
#### Path Preview [preview]
|
#### Path Preview [preview]
|
||||||

|
|
||||||
While the **Path Preview** is enabled, this camera symbol is displayed in the lower right corner of the screen.
|
|
||||||
|
|
||||||

|

|
||||||
A normal **Path Preview**
|
A normal **Path Preview**
|
||||||
|
|
||||||
@@ -278,60 +254,6 @@ You can change a Preset's name, select it from the list and click the **"Rename"
|
|||||||
To load a Keyframe Preset, select a Preset from the list and click the **"Load"** button.
|
To load a Keyframe Preset, select a Preset from the list and click the **"Load"** button.
|
||||||
Using the **"Remove"** button, you can permanently delete a Keyframe Preset from the **Keyframe Repository**.
|
Using the **"Remove"** button, you can permanently delete a Keyframe Preset from the **Keyframe Repository**.
|
||||||
|
|
||||||
## Custom Objects [objects]
|
|
||||||
|
|
||||||
> Custom Objects are not available in the 2.0.0 versions. They are expected to return eventually.
|
|
||||||
|
|
||||||
[YouTube](_Xdpg828fbE)
|
|
||||||
|
|
||||||
### Introduction [introduction]
|
|
||||||
**Custom Objects** are mainly meant for **video creators**. They allow you to add any image into the Replay World and animate its Position, Opacity and much more.
|
|
||||||
|
|
||||||
Instead of using [Motion Tracking](https://en.wikipedia.org/wiki/Match_moving) to add text or pictures to a video, you can directly add these to the rendered file.
|
|
||||||
|
|
||||||
### Adding Assets [assets]
|
|
||||||

|
|
||||||
The **Asset Manager** with an example Asset
|
|
||||||
|
|
||||||
In order to create **Custom Objects**, you first have to add **Assets** to your Replay File.
|
|
||||||
Therefore, open the **Asset Manager** using the `G` key.
|
|
||||||
|
|
||||||
In the **Asset Manager**, you can add **Image Files (.png, .jpg and more)**, so-called **Assets**, to the Replay.
|
|
||||||
When clicking the **"Add"** button, a File Chooser will show up. Select the image file you want to use.
|
|
||||||
You can give the Asset a custom name using the Text Input Field in the top right corner.
|
|
||||||
|
|
||||||
All of the Assets you added can be used by **Custom Objects**.
|
|
||||||
|
|
||||||
### Creating Custom Objects [creating]
|
|
||||||

|
|
||||||
The **Object Manager** with some **Animation Keyframes**
|
|
||||||
|
|
||||||
Using the `F` key, you can open the **Object Manager**. Initially there won't be any Objects in the **Object List**, but you can simply add an Object using the **"Add"** button.
|
|
||||||
|
|
||||||
After doing so, you can name the newly created **Custom Object** using the Text Field in the upper right corner.
|
|
||||||
To define which **Asset File** (i.e. image) the **Custom Object** should use, select the desired **Asset** from the dropdown beneath the Name Input.
|
|
||||||
|
|
||||||
If you leave the **Object Manager**, you should see the image in the World somwhere near your position.
|
|
||||||
|
|
||||||
### Animating Custom Objects [animating]
|
|
||||||

|
|
||||||
An animated **Custom Image Object**.
|
|
||||||
|
|
||||||
Of course, you don't want the image to stay at that position.
|
|
||||||
herefore, open the **Object Manager** again and select the **Custom Object** you want to modify.
|
|
||||||
On the lower half of the screen you will see mutliple **Input Fields**, using which you can modify various settings
|
|
||||||
(so-called **Transformations**), for example the Object's **Position**, **Scale**, **Orientation** and **Opacity**.
|
|
||||||
|
|
||||||
When editing these values, you'll notice that on the TImeline to the right, Keyframes appear.
|
|
||||||
You can set and remove Keyframes for specific settings using its "Add Keyframe" button on the very left of the screen.
|
|
||||||
|
|
||||||
The **Object Manager's Keyframe System** is very similar to the **Position Keyframe** and **Time Keyframe** System.
|
|
||||||
|
|
||||||
During a **Camera Path**, the **Custom Objects** will interpolate their **Transformation Values** like **Position Keyframes** are interpolated.
|
|
||||||
While outside the **Object Manager** you can preview the Objects' position by moving the cursor on the **Keyframe Timeline** - the Objects will interpolate to the position they'll be at that timestamp during the **Camera Path**.
|
|
||||||
|
|
||||||
Once you got the hang of it, you'll be able to quickly animate **Custom Objects**.
|
|
||||||
|
|
||||||
## Rendering [render]
|
## Rendering [render]
|
||||||
With the **Replay Mod**, you can render **Camera Paths** to videos **without** using a screen recording tool like Fraps.
|
With the **Replay Mod**, you can render **Camera Paths** to videos **without** using a screen recording tool like Fraps.
|
||||||
To get started, first [set up your Camera Path](#replaying-paths) as described in the previous chapters.
|
To get started, first [set up your Camera Path](#replaying-paths) as described in the previous chapters.
|
||||||
@@ -436,7 +358,14 @@ There are **7 Encoding Presets** you can choose from:
|
|||||||
While these video files are of perfect quality, most **non-FFmpeg-based video players and video editing software** (e.g. QuickTime Player, Sony Vegas and Adobe Premiere) can't play these videos. Therefore, you should instead use the **MP4 - High Quality** preset in most cases.
|
While these video files are of perfect quality, most **non-FFmpeg-based video players and video editing software** (e.g. QuickTime Player, Sony Vegas and Adobe Premiere) can't play these videos. Therefore, you should instead use the **MP4 - High Quality** preset in most cases.
|
||||||
- **PNG Sequence**
|
- **PNG Sequence**
|
||||||
Exports the sequence as individual frames in the **PNG Format**.
|
Exports the sequence as individual frames in the **PNG Format**.
|
||||||
**Warning:** This can create a huge amount of files, so make sure to save them in a separate folder.
|
The images are of perfect quality.
|
||||||
|
Depth map images are 32-bit float encoded in the 8-bit components in BGRA order and will need some kind of post-processing to be useful in most editors.
|
||||||
|
- **OpenEXR Sequence** (Minecraft 1.14 and above)
|
||||||
|
Exports the sequence as individual frames in the **OpenEXR Format**.
|
||||||
|
The images are of perfect quality and may contain
|
||||||
|
additional image layers beyond the visible one (e.g. [depth](#replaying-render-advanced-depth-map)).
|
||||||
|
As such, this format is a good choice if you have plenty of disk space to spare and want to perform additional editing
|
||||||
|
on the video in a third-party video editor.
|
||||||
|
|
||||||
### Advanced Settings [advanced]
|
### Advanced Settings [advanced]
|
||||||

|

|
||||||
@@ -463,6 +392,21 @@ Using a **Video Editing Software** like **Adobe After Effects** or **Sony Vegas*
|
|||||||
|
|
||||||
> **Note:** For best results, you should **disable clouds** before rendering, as they are transparent.
|
> **Note:** For best results, you should **disable clouds** before rendering, as they are transparent.
|
||||||
|
|
||||||
|
#### Depth Map [depth-map]
|
||||||
|

|
||||||
|
"Suzanne" model added into a scene using Blender
|
||||||
|
|
||||||
|
This setting causes depth information to be recorded and included in video formats which support it
|
||||||
|
(currently only [OpenEXR](#replaying-render-settings-quality)).
|
||||||
|
|
||||||
|
Using a video editor which supports it (e.g. [Blender](https://www.blender.org/)), you can then for example (among many
|
||||||
|
other effects) add arbitrary geometry onto your rendered video in such a way that foreground objects in the
|
||||||
|
video will still occlude background geometry as if it actually was part of the world.
|
||||||
|
|
||||||
|
> **Note:** For best results, avoid semi-transparent blocks in front of your geometry, as they cannot be accurately represented in the depth map.
|
||||||
|
|
||||||
|
> **Note:** Anti-aliasing is not supported when exporting depth. Instead simply render and edit your video at a higher resolution and scale it down at the very end.
|
||||||
|
|
||||||
### Command Line Settings [commandline]
|
### Command Line Settings [commandline]
|
||||||

|

|
||||||
The **Command Line Render Settings**
|
The **Command Line Render Settings**
|
||||||
@@ -475,7 +419,7 @@ The **Replay Mod** runs [FFmpeg](http://ffmpeg.org/) via the **Command Line** to
|
|||||||
You can customize both the **executed Command** and the **Command Line Arguments** in the **Command Line Settings** part of the **Render Settings Screen**.
|
You can customize both the **executed Command** and the **Command Line Arguments** in the **Command Line Settings** part of the **Render Settings Screen**.
|
||||||
|
|
||||||
#### Custom Command [command]
|
#### Custom Command [command]
|
||||||
If you leave the left input field blank, `ffmpeg` will be used as **command**. If you haven't set your **PATH variable** to link to your FFmpeg distribution, simply enter the full path to your FFmpeg executable (e.g. `C:/ffmpeg/ffmpeg.exe` or `/usr/local/bin/ffmpeg`).
|
If you leave the left input field blank, `ffmpeg` will be used as **command**. If you haven't set your **PATH variable** to link to your FFmpeg distribution, simply enter the full path to your FFmpeg executable (e.g. `C:\ffmpeg\ffmpeg.exe` or `/usr/local/bin/ffmpeg`).
|
||||||
|
|
||||||
#### Command Line Arguments [arguments]
|
#### Command Line Arguments [arguments]
|
||||||
In the right input field, you can input custom **Command Line Arguments** to be used in the console.
|
In the right input field, you can input custom **Command Line Arguments** to be used in the console.
|
||||||
@@ -510,29 +454,6 @@ To use **High Performance Rendering**, hold down the `Ctrl` key (`Cmd` key on M
|
|||||||
but only after one rendered seconds (e.g. every 60 frames when rendering with 60fps)
|
but only after one rendered seconds (e.g. every 60 frames when rendering with 60fps)
|
||||||
- Resizing the Minecraft Window does not update the Rendering Gui
|
- Resizing the Minecraft Window does not update the Rendering Gui
|
||||||
|
|
||||||
### Troubleshooting [troubleshooting]
|
|
||||||
|
|
||||||
> If you have trouble with rendering, please first consult the Documentation before asking for help in the Forums.
|
|
||||||
|
|
||||||
#### No FFmpeg installation found [ffmpeg]
|
|
||||||

|
|
||||||
The error screen that is displayed when no FFmpeg installation could be found
|
|
||||||
|
|
||||||
If the **Replay Mod** tells you to install FFmpeg even though you already have, you have to manually tell the **Replay Mod** where your FFmpeg executable is located.
|
|
||||||
|
|
||||||
First, get the full path to your `ffmpeg.exe` (on Windows) or `ffmpeg` executable (on Mac/Linux).
|
|
||||||
On Windows, this path might look like `C:/ffmpeg/ffmpeg.exe`.
|
|
||||||
|
|
||||||
Then, open the **"Command Line Settings" Tab** in the Render Settings and paste this path into the **left input field** and retry rendering.
|
|
||||||
|
|
||||||
#### Crash while rendering [crash]
|
|
||||||
If Minecraft crashes after a few frames of rendering, it most likely means the **FFmpeg** didn't like the **Command Line Arguments** you passed.
|
|
||||||
If you customized the Command Line Arguments manually, re-check them - it's probably your own fault.
|
|
||||||
|
|
||||||
> **Hint:** In your .minecraft folder, you'll find a file called `export.log` which contains information about FFmpeg's rendering process.
|
|
||||||
|
|
||||||
If you did **not** customize the **Command Line Arguments**, you might have entered some insanely high (or low) values e.g. for Bitrate or Video Resolution. Try again with other, more reasonable values.
|
|
||||||
|
|
||||||
## Ambient Lighting [lighting]
|
## Ambient Lighting [lighting]
|
||||||

|

|
||||||
The same setting, onace with **Ambient Lighting** enabled, once with **Ambient Lighting** disabled
|
The same setting, onace with **Ambient Lighting** enabled, once with **Ambient Lighting** disabled
|
||||||
@@ -544,6 +465,14 @@ If you have a Replay in a dark setting (for example at nighttime, or in a cave)
|
|||||||
|
|
||||||
This works as a replacement for the **Night Vision Potion Effect**, without the side effect of a weird sky color.
|
This works as a replacement for the **Night Vision Potion Effect**, without the side effect of a weird sky color.
|
||||||
|
|
||||||
|
## Quick Mode [quickmode]
|
||||||
|

|
||||||
|
In **Quick Mode**, this clock symbol is displayed in the lower right corner of the screen.
|
||||||
|
|
||||||
|
When you first enable **Quick Mode** in a replay, an internal reference of certain entity and block properties is stored for quick access, allowing for faster navigation in the **Replay Timeline**.
|
||||||
|
As a side effect, certain features like particles and second skin layers will not be rendered in the preview.
|
||||||
|
By default, **Quick Mode** is toggled with `Q`.
|
||||||
|
|
||||||
## Player Overview [overview]
|
## Player Overview [overview]
|
||||||

|

|
||||||
The **Player Overview** Screen
|
The **Player Overview** Screen
|
||||||
@@ -567,11 +496,9 @@ The **Default Thumbnail** which is used if no Thumbnail was created
|
|||||||
While in a Replay, you can use the `N` key to create a **Thumbnail** of the current Replay.
|
While in a Replay, you can use the `N` key to create a **Thumbnail** of the current Replay.
|
||||||
A **Thumbnail** is a Screenshot which should give the viewer a good impression of your Replay's content.
|
A **Thumbnail** is a Screenshot which should give the viewer a good impression of your Replay's content.
|
||||||
|
|
||||||
**Thumbnails** are important when uploading a Replay to the **Replay Center**,
|
**Thumbnails** help keeping your **Replay Viewer** clear and structured.
|
||||||
as other users are much more likely to download your Replay if they can see a preview of it.
|
|
||||||
They also help keeping your **Replay Viewer** clear and structured.
|
|
||||||
|
|
||||||
If no **Thumbnail** is set for a Replay, the **Default Thumbnail** will be displayed in the **Replay Viewer** and in the **Replay Center**.
|
If no **Thumbnail** is set for a Replay, the **Default Thumbnail** will be displayed in the **Replay Viewer**.
|
||||||
|
|
||||||
## Event Markers [markers]
|
## Event Markers [markers]
|
||||||

|

|
||||||
@@ -594,84 +521,8 @@ This way, it's even simpler to add structure to your Replays.
|
|||||||
|
|
||||||
You can **delete an Event Marker** by clicking it once to select it and then pressing the `DELETE` key.
|
You can **delete an Event Marker** by clicking it once to select it and then pressing the `DELETE` key.
|
||||||
|
|
||||||
# Replay Center [center]
|
|
||||||
The **Replay Center** is where you can **share** your **Minecraft Moments** with others and discover awesome **Replays by other Users**.
|
|
||||||
To be able to use the **Replay Center**, you need an **account on ReplayMod.com**.
|
|
||||||
|
|
||||||
## Authentication [auth]
|
|
||||||

|
|
||||||
The **Login Screen** which is displayed upon startup
|
|
||||||
|
|
||||||

|
|
||||||
The **Register Screen**
|
|
||||||
|
|
||||||
When starting Minecraft with the **Replay Mod** installed, you will be asked to login to **ReplayMod.com**.
|
|
||||||
If you don't want to use the **Replay Center**, you can click the **"Skip" Button** to continue without logging in.
|
|
||||||
|
|
||||||
If you want to browse other users' **Replays** and **share your own Replays** however, you need to **Register an account**.
|
|
||||||
|
|
||||||
> **Note:** By registering an Account on **ReplayMod.com**, you agree to the Website's [Terms of Service](https://www.replaymod.com/legal/terms)
|
|
||||||
|
|
||||||
Please note that you can only create **one ReplayMod.com Account per Minecraft Account**, so choose your username wisely.
|
|
||||||
|
|
||||||
Once you've registered, you're automatically going to be logged in. The Mod **remembers your login** until you manually log out from the **Replay Center**, so it won't ask you upon every startup if you logged in once.
|
|
||||||
|
|
||||||
## Replay Files [files]
|
|
||||||

|
|
||||||
The **Replay Center** in the Mod
|
|
||||||
|
|
||||||
Once you've logged in, you can use the **"Replay Center" Button** in the Main Menu to access the **Replay Center**.
|
|
||||||
|
|
||||||
In the upper half of the screen, there are **5 Buttons** for **5 Tabs** of the **Replay Center**:
|
|
||||||
- **Recent**
|
|
||||||
Shows the most recently uploaded Replays in the **Replay Center**
|
|
||||||
- **Best**
|
|
||||||
Shows the Replays with the **best rating and most downloads**
|
|
||||||
- **Downloaded**
|
|
||||||
Shows all of the Replays you've downloaded locally
|
|
||||||
- **Favorited**
|
|
||||||
Shows all of the Replays you favorited
|
|
||||||
- **Search**
|
|
||||||
Allows you to search for specific Replays
|
|
||||||
|
|
||||||
When you've found an insteresting looking Replay, you can download it using the **"Download" Button** in the lower left corner.
|
|
||||||
After downloading, you'll automatically join the Replay.
|
|
||||||
|
|
||||||
After you've downloaded a Replay, you can rate and favorite it in the **Replay Center** using the respective buttons.
|
|
||||||
|
|
||||||
> You are encouraged to rate Replays after you downloaded them to help promoting the best Replays.
|
|
||||||
|
|
||||||
## Upload Replays [upload]
|
|
||||||

|
|
||||||
The **Replay Upload Screen**
|
|
||||||
|
|
||||||
You can share your own **Replay Files** with other users in the **Replay Center**.
|
|
||||||
Therefore, click the **"Upload" Button** in the **Replay Viewer** after selecting a Replay.
|
|
||||||
|
|
||||||
In the **Replay Upload Screen** there are **6 input fields**:
|
|
||||||
- **Replay Name**
|
|
||||||
The Replay's Name in the Replay Center
|
|
||||||
- **Replay Description**
|
|
||||||
A description of what happens in the Replay. Try to give the user a good impression why your Replay is worth downloading.
|
|
||||||
- **Category**
|
|
||||||
The Replay's Category, one of the following: **Survival**, **Build**, **Minigame**, **Miscellaneous**. If none of the other categories fit, use **Miscellaneous**.
|
|
||||||
- **Tags**
|
|
||||||
One or more tags that fit your replay, spearated by comma. **Example tags:** pvp,battle,redstone,creative
|
|
||||||
- **Hide Server IP**
|
|
||||||
If you've recorded a Replay on a private Server, you can remove the Server IP by checking the respective checkbox.
|
|
||||||
- **Thumbnail**
|
|
||||||
While you can't directly edit the Thumbnail when uploading, it is highly recommended that
|
|
||||||
you [create a Thumbnail](#replaying-thumbnail) before sharing your Replay.
|
|
||||||
Replays without a Thumbnail are much less likely to be downloaded by other users.
|
|
||||||
|
|
||||||
When uploading a Replay File, make sure to follow the [Replay Center Rules](https://www.replaymod.com/rules).
|
|
||||||
|
|
||||||
# Frequently Asked Questions [faq]
|
# Frequently Asked Questions [faq]
|
||||||
|
|
||||||
### Do I need a ReplayMod.com Account to use the mod?
|
|
||||||
You only need a ReplayMod.com Account to access the [Replay Center](#center).
|
|
||||||
All of the other features are also available offline.
|
|
||||||
|
|
||||||
### For how long can I record?
|
### For how long can I record?
|
||||||
Theoretically, a Replay File can be up to **24 days, 20 hours, 30 minutes and 23 seconds** long - which is a timespan you'll probably never reach.
|
Theoretically, a Replay File can be up to **24 days, 20 hours, 30 minutes and 23 seconds** long - which is a timespan you'll probably never reach.
|
||||||
|
|
||||||
@@ -694,3 +545,113 @@ A Replay in which you travelled around and discovered a lot of terrain is signif
|
|||||||
|
|
||||||
An average Replay File of **10 Minutes duration** usually is between **2MB and 10MB large**.
|
An average Replay File of **10 Minutes duration** usually is between **2MB and 10MB large**.
|
||||||
Replays recorded on **Minigame Servers** with lots of particle effects and world changes might be larger.
|
Replays recorded on **Minigame Servers** with lots of particle effects and world changes might be larger.
|
||||||
|
|
||||||
|
# Troubleshooting [troubleshooting]
|
||||||
|
> If you have trouble with rendering, please first consult the Documentation before asking for help in the Discord.
|
||||||
|
|
||||||
|
## No FFmpeg installation found [ffmpeg]
|
||||||
|

|
||||||
|
The error screen that is displayed when no FFmpeg installation could be found
|
||||||
|
|
||||||
|
If you have not installed FFmpeg, please follow the steps provided [here](#installing-ffmpeg)
|
||||||
|
|
||||||
|
If already have installed FFmpeg, you have to manually tell the **Replay Mod** where your FFmpeg executable is located.
|
||||||
|
|
||||||
|
First, get the full path to your `ffmpeg.exe` (on Windows) or `ffmpeg` executable (on Mac/Linux).
|
||||||
|
On Windows, this path might look like `C:\ffmpeg\ffmpeg.exe`.
|
||||||
|
|
||||||
|
Then, open the **"Command Line Settings" Section** in the Render Settings and paste this path into the **left input field** and retry rendering.
|
||||||
|
|
||||||
|
## Crash while rendering [crash]
|
||||||
|
If Minecraft crashes after a few frames of rendering, it most likely means the **FFmpeg** didn't like the **Command Line Arguments** you passed.
|
||||||
|
If you customized the Command Line Arguments manually, re-check them - it's probably your own fault.
|
||||||
|
|
||||||
|
> **Hint:** In your .minecraft folder, you'll find a file called `export.log` which contains information about FFmpeg's rendering process.
|
||||||
|
|
||||||
|
- If you did **not** customize the **Command Line Arguments**, you might have entered some insanely high (or low) values e.g. for Bitrate or Video Resolution. Try again with other, more reasonable values.
|
||||||
|
- Make sure the camera doesn't move below Y=0 or above Y=255
|
||||||
|
|
||||||
|
## Unsupported Launchers [launchers]
|
||||||
|
_Future Client_ is not compatible with the Mixin required by ReplayMod.
|
||||||
|
_Lunar Client_ does not support ReplayMod.
|
||||||
|
_Badlion Client_ offers a different ReplayMod that is not the same as this one.
|
||||||
|
|
||||||
|
## Compatibility with other Mods [compatibility]
|
||||||
|
### General information [general]
|
||||||
|
In General, the Replay Mod _should_ be compatible with most Forge and Fabric Mods.
|
||||||
|
|
||||||
|
### Shaders Mod [shaders]
|
||||||
|
_Karyonix' Shaders Mod_ is no longer compatible with Minecraft Forge starting with 1.9.4. As such it is not compatible with the Replay Mod either.
|
||||||
|
|
||||||
|
Below Minecraft 1.16 you can try _Optifine_ instead. Note however, that official support has ended and many versions break ReplayMod.
|
||||||
|
|
||||||
|
On Minecraft 1.16.5 and up you can use _Iris_, which is fully supported. For the time being, you will have to use it with the custom _Sodium_ provided on our download page. The fix it includes is pending for the official version.
|
||||||
|
|
||||||
|
### Custom Main Menu [custom-main-menu]
|
||||||
|
The _Custom Main Menu_ mod is often used in mod packs to customize their Main Menu with a button layout fitting the background image, links to their website / bug tracker and similar.
|
||||||
|
If you are familiar with it, the button id for the Replay Mod is: **17890234** (text: `replaymod.gui.replayviewer`).
|
||||||
|
|
||||||
|
Due to the nature of this Custom Main Menu mod, buttons added to the Main Menu by 3rd party mods like the **Replay Mod** will not show up by default.
|
||||||
|
Thus, to access the Replay Viewer/Editor/Center, you need to manually configure the position for those buttons.
|
||||||
|
To do so, you need to modify the Custom Main Menu configuration file.
|
||||||
|
Usually, you can find it at `.minecraft/config/CustomMainMenu/mainmenu.json` (if you're using a mod pack launcher, it normally has its own .minecraft folder).
|
||||||
|
For an explanation of this config file, have a look at Custom Main Menu's page.
|
||||||
|
|
||||||
|
You can find a list of already modified config files [here](https://gist.github.com/Johni0702/3f3fab81dbf7ada83d045d9fe8f345aa).
|
||||||
|
|
||||||
|
### Tickrate Changer [tickrate-changer]
|
||||||
|
The _Tickrate Changer_ mod may cause minecraft to freeze when you try to use the Replay Viewer UI.
|
||||||
|
|
||||||
|
### LabyMod [labymod]
|
||||||
|
_LabyMod_ v3.7.x has been reported to be compatible with ReplayMod and other Forge mods.
|
||||||
|
Lower versions are not compatible.
|
||||||
|
|
||||||
|
### OldAnimationsMod [oldanimationsmod]
|
||||||
|
In case your Minecraft crashes when you are using both ReplayMod and _OldAnimationsMod_, try removing OldAnimationsMod.
|
||||||
|
|
||||||
|
### Orange's 1.7 Animations [17animations]
|
||||||
|
If you use ReplayMod with shaders and _1.7 Animations_ you may see floating water and glass. Remove 1.7 Animations to resolve this.
|
||||||
|
|
||||||
|
### Sk1er Club: Patcher [patcher]
|
||||||
|
We have seen reports of crashes that were related to _Patcher_; in case of crashes try removing Patcher.
|
||||||
|
|
||||||
|
### Baritone [baritone]
|
||||||
|
The _Baritone_ mod can cause a crash when you're trying to load a replay. If you experience such problems, try running without Baritone.
|
||||||
|
|
||||||
|
### RandomPatches [randompatches]
|
||||||
|
Minecraft may crash if you try to use _RandomPatches_ together with ReplayMod. Try removing RandomPatches if Minecraft crashes on startup.
|
||||||
|
|
||||||
|
### Sodium [sodium]
|
||||||
|
ReplayMod can record when _Sodium_ is installed, but currently lacks the FREX Flawless Frames API to render. A modified build of _Sodium_, that supports this API, is available from the ReplayMod downloads, by clicking the `Click to show compatible Sodium versions` button.
|
||||||
|
|
||||||
|
### Resource Loader [resourceloader]
|
||||||
|
The _Resource Loader_ mod is not compatible with ReplayMod.
|
||||||
|
|
||||||
|
### LiteLoader [liteloader]
|
||||||
|

|
||||||
|
The MultiMC interface to place ReplayMod above LiteLoader.
|
||||||
|
|
||||||
|

|
||||||
|
The properties for the new *Empty*.
|
||||||
|
|
||||||
|
_LiteLoader_ is known to cause issues due to the mixin version it contains.
|
||||||
|
|
||||||
|
You can use MultiMC to workaround this problem.
|
||||||
|
> The MultiMC `Edit` function requires that your computer has a default editor for json files associated.
|
||||||
|
|
||||||
|
1: Create your instance then edit the instance
|
||||||
|
2: Click `Install Forge`
|
||||||
|
3: Click `Install LiteLoader`
|
||||||
|
4: Click `Add Empty`; use `ReplayMod` as name and `com.replaymod` as uid
|
||||||
|
5: Select the new *ReplayMod* and click `Edit`
|
||||||
|
6: Replace the contents with one of the below snippets
|
||||||
|
7: Save and close the text editor
|
||||||
|
8: Move *ReplayMod* up until it is **above** *LiteLoader*
|
||||||
|
9: Remove the ReplayMod jar from the mods folder if you installed it previously.
|
||||||
|
|
||||||
|
** Snippet for 1.8.9 **
|
||||||
|
`{ "formatVersion": 1, "name": "ReplayMod", "uid": "com.replaymod", "version": "1.8.9-2.4.5", "libraries": [{ "name": "com.replaymod:replaymod:1.8.9-2.4.5", "MMC-absoluteUrl": "https://minio.replaymod.com/replaymod/replaymod-1.8.9-2.4.5.jar" }]}`
|
||||||
|
|
||||||
|
** Snippet for 1.12.2 **
|
||||||
|
`{ "formatVersion": 1, "name": "ReplayMod", "uid": "com.replaymod", "version": "1.12.2-2.4.5", "libraries": [{ "name": "com.replaymod:replaymod:1.12.2-2.4.5", "MMC-absoluteUrl": "https://minio.replaymod.com/replaymod/replaymod-1.12.2-2.4.5.jar" }]}`
|
||||||
|
|
||||||
|
|||||||
BIN
docs/img/depthmapsuzanne.jpg
Normal file
|
After Width: | Height: | Size: 573 KiB |
BIN
docs/img/depthmapsuzanne.png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 299 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 181 KiB |
BIN
docs/img/multimc-addempty.jpg
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
docs/img/multimc-addempty.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
docs/img/mutlimc-liteloader.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
docs/img/mutlimc-liteloader.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 439 KiB |
BIN
docs/img/quickmode-icon.jpg
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
docs/img/quickmode-icon.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 598 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 255 KiB |
23
docs/package-lock.json
generated
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "replaymod-docs",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"array-findindex-polyfill": {
|
||||||
|
"version": "0.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/array-findindex-polyfill/-/array-findindex-polyfill-0.1.0.tgz",
|
||||||
|
"integrity": "sha1-w2JmW+x2RfItejw6rJeT9xw2Iu8="
|
||||||
|
},
|
||||||
|
"md-jml": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/md-jml/-/md-jml-2.0.1.tgz",
|
||||||
|
"integrity": "sha1-th99rTm1JPVKCmpthnMcTRLOCDo="
|
||||||
|
},
|
||||||
|
"string.prototype.endswith": {
|
||||||
|
"version": "0.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/string.prototype.endswith/-/string.prototype.endswith-0.2.0.tgz",
|
||||||
|
"integrity": "sha1-oZwg3uUamHd+mkfhDwm+OTubunU="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
gradle.properties
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
essential.defaults.loom=0
|
||||||
|
essential.defaults.loom.fabric-loader=net.fabricmc:fabric-loader:0.18.5
|
||||||
|
|
||||||
|
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
|
||||||
|
# This is required to provide enough memory for the Minecraft decompilation process.
|
||||||
|
org.gradle.jvmargs=-Xmx8G
|
||||||
|
org.gradle.parallel=true
|
||||||
|
org.gradle.configureondemand=true
|
||||||
|
|
||||||
|
loom.ignoreDependencyLoomVersionValidation=true
|
||||||
@@ -1,483 +0,0 @@
|
|||||||
0ab7e4217b2702316adceabd4c1dfca0250dbe33c22e08c98b433939207edfc0 /com/cloudbees/cloudbees-oss-parent/1/cloudbees-oss-parent-1.pom
|
|
||||||
e6509db2167c983d254d3530c66a060443e91a6ca38df9fdc4ef2a88ad813fa5 /com/cloudbees/diff4j/1.1/diff4j-1.1.jar
|
|
||||||
a09a4ac520f9ec5ccd16195272fd8ed4c667285f9e129da5acf633bb21a7d174 /com/cloudbees/diff4j/1.1/diff4j-1.1.pom
|
|
||||||
754184022345800c2d066eceeaf2f7a88a7c2aaeae23eb1c76ef598854aa9157 /com/fasterxml/jackson/core/jackson-core/2.1.3/jackson-core-2.1.3.jar
|
|
||||||
cc3bfcc34a29c041e7cafc05ed6f0c3ebf8a7dcf812489a64f4c37f4f5279adf /com/fasterxml/jackson/core/jackson-core/2.1.3/jackson-core-2.1.3.pom
|
|
||||||
a30a3f89fbbea23deb5290e832eb0d12a8171ae8ba4461af2b936ed0245ee697 /com/fasterxml/oss-parent/4/oss-parent-4.pom
|
|
||||||
4cad4ee2f1c379fa1f6496912fe026d8a4f2febf0a140ff867206b00a22f988f /com/github/abrarsyed/jastyle/jAstyle/1.3/jAstyle-1.3.jar
|
|
||||||
cd62bdfd946618c26b49451084361edf79cd6ddb3eae1a485ecb05319295896d /com/github/abrarsyed/jastyle/jAstyle/1.3/jAstyle-1.3.pom
|
|
||||||
33b3d79f3e27d33c46411ab7b7d81f43f12756e18c8936063f18b1a950a5f84b /com/github/jengelman/gradle/plugins/shadow/1.2.3/shadow-1.2.3.jar
|
|
||||||
f00facfc855e7d5517fc57553614b4690e61df9ab44f6e93ff583ae201b5a3aa /com/github/jengelman/gradle/plugins/shadow/1.2.3/shadow-1.2.3.pom
|
|
||||||
27fc3b7f0436f532c9d798dbc006d7e0b9b7c9b436f8d977f122665c633e9892 /com/github/johni0702/gradle-ecj-plugin/795736c/gradle-ecj-plugin-795736c.jar
|
|
||||||
f98b3e07c6b6a32dd6f9f70f5cef4ac9be42a9a6c850ceb8f33767da94706635 /com/github/johni0702/gradle-ecj-plugin/795736c/gradle-ecj-plugin-795736c.pom
|
|
||||||
11f4032947acc6ef1be538031cb0ea4d2fdfd50d97a0391af27bff3274a239f2 /com/github/johni0702/gradle-reproducible-builds-plugin/a524ada/gradle-reproducible-builds-plugin-a524ada.jar
|
|
||||||
03e3dff7f9b3ac6cd3b87684fd36a2f6996a4b164a2f8fab9c22c01cb7bfb84b /com/github/johni0702/gradle-reproducible-builds-plugin/a524ada/gradle-reproducible-builds-plugin-a524ada.pom
|
|
||||||
75ccc0e24d37ed5b8916e1bcffad1e067c2b1cfa21b635287f968db5c3c1963a /com/github/jponge/lzma-java/1.3/lzma-java-1.3.jar
|
|
||||||
fbcba81b21a8bc3c0761e4798fa05285444b43d681c03c9af49f9b2e1ecb0184 /com/github/jponge/lzma-java/1.3/lzma-java-1.3.pom
|
|
||||||
c9f435c3c429ee1f13e664614a27baf1d2ae308f4830fbc37fd66c639a877a6f /com/github/replaymod/ReplayStudio/9605121/ReplayStudio-9605121.jar
|
|
||||||
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 /com/github/replaymod/ReplayStudio/9605121/ReplayStudio-9605121.pom
|
|
||||||
c6ebd74cd6108b8c372c95b842725ee5bd6d3303ba26cb00f18bc92f80b47956 /com/github/tony19/named-regexp/0.2.3/named-regexp-0.2.3.jar
|
|
||||||
7cdd89a892927998beab59398ef073232588f6e83e411cf4f0905833bf300487 /com/github/tony19/named-regexp/0.2.3/named-regexp-0.2.3.pom
|
|
||||||
47c625c83a8cf97b8bbdff2acde923ff8fd3174e62aabcfc5d1b86692594ffba /com/google/api-client/google-api-client/1.22.0/google-api-client-1.22.0.jar
|
|
||||||
83175461277124a08d23d9df647912771276fed44ce60ff03847b51c98bf7459 /com/google/api-client/google-api-client/1.22.0/google-api-client-1.22.0.pom
|
|
||||||
d68647ba10cfa33e0b6e538c704723229932795d5ee495288cec46a6156c5891 /com/google/api-client/google-api-client-gson/1.20.0/google-api-client-gson-1.20.0.jar
|
|
||||||
383d5b31bfa2b5599de972dfc3d77750b8015c9496f66c591d92ca778a23dd4e /com/google/api-client/google-api-client-gson/1.20.0/google-api-client-gson-1.20.0.pom
|
|
||||||
df4f423f33f467d248e51deb555404771f7bc41430b2d4d1e49966c79c0b207b /com/google/api-client/google-api-client-java6/1.20.0/google-api-client-java6-1.20.0.jar
|
|
||||||
766995ae6c9240e1c77a68b3347706506ecde95aa8196ddd4ed567ce8df8cceb /com/google/api-client/google-api-client-java6/1.20.0/google-api-client-java6-1.20.0.pom
|
|
||||||
d8e9ec26a01cc19c530ab781cc71185acb9f9d576716e3d585a1d4f12f2089c8 /com/google/api-client/google-api-client-parent/1.20.0/google-api-client-parent-1.20.0.pom
|
|
||||||
2bc283b1247550e6e8401d97dc7f1ac2d5b17382b9984df011d9a3564fe632ae /com/google/api-client/google-api-client-parent/1.22.0/google-api-client-parent-1.22.0.pom
|
|
||||||
88debb16c533600c3b0290a088f2de3b3a8318ff86ebe0bdbcefeab0a0eafb9e /com/google/apis/google-api-services-youtube/v3-rev178-1.22.0/google-api-services-youtube-v3-rev178-1.22.0.jar
|
|
||||||
4dad29307c34e923ebb6d29e2c265850a0f0b691c7a63384279aa8353eae28b9 /com/google/apis/google-api-services-youtube/v3-rev178-1.22.0/google-api-services-youtube-v3-rev178-1.22.0.pom
|
|
||||||
905721a0eea90a81534abb7ee6ef4ea2e5e645fa1def0a5cd88402df1b46c9ed /com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
|
|
||||||
feab9191311c3d7aeef2b66d6064afc80d3d1d52d980fb07ae43c78c987ba93a /com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom
|
|
||||||
c885ce34249682bc0236b4a7d56efcc12048e6135a5baf7a9cde8ad8cda13fcd /com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar
|
|
||||||
4170a761dc5bfd3981a8e6f7aab9e2acdce82d34fd5aa9bb11e3c090d25314ce /com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.pom
|
|
||||||
8cc1f0813a186079f82d300a43156bdf852a88008f4f1a1fa71e788fb3b9a86d /com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
|
|
||||||
7d131d6a082a33363bdfbf55d2fee2219d9bc8d1c455cc3f7c6403cf2a4496a5 /com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.pom
|
|
||||||
35c94198255e95f6f11501eb4b3d43a5276bfdd142ab7c904722e69bff51f69e /com/google/code/gson/gson/2.1/gson-2.1.jar
|
|
||||||
894da89d477e805389c9df1d6fa8bd552285aed56a399d5749213520a7c74054 /com/google/code/gson/gson/2.1/gson-2.1.pom
|
|
||||||
c0328cd07ca9e363a5acd00c1cf4afe8cf554bd6d373834981ba05cebec687fb /com/google/code/gson/gson/2.2.4/gson-2.2.4.jar
|
|
||||||
ae984d5d19894ce6dc4689866eaa12f8fc31409113e60ee3b44853b8ac4fd380 /com/google/code/gson/gson/2.2.4/gson-2.2.4.pom
|
|
||||||
4838f4f29a027522363cef1bcda1b48808880b0de4953fab6db4121ee27b649b /com/googlecode/jarjar/jarjar/1.1/jarjar-1.1.jar
|
|
||||||
be4f53c0bc04da4e3d6c65c8f3243d1ea4135e35c7d7dda88af1c582687263d7 /com/googlecode/jarjar/jarjar/1.1/jarjar-1.1.pom
|
|
||||||
ddbbf392f8e61f770a509a49aed5f32ead19768283b4b512c626e09e1ba5cc46 /com/googlecode/mp4parser/isoparser/1.1.7/isoparser-1.1.7.jar
|
|
||||||
6890ebacb23d3ab51a5751a830f5269b7e8fdd19d08b7e055bc739f62b4bd174 /com/googlecode/mp4parser/isoparser/1.1.7/isoparser-1.1.7.pom
|
|
||||||
8c36a80ea613d0b6b8040a17cf837c5bbe3677bc1b06a058a6c174fdb787ebbc /com/google/guava/guava/17.0/guava-17.0.jar
|
|
||||||
2a0d16010d3825c732aeab1d25f181074945063d8f76c28004e7d423d66cb75b /com/google/guava/guava/17.0/guava-17.0.pom
|
|
||||||
d664fbfc03d2e5ce9cab2a44fb01f1d0bf9dfebeccc1a473b1f9ea31f79f6f99 /com/google/guava/guava/18.0/guava-18.0.jar
|
|
||||||
e743d61d76f76b5dc060d6f7914fdd41c4418b3529062556920116a716719836 /com/google/guava/guava/18.0/guava-18.0.pom
|
|
||||||
58d4cc2e05ebb012bbac568b032f75623be1cb6fb096f3c60c72a86f7f057de4 /com/google/guava/guava/19.0/guava-19.0.jar
|
|
||||||
addc064da7f1077fdf4dc90e5aaa887cd790850d1b74fe2e6e25d5f78551ac63 /com/google/guava/guava/19.0/guava-19.0.pom
|
|
||||||
59bf456547b6dda3ced968cb56f7f2d3e14474e2de2960a32c47e31c1e456c61 /com/google/guava/guava-jdk5/17.0/guava-jdk5-17.0.jar
|
|
||||||
f8c152627813d45bc4e7cc17ad6ed6a649a0231ae819ffb8e05d19b205a3db66 /com/google/guava/guava-jdk5/17.0/guava-jdk5-17.0.pom
|
|
||||||
9fba53585551d3c775179de859760a73c4beab407dfde16b551a09a87b50532a /com/google/guava/guava-parent/17.0/guava-parent-17.0.pom
|
|
||||||
a4accc8895e757f6a33f087e4fd0b661c5638ffe5e0728f298efe7d80551b166 /com/google/guava/guava-parent/18.0/guava-parent-18.0.pom
|
|
||||||
3b76ff43ecdf10f74da36e4aae2b470c9d063e053c5ca026f5512ae94f1c3e10 /com/google/guava/guava-parent/19.0/guava-parent-19.0.pom
|
|
||||||
5a9606bc27632956b3c11df887e9b3e785854068aaa4e0808ed5660f60b1fb6f /com/google/guava/guava-parent-jdk5/17.0/guava-parent-jdk5-17.0.pom
|
|
||||||
f744c79f198e53deea4cd311f9135a568ab67052804d80fd3d60b0385644cf65 /com/google/http-client/google-http-client/1.20.0/google-http-client-1.20.0.pom
|
|
||||||
f88ffa329ac52fb4f2ff0eb877ef7318423ac9b791a107f886ed5c7a00e77e11 /com/google/http-client/google-http-client/1.22.0/google-http-client-1.22.0.jar
|
|
||||||
30e7611df40360bdc24325caaa2f7888e847680f2e64e579c28c87a53e5bb422 /com/google/http-client/google-http-client/1.22.0/google-http-client-1.22.0.pom
|
|
||||||
cc144c70d40acf7c6e6f773ac19a2ac6e3ed9830d8e33e32421ff21a91450994 /com/google/http-client/google-http-client-gson/1.20.0/google-http-client-gson-1.20.0.jar
|
|
||||||
9b292239a52300b687940164987f0fccc1132049e774d8d90274998e58949f7c /com/google/http-client/google-http-client-gson/1.20.0/google-http-client-gson-1.20.0.pom
|
|
||||||
45b1e34b2dcef5cb496ef25a1223d19cf102b8c2ea4abf96491631b2faf4611c /com/google/http-client/google-http-client-jackson2/1.22.0/google-http-client-jackson2-1.22.0.jar
|
|
||||||
184c3aaa66f32be7bf592caab362becd10a80b15b077c3ebe9ae9fa9d387f41a /com/google/http-client/google-http-client-jackson2/1.22.0/google-http-client-jackson2-1.22.0.pom
|
|
||||||
5c592d663ac30387eb30551a20cbd401bde859095f94ec2bef8ed2a4acf7a8f1 /com/google/http-client/google-http-client-parent/1.20.0/google-http-client-parent-1.20.0.pom
|
|
||||||
3927309767100e548d1f5c20e150d75716e03a3d8a1a1b970c8a75fbddae072e /com/google/http-client/google-http-client-parent/1.22.0/google-http-client-parent-1.22.0.pom
|
|
||||||
f279a8172e7671c9dcd896850aaa6ce85e1d93e5bc0a10fd7c7a6efbf76f60db /com/google/oauth-client/google-oauth-client/1.20.0/google-oauth-client-1.20.0.pom
|
|
||||||
a4c56168b3e042105d68cf136e40e74f6e27f63ed0a948df966b332678e19022 /com/google/oauth-client/google-oauth-client/1.22.0/google-oauth-client-1.22.0.jar
|
|
||||||
52a2b2c1a4365668545134157ee7bb141c6b537caa29a4e51f3228ce0bbbeaf9 /com/google/oauth-client/google-oauth-client/1.22.0/google-oauth-client-1.22.0.pom
|
|
||||||
3149ae4fa222c7e804c5b7bc0d044702bc6bb8309b5ed94f6d350a5d4d657fc9 /com/google/oauth-client/google-oauth-client-java6/1.20.0/google-oauth-client-java6-1.20.0.jar
|
|
||||||
61233bbb437dc91504076a644ce77b1066f679d1252362d08de67d296c404cf0 /com/google/oauth-client/google-oauth-client-java6/1.20.0/google-oauth-client-java6-1.20.0.pom
|
|
||||||
daabf9d4e35d4015c2c917982463572856a5c8d7fa718e94edb2b6b114a2a8a2 /com/google/oauth-client/google-oauth-client-jetty/1.20.0/google-oauth-client-jetty-1.20.0.jar
|
|
||||||
2c594b64206b24c2ec9506769cac5c637346152c7822f0337721776c6eb092db /com/google/oauth-client/google-oauth-client-jetty/1.20.0/google-oauth-client-jetty-1.20.0.pom
|
|
||||||
374fb28a2c74f92999de4d843f788838f38fd89b570c95813513546a0e7ae3ca /com/google/oauth-client/google-oauth-client-parent/1.20.0/google-oauth-client-parent-1.20.0.pom
|
|
||||||
2e7acb933f8c1b801b78925e4d22c32040a414dc7246bfdb777d8ad78404fa66 /com/google/oauth-client/google-oauth-client-parent/1.22.0/google-oauth-client-parent-1.22.0.pom
|
|
||||||
bbc21cab2e0b0c76c9977fdf8b80c311788094d81e6910a2a6e63d80910102c7 /com/gradle/publish/plugin-publish-plugin/0.9.1/plugin-publish-plugin-0.9.1.jar
|
|
||||||
89aa507536b0a93d8c9d3087d738255eefffc002cefa255ebdbd6891b8165447 /com/gradle/publish/plugin-publish-plugin/0.9.1/plugin-publish-plugin-0.9.1.pom
|
|
||||||
147592c5eb8e11fc8394125954f877acf25918bae13aa210c2825aefc3030ed8 /com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar
|
|
||||||
06b382efe9d60474aa3df7f4851397b3ae0c4f142567f0fc66a8fa2706a665e4 /com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.pom
|
|
||||||
2c149735a093b6c65a27db760896ad5c5b06e29100bb8969937667784fef4ba0 /com/mojang/authlib/1.5.16/authlib-1.5.16.jar
|
|
||||||
d05175230d79f518b5c4664d24e3d115f5f3888e3806f3b6076cd0b4943e6ca6 /com/mojang/authlib/1.5.16/authlib-1.5.16.pom
|
|
||||||
795f783dc6301d10e356d1f3db9952d71692ed8004ffdd843f0049f813a0d1a5 /com/mojang/authlib/1.5.24/authlib-1.5.24.jar
|
|
||||||
0ff47d5e96e67c629513d5cc743a5180dc935603e5957b11ea05fe021bacd5f9 /com/mojang/authlib/1.5.24/authlib-1.5.24.pom
|
|
||||||
3120fd24c09ab9bc088cb9c1eb2065be86718608450fdbc27b5d371729a619cb /com/mojang/netty/1.6/netty-1.6.jar
|
|
||||||
568cc3fad81e5e389bad0012a07eca5db073e287200c6c9cb02caf3dc489e9f6 /com/mojang/netty/1.6/netty-1.6.pom
|
|
||||||
a74b4370bc60e368b9c29940d3b6aae334aef3f5cf16b5c2ee5d0b775ef6ea18 /com/mojang/realms/1.10.16/realms-1.10.16.jar
|
|
||||||
23c16b609458580d2f12abba28604264bfc71451374584a673bd52ad3b99c25c /com/mojang/realms/1.10.16/realms-1.10.16.pom
|
|
||||||
e7cd8951956d349b568b7ccfd4f5b2529a8c113e67c32b028f52ffda371259d9 /commons-cli/commons-cli/1.2/commons-cli-1.2.jar
|
|
||||||
18f3e92076e08c2fde48317025098e9f6baaa85f6912eb43f2d7e68d570e4561 /commons-cli/commons-cli/1.2/commons-cli-1.2.pom
|
|
||||||
1bafd2ece2e88db4cdf835a7f8f0de65fab5b1147977a5dcc59b7c1b8c6f5080 /commons-codec/commons-codec/1.3/commons-codec-1.3.jar
|
|
||||||
d157e34244e884dd91fa01921ca84372e11f7bb08fedb5d456c0670c28054636 /commons-codec/commons-codec/1.3/commons-codec-1.3.pom
|
|
||||||
54b34e941b8e1414bd3e40d736efd3481772dc26db3296f6aa45cec9f6203d86 /commons-codec/commons-codec/1.6/commons-codec-1.6.jar
|
|
||||||
a06e35d3fff3a6b813d94894ebf3e498f9540c864c5b39ae783907e3a6c72889 /commons-codec/commons-codec/1.6/commons-codec-1.6.pom
|
|
||||||
ad19d2601c3abf0b946b5c3a4113e226a8c1e3305e395b90013b78dd94a723ce /commons-codec/commons-codec/1.9/commons-codec-1.9.jar
|
|
||||||
e5efcf039cd909688c201dc5479b144fd6f01f0e40252b7fc5e7d2e1b5c07990 /commons-codec/commons-codec/1.9/commons-codec-1.9.pom
|
|
||||||
a7f713593007813bf07d19bd1df9f81c86c0719e9a0bb2ef1b98b78313fc940d /commons-io/commons-io/1.4/commons-io-1.4.jar
|
|
||||||
2dae496a19c82b8e9985a1246aa80cf98082b1ae2217cf4b2d4d5ff13a365af2 /commons-io/commons-io/1.4/commons-io-1.4.pom
|
|
||||||
cc6a41dc3eaacc9e440a6bd0d2890b20d36b4ee408fe2d67122f328bb6e01581 /commons-io/commons-io/2.4/commons-io-2.4.jar
|
|
||||||
b2b5dd46cf998fa626eb6f8a1c114f6167c8d392694164e62533e5898e9b31f2 /commons-io/commons-io/2.4/commons-io-2.4.pom
|
|
||||||
ce6f913cad1f0db3aad70186d65c5bc7ffcc9a99e3fe8e0b137312819f7c362f /commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
|
|
||||||
d0f2e16d054e8bb97add9ca26525eb2346f692809fcd2a28787da8ceb3c35ee8 /commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
|
|
||||||
70903f6fc82e9908c8da9f20443f61d90f0870a312642991fe8462a0b9391784 /commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
|
|
||||||
3250ac3ac6bd60ed0631f5cd0335032b2993d63e405a6ae0555d27a7e4865849 /commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.pom
|
|
||||||
33a4dd47bb4764e4eb3692d86386d17a0d9827f4f4bb0f70121efab6bc03ba35 /commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
|
|
||||||
69b8be61aa746c7d02acb1b11eb3b57cb22b246780ed71d79764195cbbe3d99d /commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.pom
|
|
||||||
f868fc9e23d7203834abb5e0d11782e1e8920d4e95a06735a13dd51ab8049de8 /com/mycila/maven-license-plugin/maven-license-plugin/1.10.b1/maven-license-plugin-1.10.b1.jar
|
|
||||||
9576f1134ebf1f0dae51d1e5cce46a6a6e5b5c5998cc12318ebfd16162702d8b /com/mycila/maven-license-plugin/maven-license-plugin/1.10.b1/maven-license-plugin-1.10.b1.pom
|
|
||||||
d190c18ef3caf788c84a49d6bc200be29a76c00d3ad6030bf11f7afaa4b24f88 /com/mycila/parent-pom/5/parent-pom-5.pom
|
|
||||||
870f9396789e2f48a7b8fb28dfc070c2f8e74b2007274ce23e69b658110fd294 /com/mycila/xmltool/xmltool/3.3/xmltool-3.3.jar
|
|
||||||
eb83f616945c8c7dfb4d80e6f909e7286f523bb11077802bcd216bd70e9c717a /com/mycila/xmltool/xmltool/3.3/xmltool-3.3.pom
|
|
||||||
a661dfcb749053fc26eada2a0a8e619a8ead1ca9eda29e1698687aa2cdd80152 /com/nothome/javaxdelta/2.0.1/javaxdelta-2.0.1.jar
|
|
||||||
93bbe8babc70e175d406ac689b90e689f4915c6e39e738eb6406fa5b529ce36c /com/nothome/javaxdelta/2.0.1/javaxdelta-2.0.1.pom
|
|
||||||
6c4b4e50e608763564afa1bde2d25ece9dd715e7c9129540faa1faded4896506 /com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar
|
|
||||||
d246a119ba41e3c866bf728fb6e98277bd3f8695130056039dbbfd000cc3ff6b /com/paulscode/codecjorbis/20101023/codecjorbis-20101023.pom
|
|
||||||
bb7d17b340afe6abdfbfdaa03683bce4aef39a64887dbab0636eaff3cf2d59ba /com/paulscode/codecwav/20101023/codecwav-20101023.jar
|
|
||||||
5f95932d9b4b254b890d9105f2d3917bc60ceaf77ae1bc75a79c6b20662e596d /com/paulscode/codecwav/20101023/codecwav-20101023.pom
|
|
||||||
333bbefeff5eb1722dc9b8d2e26c38bc69c1efa07d0ca870480f29d8858aa336 /com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar
|
|
||||||
ce4a18bc8e94f155421f6b3d0b9bb6939c9ca206df85e5c10587e66e34310c44 /com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.pom
|
|
||||||
107d11509f6af59b8c2ba23df828bc5d3c4e067b58f3d858c7deb90ca5308f84 /com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar
|
|
||||||
ff88b9584f5ba98863f24fc3f6014854c7a176fe7017813a6d023e722ce05aee /com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.pom
|
|
||||||
2882d64550240dd0c026724da664d9f97ef205c91d6a85273d10790d88608f34 /com/paulscode/soundsystem/20120107/soundsystem-20120107.jar
|
|
||||||
c1a2438a4d35f8586c71d96c44a7e2f133ec924597147a246f8c501acca6acb5 /com/paulscode/soundsystem/20120107/soundsystem-20120107.pom
|
|
||||||
4ccbc821a417f0174c9734fc721f078177cacef94ded09c3775ebf40c6a7bdfd /com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar
|
|
||||||
9f9920b48ae5f1045fe966f08164d6b4e0a727cf17f8e4813ae5c0f2daecffbc /com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.pom
|
|
||||||
c160fbd78f51a0c2375a794e435ce2112524a6871f64d0331895e9e26ee8b9ee /com/typesafe/config/1.2.1/config-1.2.1.jar
|
|
||||||
62361ef10448869fff8c05150bd0449b423e3ff4498f2a4bab825b3c7685aa3c /com/typesafe/config/1.2.1/config-1.2.1.pom
|
|
||||||
be95745a7052c11e232fe1b307e5e75444d8408b4d4127c32660e07fea338511 /de/oceanlabs/mcp/mcp/1.11.2/mcp-1.11.2-srg.zip
|
|
||||||
755416d68281e0c6998fc743929f36e14563510467d1c749d4bf66ba5bf82b19 /de/oceanlabs/mcp/mcp_snapshot/20161220-1.11/mcp_snapshot-20161220-1.11.zip
|
|
||||||
22c45060f350fcaa94e503f4a420cf8237c26c0fcdb4ada4aa98389b75c7b231 /de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.jar
|
|
||||||
d6f165bb39aaa20ee14fdcbbdb0b8fffae38067087f333ec6e0acd3f6666b2ad /de/oceanlabs/mcp/RetroGuard/3.6.6/RetroGuard-3.6.6.pom
|
|
||||||
* /de/oceanlabs/mcp/versions.json
|
|
||||||
50510e9c9874b539b98ef931fe7eeeb002f6b5b1976ea37669b9493426294561 /io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar
|
|
||||||
990a10af14db6b136d3a539eadca5dc7b4d0ceab9a1c90c5268b0ca8ae27b14b /io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.pom
|
|
||||||
f7f1bd6f1e1df0b300730f1551b7222f13871e40ba5a464978bd3eed94e2212d /io/netty/netty-parent/4.0.23.Final/netty-parent-4.0.23.Final.pom
|
|
||||||
b4533f3b4029e480288d85187fc9ee6789f3d362c6633d8e9b092ec455ad2f28 /it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.jar
|
|
||||||
2b3db089f1f78a49a628d9015cca6a95e87421fa04262553cd2c4c79d66d04a7 /it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.pom
|
|
||||||
09adf7955baa6bddf57a4bdbf9a91cf690261314969b59a18085ece1e05eccf9 /java3d/vecmath/1.5.2/vecmath-1.5.2.jar
|
|
||||||
a4aee4668f1b127c95c9afe1b922f4c5a0b1ad879ba811077cb7d0e048dce231 /java3d/vecmath/1.5.2/vecmath-1.5.2.pom
|
|
||||||
a6d2c9c0ddff7702662073b69c6dc4ec83011d22e4eb2dada28aa2d66ee47f97 /jline/jline/2.13/jline-2.13.jar
|
|
||||||
ba62d78eb858e241a604cdf739594cd312f0572756ea7aba4544c746d7152c43 /jline/jline/2.13/jline-2.13.pom
|
|
||||||
90a8e1603eeca48e7e879f3afbc9560715322985f39a274f6f6070b43f9d06fe /junit/junit/4.11/junit-4.11.jar
|
|
||||||
18ad8b0ae9e65a9195d04e25427dfe8b58175abcdae875a5a406aee38bddfb26 /junit/junit/4.11/junit-4.11.pom
|
|
||||||
dc67378cf428c06408e7959e83bdc1518dd22ccd313e7c28a986612d65c276c7 /log4j/log4j/1.2.12/log4j-1.2.12.jar
|
|
||||||
cb54dedc5d8c4510148dfa792701cbac1a84c383a84f48f5a32e6d7e460bbb72 /log4j/log4j/1.2.12/log4j-1.2.12.pom
|
|
||||||
0c3085cb93c3ef95d731c274b6f2dd195aa0405fe9328d69cab7f5e899d5e124 /lzma/lzma/0.0.1/lzma-0.0.1.jar
|
|
||||||
a096bc9f7579cec07483874151578720eeb3189c546c19cff56a6203df17b50e /lzma/lzma/0.0.1/lzma-0.0.1.pom
|
|
||||||
* /mc/game/version_manifest.json
|
|
||||||
be3fff4f2cc005a1310a96389efdeb983d2bcb4b8e747c402acd616ae73d0ba2 /mc/game/1.11.2/client/db5aa600f0b0bf508aaf579509b345c4e34087be/client.jar
|
|
||||||
dec47d36b429fd05076b90b1f42c2a25138bc39204aa51b9674ef2a98d64d88a /mc/game/1.11.2/server/f00c294a1576e03fddcac777c3cf4c7d404c4ba4/server.jar
|
|
||||||
fc6387a60a18b8d649590324a4d16ea489eea7a10e5633a4ae406f73ac868505 /mc/game/12f260fc1976f6dd688a211f1a906f956344abdd/1.11.2.json
|
|
||||||
3bff6a1489b8e54cf130344bc5e8744db331045ad2fc736612576e1d80eb1f48 /net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar
|
|
||||||
cf4605822bd56d135dd7031603f122a11a0ec772373f466a4f2aac72dd9a1761 /net/java/dev/jna/jna/3.4.0/jna-3.4.0.pom
|
|
||||||
ea89d5090c8303ba4e9a0056e6d8a20429f3e021411e950bfd9eba3b6e6cf15c /net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar
|
|
||||||
8f0c14f62912c089d81386015e78cf212f9e96f675b3bc0e519c1e2d92aa8950 /net/java/dev/jna/platform/3.4.0/platform-3.4.0.pom
|
|
||||||
79b5a4f5829e1a49a415711f7fb8eb5b9ad22defa72929fda2da96ec30d3f018 /net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar
|
|
||||||
3199d547c1275e806e0c7be19e90dcb00d9561ec3b31fb2e780e12d7d8785810 /net/java/jinput/jinput/2.0.5/jinput-2.0.5.pom
|
|
||||||
1ab4d194277816b6105253d224c8c69f1b6d720690efe7c85f3ce884f0ea273d /net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar
|
|
||||||
171024b00f9a743b92388b48733dc30fd3f6d3a7da4f66f9821531fbcf1aa074 /net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar
|
|
||||||
24afbd5e1fab17da57d16a4d3f19d53f36155ef46a9976484201a4bb9722287f /net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar
|
|
||||||
ba27597365ae85a836c1f51819903668b4a1a7490e39e530633cc8a7b40b5500 /net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5.pom
|
|
||||||
c3334ff39cf0ab3b54925619101054c90098b7c733b1e7834c7b75e4c41e84a5 /net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar
|
|
||||||
af09ead4eb241473e7ec4d152a91a722ea09a717a202e20e4b385eac3217b7d6 /net/java/jutils/jutils/1.0.0/jutils-1.0.0.pom
|
|
||||||
b47c5d5810643426a3147ddb2195ef2ab67c80b167e7c2ac64a5d0dee8c030dd /net/md-5/SpecialSource/1.7.4/SpecialSource-1.7.4.jar
|
|
||||||
5f374f8ae7afff8dbc23aff14e59c5bd585c230afe9a8dcaa7b928e8cb16a27e /net/md-5/SpecialSource/1.7.4/SpecialSource-1.7.4.pom
|
|
||||||
* /net/minecraftforge/forge/json
|
|
||||||
b55cbfab15e7258d6d1640f655d5fcaf0e28222c81120b9d9be6b7853db34ccc /net/minecraftforge/forge/1.11.2-13.20.0.2216/forge-1.11.2-13.20.0.2216.pom
|
|
||||||
43734366d24d801abecd5b2dee8bfbb120d81622d0614838ef07e7f602beea27 /net/minecraftforge/forge/1.11.2-13.20.0.2216/forge-1.11.2-13.20.0.2216-userdev.jar
|
|
||||||
e74b65b8948446982a506a96176dd8baf4688237ba4903f56ca6f667b6c7ee42 /net/minecraft/launchwrapper/1.11/launchwrapper-1.11.jar
|
|
||||||
616c4971035d1e6ab4809e16daabb02aa308c1dc001c06dd547c7d3b2e916999 /net/minecraft/launchwrapper/1.11/launchwrapper-1.11.pom
|
|
||||||
57f402b626d16cc2705bf2a37add7adbb074f0ca3b3102fa6e23aa303dae682f /net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar
|
|
||||||
5f1fced192c1dc9b68ef7dec12ba7a033129a71b290c283046a59aa2902e1fbc /net/minecraft/launchwrapper/1.12/launchwrapper-1.12.pom
|
|
||||||
64335a48be6b142a7d0c13ec5c82a707857aa58c0234e6eda3eaca0e96eea51b /net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar
|
|
||||||
60f08a3d6fc0e7948fd00fc95fad014fae5a5dc7eb991a631e0efee8bfad0b27 /net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.pom
|
|
||||||
3fcfbe3203c2ea521bf7640484fd35d6303186ea2e08e72f032d640ca067ffda /net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar
|
|
||||||
692744a19473011539ebc1370a264b8af1c056e0ae21f5372aa9dd7d4b4e5a2b /net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.pom
|
|
||||||
9f0c8d50fa4b79b6ff1502dbec8502179d6b9497cacbe17a13074001aed537ec /net/sf/jopt-simple/jopt-simple/5.0.1/jopt-simple-5.0.1.jar
|
|
||||||
606e9b1d8e448a8f454b7eb585320b392e80f68880e92bef98cdf9dab8714340 /net/sf/jopt-simple/jopt-simple/5.0.1/jopt-simple-5.0.1.pom
|
|
||||||
dc0ba5bff6140dc92339973026a0ecbddc2a3b01bdd46ed9d16becc2f6d78de6 /net/sf/opencsv/opencsv/2.3/opencsv-2.3.jar
|
|
||||||
57f5607565d6a90dee6722801d4524813d9d2785046f2954a18861dfbf4a2149 /net/sf/opencsv/opencsv/2.3/opencsv-2.3.pom
|
|
||||||
294fb88c272598b9a5dcae15f13d228e64134256de941fbc28917a994beeb075 /net/sf/trove4j/trove4j/2.1.0/trove4j-2.1.0.jar
|
|
||||||
6d486c048a84c90ad9239b7b06a7d686d43eda28f827fac08d4f4ea942d21d0a /net/sf/trove4j/trove4j/2.1.0/trove4j-2.1.0.pom
|
|
||||||
3c8616203d61a12a7e3487e8b34f3c198c2b5ba9e90da0c7ea32d99cd4958012 /net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar
|
|
||||||
11327b94615d0bf16d4e17334902de783c2022f5e909d51fbce993a7a9d7e1d8 /net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.pom
|
|
||||||
3b93b62c0ea3ab9b5c1c1cdb1a3f25a7eb758f9974e8998f4e1815ba33cb7a1e /nl/javadude/gradle/plugins/license-gradle-plugin/0.11.0/license-gradle-plugin-0.11.0.jar
|
|
||||||
afded103d53d00171f486ab23c35151d8b82b32e51390c30ae734e83de863c52 /nl/javadude/gradle/plugins/license-gradle-plugin/0.11.0/license-gradle-plugin-0.11.0.pom
|
|
||||||
4ead9d3e3f305a4ed26fd732e6f0df0be2524e2daf2681df1b001fbb8efc9735 /oauth/signpost/oauth-signpost/1.2.1.2/oauth-signpost-1.2.1.2.pom
|
|
||||||
e26198c1bb8e3cde5f6e85305d0c4ef7730c53406c0d2a1f36ce30661df9fc22 /oauth/signpost/signpost-commonshttp4/1.2.1.2/signpost-commonshttp4-1.2.1.2.jar
|
|
||||||
5d3ef59d3820f64a6dd09b9ad7a083bbe24a9f97ce01ad412238877594e34e56 /oauth/signpost/signpost-commonshttp4/1.2.1.2/signpost-commonshttp4-1.2.1.2.pom
|
|
||||||
a1d69c5346ebf086b0f63c382b4500ceb29304d8fe95157b060aa4cd3861f230 /oauth/signpost/signpost-core/1.2.1.2/signpost-core-1.2.1.2.jar
|
|
||||||
f3c6788ccec4e1818b3f02d32fe8b5ab9caac52b0962e98466d980710c47298c /oauth/signpost/signpost-core/1.2.1.2/signpost-core-1.2.1.2.pom
|
|
||||||
649ae0730251de07b8913f49286d46bba7b92d47c5f332610aa426c4f02161d8 /org/apache/ant/ant/1.9.4/ant-1.9.4.jar
|
|
||||||
5ce23a18f28d04be351f863020da0136214218aface05560516b97555a5077fd /org/apache/ant/ant/1.9.4/ant-1.9.4.pom
|
|
||||||
7bccea20b41801ca17bcbc909a78c835d0f443f12d639c77bd6ae3d05861608d /org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4.jar
|
|
||||||
c9193ed600adc6c7943a6c6dc6bd952edcb5f10fb2cda594b7199766fdeef698 /org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4.pom
|
|
||||||
a93aa9c66665872b0e51360c15ae282971e36a8aa987b40ef4d82d9a5aa151c4 /org/apache/ant/ant-parent/1.9.4/ant-parent-1.9.4.pom
|
|
||||||
802feece72852dafcbd0a425a60367c72c5cb9b6ea5aae59481128569189daf9 /org/apache/apache/10/apache-10.pom
|
|
||||||
ff513db0361fd41237bef4784968bc15aae478d4ec0a9496f811072ccaf3841d /org/apache/apache/13/apache-13.pom
|
|
||||||
36c2f2f979ac67b450c0cb480e4e9baf6b40f3a681f22ba9692287d1139ad494 /org/apache/apache/15/apache-15.pom
|
|
||||||
9e9323a26ba8eb2394efef0c96d31b70df570808630dc147cab1e73541cc5194 /org/apache/apache/4/apache-4.pom
|
|
||||||
4946e60a547c8eda69f3bc23c5b6f0dadcf8469ea49b1d1da7de34aecfcf18dd /org/apache/apache/9/apache-9.pom
|
|
||||||
93f8dfcd20831a28d092427723f696bceb70b28e7fb89d7914f14d5ea492ce5a /org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.jar
|
|
||||||
f23d3625d35b016f3e8b77fb3ebf5e543807081fce2492f45a79d00160789a78 /org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.pom
|
|
||||||
5fca136503f86ecc6cb61fbd17b137d59e56b45c7a5494e6b8fd3cabd4697fbd /org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
|
|
||||||
10137adb14e8520b2abcddc308003e432eb836c4d1f9a00f68601d63583b9fb8 /org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom
|
|
||||||
cb49812dc1bfb0ea4f20f398bcae1a88c6406e213e67f7524fb10d4f8ad9347b /org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar
|
|
||||||
82827f6019c0f71bd74fba886ab337ff6da291f63df9723379a209d6ad3b44f8 /org/apache/commons/commons-exec/1.3/commons-exec-1.3.pom
|
|
||||||
6b81d10754dadf184d386011486e6509c2cc0c3d33565ced4fb4402b9413d47d /org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
|
|
||||||
e1875bf575999ebc62dec34304a0d108c30a4ff8101e8ea5c9a9332715277940 /org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.pom
|
|
||||||
b9e0306f393460105b8a3fa5105250c5291b1efaa99954ace0ec1c783109a02a /org/apache/commons/commons-parent/11/commons-parent-11.pom
|
|
||||||
fb8c5e55e30a7addb4ff210858a0e8d2494ed6757bbe19012da99d51586c3cbb /org/apache/commons/commons-parent/22/commons-parent-22.pom
|
|
||||||
467ae650442e876867379094e7518dfdd67d22c5352ebd39808c84259e9790ba /org/apache/commons/commons-parent/25/commons-parent-25.pom
|
|
||||||
14733a68e8b120b69de60cd96d222146dcf32f03c1c6cc6a750b1269bafe86c7 /org/apache/commons/commons-parent/28/commons-parent-28.pom
|
|
||||||
e4d258af8b2ff4032148d415379def7870789a6003e80576f1504b10f26b4be8 /org/apache/commons/commons-parent/32/commons-parent-32.pom
|
|
||||||
53d0011352e2e5106f379dafccdac7754ec6f0f78243c0305e4969f5acddf8fb /org/apache/commons/commons-parent/33/commons-parent-33.pom
|
|
||||||
7098a1ab8336ecd4c9dc21cbbcac869f82c66f64b8ac4f7988d41b4fcb44e49a /org/apache/commons/commons-parent/35/commons-parent-35.pom
|
|
||||||
8bd632c00bdf80a7de36c22b60f12452c147d8eca2f00d79d66699ebe7daa02a /org/apache/commons/commons-parent/5/commons-parent-5.pom
|
|
||||||
01e97067a1f9bd0e0a34f2f32bbf43fe6e9b11910f3b0dfe77fd7fb418619105 /org/apache/commons/commons-parent/7/commons-parent-7.pom
|
|
||||||
752596ebdc7c9ae5d9a655de3bb06d078734679a9de23321dbf284ee44563c03 /org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar
|
|
||||||
51b8c025a4a1700d861d17bc2332f2b5045a81bad5d55291d9b652bb782151b2 /org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.pom
|
|
||||||
9d0e815461efc8fc9aa5de4dda9ae29d076430b2e93e268a31d7a47cc00a31cf /org/apache/httpcomponents/httpclient/4.2.2/httpclient-4.2.2.jar
|
|
||||||
2ee7f81822a156a897b10a934b2158fa44d574dc20488f2fb9eb4d058673cbe7 /org/apache/httpcomponents/httpclient/4.2.2/httpclient-4.2.2.pom
|
|
||||||
9844cc9b5440d65a88d28bcba9d771374d2dfdab898848cda164611091633013 /org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar
|
|
||||||
03f7d67d6547083a38413c0da921d194a6010236f8980c7585c0c8f3019c0aa8 /org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.pom
|
|
||||||
1a5cfc674477ce7fd1150e8ea841f18301da1a4bfc729a029e072e81f3f36515 /org/apache/httpcomponents/httpcomponents-client/4.0.1/httpcomponents-client-4.0.1.pom
|
|
||||||
aecd5527c274ea6ed63da7f71b69c6a61a64784ff6c7266e0d94fcbf391027e2 /org/apache/httpcomponents/httpcomponents-client/4.2.2/httpcomponents-client-4.2.2.pom
|
|
||||||
15c27734dbcedc6af2cf18fa72a8c6e248477144a3d936a0fc228aaa74a02b00 /org/apache/httpcomponents/httpcomponents-client/4.3.3/httpcomponents-client-4.3.3.pom
|
|
||||||
70d3b2bb5d199da825681559ff68aa5bdee201206c50af177bf7ca4d94226752 /org/apache/httpcomponents/httpcomponents-core/4.0.1/httpcomponents-core-4.0.1.pom
|
|
||||||
ad4346d6375faa11a4d8cb45130acc86fb7ede86451194066da0559e41d5789e /org/apache/httpcomponents/httpcomponents-core/4.2.2/httpcomponents-core-4.2.2.pom
|
|
||||||
aa3ec31c7dd2161cfe3a3975645ea8703db0a6d6adb7d5b1766b32764c5c1806 /org/apache/httpcomponents/httpcomponents-core/4.3.2/httpcomponents-core-4.3.2.pom
|
|
||||||
3b6bf92affa85d4169a91547ce3c7093ed993b41ad2df80469fc768ad01e6b6b /org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
|
|
||||||
d1f666e38907c9471c64a3cdf87e0b1b0469d503e51cc14661860f7f6bd70c6e /org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.pom
|
|
||||||
c32bbf016f1eec0581febb177c761c2f657d9635d110affdd8c63382425e50f0 /org/apache/httpcomponents/httpcore/4.2.2/httpcore-4.2.2.jar
|
|
||||||
c1695c0b0c3d7be7f02f558b56763b0024ecaae6b9f981e2e145c05e9fea0972 /org/apache/httpcomponents/httpcore/4.2.2/httpcore-4.2.2.pom
|
|
||||||
abd02320e2356f89d054dae4cf02306bef20a9cf7865b3ac94ec7552b4f1528b /org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
|
|
||||||
dfe5335f45b9466af820368b95c543d7542fcfcbe5f5d379e91cf0432e2df489 /org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.pom
|
|
||||||
61434dbb2314cbb8d28025feb6ae53bbc45d1042daa34371d8911e1e7f570b36 /org/apache/httpcomponents/httpmime/4.3.3/httpmime-4.3.3.jar
|
|
||||||
30e52abf8461a7ab254f20ec2c28e01865721ad9fbdb3baf14f32251623a1f87 /org/apache/httpcomponents/httpmime/4.3.3/httpmime-4.3.3.pom
|
|
||||||
a35e70c72865add3f9416194e02d6f9967dbf0c77d253933f80fbf46ad4d2169 /org/apache/httpcomponents/project/4.0/project-4.0.pom
|
|
||||||
b5d9225adb8683c1d7c5514544382add004547c93694abb5bd52b87346886f42 /org/apache/httpcomponents/project/6/project-6.pom
|
|
||||||
3d6eba428555a558de046b5d76eacc1f5a54b4f5f20b84d636ed7aff18aa48c3 /org/apache/httpcomponents/project/7/project-7.pom
|
|
||||||
9ab50a08565c7c01082266d2464b7656e2448e40788375ff5c034da17042cc24 /org/apache/logging/log4j/log4j/2.0-beta9/log4j-2.0-beta9.pom
|
|
||||||
eb0ca9bdd938f80711152a758d6bc331a8b0d769199d457294dc67ed03f73498 /org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar
|
|
||||||
4e10aac66cfabc8a16f0045bca650e082a190caca85d1c28376a71b9b918b40d /org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.pom
|
|
||||||
dcde6033b205433d6e9855c93740f798951fa3a3f252035a768d9f356fde806d /org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar
|
|
||||||
f360def8ad0c62f5420a9b2ef8d6a51f87703e05c1df08494578a1d4024b05ad /org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.pom
|
|
||||||
4d223e01a6569d6655c1f4fce84969d45142cdbabdb118ea08c5c8c33ec632f6 /org/apache/maven/maven/3.0.4/maven-3.0.4.pom
|
|
||||||
4c2f8341518aeb9d488844e334c02fa66dd4bb091bfdeb965c8a848ac6ea5aa2 /org/apache/maven/maven/3.0-alpha-2/maven-3.0-alpha-2.pom
|
|
||||||
33ff4aabbd0d02e4dd8279cda8f366c69915302bc4bb97bc01814a985f5c0643 /org/apache/maven/maven-aether-provider/3.0.4/maven-aether-provider-3.0.4.jar
|
|
||||||
a5082fe0a870bd361b3ecd6ab3e4641cfe775a8da19d80d8b2e277e7861f831b /org/apache/maven/maven-aether-provider/3.0.4/maven-aether-provider-3.0.4.pom
|
|
||||||
3c199a96af9550872724f41c053d7839dfcc6512e7704fa16c675363c4146796 /org/apache/maven/maven-artifact/3.0.4/maven-artifact-3.0.4.jar
|
|
||||||
e39722dcdf98a6a245db3e0f54d0d4a5555c8c9361e3efbfed3a7be1158b9c6c /org/apache/maven/maven-artifact/3.0.4/maven-artifact-3.0.4.pom
|
|
||||||
85500348730f338599e5f454be4a9909a6d01e86effc1ed0650a71e544bc67d5 /org/apache/maven/maven-compat/3.0-alpha-2/maven-compat-3.0-alpha-2.jar
|
|
||||||
4196effcccdbe4ef8dc625e5dd8e13284971dd884dc80109cb1f44d76dd0d7e7 /org/apache/maven/maven-compat/3.0-alpha-2/maven-compat-3.0-alpha-2.pom
|
|
||||||
3dd795c0ad9742a0be65a2a5ec22428d59dd2a891a7565ae94f64661e3740528 /org/apache/maven/maven-core/3.0.4/maven-core-3.0.4.jar
|
|
||||||
61d1fc83ce71c4af6a5061d0c4884b0cad5a9bd4ef12bce0a628ece6db13a9a7 /org/apache/maven/maven-core/3.0.4/maven-core-3.0.4.pom
|
|
||||||
26b6825ea73ac4d7b1a6f5e62ac1c11b0fc272504da6dde9ba8f894cd847e1c1 /org/apache/maven/maven-model/3.0.4/maven-model-3.0.4.jar
|
|
||||||
264be3f212d59f9103d3b997c9d0197ff89489d06b7d195d80ee56356b6c662e /org/apache/maven/maven-model/3.0.4/maven-model-3.0.4.pom
|
|
||||||
b4f1d3ae53c290e1ae45694c5ce2d17bf8d577ff5ece0f9aa0cffe151a6ef4e7 /org/apache/maven/maven-model-builder/3.0.4/maven-model-builder-3.0.4.jar
|
|
||||||
ac605e66a84dd9ee63610d650b007e3c8fbb7feef73e94bdd899e60dd475a20f /org/apache/maven/maven-model-builder/3.0.4/maven-model-builder-3.0.4.pom
|
|
||||||
81fe14cb9779d36e0c610e1049e5b32a6b9974957f257921acf628b31c5486c8 /org/apache/maven/maven-parent/10/maven-parent-10.pom
|
|
||||||
fc45af8911ea307d1b57564eef1f78b69801e9c11a5619e7eb58d5d00ae9db8e /org/apache/maven/maven-parent/21/maven-parent-21.pom
|
|
||||||
3cb6712f827c80dc6b0b0b967776dba451c023a92b7741bba45d23ab7a83281a /org/apache/maven/maven-parent/8/maven-parent-8.pom
|
|
||||||
4e5ee7f7ab7e43f691788489e59f2da4a322e3e35f2a2d8b714ad929f624eead /org/apache/maven/maven-plugin-api/3.0.4/maven-plugin-api-3.0.4.jar
|
|
||||||
bd928e987661ac90495ca7cdcd5d2fd20cbed97fb9565e30d8425aadae26ee90 /org/apache/maven/maven-plugin-api/3.0.4/maven-plugin-api-3.0.4.pom
|
|
||||||
0b76d82011452170dddd21fb33da6bfc414ff6629fce6219fbf1d78ce1518e90 /org/apache/maven/maven-project/3.0-alpha-2/maven-project-3.0-alpha-2.jar
|
|
||||||
24477230086e456dff22c24dec30aab0a8ae321a2ce5645a85a8516f7dd829e3 /org/apache/maven/maven-project/3.0-alpha-2/maven-project-3.0-alpha-2.pom
|
|
||||||
f3905cb8c223c33f6121bc937b66a2f58653be766042fb6e924b9882c555d891 /org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
|
|
||||||
392f9bcc7eb6d9ab85b693cda0c3ba698fc770d32843491c8815b87f40fe02a8 /org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.pom
|
|
||||||
a25c4db27cffda9e9229db168b1190d6a3e5439f3f67d6afec3df9470e0752d5 /org/apache/maven/maven-repository-metadata/3.0.4/maven-repository-metadata-3.0.4.jar
|
|
||||||
5fe2b1d87fd326c1a22aac3869da7935ad31760d978fdff9a073c3fbfd54e18d /org/apache/maven/maven-repository-metadata/3.0.4/maven-repository-metadata-3.0.4.pom
|
|
||||||
3e3df17f5df5e4ce1e7b7f2011c57d61d328e65678542ade2048f0d0fa295f09 /org/apache/maven/maven-settings/3.0.4/maven-settings-3.0.4.jar
|
|
||||||
beedffd7c7e49ad35ef945c3413f1819f04e43ea294a31804714c8cbb0f372b3 /org/apache/maven/maven-settings/3.0.4/maven-settings-3.0.4.pom
|
|
||||||
a38a54ec1e69a30ddfc14434e0aec2764fc268668abcc0e132d86692a5dce3e4 /org/apache/maven/maven-settings-builder/3.0.4/maven-settings-builder-3.0.4.jar
|
|
||||||
3e0b3f60267b6070a741b15db5b40fbd824c61db12a1f4f166ed658b9f62ece0 /org/apache/maven/maven-settings-builder/3.0.4/maven-settings-builder-3.0.4.pom
|
|
||||||
6c35daab503ff462f4f63317ae723bd37cae37460ea3576374a347583e7c4327 /org/apache/maven/wagon/wagon/1.0-beta-4/wagon-1.0-beta-4.pom
|
|
||||||
6a82569576cda4cae793800ed2985202de8a59e414d2140e217cf077709e7bbb /org/apache/maven/wagon/wagon-provider-api/1.0-beta-4/wagon-provider-api-1.0-beta-4.jar
|
|
||||||
1739331652c6e93dd3305a9c5b33f493c85782171e9e8a3e0c750b030dabadd1 /org/apache/maven/wagon/wagon-provider-api/1.0-beta-4/wagon-provider-api-1.0-beta-4.pom
|
|
||||||
56ab9c6c2d022a9b7079006ba500a996cd2c21411d53cac524933af20c5a4b99 /org/apache/xbean/xbean/3.4/xbean-3.4.pom
|
|
||||||
17e0efa187127034623197fb88c50c30d3baa62baa0f07d6ec693047ac92ec3b /org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
|
|
||||||
01c97d4286dd3b5e5441faac3abb589f1fe123cea138bb4ae0995ffae14938df /org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.pom
|
|
||||||
c7964f00c3d3889c5223e8fcb7476610c59453c86bccc68ef493a56d171bf655 /org/aspectj/aspectjrt/1.8.2/aspectjrt-1.8.2.jar
|
|
||||||
ba5261a1f07260c3d8016623fdd27d662b9934266a75d4f57f165bfbaf9af1a8 /org/aspectj/aspectjrt/1.8.2/aspectjrt-1.8.2.pom
|
|
||||||
f07694998acb204782c72cc8067b237a04097a2170f07d440614883f14a67630 /org/codehaus/groovy/groovy-backports-compat23/2.4.4/groovy-backports-compat23-2.4.4.jar
|
|
||||||
2f93f476d35dd52828e13f32a4be68ab80a3b999713079feb98c67ae9e8d858f /org/codehaus/groovy/groovy-backports-compat23/2.4.4/groovy-backports-compat23-2.4.4.pom
|
|
||||||
e246e2a062b5d989fdefc521c9c56431ba5554ff8d2344edee9218a34a546a33 /org/codehaus/plexus/plexus/2.0.2/plexus-2.0.2.pom
|
|
||||||
2b59062030ab0a15c5d0977ba22421706368926488739a65f25793e715cc8a74 /org/codehaus/plexus/plexus/2.0.7/plexus-2.0.7.pom
|
|
||||||
259d528a29722cab6349d7e7d432e3fd4877c087ffcb04985a6612e97023bba8 /org/codehaus/plexus/plexus-classworlds/2.4/plexus-classworlds-2.4.jar
|
|
||||||
c0439c2b2d850488686143e2529f521b38f2abded6ac212add8f0c637eb912e9 /org/codehaus/plexus/plexus-classworlds/2.4/plexus-classworlds-2.4.pom
|
|
||||||
4df7a6a7be64b35bbccf60b5c115697f9ea3421d22674ae67135dde375fcca1f /org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
|
|
||||||
815f3ec316b8c5fa701385fdf4009bfb51e07d780e8f6a6e2afe720c52d7e292 /org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.pom
|
|
||||||
ef5dbc7fa918b6dbba71d27e5b3d7a00df624bcfa2549a7297f36fe275f634d7 /org/codehaus/plexus/plexus-components/1.1.18/plexus-components-1.1.18.pom
|
|
||||||
00aa0be06a029e4b45032f682089d5052b014c028f9187f83c70adc073672c46 /org/codehaus/plexus/plexus-container-default/1.0-beta-3.0.5/plexus-container-default-1.0-beta-3.0.5.jar
|
|
||||||
3d90bbd9f534020621c77453dcffdad4e761e42911c2be9adaeec724f9972a9c /org/codehaus/plexus/plexus-container-default/1.0-beta-3.0.5/plexus-container-default-1.0-beta-3.0.5.pom
|
|
||||||
f53a82db260a2910a9823d6e72a927891daae33d8eb6884ab838a2a2768c6b86 /org/codehaus/plexus/plexus-containers/1.0-beta-3.0.5/plexus-containers-1.0-beta-3.0.5.pom
|
|
||||||
1bc264824ec876b0ca6f4f5838175c541c638cbc43326a268b9aee7d4778b5ef /org/codehaus/plexus/plexus-containers/1.5.5/plexus-containers-1.5.5.pom
|
|
||||||
7fc63378d3e84663619b9bedace9f9fe78b276c2be3c62ca2245449294c84176 /org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
|
|
||||||
d08155c497df37b2c3d9b5b0dfdb02ec0525b2070b5be3739fffde942fcac9af /org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.pom
|
|
||||||
8b909f4ca9788647942f883d4e559bcc642123f7c6bcd3846983a2e465469c33 /org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar
|
|
||||||
fddad4fa62c82310aec43525e519cd59f27d04c7569fe21b1b03ca210887810c /org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.pom
|
|
||||||
35608df55aa672a195d6b01573a5630a315998b3bbd06310b20eb169113923aa /org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar
|
|
||||||
9f4ac6987113d09099bf43b846d2ec1d5e7a8091a6185f1f16d68e845f681243 /org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.pom
|
|
||||||
03cbe8dcaa909a6f72219abec105675c6df08898971c326cf7e64373bff5e769 /org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
|
|
||||||
784db534cc3c5051f88198e8251da9c8b13625e0eb365a347e1085387d8203b1 /org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.pom
|
|
||||||
e4144cbc26da195c6b22a53691fd079f70b74aa5f55bd6089cd77ec99a0ee8fe /org/eclipse/core/contenttype/3.4.200-v20130326-1255/contenttype-3.4.200-v20130326-1255.pom
|
|
||||||
4dd6ec1376693bd8ac4e2ceacc7be70880920978f3fef31db4968e6ade001c87 /org/eclipse/core/contenttype/3.4.200-v20140207-1251/contenttype-3.4.200-v20140207-1251.jar
|
|
||||||
f82370a400c38f78f479df4e79c6e1563e4ec050049279601ca01d85186456a7 /org/eclipse/core/contenttype/3.4.200-v20140207-1251/contenttype-3.4.200-v20140207-1251.pom
|
|
||||||
52d8987073cf765e620afc7f44e3934a8e854d56c8feca25f6ffb9163871c53f /org/eclipse/core/contenttype/maven-metadata.xml
|
|
||||||
4a73a4a0ebf5ca5f7e9d5e8978b24cd72ebacd5b561de961517f4c976aa7e30f /org/eclipse/core/expressions/3.3.0-v20070606-0010/expressions-3.3.0-v20070606-0010.jar
|
|
||||||
fa0d8eb0460cf3d5a7201e9af86431f66473726b9883e461b579056d0f3725e8 /org/eclipse/core/expressions/3.3.0-v20070606-0010/expressions-3.3.0-v20070606-0010.pom
|
|
||||||
582a5012b8525775059ee59d931179f79bff4bebf41bdab4060341b25742c77a /org/eclipse/core/expressions/maven-metadata.xml
|
|
||||||
b418d15acf94545248f4bd55b4a9b62fc49246488758729d6b3ff52ae149df24 /org/eclipse/core/filesystem/1.1.0-v20070606/filesystem-1.1.0-v20070606.jar
|
|
||||||
08f7bd3493e934a6cfe6b30941661bfb7c61ac72181b9d72f6745c03f20cae0a /org/eclipse/core/filesystem/1.1.0-v20070606/filesystem-1.1.0-v20070606.pom
|
|
||||||
0fb7079593f1e2544828c9a56db2710ea223655eee911ae5fb69e2f6d49b36eb /org/eclipse/core/filesystem/maven-metadata.xml
|
|
||||||
b52babdb3c1e073175ac0be84cbc41764b0cd5e89ca0dd2ebe29cc3f8d40aa86 /org/eclipse/core/jobs/3.5.300-v20130429-1813/jobs-3.5.300-v20130429-1813.pom
|
|
||||||
ef971ecb154fba0cc06d913448640fb2e5ab3f9079c1c7854385d1c30d81a94f /org/eclipse/core/jobs/3.6.0-v20140424-0053/jobs-3.6.0-v20140424-0053.jar
|
|
||||||
851e8123acc70a823fe38f1ad5f95f953c815f8da2cceaa483dfa5604d3ecc38 /org/eclipse/core/jobs/3.6.0-v20140424-0053/jobs-3.6.0-v20140424-0053.pom
|
|
||||||
753ba9e22869180b1e959860d76a5a2bf9e1a2aa398375a138daa518313efce3 /org/eclipse/core/jobs/maven-metadata.xml
|
|
||||||
e46a6444a6d7c0fe70f196ce42d9700c4514b68bf55bae296b2e3c287883ffdc /org/eclipse/core/org.eclipse.core.commands/3.6.0/org.eclipse.core.commands-3.6.0.jar
|
|
||||||
49eccab170e7e1c6aa598f49019fc8310a3da4c87a3e2b9e463825f6e2ba086f /org/eclipse/core/org.eclipse.core.commands/3.6.0/org.eclipse.core.commands-3.6.0.pom
|
|
||||||
73f9a1a2403f7f9c44d11431c40be4641295f3620570bfef2168a66c5de68fee /org/eclipse/core/resources/3.2.1-R32x_v20060914/resources-3.2.1-R32x_v20060914.jar
|
|
||||||
592accd91b5c786a4fe082176cabe07034f7603981e4d723ebe39b6d7f620672 /org/eclipse/core/resources/3.2.1-R32x_v20060914/resources-3.2.1-R32x_v20060914.pom
|
|
||||||
363ad8af4d8fc7f208b6fa640e490c7ba84b2aa78c26809e569bb1b0737ce9cb /org/eclipse/core/runtime/3.10.0-v20140318-2214/runtime-3.10.0-v20140318-2214.jar
|
|
||||||
ef7f45930ccd7b088b0cab1c932a145c494a2672f48e4244e20a1be06d2d30f3 /org/eclipse/core/runtime/3.10.0-v20140318-2214/runtime-3.10.0-v20140318-2214.pom
|
|
||||||
9fa94682175edfa5ec863f636087d2875aab106b09507199d914988b60edd522 /org/eclipse/core/runtime/3.9.0-v20130326-1255/runtime-3.9.0-v20130326-1255.pom
|
|
||||||
ddf19054374a2617ba9c10d7a5ec8eeaeb8f62c2c6e430144e81da15718bb585 /org/eclipse/core/runtime/compatibility/3.1.200-v20070502/compatibility-3.1.200-v20070502.jar
|
|
||||||
6b3a348064b85a050a1b8f7bd96edd081e8152f7269141308c5f5f4fcc444362 /org/eclipse/core/runtime/compatibility/3.1.200-v20070502/compatibility-3.1.200-v20070502.pom
|
|
||||||
7d95f541e873e42a0c068dc0f38e819a32f0f386c5ea1ae745ef649a40acb628 /org/eclipse/core/runtime/compatibility/maven-metadata.xml
|
|
||||||
6bddb60e50592d8f7c9b616624b9b4413accfaf8480d320f7cab8638a46a0515 /org/eclipse/core/runtime/maven-metadata.xml
|
|
||||||
7b2ad6c43d922f3ba0d18d99879d1d56d6a994ba7b639d5d6276f1a167b6a7ac /org/eclipse/equinox/app/1.3.200-v20130910-1609/app-1.3.200-v20130910-1609.jar
|
|
||||||
17dbfaba6a138e6fc0eb361069470f00aaf70a94e2d3384f398dee4843eb8fe7 /org/eclipse/equinox/app/1.3.200-v20130910-1609/app-1.3.200-v20130910-1609.pom
|
|
||||||
83a2cde9ed188efcabebbd2db14128c531c5ba73f8abc599dcae83459a779109 /org/eclipse/equinox/app/maven-metadata.xml
|
|
||||||
6bc086aab7686a5a528d8c4ab2253d6cec7ead04b052576951e90cc561782257 /org/eclipse/equinox/common/3.6.200-v20130402-1505/common-3.6.200-v20130402-1505.jar
|
|
||||||
9234dbfd064411a849444abfeb8a10978672690d125beb4194f9e5b0f0a7ee5e /org/eclipse/equinox/common/3.6.200-v20130402-1505/common-3.6.200-v20130402-1505.pom
|
|
||||||
9274fc22b74d6dc42608049ea51aa046b8fc8fc60b2a7d6ff6d884d76e6ef3f6 /org/eclipse/equinox/common/maven-metadata.xml
|
|
||||||
32b046de57df2f4887fc5a2c343740d9d12c7fe17541e2cede73cfa4ccbc2436 /org/eclipse/equinox/org.eclipse.equinox.common/3.6.0/org.eclipse.equinox.common-3.6.0.jar
|
|
||||||
84f171f4c3ded1b29880003b3c42e8e5be780a11f19d6b7d1b6d0125b4a198d8 /org/eclipse/equinox/org.eclipse.equinox.common/3.6.0/org.eclipse.equinox.common-3.6.0.pom
|
|
||||||
dbaa0e5c2a44c3b314086fba9b6d91fd4a374032ccffc82373d3614bd9d385ea /org/eclipse/equinox/preferences/3.5.100-v20130422-1538/preferences-3.5.100-v20130422-1538.pom
|
|
||||||
6498d32ab6503b49a44e0a0bfe1c2ac28ffb7e8f88acbdb4dda89d73092d8ca7 /org/eclipse/equinox/preferences/3.5.200-v20140224-1527/preferences-3.5.200-v20140224-1527.jar
|
|
||||||
d68a303f399eeef919b681c43885481c46bf3cfe39f4ede369f7433087bbe14c /org/eclipse/equinox/preferences/3.5.200-v20140224-1527/preferences-3.5.200-v20140224-1527.pom
|
|
||||||
70a4c81e2def4d69b44dbc680dc0dce29f274f1dff22b98d1f1f34a0fb28514d /org/eclipse/equinox/preferences/maven-metadata.xml
|
|
||||||
a6833a81795978d4ad8d2e54597171e2a3447fd6983b8e902710aa1dc946fa24 /org/eclipse/equinox/registry/3.5.400-v20140428-1507/registry-3.5.400-v20140428-1507.jar
|
|
||||||
cb7c954965e6b2946c2f7be78c1e089b530e0444b1fefc2d8079a5681362bfa1 /org/eclipse/equinox/registry/3.5.400-v20140428-1507/registry-3.5.400-v20140428-1507.pom
|
|
||||||
d7cd093fdad45c7cc979f44f7166f259607b41cf44a8afe77561594cef4c39d3 /org/eclipse/equinox/registry/maven-metadata.xml
|
|
||||||
9cddda75f4a1b4469e73f44e7b61a3e897d0f657df4797f9106ffe88c4eeade0 /org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.jar
|
|
||||||
536c45e8804de01321c478cfb994377f81f1e32897636616fa21b877fd137c6f /org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.pom
|
|
||||||
2082ffb0bb8f276ca164a6363e394f902163a81b7df44ede13aed33d84fdf27e /org/eclipse/jdt/org.eclipse.jdt.core/3.12.0.v20160315-2126/org.eclipse.jdt.core-3.12.0.v20160315-2126.jar
|
|
||||||
ec467beffac7ffa86b5687a0935b8d3540e8795c9bc0c0d326a1c24cb9be7fe8 /org/eclipse/jdt/org.eclipse.jdt.core/3.12.0.v20160315-2126/org.eclipse.jdt.core-3.12.0.v20160315-2126.pom
|
|
||||||
d6aba7a1569952e082630de6907f460f476c20d97032cb9f7e4f3e14ddb928e7 /org/eclipse/jetty/jetty-parent/14/jetty-parent-14.pom
|
|
||||||
fa1d59411d4d2667d8f15638af7c0ac44539234c0982c27a2b65ba06c32a0b3e /org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.jar
|
|
||||||
1e10819cdb1fe55d44ac94d37f3b1030275199979a73d04b7b53e2d6000d5d2e /org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.pom
|
|
||||||
bddf4d130cb65fdfc1df7df1febde313fc2ff1ac83c8574ff97befd6c515cc30 /org/eclipse/osgi/3.9.1-v20130814-1242/osgi-3.9.1-v20130814-1242.pom
|
|
||||||
9fbddba8d8cd6322229030a26356ba447421562edebba078267490104ff61d83 /org/eclipse/osgi/maven-metadata.xml
|
|
||||||
1bacf311ac3d39cc53b03f8de7a4ccffc89c208938f0004a90c652383e927f18 /org/eclipse/text/org.eclipse.text/3.5.101/org.eclipse.text-3.5.101.jar
|
|
||||||
86545f7161948937a1e632b6bd493008c67c855966acfb7ddd4e710cd7a121ab /org/eclipse/text/org.eclipse.text/3.5.101/org.eclipse.text-3.5.101.pom
|
|
||||||
88b506fa09a810b19517a2d45cb8f5eaa76c22b18abfbdcf36cd07aebfd56cb0 /org/eclipse/update/configurator/3.2.100-v20070615/configurator-3.2.100-v20070615.jar
|
|
||||||
4645380254baefd0056e15cc9af6a273fb7d014b8be4ff395a5a61bfe8f4a89c /org/eclipse/update/configurator/3.2.100-v20070615/configurator-3.2.100-v20070615.pom
|
|
||||||
3c731988480eae3024b27d648aa0408a1cdc065fc523cf41a049fb97148fd30a /org/eclipse/update/configurator/maven-metadata.xml
|
|
||||||
b1f003f28c3ce1753ea0da22a6f0289197a2c369e7056b32e170af7904eff2c1 /org/fusesource/fusesource-pom/1.8/fusesource-pom-1.8.pom
|
|
||||||
9e82163ed2fc6257fe627132ce554726e796edee4e5efe9d9e523aee217d60b8 /org/fusesource/jansi/jansi/1.11/jansi-1.11.jar
|
|
||||||
b0975adc7450698033f3de4792dd6eba72a980c2b56d8e8d36d381385b37a5c9 /org/fusesource/jansi/jansi/1.11/jansi-1.11.pom
|
|
||||||
8ba9c49b55f979cf4e04d4871092eb50e834b388fca03a2274ccadff12cc9ce8 /org/fusesource/jansi/jansi-project/1.11/jansi-project-1.11.pom
|
|
||||||
66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9 /org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
|
|
||||||
fde386a7905173a1b103de6ab820727584b50d0e32282e2797787c20a64ffa93 /org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.pom
|
|
||||||
6d535f94efb663bdb682c9f27a50335394688009642ba7a9677504bc1be4129b /org/hamcrest/hamcrest-parent/1.3/hamcrest-parent-1.3.pom
|
|
||||||
32ed093f39c46a8d99f801240069478eac93b35f07351c001f2cef4330e97b4a /org/jdom/jdom2/2.0.5/jdom2-2.0.5.jar
|
|
||||||
ebac276b5ad62e9d312fb6ce663d55fdebaba9badc918166e7d60b1ffd1bd475 /org/jdom/jdom2/2.0.5/jdom2-2.0.5.pom
|
|
||||||
212f6eaa0491dd7359dc33c3a72e82a23b096e1890d984b4d92395abc9a6bf7f /org/jvnet/localizer/localizer/1.12/localizer-1.12.jar
|
|
||||||
313b5700337e773a68eeab64ec6952c61b5e7a51839d46bcf77376887fe92f02 /org/jvnet/localizer/localizer/1.12/localizer-1.12.pom
|
|
||||||
e21488c2fe8db4b23a00c3cfdeab3b600e84c1647e08fb7bee442f5fc1f83990 /org/jvnet/localizer/localizer-parent/1.12/localizer-parent-1.12.pom
|
|
||||||
c118f8d84313980f79e1e7f7ae4b14b10c2f20c77ea4a1c29f6f0b02bc139077 /org/lwjgl/lwjgl/lwjgl/2.9.1/lwjgl-2.9.1.jar
|
|
||||||
1adb09c3cf35e0f55d5ecd91e4364100364d8a8031cdfa64ae61eaa64f0d79d4 /org/lwjgl/lwjgl/lwjgl/2.9.1/lwjgl-2.9.1.pom
|
|
||||||
833e721817f70d1445eec13d8ce5a86e12af70efac5014356302e2bbc68b3fe2 /org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar
|
|
||||||
65fb24fa8ee4a7efc554b15cfb447753c39e414ff00e9944d347e6f1176f0438 /org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.pom
|
|
||||||
a50aaa5a89304c23a9257295cbe803e6130526a4dfaea1784076adbacacfd68e /org/lwjgl/lwjgl/lwjgl-platform/2.9.1/lwjgl-platform-2.9.1-natives-linux.jar
|
|
||||||
e14afffd87719ba12034dd989d40a75540902a6286629fab1330b51c255ab792 /org/lwjgl/lwjgl/lwjgl-platform/2.9.1/lwjgl-platform-2.9.1-natives-osx.jar
|
|
||||||
ade8deedceb0b60c630f3e78a7b052b7f8f02ff53d91849d1985d3146bf95590 /org/lwjgl/lwjgl/lwjgl-platform/2.9.1/lwjgl-platform-2.9.1-natives-windows.jar
|
|
||||||
82eb11d59b06700b9ff3db4e0476de1cf86501ba7cd00bb279f40a7c23ad662b /org/lwjgl/lwjgl/lwjgl-platform/2.9.1/lwjgl-platform-2.9.1.pom
|
|
||||||
d312147c3999b868fd649887f45203a4195bc10fc563cee4c4f8d22761421f94 /org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar
|
|
||||||
8831b2bd5a53dc343fd6fbed3c18f28ab33d3f28dbe62ebd4a3af81f25c0a5ab /org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar
|
|
||||||
f2e1f2c6bd7511a7504f389b8b716f5d8dc2fdc71e29c89b52644314cf0a228e /org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-windows.jar
|
|
||||||
11eeed66c2d56892f3e2046121438153e516dd95d368bcf93c0714f9f2bfdd6f /org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209.pom
|
|
||||||
034456b132a336b72757325bb7aaf99e075681ee5650d2bea21717bd485de42f /org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar
|
|
||||||
cb7239de51893ee5abe90c2bc550422cb336140c0866e9d1c899399eeb8a3ba2 /org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.pom
|
|
||||||
9cf1643b0d805db942498cebf941d1c43df0a1322137291c258aec6109200858 /org/lwjgl/lwjgl/parent/2.9.1/parent-2.9.1.pom
|
|
||||||
9b3282d2065e070f5966c8b324bc8ffaa4a3d53c7d39ef7e0a3458b525bc167e /org/lwjgl/lwjgl/parent/2.9.4-nightly-20150209/parent-2.9.4-nightly-20150209.pom
|
|
||||||
21091d3a9c1349f640fdc421504a604c040ed89087ecc12afbe32353326ed4e5 /org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar
|
|
||||||
8169c421acc4931f9eb80b818b13a4553a8582e02d08dfc12a51e4f23b2726c6 /org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.pom
|
|
||||||
b24e31635c0e6c401ff84e28905b96d1a760144c15f1deae1a22d5b3356e1667 /org/mortbay/jetty/jetty-parent/10/jetty-parent-10.pom
|
|
||||||
0173d8dbfed2b8ab2a5b36b608a9c509ea0a3fbb4faca67ce7067680c895066a /org/mortbay/jetty/jetty-parent/7/jetty-parent-7.pom
|
|
||||||
9b974ce2b99f48254b76126337dc45b21226f383aaed616f59780adaf167c047 /org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar
|
|
||||||
1e3c13f07407a4b331e229da6bb782ae734f88b6a26a3fbeb165acabc5f6ef24 /org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.pom
|
|
||||||
a3d6e7608155600a73c763ccac74e6b321f8c23dc4747f90635fc2f7cfc1548a /org/mortbay/jetty/project/6.1.26/project-6.1.26.pom
|
|
||||||
068756096996fe00f604ac3b6672d6f663dc777ea4a83056e240d0456e77e472 /org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar
|
|
||||||
2d705bf03b0b653b0ba3a260b8fe94833e1266bb1e7eb9efc67821555141c9ee /org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.pom
|
|
||||||
71c4f78e437b8fdcd9cc0dfd2abea8c089eb677005a6a5cff320206cc52b46cc /org/ow2/asm/asm/5.0.3/asm-5.0.3.jar
|
|
||||||
7d34653ffe62be7714d2f1969660a17df9ec1b19d8250c4f03db1123c82ba6a0 /org/ow2/asm/asm/5.0.3/asm-5.0.3.pom
|
|
||||||
18c1e092230233c9d29e46f21943d769bdb48130cc279e4b0e663f423948c2da /org/ow2/asm/asm-commons/5.0.3/asm-commons-5.0.3.jar
|
|
||||||
e87ea4823ecf2dd856901da359270be904236be59c27e2781eb8d78c97e45b2a /org/ow2/asm/asm-commons/5.0.3/asm-commons-5.0.3.pom
|
|
||||||
2969356ac1e40fe4141948c563690238f5d79d76aec7fd873536867a331ede81 /org/ow2/asm/asm-debug-all/5.0.3/asm-debug-all-5.0.3.jar
|
|
||||||
9c99d7a555725bc2f8379977935cdba16d687d9c93b6e0725e196180d490c995 /org/ow2/asm/asm-debug-all/5.0.3/asm-debug-all-5.0.3.pom
|
|
||||||
2341a72bba5e38c1028a332c11607e1706c13fa600fee6fb546b9a1708418097 /org/ow2/asm/asm-debug-all/5.0.4/asm-debug-all-5.0.4.jar
|
|
||||||
62efbf37e5068a8708541ae0a4da3d1140f4d711d30e4366445cb96ce13cc79e /org/ow2/asm/asm-debug-all/5.0.4/asm-debug-all-5.0.4.pom
|
|
||||||
f7ac3f642c36c406543bb56ae3db3a53f263f71bd857b04709986e2d5798c8c4 /org/ow2/asm/asm-debug-all/5.1/asm-debug-all-5.1.jar
|
|
||||||
0a46e33f6b80bd21ac41eec33fca2e43d79253fb46a32d64ba3867ee22451fff /org/ow2/asm/asm-debug-all/5.1/asm-debug-all-5.1.pom
|
|
||||||
254b82bec9da4f8efbc8b1f93ab2b87f7465227a82b36cf3d05d9e77a0e8dd2e /org/ow2/asm/asm-debug-all/5.2/asm-debug-all-5.2.jar
|
|
||||||
491f13bd60757a7cfe76e767766b061d557010394f52cec2fb067707de702caa /org/ow2/asm/asm-debug-all/5.2/asm-debug-all-5.2.pom
|
|
||||||
b4845405fee9fe4f5f665dfe19badcf32581e3eea51b99a45e9f76a0a830c09d /org/ow2/asm/asm-debug-all/5.2/asm-debug-all-5.2-sources.jar
|
|
||||||
c2edabf4128a534df4b8b4b0b9b562e94f242ba95ac24dc61485432b8a188e32 /org/ow2/asm/asm-parent/5.0.3/asm-parent-5.0.3.pom
|
|
||||||
fdf05b9df226573b331a7e5df01135e527dcc07c71626445732bd04379aa4a72 /org/ow2/asm/asm-parent/5.0.4/asm-parent-5.0.4.pom
|
|
||||||
85ec8258fafc283f61647e6a11b404890821c11db6fcf550779ecf7a14151007 /org/ow2/asm/asm-parent/5.1/asm-parent-5.1.pom
|
|
||||||
cbfacd5dd812db16dc910994007fe58d9402a25507f81a1c2218e15c2c1bedfa /org/ow2/asm/asm-parent/5.2/asm-parent-5.2.pom
|
|
||||||
347a7a9400f9964e87c91d3980e48eebdc8d024bc3b36f7f22189c662853a51c /org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar
|
|
||||||
65819ca7c5a218ff49f8ebe72f3b39219c81f137d017acc1aec15b1054cf5236 /org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.pom
|
|
||||||
51215c67d2c068d8b7d2f6f80f51372a098075deccc448d4bdd7b987ba8328fb /org/ow2/ow2/1.3/ow2-1.3.pom
|
|
||||||
3ca225ce3917eac8bf4b7d2186845df4e70dcdede356dca8537b6d78a535c91e /org/projectlombok/lombok/1.16.4/lombok-1.16.4.jar
|
|
||||||
fcb8d5745f776567f1cce332282750b1653568324621ecef03288c8a25919d0e /org/projectlombok/lombok/1.16.4/lombok-1.16.4.pom
|
|
||||||
e0a471be03e1e6b02bf019480cec7a3ac9801702bf7bf62f15d077ad4df8dd5d /org/projectlombok/lombok/1.16.6/lombok-1.16.6.jar
|
|
||||||
32ac0a2363ccc0c5086b62cfc05e28a355b74e155efef6b426f5498a0dfc9e4c /org/projectlombok/lombok/1.16.6/lombok-1.16.6.pom
|
|
||||||
19495ce701fd9ba3c499c137e3ad5364acee8f87a01ef99e912f995a23fd4cb1 /org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar
|
|
||||||
4da632931d9182b1033ddc01a240a18ce9d5704534f52faa515d43119fa6d49f /org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.pom
|
|
||||||
4a7c757d4d87dd37382bd777ad611b5875748aef148277cf25bb39eebb496d07 /org/scala-lang/modules/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar
|
|
||||||
5201b071fbf92d388940ec1d12cba89baec25dc7b402b1e26110e1f4261b0f2b /org/scala-lang/modules/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.pom
|
|
||||||
13c0d8d442bde14b73af3ed60e8d53452f9e1ad62ffbe3d944cb918df652db6f /org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar
|
|
||||||
44b8a07ac6ae1cbc11bba1c03eb90bcf4a707c562eb51e9d56028914a99ab112 /org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.pom
|
|
||||||
8dd0a4941f4564117cc991734ca36aa53dff6bb0be329f39eab46d8819f60d1a /org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar
|
|
||||||
e8e084c66182fbb88dae252a0c3dba24f8735609d8264feaed1be69915724e85 /org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.pom
|
|
||||||
79329971a31ede7b6823f21a6ab765506b4093d9276debdc9dbe17b996884f2b /org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar
|
|
||||||
d6b98448db39957d4a5ab49d1d9355889c1b7ef1e4e371e77889da1f66f59c60 /org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.pom
|
|
||||||
fa33c031c291ef618e33398aa193ddf4d4c6859d805c9fb3cd4b7c4fbc9acbc6 /org/scala-lang/scala-actors/2.11.0/scala-actors-2.11.0.jar
|
|
||||||
42665fa39eeb8960adb74dd51fdb239c34e45eacd4b74dc88074d518b7ecfc26 /org/scala-lang/scala-actors/2.11.0/scala-actors-2.11.0.pom
|
|
||||||
b89d0beb76df20c7b2c2bee59ba53b802cc48566bc3e89ac96ce6361c5c2ee38 /org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar
|
|
||||||
cd1a673205be12880e73c9c11234d809a901c024a256f4f4c7ae59b0a7aecc75 /org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.pom
|
|
||||||
3aa616f5c56d2052fc5e3231f3e8cf1736f876caff0142a66096fc5b4dc87ae5 /org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar
|
|
||||||
abe89207b0bfcbcf164c820cbba2c962ab5e9f3a0d0f37d81bde4f6c293a874b /org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.pom
|
|
||||||
088bcb80f71b6e6a2a31d2fe7288c1fd64f19663ce281b924cdfab3fb105f4f3 /org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar
|
|
||||||
3268a48dc36c664e7f4bd5d88b366bf098a13f7b6e8b87611e3a4413b72860d4 /org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.pom
|
|
||||||
41938d1e89670979dd783102777a8b879999f4fb00a5b811b51c105b02a9d4f8 /org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar
|
|
||||||
8b58df7e9e5f2f4f7d2f0dc24353f356abe965337e48504cec36a344e6294757 /org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.pom
|
|
||||||
719fe091fd3fe4c6a7b8f69c8714935138b85a2b6145068a1ccfdb57d2e500d1 /org/sonatype/aether/aether/1.13.1/aether-1.13.1.pom
|
|
||||||
ae8dc80232771f8913febfa410c5719e9ba8ded81fb99788e214fd676dbbe13f /org/sonatype/aether/aether-api/1.13.1/aether-api-1.13.1.jar
|
|
||||||
9a58a1ddbbbe5b635674a958ac9d95d4ffaba7a40b9f800cde2cdf4986c3ef2a /org/sonatype/aether/aether-api/1.13.1/aether-api-1.13.1.pom
|
|
||||||
865511994805827e88f327944a089142bb7f3d88cde271ba3dceb732cb137a93 /org/sonatype/aether/aether-impl/1.13.1/aether-impl-1.13.1.jar
|
|
||||||
5d85a54716b6c6fc043895b129c3c76a2b9ca922c3bd79158ef08b7960aaf330 /org/sonatype/aether/aether-impl/1.13.1/aether-impl-1.13.1.pom
|
|
||||||
d5de4e299be5a79feb1dbe8ff3814034c6e44314b4c00b92ffa8d97576ded5b3 /org/sonatype/aether/aether-spi/1.13.1/aether-spi-1.13.1.jar
|
|
||||||
3d0c466fe8af3983356991ca7ff01a802920e04f946675d920420e154c5edec2 /org/sonatype/aether/aether-spi/1.13.1/aether-spi-1.13.1.pom
|
|
||||||
687799a0ce988bee9e8eb9ae0ba870300adc0114248ad4a4327bdb625d27e010 /org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
|
|
||||||
abd5e7869aa58f720d8c7301004334449351ad297aeb6ba2ebabf9b38503267b /org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.pom
|
|
||||||
c14fb9c32b59cc03251f609416db7c0cff01f811edcccb4f6a865d6e7046bd0b /org/sonatype/forge/forge-parent/10/forge-parent-10.pom
|
|
||||||
03263b68791fb11e7464ffcc2c3de7eaeae235de8c94827ce6407e0454d2aae9 /org/sonatype/forge/forge-parent/3/forge-parent-3.pom
|
|
||||||
1838d132479005b4b7459b798e9d9915515090c288082fdcd86db0b10983a24c /org/sonatype/forge/forge-parent/4/forge-parent-4.pom
|
|
||||||
e56188aa8ce51278006aa90bc7e0f304a81e2f1219f462e7d21f262535cd2795 /org/sonatype/forge/forge-parent/5/forge-parent-5.pom
|
|
||||||
1678d4120a585d8a630131aeec4c524d928398583b7eab616ee7d5a87f520d3d /org/sonatype/oss/oss-parent/5/oss-parent-5.pom
|
|
||||||
b51f8867c92b6a722499557fc3a1fdea77bdf9ef574722fe90ce436a29559454 /org/sonatype/oss/oss-parent/7/oss-parent-7.pom
|
|
||||||
fb40265f982548212ff82e362e59732b2187ec6f0d80182885c14ef1f982827a /org/sonatype/oss/oss-parent/9/oss-parent-9.pom
|
|
||||||
5a15fdba22669e0fdd06e10dcce6320879e1f7398fbc910cd0677b50672a78c4 /org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
|
|
||||||
a63a2e23988cca7fac6c93886d6f0506fd26d88d7e8cc0cb89b9c6e0d6c994ad /org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.pom
|
|
||||||
3b0559bb8432f28937efe6ca193ef54a8506d0075d73fd7406b9b116c6a11063 /org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
|
|
||||||
d5e650c50ef6958c028ed024b59af04cf3d38e1453a77d542b6b484bc0f4ca0b /org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.pom
|
|
||||||
a966df5e36d54a9d9690db81c459806252b924da949a42b538eba5683d6267db /org/sonatype/sisu/inject/containers/2.3.0/containers-2.3.0.pom
|
|
||||||
cfc3507491767609fb2da36dcf32ebb0055b8bd32a2af182c021df9ecce26a76 /org/sonatype/sisu/inject/guava-parent/0.9.9/guava-parent-0.9.9.pom
|
|
||||||
852f10c4ba2210c29f75d330dc81f406ab8db5cb46430c5ba4082f9c13df180d /org/sonatype/sisu/inject/guice-bean/2.3.0/guice-bean-2.3.0.pom
|
|
||||||
6c1be769d69337f1a8cc2d7e756f94b8bdc02a76c3087545aad1e374ac4bd0ce /org/sonatype/sisu/inject/guice-parent/3.1.0/guice-parent-3.1.0.pom
|
|
||||||
9188fe7eb026bf4c35309f685ea7cf14cb2ebd7c7d49572486f5a97d4b312a03 /org/sonatype/sisu/inject/guice-plexus/2.3.0/guice-plexus-2.3.0.pom
|
|
||||||
9897e80ff6c08fc45b5b5ebd81d9e943a1087bdf0ad50cda457d616abbdaacd9 /org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
|
|
||||||
2c007ed1e50e0edc62f8e3cdf725e1f61068206bc955aec48f3eb13a3467c6e5 /org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.pom
|
|
||||||
4b76079f35407e5682aac1ecbe67afd5f430ae619044a9d6a413666a45750c25 /org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
|
|
||||||
28a7c38bd751e9e2a9f8d13ddf876266f90f9d6e29c9178b524828afbc5e45f4 /org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0.pom
|
|
||||||
4b112cc2452aee6930dff95512f05041e4c66a2df0a828e95f8439c23a8759e9 /org/sonatype/sisu/sisu-inject/2.3.0/sisu-inject-2.3.0.pom
|
|
||||||
75819b29737c2bee1bfbda1011d455c7036738e0ef32ffbf85ba1d8fa157ceb2 /org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
|
|
||||||
f41fc69095282c2c332cf3d9f27a2f3b2d87cd22fcb6511df59fffd90a977ec0 /org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.pom
|
|
||||||
bf9083fb846993689409b2bdbc735048e53bac6cc32707cde7ef84817b6e9365 /org/sonatype/sisu/sisu-inject-plexus/2.3.0/sisu-inject-plexus-2.3.0.jar
|
|
||||||
34feae95889f78e7d4260167736e6af444296fbc5f3794b8c1b90eb6332c4714 /org/sonatype/sisu/sisu-inject-plexus/2.3.0/sisu-inject-plexus-2.3.0.pom
|
|
||||||
aef1fd28efd25bd778aa3d3770c6f9e606ca2354149e985f1d63fc7c6a366bd2 /org/sonatype/sisu/sisu-parent/2.3.0/sisu-parent-2.3.0.pom
|
|
||||||
02161ae46462da669b1d7be3f9b64687c6347f84d04c890fa467eff6def0ae10 /org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
|
|
||||||
0d2cc363cdfc6c102203adb6a5c138c195eaf1198527a09e6a17aa0227a66bcd /org/sonatype/spice/model-builder/1.3/model-builder-1.3.pom
|
|
||||||
683c012c6bf5e1e31b232b3755c027ccd829692a09c8216652b414b09d4ae623 /org/sonatype/spice/spice-parent/10/spice-parent-10.pom
|
|
||||||
21a19b26dbe5c38ddb5114cf4eadbf5ccb411bc6b128fdd5949b1ccb12f3683e /org/sonatype/spice/spice-parent/12/spice-parent-12.pom
|
|
||||||
258f43b5e805687302a5bb400856b972a573ec42a44f949641354a84b9243758 /org/sonatype/spice/spice-parent/16/spice-parent-16.pom
|
|
||||||
27901e5d4d60d3502571d5e6358fc89e3fcf874138b69d495d139bcc3e169404 /oshi-project/oshi-core/1.1/oshi-core-1.1.jar
|
|
||||||
e7e154dd64e5bd87e6ae2652ab52ab88eb53d05606466faee382d11f59d0ab71 /oshi-project/oshi-core/1.1/oshi-core-1.1.pom
|
|
||||||
d1968436fc216c901fb9b82c7e878b50fd1d30091676da95b2edd3a9c0ccf92e /stax/stax-api/1.0.1/stax-api-1.0.1.jar
|
|
||||||
87b13ae136a2bb9299271a0dfe8c351f76661b654ed8fde035c2cabb198cf259 /stax/stax-api/1.0.1/stax-api-1.0.1.pom
|
|
||||||
ad68a86cfd0255a2bc0525ce11ec49640caea7e34ff91eb89c3193dcccd77f05 /trove/trove/1.0.2/trove-1.0.2.jar
|
|
||||||
83f2682bd3ded1fe417b7e98e7ac86510cd747378eae7e3a5d1d35c7c7f0d2ea /trove/trove/1.0.2/trove-1.0.2.pom
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
import java.util.jar.JarEntry
|
|
||||||
import java.util.jar.JarFile
|
|
||||||
import java.util.jar.JarOutputStream
|
|
||||||
|
|
||||||
initscript {
|
|
||||||
repositories {
|
|
||||||
maven { url 'http://jitpack.io' }
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
classpath 'com.github.johni0702:gradle-reproducible-builds-plugin:a524ada'
|
|
||||||
classpath 'com.github.johni0702:gradle-ecj-plugin:795736c'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def convertRepoToHttp = { repo ->
|
|
||||||
if (repo instanceof MavenArtifactRepository && repo.url.toString().startsWith('https://')) {
|
|
||||||
URL url = repo.url.toURL()
|
|
||||||
repo.url = new URL("http", url.getHost(), url.getPort(), url.getFile()).toURI()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
|
||||||
buildscript {
|
|
||||||
repositories.all convertRepoToHttp
|
|
||||||
}
|
|
||||||
repositories { mavenCentral() } // for ecj
|
|
||||||
repositories.all convertRepoToHttp
|
|
||||||
apply plugin: de.johni0702.gradle.ReproducibleBuildsPlugin, to: project
|
|
||||||
apply plugin: xink.gradle.ecj.EcjPlugin, to: project
|
|
||||||
apply plugin: 'maven', to: project
|
|
||||||
|
|
||||||
ecj {
|
|
||||||
warn = ['none']
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
maven {
|
|
||||||
url(project.file('gradle/reprod').exists() ? 'gradle/reprod/deps/repo' : '../repo')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
task createPom {
|
|
||||||
doLast {
|
|
||||||
pom {
|
|
||||||
project {
|
|
||||||
groupId 'reprod'
|
|
||||||
artifactId project.file('.').name
|
|
||||||
version '0'
|
|
||||||
}
|
|
||||||
whenConfigured {
|
|
||||||
dependencies.removeAll { it.artifactId == 'mixin-asm-debug-all' }
|
|
||||||
}
|
|
||||||
}.writeTo("pom.xml")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!project.file('gradle/reprod').exists()) {
|
|
||||||
build.dependsOn createPom
|
|
||||||
}
|
|
||||||
|
|
||||||
reproducibleBuilds {
|
|
||||||
if (project.file('.').name == 'forgegradle') {
|
|
||||||
project.tasks.all {
|
|
||||||
if (it.name == 'jar') {
|
|
||||||
println 'Manually repacking archive after jar task'
|
|
||||||
repackAfter it
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
From a1b7d25752424f267f5e9d299babc0403dbf7752 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Tue, 8 Aug 2017 19:44:44 +0200
|
|
||||||
Subject: [PATCH] Add build.gradle
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 23 +++++++++++++++++++++++
|
|
||||||
1 file changed, 23 insertions(+)
|
|
||||||
create mode 100644 build.gradle
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..22fa679
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -0,0 +1,18 @@
|
|
||||||
+apply plugin: 'java'
|
|
||||||
+
|
|
||||||
+sourceCompatibility = 1.8
|
|
||||||
+
|
|
||||||
+sourceSets {
|
|
||||||
+ main {
|
|
||||||
+ java {
|
|
||||||
+ srcDirs = ['src']
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+jar {
|
|
||||||
+ manifest {
|
|
||||||
+ attributes 'Main-Class': 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler'
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
From 7127699cb761a518cce8872b0b78694e357f21fe Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Mon, 28 Aug 2017 17:50:38 +0200
|
|
||||||
Subject: [PATCH] Replace https urls with http for proxy-witness
|
|
||||||
|
|
||||||
---
|
|
||||||
.../java/net/minecraftforge/gradle/common/BasePlugin.java | 13 ++++++++++---
|
|
||||||
.../java/net/minecraftforge/gradle/common/Constants.java | 4 ++--
|
|
||||||
2 files changed, 12 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraftforge/gradle/common/BasePlugin.java b/src/main/java/net/minecraftforge/gradle/common/BasePlugin.java
|
|
||||||
index df369f1..e3e50c0 100644
|
|
||||||
--- a/src/main/java/net/minecraftforge/gradle/common/BasePlugin.java
|
|
||||||
+++ b/src/main/java/net/minecraftforge/gradle/common/BasePlugin.java
|
|
||||||
@@ -350,6 +350,13 @@ public abstract class BasePlugin<K extends BaseExtension> implements Plugin<Proj
|
|
||||||
deps.add(CONFIG_FFI_DEPS, deps.localGroovy());
|
|
||||||
}
|
|
||||||
|
|
||||||
+ private static String http(String url) {
|
|
||||||
+ if (url.startsWith("https://")) {
|
|
||||||
+ url = "http" + url.substring("https".length());
|
|
||||||
+ }
|
|
||||||
+ return url;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
@SuppressWarnings("serial")
|
|
||||||
private void makeCommonTasks()
|
|
||||||
{
|
|
||||||
@@ -358,7 +365,7 @@ public abstract class BasePlugin<K extends BaseExtension> implements Plugin<Proj
|
|
||||||
@Override
|
|
||||||
public String call()
|
|
||||||
{
|
|
||||||
- return mcManifest.get(getExtension().getVersion()).url;
|
|
||||||
+ return http(mcManifest.get(getExtension().getVersion()).url);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
getVersionJson.setFile(delayedFile(JSON_VERSION));
|
|
||||||
@@ -435,7 +442,7 @@ public abstract class BasePlugin<K extends BaseExtension> implements Plugin<Proj
|
|
||||||
@Override
|
|
||||||
public String call()
|
|
||||||
{
|
|
||||||
- return mcVersionJson.getClientUrl();
|
|
||||||
+ return http(mcVersionJson.getClientUrl());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
@@ -449,7 +456,7 @@ public abstract class BasePlugin<K extends BaseExtension> implements Plugin<Proj
|
|
||||||
@Override
|
|
||||||
public String call()
|
|
||||||
{
|
|
||||||
- return mcVersionJson.getServerUrl();
|
|
||||||
+ return http(mcVersionJson.getServerUrl());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraftforge/gradle/common/Constants.java b/src/main/java/net/minecraftforge/gradle/common/Constants.java
|
|
||||||
index b42b1c2..a0753e0 100644
|
|
||||||
--- a/src/main/java/net/minecraftforge/gradle/common/Constants.java
|
|
||||||
+++ b/src/main/java/net/minecraftforge/gradle/common/Constants.java
|
|
||||||
@@ -115,10 +115,10 @@ public class Constants
|
|
||||||
|
|
||||||
|
|
||||||
// urls
|
|
||||||
- public static final String URL_MC_MANIFEST = "https://launchermeta.mojang.com/mc/game/version_manifest.json";
|
|
||||||
+ public static final String URL_MC_MANIFEST = "http://launchermeta.mojang.com/mc/game/version_manifest.json";
|
|
||||||
public static final String URL_FF = "http://files.minecraftforge.net/fernflower-fix-1.0.zip";
|
|
||||||
public static final String URL_ASSETS = "http://resources.download.minecraft.net";
|
|
||||||
- public static final String URL_LIBRARY = "https://libraries.minecraft.net/"; // Mojang's Cloudflare front end
|
|
||||||
+ public static final String URL_LIBRARY = "http://libraries.minecraft.net/"; // Mojang's Cloudflare front end
|
|
||||||
//public static final String URL_LIBRARY = "https://minecraft-libraries.s3.amazonaws.com/"; // Mojang's AWS server, as Cloudflare is having issues, TODO: Switch back to above when their servers are fixed.
|
|
||||||
public static final String URL_FORGE_MAVEN = "http://files.minecraftforge.net/maven";
|
|
||||||
public static final List<String> URLS_MCP_JSON = Arrays.asList(
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
From 2309fc9515d4010c5d9db89008660e3e60ea529b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Sat, 26 Aug 2017 17:40:48 +0200
|
|
||||||
Subject: [PATCH] Replace SNAPSHOT deps with manually built ones
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 49 +++----------------------------------------------
|
|
||||||
1 file changed, 3 insertions(+), 46 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index bfadecd..774a015 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -67,7 +67,7 @@ dependencies {
|
|
||||||
compile 'com.nothome:javaxdelta:2.0.1' // GDIFF implementation for BinPatches
|
|
||||||
compile 'com.google.code.gson:gson:2.2.4' // Used instead of Argo for buuilding changelog.
|
|
||||||
compile 'com.github.tony19:named-regexp:0.2.3' // 1.7 Named regexp features
|
|
||||||
- compile 'net.minecraftforge:fernflower:2.0-SNAPSHOT' // Fernflower Forge edition
|
|
||||||
+ compile 'reprod:forgeflower:0' // Fernflower Forge edition
|
|
||||||
|
|
||||||
shade 'net.md-5:SpecialSource:1.7.4' // deobf and reobs
|
|
||||||
// compile 'net.md-5:SpecialSource:1.7.4' // when md5 publishes
|
|
||||||
@@ -78,8 +78,8 @@ dependencies {
|
|
||||||
|
|
||||||
// mcp stuff
|
|
||||||
shade 'de.oceanlabs.mcp:RetroGuard:3.6.6'
|
|
||||||
- shade 'de.oceanlabs.mcp:mcinjector:3.4-SNAPSHOT'
|
|
||||||
- shade 'net.minecraftforge.srg2source:Srg2Source:4.0-SNAPSHOT'
|
|
||||||
+ shade 'reprod:mcinjector:0'
|
|
||||||
+ shade 'reprod:srg2source:0'
|
|
||||||
|
|
||||||
//Stuff used in the GradleStart classes
|
|
||||||
compileOnly 'com.mojang:authlib:1.5.16'
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,126 +0,0 @@
|
|||||||
From 85e6315018dd8ff9f613b1f0c4d00c5b0c6c37d6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Sat, 26 Aug 2017 17:27:06 +0200
|
|
||||||
Subject: [PATCH 1/2] Remove non-essential parts and shade manually
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 92 +-----------------------------------------------------------
|
|
||||||
1 file changed, 1 insertion(+), 91 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index 2e5f949..b6c63bb 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -1,15 +1,5 @@
|
|
||||||
-buildscript {
|
|
||||||
- repositories {
|
|
||||||
- mavenCentral()
|
|
||||||
- }
|
|
||||||
- dependencies {
|
|
||||||
- classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
|
|
||||||
- }
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'eclipse'
|
|
||||||
-apply plugin: 'fatjar'
|
|
||||||
apply plugin: 'maven'
|
|
||||||
|
|
||||||
group = 'de.oceanlabs.mcp'
|
|
||||||
@@ -22,93 +12,12 @@ repositories {
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
|
||||||
manifest.attributes('Main-Class': 'de.oceanlabs.mcp.mcinjector.MCInjector')
|
|
||||||
}
|
|
||||||
-fatJar {
|
|
||||||
- classifier 'fatjar'
|
|
||||||
- manifest.attributes('Main-Class': 'de.oceanlabs.mcp.mcinjector.MCInjector')
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-artifacts {
|
|
||||||
- archives jar
|
|
||||||
- archives fatJar
|
|
||||||
-}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compile 'org.ow2.asm:asm-debug-all:5.0.4'
|
|
||||||
compile 'net.sf.jopt-simple:jopt-simple:4.5'
|
|
||||||
compile 'com.google.code.gson:gson:2.2.4'
|
|
||||||
}
|
|
||||||
-configurations { deployJars }
|
|
||||||
-uploadArchives {
|
|
||||||
- repositories {
|
|
||||||
- add project.repositories.mavenLocal()
|
|
||||||
- }
|
|
||||||
- repositories.mavenDeployer {
|
|
||||||
- configuration = configurations.deployJars
|
|
||||||
|
|
||||||
- if (project.hasProperty("filesmaven")) {
|
|
||||||
- logger.info('Publishing to files server')
|
|
||||||
- repository(url: project.filesmaven.url) {
|
|
||||||
- authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key)
|
|
||||||
- }
|
|
||||||
- } else {
|
|
||||||
- logger.info('Publishing to repo folder')
|
|
||||||
- repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- pom {
|
|
||||||
- groupId = project.group
|
|
||||||
- version = project.version
|
|
||||||
- artifactId = project.archivesBaseName
|
|
||||||
- }
|
|
||||||
- pom.project {
|
|
||||||
- name project.archivesBaseName
|
|
||||||
- packaging 'jar'
|
|
||||||
- description 'Java class metadata injector'
|
|
||||||
- url 'https://github.com/ModCoderPack/MCInjector'
|
|
||||||
-
|
|
||||||
- scm {
|
|
||||||
- url 'https://github.com/ModCoderPack/MCInjector'
|
|
||||||
- connection 'scm:git:git://github.com/ModCoderPack/MCInjector.git'
|
|
||||||
- developerConnection 'scm:git:git@github.com:ModCoderPack/MCInjector.git'
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- issueManagement {
|
|
||||||
- system 'github'
|
|
||||||
- url 'https://github.com/ModCoderPack/MCInjector/issues'
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- licenses {
|
|
||||||
- license {
|
|
||||||
- name ''
|
|
||||||
- url ''
|
|
||||||
- distribution 'repo'
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- developers {
|
|
||||||
- developer {
|
|
||||||
- id 'Fesh0r'
|
|
||||||
- name 'Fesh0r'
|
|
||||||
- roles { role 'developer' }
|
|
||||||
- }
|
|
||||||
- developer {
|
|
||||||
- id 'Searge'
|
|
||||||
- name 'Searge'
|
|
||||||
- roles { role 'developer' }
|
|
||||||
- }
|
|
||||||
- developer {
|
|
||||||
- id 'cpw'
|
|
||||||
- name 'cpw'
|
|
||||||
- roles { role 'developer' }
|
|
||||||
- }
|
|
||||||
- developer {
|
|
||||||
- id 'LexManos'
|
|
||||||
- name 'Lex Manos'
|
|
||||||
- roles { role 'developer' }
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
-}
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
From c245b961e83176a1731a7eaf1f1f3ffbefa1afb7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Tue, 8 Aug 2017 19:08:56 +0200
|
|
||||||
Subject: [PATCH 2/7] Remove/replace all buildscript dependencies
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 24 +-----------------------
|
|
||||||
1 file changed, 1 insertion(+), 23 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index e0c46ea..165dbe4 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -5,13 +5,11 @@
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
- classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
|
|
||||||
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply plugin
|
|
||||||
apply plugin: 'java'
|
|
||||||
-apply plugin: 'license'
|
|
||||||
apply plugin: 'checkstyle'
|
|
||||||
apply plugin: 'maven'
|
|
||||||
apply plugin: 'eclipse'
|
|
||||||
@@ -170,23 +165,6 @@ tasks.withType(AbstractArchiveTask) {
|
|
||||||
from 'LICENSE.txt'
|
|
||||||
}
|
|
||||||
|
|
||||||
-// License header formatting
|
|
||||||
-license {
|
|
||||||
- ext {
|
|
||||||
- name = project.name
|
|
||||||
- organization = project.organization
|
|
||||||
- url = project.url
|
|
||||||
- }
|
|
||||||
- include '**/*.java'
|
|
||||||
- header file("HEADER.txt")
|
|
||||||
- sourceSets = project.sourceSets
|
|
||||||
- ignoreFailures false
|
|
||||||
- strictCheck true
|
|
||||||
- mapping {
|
|
||||||
- java = 'SLASHSTAR_STYLE'
|
|
||||||
- }
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
checkstyle {
|
|
||||||
configProperties = [
|
|
||||||
"name" : project.name,
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
From 0f250141ba6515dbeffeb0722bf29976850bb323 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Tue, 8 Aug 2017 19:13:17 +0200
|
|
||||||
Subject: [PATCH 3/7] Fix for Gradle 3
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index 165dbe4..0f189ec 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -92,7 +92,7 @@ dependencies {
|
|
||||||
|
|
||||||
// Task to read ASM library and rename packages
|
|
||||||
task renamedASM {
|
|
||||||
- outputs.file files(configurations.asm.files.withIndex().collect { file, i -> def dep = configurations.asm.dependencies[i]
|
|
||||||
+ outputs.files files(configurations.asm.files.withIndex().collect { file, i -> def dep = configurations.asm.dependencies[i]
|
|
||||||
new File(new File(renamedPackageRoot, "org/spongepowered/mixin-" + dep.name + "/" + dep.version), "mixin-" + file.name).path
|
|
||||||
})
|
|
||||||
ant {
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
From eb4fa04cf82067b20caa7222c154f8b6f7ab95ac Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Tue, 8 Aug 2017 19:13:45 +0200
|
|
||||||
Subject: [PATCH 4/7] Disable checkstyle
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 12 ------------
|
|
||||||
1 file changed, 12 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index 0f189ec..f8598a3 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -7,7 +7,6 @@ buildscript {
|
|
||||||
|
|
||||||
// Apply plugin
|
|
||||||
apply plugin: 'java'
|
|
||||||
-apply plugin: 'checkstyle'
|
|
||||||
apply plugin: 'maven'
|
|
||||||
apply plugin: 'eclipse'
|
|
||||||
apply plugin: 'idea'
|
|
||||||
@@ -165,17 +164,6 @@ tasks.withType(AbstractArchiveTask) {
|
|
||||||
from 'LICENSE.txt'
|
|
||||||
}
|
|
||||||
|
|
||||||
-checkstyle {
|
|
||||||
- configProperties = [
|
|
||||||
- "name" : project.name,
|
|
||||||
- "organization": project.organization,
|
|
||||||
- "url" : project.url,
|
|
||||||
- "year" : project.inceptionYear
|
|
||||||
- ]
|
|
||||||
- configFile = file("checkstyle.xml")
|
|
||||||
- toolVersion = '6.19'
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
// Source compiler configuration
|
|
||||||
tasks.withType(JavaCompile) {
|
|
||||||
options.compilerArgs += ['-Xlint:all', '-Xlint:-path']
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
From c66ba83e4b27f6f094c2dcdaaac095d3ca69b41c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Tue, 8 Aug 2017 19:35:08 +0200
|
|
||||||
Subject: [PATCH 5/7] Replace fernflower SNAPSHOT depencency
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index f8598a3..e9a965b 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -143,7 +143,7 @@ dependencies {
|
|
||||||
|
|
||||||
// Fernflower decompiler
|
|
||||||
fernflowerCompile configurations.compile
|
|
||||||
- fernflowerCompile 'org.jetbrains.java.decompiler:fernflower:sponge-SNAPSHOT'
|
|
||||||
+ fernflowerCompile 'reprod:fernflower:0'
|
|
||||||
|
|
||||||
// LegacyLauncher service
|
|
||||||
launchwrapperCompile configurations.compile
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
From 6422d5985faeff394237a499e5529b765dd46b7e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Tue, 8 Aug 2017 21:40:59 +0200
|
|
||||||
Subject: [PATCH 6/7] Use TreeMap in ReferenceMapper for reproducibility
|
|
||||||
|
|
||||||
---
|
|
||||||
.../java/org/spongepowered/asm/mixin/refmap/ReferenceMapper.java | 9 ++++-----
|
|
||||||
1 file changed, 4 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/spongepowered/asm/mixin/refmap/ReferenceMapper.java b/src/main/java/org/spongepowered/asm/mixin/refmap/ReferenceMapper.java
|
|
||||||
index 2a368e7..082b5dd 100644
|
|
||||||
--- a/src/main/java/org/spongepowered/asm/mixin/refmap/ReferenceMapper.java
|
|
||||||
+++ b/src/main/java/org/spongepowered/asm/mixin/refmap/ReferenceMapper.java
|
|
||||||
@@ -29,7 +29,6 @@ import java.io.InputStream;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.io.Reader;
|
|
||||||
import java.io.Serializable;
|
|
||||||
-import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.apache.commons.io.IOUtils;
|
|
||||||
@@ -71,13 +70,13 @@ public final class ReferenceMapper implements Serializable {
|
|
||||||
* by the AP. Each entry is keyed by the owning mixin, with the value map
|
|
||||||
* containing the actual remappings for each owner
|
|
||||||
*/
|
|
||||||
- private final Map<String, Map<String, String>> mappings = Maps.newHashMap();
|
|
||||||
+ private final Map<String, Map<String, String>> mappings = Maps.newTreeMap();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* All mapping sets, keyed by environment type, eg. "notch", "searge". The
|
|
||||||
* format of each map within this map is the same as for {@link #mappings}
|
|
||||||
*/
|
|
||||||
- private final Map<String, Map<String, Map<String, String>>> data = Maps.newHashMap();
|
|
||||||
+ private final Map<String, Map<String, Map<String, String>>> data = Maps.newTreeMap();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* True if this refmap cannot be written. Only true for the
|
|
||||||
@@ -191,13 +190,13 @@ public final class ReferenceMapper implements Serializable {
|
|
||||||
if (context != null) {
|
|
||||||
mappings = this.data.get(context);
|
|
||||||
if (mappings == null) {
|
|
||||||
- mappings = Maps.newHashMap();
|
|
||||||
+ mappings = Maps.newTreeMap();
|
|
||||||
this.data.put(context, mappings);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Map<String, String> classMappings = mappings.get(className);
|
|
||||||
if (classMappings == null) {
|
|
||||||
- classMappings = new HashMap<String, String>();
|
|
||||||
+ classMappings = Maps.newTreeMap();
|
|
||||||
mappings.put(className, classMappings);
|
|
||||||
}
|
|
||||||
return classMappings.put(reference, newReference);
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
From c3d6d12f47bae3c12c597e59d9a69989fdaa9550 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Fri, 25 Aug 2017 19:27:13 +0200
|
|
||||||
Subject: [PATCH] Do not include java version and user name in jar
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 3 +--
|
|
||||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index debc97b..ae53e1b 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -241,8 +241,7 @@ jar {
|
|
||||||
|
|
||||||
// JAR manifest configuration
|
|
||||||
manifest.mainAttributes(
|
|
||||||
- "Built-By": System.properties['user.name'],
|
|
||||||
- "Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
|
|
||||||
+ "Built-By": 'ReplayMod reprod',
|
|
||||||
"Implementation-Title": name,
|
|
||||||
"Implementation-Version": version + "+" + ciSystem + "-b" + buildNumber + ".git-" + commit,
|
|
||||||
"Implementation-Vendor": url,
|
|
||||||
--
|
|
||||||
2.13.2
|
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
From 6de53f46b4b14c7667e7cff8010bde040ae7967b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Fri, 25 Aug 2017 18:34:39 +0200
|
|
||||||
Subject: [PATCH] Do not include java version and user name in jar
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 3 +--
|
|
||||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index db80dfa..2f5e041 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -59,8 +59,7 @@ processResources {
|
|
||||||
}
|
|
||||||
|
|
||||||
jar.manifest.mainAttributes (
|
|
||||||
- "Built-By": System.properties['user.name'],
|
|
||||||
- "Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
|
|
||||||
+ "Built-By": 'ReplayMod reprod',
|
|
||||||
"Implementation-Title": name,
|
|
||||||
"Implementation-Version": version
|
|
||||||
)
|
|
||||||
--
|
|
||||||
2.13.2
|
|
||||||
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
From 6b7ad7fd8c22384e62585a962e1bd74d6d003582 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Sat, 2 Sep 2017 15:10:35 +0200
|
|
||||||
Subject: [PATCH] Disable license plugin
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 18 ------------------
|
|
||||||
1 file changed, 18 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index 60ad57d..57aa5e4 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -5,13 +5,11 @@ buildscript {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
- classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
|
|
||||||
classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'groovy'
|
|
||||||
-apply plugin: 'license'
|
|
||||||
apply plugin: 'maven'
|
|
||||||
apply plugin: 'eclipse'
|
|
||||||
apply plugin: "com.gradle.plugin-publish"
|
|
||||||
@@ -42,22 +40,6 @@ processResources {
|
|
||||||
from 'LICENSE.txt'
|
|
||||||
}
|
|
||||||
|
|
||||||
-license {
|
|
||||||
- ext {
|
|
||||||
- name = project.name
|
|
||||||
- organization = project.organization
|
|
||||||
- url = project.url
|
|
||||||
- }
|
|
||||||
- include '**/*.groovy'
|
|
||||||
- header file("HEADER.txt")
|
|
||||||
- sourceSets = project.sourceSets
|
|
||||||
- ignoreFailures false
|
|
||||||
- strictCheck true
|
|
||||||
- mapping {
|
|
||||||
- java = 'SLASHSTAR_STYLE'
|
|
||||||
- }
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
jar.manifest.mainAttributes (
|
|
||||||
"Built-By": 'ReplayMod reprod',
|
|
||||||
"Implementation-Title": name,
|
|
||||||
--
|
|
||||||
2.9.5
|
|
||||||
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
From 493dbd8ed387d661eef3e33ee614c79d7487f1bd Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Mon, 7 Aug 2017 20:41:05 +0200
|
|
||||||
Subject: [PATCH 1/5] Replace buildscript dependencies with manually built ones
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 19 ++-----------------
|
|
||||||
1 file changed, 2 insertions(+), 17 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index ee24828..42d0607 100755
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -1,24 +1,17 @@
|
|
||||||
import groovy.json.JsonOutput
|
|
||||||
|
|
||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
- maven {
|
|
||||||
- name = "forge"
|
|
||||||
- url = "http://files.minecraftforge.net/maven"
|
|
||||||
- }
|
|
||||||
- maven {
|
|
||||||
- name = "sponge"
|
|
||||||
- url = "https://repo.spongepowered.org/maven"
|
|
||||||
- }
|
|
||||||
maven {
|
|
||||||
name = "sonatype"
|
|
||||||
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
||||||
}
|
|
||||||
+ maven { url 'gradle/reprod/deps/repo' }
|
|
||||||
}
|
|
||||||
dependencies {
|
|
||||||
- classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
|
||||||
- classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
|
|
||||||
+ classpath 'reprod:forgegradle:0'
|
|
||||||
+ classpath 'reprod:mixingradle:0'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
From 9e4e7ac3f8ee5508939cf71e731189e4c0e1c7b5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Herzig <me@johni0702.de>
|
|
||||||
Date: Tue, 8 Aug 2017 20:06:39 +0200
|
|
||||||
Subject: [PATCH 2/5] Replace mixin dep with manually built one
|
|
||||||
|
|
||||||
---
|
|
||||||
build.gradle | 4 +---
|
|
||||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index 42d0607..bfa3914 100755
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -44,7 +44,7 @@ configurations {
|
|
||||||
dependencies {
|
|
||||||
compile 'org.projectlombok:lombok:1.16.4'
|
|
||||||
|
|
||||||
- compile 'org.spongepowered:mixin:0.7.5-SNAPSHOT'
|
|
||||||
+ compile 'reprod:mixin:0'
|
|
||||||
shade 'com.googlecode.mp4parser:isoparser:1.1.7'
|
|
||||||
shade 'org.apache.commons:commons-exec:1.3'
|
|
||||||
shade 'com.google.apis:google-api-services-youtube:v3-rev178-1.22.0'
|
|
||||||
--
|
|
||||||
2.5.5
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# Collects build artifacts that aren't present in the online cache
|
|
||||||
# into a subfolder that can be merged with the online cache
|
|
||||||
# This script isn't expected to function on OSX.
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
# Step one: copy all artifacts into subfolder under new name
|
|
||||||
rm -rf artifactCache
|
|
||||||
mkdir artifactCache
|
|
||||||
cd artifactCache
|
|
||||||
for f in $(find ../deps/repo -type f); do
|
|
||||||
cp $f $(sha256sum $f | cut -d' ' -f1)
|
|
||||||
done
|
|
||||||
|
|
||||||
# Step two: remove all files that are already in the cache
|
|
||||||
for f in *; do
|
|
||||||
if wget -q --spider "https://www.johni0702.de/replaymod/artifact/$f"; then
|
|
||||||
rm $f
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
PROXY_PORT="25678"
|
|
||||||
PROXY_SETTINGS="-Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=$PROXY_PORT -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=$PROXY_PORT"
|
|
||||||
|
|
||||||
pushd gradle/reprod
|
|
||||||
|
|
||||||
SHA256SUM="sha256sum"
|
|
||||||
command -v "$SHA256SUM" > /dev/null 2>&1 || SHA256SUM="shasum -a 256" # OSX
|
|
||||||
sha256val () {
|
|
||||||
$SHA256SUM $1 | cut -d' ' -f1
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_dep () {
|
|
||||||
dep=$1
|
|
||||||
url=$2
|
|
||||||
commit=$3
|
|
||||||
jar=$4
|
|
||||||
jarhash=$5
|
|
||||||
pomhash=$6
|
|
||||||
|
|
||||||
depjar="deps/repo/reprod/$dep/0/$dep-0.jar"
|
|
||||||
deppom="deps/repo/reprod/$dep/0/$dep-0.pom"
|
|
||||||
|
|
||||||
[ -f "$depjar" ] && [ "$(sha256val "$depjar")" == "$jarhash" ] && [ -f "$deppom" ] && [ "$(sha256val "$deppom")" == "$pomhash" ] && return
|
|
||||||
[ -f "$depjar" ] && [ "*" == "$jarhash" ] && return
|
|
||||||
rm -rf "$depjar" "$deppom"
|
|
||||||
|
|
||||||
mkdir -p "deps/repo/reprod/$dep/0"
|
|
||||||
|
|
||||||
if [ "*" != "$jarhash" ] && [ "$OFFLINE" != "1" ]; then
|
|
||||||
# Try to fetch the pre-built artifact
|
|
||||||
if wget -O "deps/dl.jar" "https://www.johni0702.de/replaymod/artifact/$jarhash" && wget -O "deps/dl.pom" "https://www.johni0702.de/replaymod/artifact/$pomhash"; then
|
|
||||||
# Verify downloaded jar/pom files
|
|
||||||
if [ "$(sha256val "deps/dl.jar")" == "$jarhash" ] && [ "$(sha256val "deps/dl.pom")" == "$pomhash" ]; then
|
|
||||||
# Got valid pre-built artifact, use it
|
|
||||||
mv "deps/dl.jar" "$depjar"
|
|
||||||
mv "deps/dl.pom" "$deppom"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! -d "deps/$dep" ] || [ "$(git -C "deps/$dep" rev-parse $commit^{commit})" != "$commit" ]; then
|
|
||||||
rm -rf "deps/$dep"
|
|
||||||
mkdir -p "deps/$dep"
|
|
||||||
pushd "deps/$dep"
|
|
||||||
git clone "$url" .
|
|
||||||
git fetch origin $commit
|
|
||||||
git checkout "$commit"
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
|
|
||||||
pushd "deps/$dep"
|
|
||||||
git reset --hard "$commit"
|
|
||||||
git submodule update --init --recursive
|
|
||||||
patches=$(find ../../patches/$dep/ -name *.patch | sort)
|
|
||||||
[ "$patches" != "" ] && echo "$patches" | xargs git am
|
|
||||||
git reset --soft "$commit" # Because forgegradle includes the commit hash in the jar
|
|
||||||
|
|
||||||
rm -rf gradle/wrapper gradlew
|
|
||||||
[ ! -d gradle ] && mkdir gradle
|
|
||||||
cp -r ../../../wrapper gradle/
|
|
||||||
cp ../../../wrapper/gradle-wrapper.properties gradle/wrapper/
|
|
||||||
cp ../../../../gradlew .
|
|
||||||
|
|
||||||
chmod +x gradlew
|
|
||||||
if [ "$dep" == "proxy-witness" ]; then
|
|
||||||
./gradlew $PROXY_SETTINGS build -x test -x javadoc
|
|
||||||
else
|
|
||||||
./gradlew $PROXY_SETTINGS -I ../../init.gradle build -x test -x javadoc
|
|
||||||
fi
|
|
||||||
|
|
||||||
actual_hash=$(sha256val "$jar")
|
|
||||||
if [ "*" != "$jarhash" ] && [ "$actual_hash" != "$jarhash" ]; then
|
|
||||||
echo "Failed to verify checksum of build artifact of dependency: $dep"
|
|
||||||
echo "Expected: $jarhash"
|
|
||||||
echo "But was: $actual_hash"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
actual_hash=$(sha256val "pom.xml")
|
|
||||||
if [ "*" != "$jarhash" ] && [ "$actual_hash" != "$pomhash" ]; then
|
|
||||||
echo "Failed to verify checksum of build artifact pom of dependency: $dep"
|
|
||||||
echo "Expected: $pomhash"
|
|
||||||
echo "But was: $actual_hash"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Subshell to allow for expansion of *
|
|
||||||
cp "$(echo $jar)" "../../$depjar"
|
|
||||||
[ "$dep" == "proxy-witness" ] || cp "pom.xml" "../../$deppom"
|
|
||||||
popd
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup http(s) proxy
|
|
||||||
setup_dep "proxy-witness" "https://github.com/johni0702/proxy-witness" "17ebb2e22f812faed9a28bae6bf1d8b28f798d56" "build/libs/proxy-witness.jar" "*" "*"
|
|
||||||
java -Dproxywitness.httpUris=http://export.mcpbot.bspk.rs/versions.json -jar deps/repo/reprod/proxy-witness/0/proxy-witness-0.jar "$PROXY_PORT" checksums.txt > proxy.log 2>&1 &
|
|
||||||
proxy_pid=$!
|
|
||||||
trap "kill $proxy_pid" EXIT
|
|
||||||
|
|
||||||
# Required for mixin
|
|
||||||
setup_dep "fernflower" "https://github.com/fesh0r/fernflower.git" "adbf29f8ce902cd164fc0c41491030268ecc8265" "build/libs/fernflower.jar" "d2042d3121118a7175fc902d0e49f4ad37d00467e7ea535574974142eff64184" "901b8a76ceb15db97d4dd19c5e8fcb0fc226ae602ef38ea906eb5258be9b929a"
|
|
||||||
|
|
||||||
# Required for forgegradle
|
|
||||||
setup_dep "forgeflower" "https://github.com/MinecraftForge/FernFlowerLegacy.git" "114aebe82cf40075c5c4f916c409b8aebf8096d5" "build/libs/fernflower-2.0-SNAPSHOT.jar" "c8b4a4a13a1158008aed46da2c805184078324718697f14a67f1778168579956" "fbda3f30d54624fe4c59a69e145b644d8642afc0dd4eb0d732ccdaa0ebd5d8a3"
|
|
||||||
setup_dep "mcinjector" "https://github.com/ModCoderPack/MCInjector.git" "7258466461baf7dc4f313b06b0d589407e4e1fba" "build/libs/mcinjector-3.4-SNAPSHOT.jar" "98b685ea0d3ae9fad8b8a7e7b885512f7fe0b61becf27d9c74b91a626d107efc" "3c08655c11e6509bfc62ff87d0770cefa0ecbd8dccece9e083c9b7b89779a8c5"
|
|
||||||
setup_dep "srg2source" "https://github.com/MinecraftForge/Srg2Source.git" "ea4ea624672e8b75fb2a78f0fb9105db13d5a4a6" "build/libs/Srg2Source-4.0-SNAPSHOT.jar" "727445a7b946535217be658726c537acf1921f0a9e2ac0ea717dff9b36dc529f" "4ebd7b738f368ee5c25a1028a167257e7012cef7c72c8b5b06149286992c631e"
|
|
||||||
|
|
||||||
# Required for RM
|
|
||||||
setup_dep "mixingradle" "https://github.com/SpongePowered/MixinGradle.git" "52217aa8ca221dcd0b9fb657b037e663db808f38" "build/libs/mixingradle-0.4-SNAPSHOT.jar" "8b3508867128a5d564631635dff898a36f9aca8db54b7bb3af6f4924e3f4bead" "42cbf81136d4e26c06d3234427665b50d18768cc1f210512204ca1d5e3a42b5c"
|
|
||||||
setup_dep "forgegradle" "https://github.com/MinecraftForge/ForgeGradle.git" "d13a6c892f51937567b3d01d85bea4f3d128e71d" "build/libs/ForgeGradle-2.2-SNAPSHOT.jar" "355a8bd6f49f3d11c40d58da9bb388e05b634ddfac43ab222bf2326aa40f0be4" "45966ee785c42e34c36be3e73046aca1a581a919fb02a9028970d19d35488b18"
|
|
||||||
setup_dep "mixin" "https://github.com/SpongePowered/Mixin.git" "404f5da0b6b18980b4e44c7f1cfeddcd47fe4aa6" "build/libs/mixin-0.7.5-SNAPSHOT.jar" "7d181a5e7c317c00c07da14e7770e4356b0f201414cd2a836e987be9fa133d43" "11000383a5051f25a70c2bff3a3167b6859ae4f9838a0ab45560e9f9c9d9def7"
|
|
||||||
|
|
||||||
rm -rf tmp
|
|
||||||
mkdir tmp
|
|
||||||
pushd tmp
|
|
||||||
cp ../../../build.gradle build.gradle
|
|
||||||
git init
|
|
||||||
git add build.gradle
|
|
||||||
git commit -m "Add build.gradle"
|
|
||||||
git am ../patches/replaymod/*.patch
|
|
||||||
popd
|
|
||||||
|
|
||||||
popd # Back to root
|
|
||||||
|
|
||||||
./gradlew -Preprod $PROXY_SETTINGS -I gradle/reprod/init.gradle "$@"
|
|
||||||
|
|
||||||
if [ "$SIGNED_JAR" == "1" ]; then
|
|
||||||
echo "Trying fetch signature for resulting jar file.."
|
|
||||||
# Note: This requires there to be one and only one jar file (ignoring source artifacts)
|
|
||||||
jar="build/libs/$(ls build/libs | grep -v sources)"
|
|
||||||
jar_hash=$(sha256val "$jar")
|
|
||||||
pushd gradle/reprod/tmp
|
|
||||||
mkdir sign_tmp
|
|
||||||
pushd sign_tmp
|
|
||||||
# Signatures are generated using:
|
|
||||||
# jarsigner -sigfile johni -signedjar signed.jar unsigned.jar replaymod
|
|
||||||
# jar xf signed.jar META-INF/MANIFEST.MF META-INF/JOHNI.SF META-INF/JOHNI.RSA
|
|
||||||
# tar cJf signature.tar.xz META-INF
|
|
||||||
wget -O - "https://www.johni0702.de/replaymod/signature/$jar_hash" | tar xJ
|
|
||||||
jar uMf "../../../../$jar" META-INF/
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
3
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=http\://services.gradle.org/distributions/gradle-3.5.1-all.zip
|
|
||||||
distributionSha256Sum=69d99ade952de3727b65a88f3188ee72231ff4e28c2d00aacfc96a42c6d6f303
|
|
||||||
|
|||||||
121
gradlew
vendored
@@ -1,4 +1,20 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright 2015 the original author or authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
##
|
##
|
||||||
@@ -6,47 +22,6 @@
|
|||||||
##
|
##
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
if [ "$REPRODUCIBLE_BUILD" == "1" ] && [ -f ./gradle/reprod/setup.sh ] && [ "$1" != "-Preprod" ]; then
|
|
||||||
./gradle/reprod/setup.sh "$@"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
DEFAULT_JVM_OPTS=""
|
|
||||||
|
|
||||||
APP_NAME="Gradle"
|
|
||||||
APP_BASE_NAME=`basename "$0"`
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
||||||
MAX_FD="maximum"
|
|
||||||
|
|
||||||
warn ( ) {
|
|
||||||
echo "$*"
|
|
||||||
}
|
|
||||||
|
|
||||||
die ( ) {
|
|
||||||
echo
|
|
||||||
echo "$*"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# OS specific support (must be 'true' or 'false').
|
|
||||||
cygwin=false
|
|
||||||
msys=false
|
|
||||||
darwin=false
|
|
||||||
case "`uname`" in
|
|
||||||
CYGWIN* )
|
|
||||||
cygwin=true
|
|
||||||
;;
|
|
||||||
Darwin* )
|
|
||||||
darwin=true
|
|
||||||
;;
|
|
||||||
MINGW* )
|
|
||||||
msys=true
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Attempt to set APP_HOME
|
# Attempt to set APP_HOME
|
||||||
# Resolve links: $0 may be a link
|
# Resolve links: $0 may be a link
|
||||||
PRG="$0"
|
PRG="$0"
|
||||||
@@ -65,6 +40,46 @@ cd "`dirname \"$PRG\"`/" >/dev/null
|
|||||||
APP_HOME="`pwd -P`"
|
APP_HOME="`pwd -P`"
|
||||||
cd "$SAVED" >/dev/null
|
cd "$SAVED" >/dev/null
|
||||||
|
|
||||||
|
APP_NAME="Gradle"
|
||||||
|
APP_BASE_NAME=`basename "$0"`
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
|
MAX_FD="maximum"
|
||||||
|
|
||||||
|
warn () {
|
||||||
|
echo "$*"
|
||||||
|
}
|
||||||
|
|
||||||
|
die () {
|
||||||
|
echo
|
||||||
|
echo "$*"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# OS specific support (must be 'true' or 'false').
|
||||||
|
cygwin=false
|
||||||
|
msys=false
|
||||||
|
darwin=false
|
||||||
|
nonstop=false
|
||||||
|
case "`uname`" in
|
||||||
|
CYGWIN* )
|
||||||
|
cygwin=true
|
||||||
|
;;
|
||||||
|
Darwin* )
|
||||||
|
darwin=true
|
||||||
|
;;
|
||||||
|
MINGW* )
|
||||||
|
msys=true
|
||||||
|
;;
|
||||||
|
NONSTOP* )
|
||||||
|
nonstop=true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
@@ -90,7 +105,7 @@ location of your Java installation."
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
# Increase the maximum file descriptors if we can.
|
||||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||||
MAX_FD_LIMIT=`ulimit -H -n`
|
MAX_FD_LIMIT=`ulimit -H -n`
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||||
@@ -155,11 +170,19 @@ if $cygwin ; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
# Escape application args
|
||||||
function splitJvmOpts() {
|
save () {
|
||||||
JVM_OPTS=("$@")
|
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||||
|
echo " "
|
||||||
}
|
}
|
||||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
APP_ARGS=$(save "$@")
|
||||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
|
||||||
|
|
||||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||||
|
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||||
|
|
||||||
|
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
||||||
|
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$JAVACMD" "$@"
|
||||||
|
|||||||
28
gradlew.bat
vendored
@@ -1,3 +1,19 @@
|
|||||||
|
@rem
|
||||||
|
@rem Copyright 2015 the original author or authors.
|
||||||
|
@rem
|
||||||
|
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@rem you may not use this file except in compliance with the License.
|
||||||
|
@rem You may obtain a copy of the License at
|
||||||
|
@rem
|
||||||
|
@rem http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
@rem
|
||||||
|
@rem Unless required by applicable law or agreed to in writing, software
|
||||||
|
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
@rem See the License for the specific language governing permissions and
|
||||||
|
@rem limitations under the License.
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
@if "%DEBUG%" == "" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@@ -8,14 +24,14 @@
|
|||||||
@rem Set local scope for the variables with windows NT shell
|
@rem Set local scope for the variables with windows NT shell
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
set DEFAULT_JVM_OPTS=
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||||
|
|
||||||
@rem Find java.exe
|
@rem Find java.exe
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
@@ -49,7 +65,6 @@ goto fail
|
|||||||
@rem Get command-line arguments, handling Windows variants
|
@rem Get command-line arguments, handling Windows variants
|
||||||
|
|
||||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
|
||||||
|
|
||||||
:win9xME_args
|
:win9xME_args
|
||||||
@rem Slurp the command line arguments.
|
@rem Slurp the command line arguments.
|
||||||
@@ -60,11 +75,6 @@ set _SKIP=2
|
|||||||
if "x%~1" == "x" goto execute
|
if "x%~1" == "x" goto execute
|
||||||
|
|
||||||
set CMD_LINE_ARGS=%*
|
set CMD_LINE_ARGS=%*
|
||||||
goto execute
|
|
||||||
|
|
||||||
:4NT_args
|
|
||||||
@rem Get arguments from the 4NT Shell from JP Software
|
|
||||||
set CMD_LINE_ARGS=%$
|
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|||||||
2
jGui
1
libs/ReplayStudio
Submodule
288
root.gradle.kts
Executable file
@@ -0,0 +1,288 @@
|
|||||||
|
import groovy.json.JsonOutput
|
||||||
|
import java.io.ByteArrayOutputStream
|
||||||
|
import org.gradle.kotlin.dsl.support.serviceOf
|
||||||
|
import org.gradle.process.ExecOperations
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("gg.essential.multi-version.root")
|
||||||
|
id("gg.essential.loom") version "1.15.48" apply false
|
||||||
|
kotlin("jvm") version "2.3.20" apply false
|
||||||
|
id("com.github.hierynomus.license") version "0.15.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
val latestVersion = file("version.txt").readLines().first()
|
||||||
|
var releaseCommit = providers.exec {
|
||||||
|
commandLine("git", "blame", "-p", "-l", "version.txt")
|
||||||
|
}.standardOutput.asText.map { it.trim().split("/n").first().split(" ").first() }.get()
|
||||||
|
if (latestVersion == "2.1.0") { // First version since change from tag-based
|
||||||
|
releaseCommit = "35ac26e91689ac9bdf12dbb9902c452464a75108" // git rev-parse 1.12.2-2.1.0
|
||||||
|
}
|
||||||
|
val currentCommit = providers.exec {
|
||||||
|
commandLine("git", "rev-parse", "HEAD")
|
||||||
|
}.standardOutput.asText.map { it.trim().split("/n").first() }.get()
|
||||||
|
if (releaseCommit == currentCommit) {
|
||||||
|
version = latestVersion
|
||||||
|
} else {
|
||||||
|
val diff = providers.exec {
|
||||||
|
commandLine("git", "log", "--format=oneline", "$releaseCommit..$currentCommit")
|
||||||
|
}.standardOutput.asText.map { it.trim().split("/n").size }.get()
|
||||||
|
version = "$latestVersion-$diff-g${currentCommit.substring(0, 7)}"
|
||||||
|
}
|
||||||
|
val dirty = providers.exec {
|
||||||
|
commandLine("git", "describe", "--always", "--dirty=*")
|
||||||
|
}.standardOutput.asText.map { it.trim().endsWith("*") }.get()
|
||||||
|
if (dirty) {
|
||||||
|
version = "$version-dirty"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.replaymod"
|
||||||
|
|
||||||
|
val bundleJar by tasks.registering(Copy::class) {
|
||||||
|
into("$buildDir/libs")
|
||||||
|
}
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven("https://jitpack.io")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (name == "jGui" || name == "ReplayStudio") {
|
||||||
|
return@subprojects
|
||||||
|
}
|
||||||
|
val (major, minor, patch) = name.split("-")[0].split(".") + listOf("0")
|
||||||
|
val mcVersion = major.toInt() * 10000 + minor.toInt() * 100 + patch.toInt()
|
||||||
|
val fabric = mcVersion >= 1_14_00 && !name.endsWith("-forge")
|
||||||
|
extra.set("loom.platform", if (fabric) "fabric" else "forge")
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
val projectBundleJar = project.tasks.findByName("bundleJar")
|
||||||
|
if (projectBundleJar != null && projectBundleJar.hasProperty("archivePath") && project.name != "core") {
|
||||||
|
bundleJar.configure {
|
||||||
|
dependsOn(projectBundleJar)
|
||||||
|
from(projectBundleJar.withGroovyBuilder { getProperty("archivePath") })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ExecOperations.command(vararg cmd: String): List<String> {
|
||||||
|
val stdout = ByteArrayOutputStream()
|
||||||
|
exec {
|
||||||
|
commandLine(*cmd)
|
||||||
|
standardOutput = stdout
|
||||||
|
}
|
||||||
|
return stdout.toString().trim().split("\n")
|
||||||
|
}
|
||||||
|
|
||||||
|
fun generateVersionsJson(execOps: ExecOperations): Map<String, Any> {
|
||||||
|
fun command(vararg cmd: String): List<String> =
|
||||||
|
execOps.command(*cmd)
|
||||||
|
|
||||||
|
val versionComparator = compareBy<String>(
|
||||||
|
{ (it.split(".").getOrNull(0) ?: "0").toInt() },
|
||||||
|
{ (it.split(".").getOrNull(1) ?: "0").toInt() },
|
||||||
|
{ (it.split(".").getOrNull(2) ?: "0").toInt() }
|
||||||
|
)
|
||||||
|
|
||||||
|
// Find all tag-style releases by listing all tags
|
||||||
|
val tagVersions = command("git", "for-each-ref", "--sort=taggerdate", "--format=%(refname:short)", "refs/tags")
|
||||||
|
|
||||||
|
// Find all commit-style releases
|
||||||
|
// List all commits
|
||||||
|
val releaseCommits =
|
||||||
|
command("git", "log", "--format=%H", "--date-order", "-E",
|
||||||
|
"--grep", "Pre-release [0-9]+ of [0-9]+\\.[0-9]+\\.[0-9]+",
|
||||||
|
"--grep", "Release [0-9]+\\.[0-9]+\\.[0-9]+")
|
||||||
|
// Find version string and MC versions for each commit hash
|
||||||
|
val commitVersions = releaseCommits.map { commit ->
|
||||||
|
val version = command("git", "show", "$commit:version.txt").first()
|
||||||
|
val mcVersions = command("git", "ls-tree", "-d", "--name-only", "$commit:versions")
|
||||||
|
// In the past (early days of preprocessor) we used to have an internal "core" project
|
||||||
|
.filter { it != "core" }
|
||||||
|
// Internal project used to automatically remap from Forge 1.12.2 to Fabric 1.14.4
|
||||||
|
.filter { it != "1.14.4-forge" }
|
||||||
|
// We dropped 1.8 with the switch to archloom but still kept its source in case someone
|
||||||
|
// volunteers to make it build again
|
||||||
|
.filterNot { it == "1.8" && versionComparator.compare(version, "2.6.16") >= 0 }
|
||||||
|
// We dropped 1.7.10 with the Gradle 7 update but still kept its source in case someone
|
||||||
|
// volunteers to ~~update FG 1.2 to Gradle 7~~ make it work with archloom.
|
||||||
|
.filterNot { it == "1.7.10" && versionComparator.compare(version, "2.6.0") >= 0 }
|
||||||
|
val versions = mcVersions.map { "$it-$version" }.toMutableList()
|
||||||
|
when (version) {
|
||||||
|
"2.6.7" -> versions.add("1.19.1-2.6.7") // forgot to add the .gitkeep file before merging
|
||||||
|
}
|
||||||
|
versions
|
||||||
|
}.flatten()
|
||||||
|
|
||||||
|
val versions = commitVersions + tagVersions.reversed()
|
||||||
|
val mcVersions = versions
|
||||||
|
.map {it.substring(0, it.indexOf("-"))}
|
||||||
|
.distinct()
|
||||||
|
.sortedWith(versionComparator)
|
||||||
|
|
||||||
|
val promos = mutableMapOf<String, String>()
|
||||||
|
val root = mutableMapOf<String, Any>(
|
||||||
|
"homepage" to "https://www.replaymod.com/download/",
|
||||||
|
"promos" to promos
|
||||||
|
)
|
||||||
|
mcVersions.forEach { mcVersion ->
|
||||||
|
var mcVersionRoot = mutableMapOf<String, String>()
|
||||||
|
var latest: String? = null
|
||||||
|
var recommended: String? = null
|
||||||
|
versions.forEach {
|
||||||
|
val (thisMcVersion, modVersion, preVersion) = it.split("-") + listOf(null, null)
|
||||||
|
if (thisMcVersion == mcVersion) {
|
||||||
|
mcVersionRoot[it] = "See https://www.replaymod.com/changelog.txt"
|
||||||
|
if (latest == null) latest = it
|
||||||
|
if (preVersion == null) {
|
||||||
|
if (recommended == null) recommended = it
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root[mcVersion] = mcVersionRoot
|
||||||
|
promos[mcVersion + "-latest"] = latest!!
|
||||||
|
if (recommended != null) {
|
||||||
|
promos[mcVersion + "-recommended"] = recommended!!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return root
|
||||||
|
}
|
||||||
|
|
||||||
|
val writeVersionsJson by tasks.registering {
|
||||||
|
val execOps = project.serviceOf<ExecOperations>()
|
||||||
|
doLast {
|
||||||
|
val versionsRoot = generateVersionsJson(execOps)
|
||||||
|
val versionsJson = JsonOutput.prettyPrint(JsonOutput.toJson(versionsRoot))
|
||||||
|
File("versions.json").writeText(versionsJson)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val doRelease by tasks.registering {
|
||||||
|
val execOps = project.serviceOf<ExecOperations>()
|
||||||
|
|
||||||
|
doLast {
|
||||||
|
fun command(vararg cmd: String): List<String> =
|
||||||
|
execOps.command(*cmd)
|
||||||
|
|
||||||
|
// Parse version
|
||||||
|
val version = project.extra["releaseVersion"] as String
|
||||||
|
if (command("git", "describe", "--always", "--dirty=*").first().endsWith("*")) {
|
||||||
|
throw InvalidUserDataException("Git working tree is dirty. Make sure to commit all changes.")
|
||||||
|
}
|
||||||
|
val (modVersion, preVersion) = if ("-b" in version) {
|
||||||
|
version.split("-b")
|
||||||
|
} else {
|
||||||
|
listOf(version, null)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Merge release branch into stable but do not yet commit (we need to update the version.txt first)
|
||||||
|
command("git", "checkout", "stable")
|
||||||
|
command("git", "merge", "--no-ff", "--no-commit", "release-$version")
|
||||||
|
|
||||||
|
// Update version.txt
|
||||||
|
file("version.txt").writeText("$version\n")
|
||||||
|
command("git", "add", "version.txt")
|
||||||
|
|
||||||
|
// Finallize the merge. The message is what is later used to identify releses for building the version.json tree
|
||||||
|
val commitMessage = if (preVersion != null)
|
||||||
|
"Pre-release $preVersion of $modVersion"
|
||||||
|
else
|
||||||
|
"Release $modVersion"
|
||||||
|
command("git", "commit", "-m", commitMessage)
|
||||||
|
|
||||||
|
// Generate versions.json content
|
||||||
|
val versionsRoot = generateVersionsJson(execOps)
|
||||||
|
val versionsJson = JsonOutput.prettyPrint(JsonOutput.toJson(versionsRoot))
|
||||||
|
|
||||||
|
// Switch to master branch to update versions.json
|
||||||
|
command("git", "checkout", "master")
|
||||||
|
|
||||||
|
// Write versions.json
|
||||||
|
File("versions.json").writeText(versionsJson)
|
||||||
|
|
||||||
|
// Commit changes
|
||||||
|
command("git", "add", "versions.json")
|
||||||
|
command("git", "commit", "-m", "Update versions.json for $version")
|
||||||
|
|
||||||
|
// Return to previous branch
|
||||||
|
command("git", "checkout", "-")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultTasks("bundleJar")
|
||||||
|
|
||||||
|
preprocess {
|
||||||
|
strictExtraMappings.set(true)
|
||||||
|
|
||||||
|
val mc26_01_00 = createNode("26.1", 26_01_00, "yarn")
|
||||||
|
val mc12111 = createNode("1.21.11", 12111, "yarn")
|
||||||
|
val mc12110 = createNode("1.21.10", 12110, "yarn")
|
||||||
|
val mc12107 = createNode("1.21.7", 12107, "yarn")
|
||||||
|
val mc12105 = createNode("1.21.5", 12105, "yarn")
|
||||||
|
val mc12104 = createNode("1.21.4", 12104, "yarn")
|
||||||
|
val mc12102 = createNode("1.21.2", 12102, "yarn")
|
||||||
|
val mc12100 = createNode("1.21", 12100, "yarn")
|
||||||
|
val mc12006 = createNode("1.20.6", 12006, "yarn")
|
||||||
|
val mc12004 = createNode("1.20.4", 12004, "yarn")
|
||||||
|
val mc12002 = createNode("1.20.2", 12002, "yarn")
|
||||||
|
val mc12001 = createNode("1.20.1", 12001, "yarn")
|
||||||
|
val mc11904 = createNode("1.19.4", 11904, "yarn")
|
||||||
|
val mc11903 = createNode("1.19.3", 11903, "yarn")
|
||||||
|
val mc11902 = createNode("1.19.2", 11902, "yarn")
|
||||||
|
val mc11901 = createNode("1.19.1", 11901, "yarn")
|
||||||
|
val mc11900 = createNode("1.19", 11900, "yarn")
|
||||||
|
val mc11802 = createNode("1.18.2", 11802, "yarn")
|
||||||
|
val mc11801 = createNode("1.18.1", 11801, "yarn")
|
||||||
|
val mc11701 = createNode("1.17.1", 11701, "yarn")
|
||||||
|
val mc11604 = createNode("1.16.4", 11604, "yarn")
|
||||||
|
val mc11601 = createNode("1.16.1", 11601, "yarn")
|
||||||
|
val mc11502 = createNode("1.15.2", 11502, "yarn")
|
||||||
|
val mc11404 = createNode("1.14.4", 11404, "yarn")
|
||||||
|
val mc11404Forge = createNode("1.14.4-forge", 11404, "srg")
|
||||||
|
val mc11202 = createNode("1.12.2", 11202, "srg")
|
||||||
|
val mc11201 = createNode("1.12.1", 11201, "srg")
|
||||||
|
val mc11200 = createNode("1.12", 11200, "srg")
|
||||||
|
val mc11102 = createNode("1.11.2", 11102, "srg")
|
||||||
|
val mc11100 = createNode("1.11", 11100, "srg")
|
||||||
|
val mc11002 = createNode("1.10.2", 11002, "srg")
|
||||||
|
val mc10904 = createNode("1.9.4", 10904, "srg")
|
||||||
|
val mc10809 = createNode("1.8.9", 10809, "srg")
|
||||||
|
val mc10800 = createNode("1.8", 10800, "srg")
|
||||||
|
val mc10710 = createNode("1.7.10", 10710, "srg")
|
||||||
|
|
||||||
|
mc26_01_00.link(mc12111, file("versions/mapping-fabric-26.1-1.21.11.txt"))
|
||||||
|
mc12111.link(mc12110, file("versions/mapping-fabric-1.21.11-1.21.10.txt"))
|
||||||
|
mc12110.link(mc12107, file("versions/mapping-fabric-1.21.10-1.21.7.txt"))
|
||||||
|
mc12107.link(mc12105)
|
||||||
|
mc12105.link(mc12104, file("versions/mapping-fabric-1.21.5-1.21.4.txt"))
|
||||||
|
mc12104.link(mc12102)
|
||||||
|
mc12102.link(mc12100)
|
||||||
|
mc12100.link(mc12006)
|
||||||
|
mc12006.link(mc12004)
|
||||||
|
mc12004.link(mc12002, file("versions/mapping-fabric-1.20.4-1.20.2.txt"))
|
||||||
|
mc12002.link(mc12001)
|
||||||
|
mc12001.link(mc11904, file("versions/mapping-fabric-1.20.1-1.19.4.txt"))
|
||||||
|
mc11904.link(mc11903, file("versions/mapping-fabric-1.19.4-1.19.3.txt"))
|
||||||
|
mc11903.link(mc11902, file("versions/mapping-fabric-1.19.3-1.19.2.txt"))
|
||||||
|
mc11902.link(mc11901)
|
||||||
|
mc11901.link(mc11900)
|
||||||
|
mc11900.link(mc11802)
|
||||||
|
mc11802.link(mc11801)
|
||||||
|
mc11801.link(mc11701, file("versions/mapping-fabric-1.18.1-1.17.1.txt"))
|
||||||
|
mc11701.link(mc11604, file("versions/mapping-fabric-1.17.1-1.16.4.txt"))
|
||||||
|
mc11604.link(mc11601)
|
||||||
|
mc11601.link(mc11502)
|
||||||
|
mc11502.link(mc11404, file("versions/mapping-fabric-1.15.2-1.14.4.txt"))
|
||||||
|
mc11404.link(mc11404Forge)
|
||||||
|
mc11404Forge.link(mc11202, file("versions/mapping-forge-1.14.4-1.12.2.txt"))
|
||||||
|
mc11202.link(mc11201)
|
||||||
|
mc11201.link(mc11200)
|
||||||
|
mc11200.link(mc11102)
|
||||||
|
mc11102.link(mc11100)
|
||||||
|
mc11100.link(mc11002)
|
||||||
|
mc11002.link(mc10904)
|
||||||
|
mc10904.link(mc10809, file("versions/mapping-forge-1.9.4-1.8.9.txt"))
|
||||||
|
mc10809.link(mc10800, file("versions/mapping-forge-1.8.9-1.8.txt"))
|
||||||
|
mc10800.link(mc10710, file("versions/mapping-forge-1.8-1.7.10.txt"))
|
||||||
|
}
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
if (System.getenv('REPRODUCIBLE_BUILD') == '1') {
|
|
||||||
rootProject.buildFileName = 'gradle/reprod/tmp/build.gradle'
|
|
||||||
} else {
|
|
||||||
include 'ReplayStudio'
|
|
||||||
}
|
|
||||||
112
settings.gradle.kts
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
gradlePluginPortal()
|
||||||
|
mavenCentral()
|
||||||
|
google()
|
||||||
|
maven("https://jitpack.io")
|
||||||
|
maven("https://maven.fabricmc.net")
|
||||||
|
maven("https://maven.architectury.dev/")
|
||||||
|
maven("https://maven.minecraftforge.net")
|
||||||
|
maven("https://repo.essential.gg/repository/maven-public")
|
||||||
|
}
|
||||||
|
plugins {
|
||||||
|
id("gg.essential.multi-version.root") version "0.7.0-alpha.4"
|
||||||
|
id("com.gradleup.shadow") version "9.4.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val jGuiVersions = listOf(
|
||||||
|
// "1.7.10",
|
||||||
|
// "1.8",
|
||||||
|
"1.8.9",
|
||||||
|
"1.9.4",
|
||||||
|
"1.12",
|
||||||
|
"1.14.4-forge",
|
||||||
|
"1.14.4",
|
||||||
|
"1.15.2",
|
||||||
|
"1.16.1",
|
||||||
|
"1.16.4",
|
||||||
|
"1.17.1",
|
||||||
|
"1.18.1",
|
||||||
|
"1.18.2",
|
||||||
|
"1.19",
|
||||||
|
"1.19.1",
|
||||||
|
"1.19.2",
|
||||||
|
"1.19.3",
|
||||||
|
"1.19.4",
|
||||||
|
"1.20.1",
|
||||||
|
"1.20.2",
|
||||||
|
"1.20.4",
|
||||||
|
"1.20.6",
|
||||||
|
"1.21",
|
||||||
|
"1.21.2",
|
||||||
|
"1.21.4",
|
||||||
|
"1.21.5",
|
||||||
|
"1.21.7",
|
||||||
|
"1.21.10",
|
||||||
|
"1.21.11",
|
||||||
|
"26.1",
|
||||||
|
)
|
||||||
|
val replayModVersions = listOf(
|
||||||
|
// "1.7.10",
|
||||||
|
// "1.8",
|
||||||
|
"1.8.9",
|
||||||
|
"1.9.4",
|
||||||
|
"1.10.2",
|
||||||
|
"1.11",
|
||||||
|
"1.11.2",
|
||||||
|
"1.12",
|
||||||
|
"1.12.1",
|
||||||
|
"1.12.2",
|
||||||
|
"1.14.4-forge",
|
||||||
|
"1.14.4",
|
||||||
|
"1.15.2",
|
||||||
|
"1.16.1",
|
||||||
|
"1.16.4",
|
||||||
|
"1.17.1",
|
||||||
|
"1.18.1",
|
||||||
|
"1.18.2",
|
||||||
|
"1.19",
|
||||||
|
"1.19.1",
|
||||||
|
"1.19.2",
|
||||||
|
"1.19.3",
|
||||||
|
"1.19.4",
|
||||||
|
"1.20.1",
|
||||||
|
"1.20.2",
|
||||||
|
"1.20.4",
|
||||||
|
"1.20.6",
|
||||||
|
"1.21",
|
||||||
|
"1.21.2",
|
||||||
|
"1.21.4",
|
||||||
|
"1.21.5",
|
||||||
|
"1.21.7",
|
||||||
|
"1.21.10",
|
||||||
|
"1.21.11",
|
||||||
|
"26.1",
|
||||||
|
)
|
||||||
|
|
||||||
|
rootProject.buildFileName = "root.gradle.kts"
|
||||||
|
|
||||||
|
includeBuild("libs/ReplayStudio")
|
||||||
|
|
||||||
|
include(":jGui")
|
||||||
|
project(":jGui").apply {
|
||||||
|
projectDir = file("jGui")
|
||||||
|
buildFileName = "root.gradle.kts"
|
||||||
|
}
|
||||||
|
jGuiVersions.forEach { version ->
|
||||||
|
include(":jGui:$version")
|
||||||
|
project(":jGui:$version").apply {
|
||||||
|
projectDir = file("jGui/versions/$version")
|
||||||
|
buildFileName = "../../build.gradle.kts"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
replayModVersions.forEach { version ->
|
||||||
|
include(":$version")
|
||||||
|
project(":$version").apply {
|
||||||
|
projectDir = file("versions/$version")
|
||||||
|
buildFileName = "../../build.gradle.kts"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -299,7 +299,7 @@ public abstract class AbstractTask implements Task {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
clickNow(button.xPosition + 5, button.yPosition + 5);
|
clickNow(button.x + 5, button.y + 5);
|
||||||
} catch (IllegalAccessException | NoSuchFieldException e) {
|
} catch (IllegalAccessException | NoSuchFieldException e) {
|
||||||
future.setException(e);
|
future.setException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,11 @@ public class ReplayModIntegrationTest {
|
|||||||
// Make sure the game window doesn't have to remain in focus during the test
|
// Make sure the game window doesn't have to remain in focus during the test
|
||||||
mc.gameSettings.pauseOnLostFocus = false;
|
mc.gameSettings.pauseOnLostFocus = false;
|
||||||
|
|
||||||
|
// Vanilla uses our keys
|
||||||
|
mc.gameSettings.keyBindAdvancements.setKeyCode(0);
|
||||||
|
mc.gameSettings.keyBindLoadToolbar.setKeyCode(0);
|
||||||
|
mc.gameSettings.keyBindSaveToolbar.setKeyCode(0);
|
||||||
|
|
||||||
runTasks(
|
runTasks(
|
||||||
new SkipLogin(),
|
new SkipLogin(),
|
||||||
new DownloadOpenEye(),
|
new DownloadOpenEye(),
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ import java.nio.file.NoSuchFileException;
|
|||||||
public class DownloadOpenEye extends AbstractTask {
|
public class DownloadOpenEye extends AbstractTask {
|
||||||
@Override
|
@Override
|
||||||
protected void init() {
|
protected void init() {
|
||||||
|
if ("1".equals(System.getenv("RM_INTEGRATION_TEST_NO_OPENEYE"))) {
|
||||||
|
runLater(() -> future.set(null));
|
||||||
|
return;
|
||||||
|
}
|
||||||
expectGui(OpenEyeExtra.OfferGui.class, offerGui -> {
|
expectGui(OpenEyeExtra.OfferGui.class, offerGui -> {
|
||||||
click(offerGui.yesButton);
|
click(offerGui.yesButton);
|
||||||
expectGuiClosed(20 * 1000, () -> {
|
expectGuiClosed(20 * 1000, () -> {
|
||||||
|
|||||||
@@ -1,39 +1,37 @@
|
|||||||
package com.replaymod.compat;
|
package com.replaymod.compat;
|
||||||
|
|
||||||
import com.replaymod.compat.bettersprinting.DisableBetterSprinting;
|
|
||||||
import com.replaymod.compat.optifine.DisableFastRender;
|
import com.replaymod.compat.optifine.DisableFastRender;
|
||||||
import com.replaymod.compat.oranges17animations.HideInvisibleEntities;
|
import com.replaymod.core.Module;
|
||||||
import com.replaymod.compat.shaders.ShaderBeginRender;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
|
||||||
import net.minecraftforge.fml.common.Mod;
|
|
||||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
|
||||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.EventBus;
|
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
@Mod(modid = ReplayModCompat.MOD_ID,
|
//#if MC<11400
|
||||||
version = "@MOD_VERSION@",
|
//$$ import com.replaymod.compat.oranges17animations.HideInvisibleEntities;
|
||||||
acceptedMinecraftVersions = "@MC_VERSION@",
|
//#endif
|
||||||
acceptableRemoteVersions = "*",
|
|
||||||
clientSideOnly = true,
|
|
||||||
useMetadata = true)
|
|
||||||
public class ReplayModCompat {
|
|
||||||
public static final String MOD_ID = "replaymod-compat";
|
|
||||||
|
|
||||||
public static Logger LOGGER;
|
//#if MC<11400
|
||||||
|
//$$ import com.replaymod.compat.bettersprinting.DisableBetterSprinting;
|
||||||
|
//#endif
|
||||||
|
|
||||||
@Mod.EventHandler
|
//#if MC>=10800
|
||||||
public void preInit(FMLPreInitializationEvent event) {
|
import com.replaymod.compat.shaders.ShaderBeginRender;
|
||||||
LOGGER = event.getModLog();
|
//#endif
|
||||||
}
|
|
||||||
|
|
||||||
@Mod.EventHandler
|
public class ReplayModCompat implements Module {
|
||||||
public void init(FMLInitializationEvent event) {
|
public static Logger LOGGER = LogManager.getLogger();
|
||||||
EventBus bus = MinecraftForge.EVENT_BUS;
|
|
||||||
bus.register(new ShaderBeginRender());
|
@Override
|
||||||
bus.register(new DisableFastRender());
|
public void initClient() {
|
||||||
bus.register(new HideInvisibleEntities());
|
//#if MC>=10800
|
||||||
DisableBetterSprinting.register();
|
new ShaderBeginRender().register();
|
||||||
|
//#endif
|
||||||
|
new DisableFastRender().register();
|
||||||
|
//#if MC<11400
|
||||||
|
//$$ new HideInvisibleEntities().register();
|
||||||
|
//#endif
|
||||||
|
//#if MC<11400
|
||||||
|
//$$ DisableBetterSprinting.register();
|
||||||
|
//#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,108 +1 @@
|
|||||||
package com.replaymod.compat.bettersprinting;
|
// 1.12.2 and below
|
||||||
|
|
||||||
import com.replaymod.replay.ReplayModReplay;
|
|
||||||
import com.replaymod.replay.events.ReplayChatMessageEvent;
|
|
||||||
import net.minecraft.block.state.IBlockState;
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.multiplayer.PlayerControllerMP;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.util.SoundCategory;
|
|
||||||
import net.minecraft.util.SoundEvent;
|
|
||||||
import net.minecraft.util.math.BlockPos;
|
|
||||||
import net.minecraft.world.IWorldEventListener;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.client.event.GuiOpenEvent;
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
|
||||||
import net.minecraftforge.fml.common.Loader;
|
|
||||||
import net.minecraftforge.fml.common.ModContainer;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.EventPriority;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|
||||||
import net.minecraftforge.fml.common.versioning.DefaultArtifactVersion;
|
|
||||||
import net.minecraftforge.fml.common.versioning.Restriction;
|
|
||||||
import net.minecraftforge.fml.common.versioning.VersionRange;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
|
||||||
import java.util.Collections;
|
|
||||||
|
|
||||||
import static com.replaymod.compat.ReplayModCompat.LOGGER;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Old Better Sprinting versions replace the vanilla player with their own, overridden instance (replacing the camera entity).
|
|
||||||
*
|
|
||||||
* See: https://github.com/chylex/Better-Sprinting/blob/1.8/src/main/java/chylex/bettersprinting/client/player/impl/LogicImplOverride.java
|
|
||||||
*/
|
|
||||||
public class DisableBetterSprinting {
|
|
||||||
private static final VersionRange OLD_VERSION = VersionRange.newRange(null,
|
|
||||||
Collections.singletonList(new Restriction(null, false, new DefaultArtifactVersion("2.0.0"), false)));
|
|
||||||
private static final String LOGIC_CLASS_NAME = "chylex.bettersprinting.client.player.impl.LogicImplOverride";
|
|
||||||
private static final String CONTROLLER_OVERRIDE_CLASS_NAME = LOGIC_CLASS_NAME + "$PlayerControllerMPOverride";
|
|
||||||
|
|
||||||
public static void register() {
|
|
||||||
Loader.instance().getModList().stream()
|
|
||||||
.filter(mod -> mod.getModId().equalsIgnoreCase("bettersprinting"))
|
|
||||||
.findFirst()
|
|
||||||
.map(ModContainer::getProcessedVersion).filter(OLD_VERSION::containsVersion)
|
|
||||||
.ifPresent($_ -> MinecraftForge.EVENT_BUS.register(new DisableBetterSprinting()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private DisableBetterSprinting() {
|
|
||||||
LOGGER.info("BetterSprinting workaround enabled");
|
|
||||||
}
|
|
||||||
|
|
||||||
private final Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
private PlayerControllerMP originalController;
|
|
||||||
private BetterSprintingWorldAccess worldAccessHook = new BetterSprintingWorldAccess();
|
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.HIGH)
|
|
||||||
public void beforeGuiOpenEvent(GuiOpenEvent event) {
|
|
||||||
if (ReplayModReplay.instance.getReplayHandler() != null && mc.world != null) {
|
|
||||||
// During replay, get ready to revert BetterSprinting's overwritten playerController
|
|
||||||
originalController = mc.playerController;
|
|
||||||
mc.world.addEventListener(worldAccessHook);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.LOW)
|
|
||||||
public void afterGuiOpenEvent(GuiOpenEvent event) {
|
|
||||||
if (ReplayModReplay.instance.getReplayHandler() != null && mc.world != null) {
|
|
||||||
mc.world.addEventListener(worldAccessHook);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@SubscribeEvent
|
|
||||||
public void onReplayChatMessage(ReplayChatMessageEvent event) {
|
|
||||||
// Suppress this message if it's the Better Sprinting warning message
|
|
||||||
for (StackTraceElement elem : Thread.currentThread().getStackTrace()) {
|
|
||||||
if (LOGIC_CLASS_NAME.equals(elem.getClassName())) {
|
|
||||||
LOGGER.info("BetterSprinting warning message suppressed.");
|
|
||||||
event.setCanceled(true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private class BetterSprintingWorldAccess implements IWorldEventListener {
|
|
||||||
@Override
|
|
||||||
public void onEntityRemoved(Entity entityIn) {
|
|
||||||
if (mc.playerController != null && mc.playerController.getClass().getName().equals(CONTROLLER_OVERRIDE_CLASS_NAME)) {
|
|
||||||
// Someone has secretly swapped out the player controller and is about to substitute their own player entity.
|
|
||||||
// This is the right time to destroy their plan.
|
|
||||||
LOGGER.info("Preventing player controller {} from being replaced by BetterSprinting with {}.", originalController, mc.playerController);
|
|
||||||
mc.playerController = originalController;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override public void notifyBlockUpdate(World worldIn, BlockPos pos, IBlockState oldState, IBlockState newState, int flags) {}
|
|
||||||
@Override public void notifyLightSet(BlockPos pos) {}
|
|
||||||
@Override public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2) {}
|
|
||||||
@Override public void playSoundToAllNearExcept(@Nullable EntityPlayer player, SoundEvent soundIn, SoundCategory category, double x, double y, double z, float volume, float pitch) {}
|
|
||||||
@Override public void playRecord(SoundEvent soundIn, BlockPos pos) {}
|
|
||||||
@Override public void spawnParticle(int p_180442_1_, boolean p_180442_2_, double p_180442_3_, double p_180442_5_, double p_180442_7_, double p_180442_9_, double p_180442_11_, double p_180442_13_, int... p_180442_15_) {}
|
|
||||||
@Override public void spawnParticle(int p_190570_1_, boolean p_190570_2_, boolean p_190570_3_, double p_190570_4_, double p_190570_6_, double p_190570_8_, double p_190570_10_, double p_190570_12_, double p_190570_14_, int... p_190570_16_) {}
|
|
||||||
@Override public void onEntityAdded(Entity entityIn) {}
|
|
||||||
@Override public void broadcastSound(int p_180440_1_, BlockPos p_180440_2_, int p_180440_3_) {}
|
|
||||||
@Override public void playEvent(EntityPlayer player, int type, BlockPos blockPosIn, int data) {}
|
|
||||||
@Override public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress) {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,35 +1 @@
|
|||||||
package com.replaymod.compat.mapwriter.mixin;
|
// 1.12.2 and below
|
||||||
|
|
||||||
import com.replaymod.replay.ReplayModReplay;
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.multiplayer.ServerData;
|
|
||||||
import net.minecraftforge.fml.common.Loader;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Approximately this for <1.12: https://github.com/Vectron/mapwriter/commit/68234520c7a3a0ae8201a085d7e66369900586ac
|
|
||||||
*/
|
|
||||||
@Mixin(Minecraft.class)
|
|
||||||
public abstract class MixinMinecraft {
|
|
||||||
|
|
||||||
@Shadow
|
|
||||||
private ServerData currentServerData;
|
|
||||||
|
|
||||||
@Inject(method = "getCurrentServerData", cancellable = true, at = @At("HEAD"))
|
|
||||||
private void replayModCompat_fixBug96(CallbackInfoReturnable<ServerData> ci) {
|
|
||||||
if (currentServerData == null
|
|
||||||
&& (Loader.isModLoaded("mapwriter") || Loader.isModLoaded("MapWriter"))
|
|
||||||
&& ReplayModReplay.instance.getReplayHandler() != null) {
|
|
||||||
for (StackTraceElement elem : Thread.currentThread().getStackTrace()) {
|
|
||||||
if ("mapwriter.util.Utils".equals(elem.getClassName()) && "getWorldName".equals(elem.getMethodName())) {
|
|
||||||
ci.setReturnValue(new ServerData(null, "replay", false));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,34 +1,34 @@
|
|||||||
package com.replaymod.compat.optifine;
|
package com.replaymod.compat.optifine;
|
||||||
|
|
||||||
import com.replaymod.render.events.ReplayRenderEvent;
|
import de.johni0702.minecraft.gui.utils.EventRegistrations;
|
||||||
import net.minecraft.client.Minecraft;
|
import com.replaymod.core.versions.MCVer;
|
||||||
import net.minecraftforge.fml.client.FMLClientHandler;
|
import com.replaymod.render.events.ReplayRenderCallback;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraft.client.MinecraftClient;
|
||||||
|
|
||||||
public class DisableFastRender {
|
public class DisableFastRender extends EventRegistrations {
|
||||||
|
|
||||||
private final Minecraft mc = Minecraft.getMinecraft();
|
private final MinecraftClient mc = MinecraftClient.getInstance();
|
||||||
|
|
||||||
private boolean wasFastRender = false;
|
private boolean wasFastRender = false;
|
||||||
|
|
||||||
@SubscribeEvent
|
{ on(ReplayRenderCallback.Pre.EVENT, renderer -> onRenderBegin()); }
|
||||||
public void onRenderBegin(ReplayRenderEvent.Pre event) {
|
private void onRenderBegin() {
|
||||||
if (!FMLClientHandler.instance().hasOptifine()) return;
|
if (!MCVer.hasOptifine()) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
wasFastRender = (boolean) OptifineReflection.gameSettings_ofFastRender.get(mc.gameSettings);
|
wasFastRender = (boolean) OptifineReflection.gameSettings_ofFastRender.get(mc.options);
|
||||||
OptifineReflection.gameSettings_ofFastRender.set(mc.gameSettings, false);
|
OptifineReflection.gameSettings_ofFastRender.set(mc.options, false);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
{ on(ReplayRenderCallback.Post.EVENT, renderer -> onRenderEnd()); }
|
||||||
public void onRenderEnd(ReplayRenderEvent.Post event){
|
private void onRenderEnd() {
|
||||||
if (!FMLClientHandler.instance().hasOptifine()) return;
|
if (!MCVer.hasOptifine()) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
OptifineReflection.gameSettings_ofFastRender.set(mc.gameSettings, wasFastRender);
|
OptifineReflection.gameSettings_ofFastRender.set(mc.options, wasFastRender);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
package com.replaymod.compat.optifine;
|
package com.replaymod.compat.optifine;
|
||||||
|
|
||||||
import net.minecraft.client.settings.GameSettings;
|
import net.minecraft.client.options.GameOptions;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
import java.lang.reflect.InvocationTargetException;
|
||||||
|
|
||||||
public class OptifineReflection {
|
public class OptifineReflection {
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ public class OptifineReflection {
|
|||||||
// this throws an ignored ClassNotFoundException if Optifine isn't installed
|
// this throws an ignored ClassNotFoundException if Optifine isn't installed
|
||||||
Class.forName("Config");
|
Class.forName("Config");
|
||||||
|
|
||||||
gameSettings_ofFastRender = GameSettings.class.getDeclaredField("ofFastRender");
|
gameSettings_ofFastRender = GameOptions.class.getDeclaredField("ofFastRender");
|
||||||
gameSettings_ofFastRender.setAccessible(true);
|
gameSettings_ofFastRender.setAccessible(true);
|
||||||
} catch (ClassNotFoundException ignore) {
|
} catch (ClassNotFoundException ignore) {
|
||||||
// no optifine installed
|
// no optifine installed
|
||||||
@@ -24,4 +25,20 @@ public class OptifineReflection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void reloadLang() {
|
||||||
|
try {
|
||||||
|
Class<?> langClass;
|
||||||
|
try {
|
||||||
|
langClass = Class.forName("Lang"); // Pre Optifine 1.12.2 E1
|
||||||
|
} catch (ClassNotFoundException ignore) {
|
||||||
|
langClass = Class.forName("net.optifine.Lang"); // Post Optifine 1.12.2 E1
|
||||||
|
}
|
||||||
|
langClass.getDeclaredMethod("resourcesReloaded").invoke(null);
|
||||||
|
} catch (ClassNotFoundException ignore) {
|
||||||
|
// no optifine installed
|
||||||
|
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1 @@
|
|||||||
package com.replaymod.compat.oranges17animations;
|
// 1.12.2 and below
|
||||||
|
|
||||||
import com.replaymod.replay.camera.CameraEntity;
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraftforge.client.event.RenderLivingEvent;
|
|
||||||
import net.minecraftforge.fml.common.Loader;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.EventPriority;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Orange seems to have copied vast parts of the RendererLivingEntity into their ArmorAnimation class which cancels the RenderLivingEvent.Pre and calls its own code instead.
|
|
||||||
* This breaks our mixin which assures that, even though the camera is in spectator mode, it cannot see invisible entities.
|
|
||||||
*
|
|
||||||
* To fix this issue, we simply cancel the RenderLivingEvent.Pre before it gets to ArmorAnimation if the entity is invisible.
|
|
||||||
*/
|
|
||||||
public class HideInvisibleEntities {
|
|
||||||
private final Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
private final boolean modLoaded = Loader.isModLoaded("animations");
|
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.HIGH)
|
|
||||||
public void preRenderLiving(RenderLivingEvent.Pre event) {
|
|
||||||
if (modLoaded) {
|
|
||||||
if (mc.player instanceof CameraEntity && event.getEntity().isInvisible()) {
|
|
||||||
event.setCanceled(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,39 +1,44 @@
|
|||||||
|
//#if MC>=10800
|
||||||
package com.replaymod.compat.shaders;
|
package com.replaymod.compat.shaders;
|
||||||
|
|
||||||
|
import com.replaymod.core.events.PreRenderCallback;
|
||||||
import com.replaymod.render.hooks.EntityRendererHandler;
|
import com.replaymod.render.hooks.EntityRendererHandler;
|
||||||
import net.minecraft.client.Minecraft;
|
import de.johni0702.minecraft.gui.utils.EventRegistrations;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraftforge.fml.common.gameevent.TickEvent;
|
|
||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
|
|
||||||
public class ShaderBeginRender {
|
public class ShaderBeginRender extends EventRegistrations {
|
||||||
|
|
||||||
private final Minecraft mc = Minecraft.getMinecraft();
|
private final MinecraftClient mc = MinecraftClient.getInstance();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invokes Shaders#beginRender when rendering a video,
|
* Invokes Shaders#beginRender when rendering a video,
|
||||||
* as this would usually get called by EntityRenderer#renderWorld,
|
* as this would usually get called by EntityRenderer#renderWorld,
|
||||||
* which we're not calling during rendering.
|
* which we're not calling during rendering.
|
||||||
*/
|
*/
|
||||||
@SubscribeEvent
|
{ on(PreRenderCallback.EVENT, this::onRenderTickStart); }
|
||||||
public void onRenderTickStart(TickEvent.RenderTickEvent event) {
|
private void onRenderTickStart() {
|
||||||
if (event.phase != TickEvent.Phase.START) return;
|
|
||||||
if (ShaderReflection.shaders_beginRender == null) return;
|
if (ShaderReflection.shaders_beginRender == null) return;
|
||||||
if (ShaderReflection.config_isShaders == null) return;
|
if (ShaderReflection.config_isShaders == null) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// check if video is being rendered
|
// check if video is being rendered
|
||||||
if (((EntityRendererHandler.IEntityRenderer) mc.entityRenderer).replayModRender_getHandler() == null)
|
if (((EntityRendererHandler.IEntityRenderer) mc.gameRenderer).replayModRender_getHandler() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// check if Shaders are enabled
|
// check if Shaders are enabled
|
||||||
if (!(boolean) (ShaderReflection.config_isShaders.invoke(null))) return;
|
if (!(boolean) (ShaderReflection.config_isShaders.invoke(null))) return;
|
||||||
|
|
||||||
ShaderReflection.shaders_beginRender.invoke(null, mc, mc.timer.elapsedPartialTicks, 0);
|
ShaderReflection.shaders_beginRender.invoke(null, mc,
|
||||||
|
//#if MC>=11400
|
||||||
|
mc.gameRenderer.getCamera(),
|
||||||
|
//#endif
|
||||||
|
mc.getTickDelta(), 0);
|
||||||
} catch (IllegalAccessException | InvocationTargetException e) {
|
} catch (IllegalAccessException | InvocationTargetException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//#endif
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
|
//#if MC>=10800
|
||||||
package com.replaymod.compat.shaders;
|
package com.replaymod.compat.shaders;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.MinecraftClient;
|
||||||
|
|
||||||
|
//#if MC>=11400
|
||||||
|
import net.minecraft.client.render.Camera;
|
||||||
|
//#endif
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
@@ -24,16 +29,23 @@ public class ShaderReflection {
|
|||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
shaders_frameTimeCounter = Class.forName("shadersmod.client.Shaders")
|
Class<?> shadersClass;
|
||||||
.getDeclaredField("frameTimeCounter");
|
try {
|
||||||
|
shadersClass = Class.forName("shadersmod.client.Shaders"); // Pre Optifine 1.12.2 E1
|
||||||
|
} catch (ClassNotFoundException ignore) {
|
||||||
|
shadersClass = Class.forName("net.optifine.shaders.Shaders"); // Post Optifine 1.12.2 E1
|
||||||
|
}
|
||||||
|
shaders_frameTimeCounter = shadersClass.getDeclaredField("frameTimeCounter");
|
||||||
shaders_frameTimeCounter.setAccessible(true);
|
shaders_frameTimeCounter.setAccessible(true);
|
||||||
|
|
||||||
shaders_isShadowPass = Class.forName("shadersmod.client.Shaders")
|
shaders_isShadowPass = shadersClass.getDeclaredField("isShadowPass");
|
||||||
.getDeclaredField("isShadowPass");
|
|
||||||
shaders_isShadowPass.setAccessible(true);
|
shaders_isShadowPass.setAccessible(true);
|
||||||
|
|
||||||
shaders_beginRender = Class.forName("shadersmod.client.Shaders")
|
shaders_beginRender = shadersClass.getDeclaredMethod("beginRender", MinecraftClient.class,
|
||||||
.getDeclaredMethod("beginRender", Minecraft.class, float.class, long.class);
|
//#if MC>=11400
|
||||||
|
Camera.class,
|
||||||
|
//#endif
|
||||||
|
float.class, long.class);
|
||||||
shaders_beginRender.setAccessible(true);
|
shaders_beginRender.setAccessible(true);
|
||||||
|
|
||||||
renderGlobal_chunksToUpdateForced = Class.forName("net.minecraft.client.renderer.RenderGlobal")
|
renderGlobal_chunksToUpdateForced = Class.forName("net.minecraft.client.renderer.RenderGlobal")
|
||||||
@@ -51,3 +63,4 @@ public class ShaderReflection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//#endif
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
//#if MC>=11500
|
||||||
|
package com.replaymod.compat.shaders.mixin;
|
||||||
|
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.Pseudo;
|
||||||
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
|
@Pseudo
|
||||||
|
@Mixin(targets = "net/optifine/render/ChunkVisibility", remap = false)
|
||||||
|
public abstract class MixinChunkVisibility {
|
||||||
|
@Shadow
|
||||||
|
private static int counter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OF doesn't properly reset the counter when exiting a world.
|
||||||
|
* It'll only be reset when getMaxChunkY is called which only happens for
|
||||||
|
* SP worlds (i.e. not in a replay or MP).
|
||||||
|
* As a result, it may end up in a non-0 state, which will cause isFinished
|
||||||
|
* to unconditionally return false, therefore unconditionally setting
|
||||||
|
* needsTerrainUpdate to true on each call to WorldRenderer.setupTerrain,
|
||||||
|
* therefore unnecessarily consuming resources and live-locking when
|
||||||
|
* rendering the shader pass.
|
||||||
|
*/
|
||||||
|
@Inject(method = "reset", at = @At("HEAD"), remap = false)
|
||||||
|
private static void replayModCompat_fixImproperReset(CallbackInfo ci) {
|
||||||
|
MixinChunkVisibility.counter = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
@@ -1,18 +1,27 @@
|
|||||||
|
//#if MC>=10800
|
||||||
package com.replaymod.compat.shaders.mixin;
|
package com.replaymod.compat.shaders.mixin;
|
||||||
|
|
||||||
import com.replaymod.compat.shaders.ShaderReflection;
|
import com.replaymod.compat.shaders.ShaderReflection;
|
||||||
import com.replaymod.replay.ReplayHandler;
|
import com.replaymod.replay.ReplayHandler;
|
||||||
import com.replaymod.replay.ReplayModReplay;
|
import com.replaymod.replay.ReplayModReplay;
|
||||||
import net.minecraft.client.renderer.EntityRenderer;
|
import net.minecraft.client.render.GameRenderer;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
@Mixin(EntityRenderer.class)
|
@Mixin(GameRenderer.class)
|
||||||
public abstract class MixinShaderEntityRenderer {
|
public abstract class MixinShaderEntityRenderer {
|
||||||
|
|
||||||
@Inject(method = "renderWorldPass", at = @At("HEAD"))
|
//#if MC>=11400
|
||||||
|
@Inject(method = "renderWorld", at = @At("HEAD"))
|
||||||
|
//#else
|
||||||
|
//#if MC>=11400
|
||||||
|
//$$ @Inject(method = "updateCameraAndRender(FJ)V", at = @At("HEAD"))
|
||||||
|
//#else
|
||||||
|
//$$ @Inject(method = "renderWorldPass", at = @At("HEAD"))
|
||||||
|
//#endif
|
||||||
|
//#endif
|
||||||
private void replayModCompat_updateShaderFrameTimeCounter(CallbackInfo ignore) {
|
private void replayModCompat_updateShaderFrameTimeCounter(CallbackInfo ignore) {
|
||||||
if (ReplayModReplay.instance.getReplayHandler() == null) return;
|
if (ReplayModReplay.instance.getReplayHandler() == null) return;
|
||||||
if (ShaderReflection.shaders_frameTimeCounter == null) return;
|
if (ShaderReflection.shaders_frameTimeCounter == null) return;
|
||||||
@@ -26,3 +35,4 @@ public abstract class MixinShaderEntityRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//#endif
|
||||||
|
|||||||
@@ -1,28 +1,71 @@
|
|||||||
|
//#if MC>=10800 && MC<11800
|
||||||
package com.replaymod.compat.shaders.mixin;
|
package com.replaymod.compat.shaders.mixin;
|
||||||
|
|
||||||
import com.replaymod.render.hooks.EntityRendererHandler;
|
import com.replaymod.render.hooks.EntityRendererHandler;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.renderer.chunk.RenderChunk;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
@Mixin(RenderChunk.class)
|
//#if MC>=11500
|
||||||
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
//#if MC>=11500
|
||||||
|
@Mixin(net.minecraft.client.render.chunk.ChunkBuilder.BuiltChunk.class)
|
||||||
|
//#else
|
||||||
|
//$$ @Mixin(net.minecraft.client.render.chunk.ChunkRenderer.class)
|
||||||
|
//#endif
|
||||||
public abstract class MixinShaderRenderChunk {
|
public abstract class MixinShaderRenderChunk {
|
||||||
|
|
||||||
private final Minecraft mc = Minecraft.getMinecraft();
|
private final MinecraftClient mc = MinecraftClient.getInstance();
|
||||||
|
|
||||||
|
//#if MC>=11500
|
||||||
|
@Shadow private int rebuildFrame;
|
||||||
|
|
||||||
|
@Shadow public abstract boolean shouldBuild();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* So, for some reason OF though it'd be a good idea to drop the `shouldBuild` check from the chunk traversal in
|
||||||
|
* the setupTerrain method (see the innermost if of the "iteration" profiler section).
|
||||||
|
* Hint: It's not a good idea. It'll cause chunks to be queued for building which should not be built. And because
|
||||||
|
* they don't know any better, they'll even re-queue themselves (which looks like a race condition in vanilla
|
||||||
|
* MC) causing a live-lock when we try to force-build all chunks (or at least it would cause a lockup if it
|
||||||
|
* wasn't for the vanilla race condition which slowly causes some of the rebuild tasks to get lost over time,
|
||||||
|
* eventually, potentially all of them).
|
||||||
|
* This is the most convenient place to re-introduce the check (setRebuildFrame would normally be called right after
|
||||||
|
* shouldBuild, if it returns true).
|
||||||
|
*/
|
||||||
|
@Inject(method = "setRebuildFrame", at = @At("HEAD"), cancellable = true)
|
||||||
|
private void replayModCompat_OFHaveYouConsideredWhetherThisChunkShouldEvenBeBuilt(int rebuildFrame, CallbackInfoReturnable<Boolean> ci) {
|
||||||
|
if (this.rebuildFrame == rebuildFrame) {
|
||||||
|
// want to keep the fast path
|
||||||
|
ci.setReturnValue(false);
|
||||||
|
} else if (!this.shouldBuild()) {
|
||||||
|
// this is the check which OF removed
|
||||||
|
// So, I think I figured out the reason why optifine applies this change: It's so chunks which are outside
|
||||||
|
// the server view distance are still rendered if they've previously compiled. The bug still stands but
|
||||||
|
// fixing it breaks OF's broken feature, so to reduce the impact of our fix, we only apply it during
|
||||||
|
// rendering where it affects us the most.
|
||||||
|
if (((EntityRendererHandler.IEntityRenderer) mc.gameRenderer).replayModRender_getHandler() == null) return;
|
||||||
|
ci.setReturnValue(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Changes the RenderChunk#isPlayerUpdate method that Optifine adds
|
* Changes the RenderChunk#isPlayerUpdate method that Optifine adds
|
||||||
* to always return true while rendering so no chunks are being added
|
* to always return true while rendering so no chunks are being added
|
||||||
* to a separate rendering queue
|
* to a separate rendering queue
|
||||||
*/
|
*/
|
||||||
@Inject(method = "isPlayerUpdate", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "isPlayerUpdate", at = @At("HEAD"), cancellable = true, remap = false)
|
||||||
private void replayModCompat_disableIsPlayerUpdate(CallbackInfoReturnable<Boolean> ci) {
|
private void replayModCompat_disableIsPlayerUpdate(CallbackInfoReturnable<Boolean> ci) {
|
||||||
if (((EntityRendererHandler.IEntityRenderer) mc.entityRenderer).replayModRender_getHandler() == null) return;
|
if (((EntityRendererHandler.IEntityRenderer) mc.gameRenderer).replayModRender_getHandler() == null) return;
|
||||||
ci.setReturnValue(true);
|
ci.setReturnValue(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//#endif
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
package com.replaymod.compat.shaders.mixin;
|
|
||||||
|
|
||||||
import com.replaymod.compat.shaders.ShaderReflection;
|
|
||||||
import com.replaymod.render.hooks.EntityRendererHandler;
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.renderer.RenderGlobal;
|
|
||||||
import net.minecraft.client.renderer.culling.ICamera;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|
||||||
|
|
||||||
@Mixin(RenderGlobal.class)
|
|
||||||
public abstract class MixinShaderRenderGlobal {
|
|
||||||
|
|
||||||
private final Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
|
|
||||||
@Shadow
|
|
||||||
public boolean displayListEntitiesDirty;
|
|
||||||
|
|
||||||
@Inject(method = "setupTerrain", at = @At("HEAD"), cancellable = true)
|
|
||||||
public void replayModCompat_setupTerrain(Entity viewEntity, double partialTicks, ICamera camera,
|
|
||||||
int frameCount, boolean playerSpectator, CallbackInfo ci) {
|
|
||||||
if (((EntityRendererHandler.IEntityRenderer) mc.entityRenderer).replayModRender_getHandler() == null) return;
|
|
||||||
if (ShaderReflection.shaders_isShadowPass == null) return;
|
|
||||||
|
|
||||||
// when called by the shadow pass, displayListEntitiesDirty can't be set to false, as no chunk updates
|
|
||||||
// are being processed. As it's being set to true by ChunkLoadingRenderGlobal#updateChunks, we have to
|
|
||||||
// set it to false manually to exit the loop imposed by MixinRenderGlobal#replayModRender_setupTerrain.
|
|
||||||
try {
|
|
||||||
if ((boolean) ShaderReflection.shaders_isShadowPass.get(null) == true) {
|
|
||||||
displayListEntitiesDirty = false;
|
|
||||||
}
|
|
||||||
} catch (IllegalAccessException ignore) {}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
// 1.7.10 and below
|
||||||
@@ -1,20 +1,52 @@
|
|||||||
package com.replaymod.compat.shaders.mixin;
|
package com.replaymod.compat.shaders.mixin;
|
||||||
|
|
||||||
import net.minecraft.client.renderer.EntityRenderer;
|
import net.minecraft.client.render.GameRenderer;
|
||||||
import net.minecraftforge.client.ForgeHooksClient;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Pseudo;
|
import org.spongepowered.asm.mixin.Pseudo;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
|
//#if MC>=11600
|
||||||
|
import net.minecraft.client.render.Camera;
|
||||||
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
//#if MC>=11400
|
||||||
|
import com.replaymod.core.events.PreRenderHandCallback;
|
||||||
|
//#else
|
||||||
|
//$$ import com.replaymod.core.versions.MCVer;
|
||||||
|
//$$ import net.minecraftforge.client.ForgeHooksClient;
|
||||||
|
//#endif
|
||||||
|
|
||||||
@Pseudo
|
@Pseudo
|
||||||
@Mixin(targets = "shadersmod/client/ShadersRender", remap = false)
|
@Mixin(targets = {
|
||||||
|
"shadersmod/client/ShadersRender", // Pre Optifine 1.12.2 E1
|
||||||
|
"net/optifine/shaders/ShadersRender" // Post Optifine 1.12.2 E1
|
||||||
|
}, remap = false)
|
||||||
public abstract class MixinShadersRender {
|
public abstract class MixinShadersRender {
|
||||||
|
|
||||||
@Inject(method = "renderHand0", at = @At("HEAD"), cancellable = true)
|
@Inject(method = { "renderHand0", "renderHand1" }, at = @At("HEAD"), cancellable = true, remap = false)
|
||||||
private static void replayModCompat_disableRenderHand0(EntityRenderer er, float partialTicks, int renderPass, CallbackInfo ci) {
|
private static void replayModCompat_disableRenderHand0(
|
||||||
if (ForgeHooksClient.renderFirstPersonHand(er.mc.renderGlobal, partialTicks, renderPass)) {
|
GameRenderer er,
|
||||||
|
//#if MC>=11600
|
||||||
|
MatrixStack stack,
|
||||||
|
Camera camera,
|
||||||
|
//#endif
|
||||||
|
float partialTicks,
|
||||||
|
//#if MC<11600
|
||||||
|
//$$ int renderPass,
|
||||||
|
//#endif
|
||||||
|
CallbackInfo ci) {
|
||||||
|
//#if MC>=11400
|
||||||
|
if (PreRenderHandCallback.EVENT.invoker().preRenderHand()) {
|
||||||
|
//#else
|
||||||
|
//#if MC>=11400
|
||||||
|
//$$ if (ForgeHooksClient.renderFirstPersonHand(MCVer.getMinecraft().renderGlobal, partialTicks)) {
|
||||||
|
//#else
|
||||||
|
//$$ if (ForgeHooksClient.renderFirstPersonHand(MCVer.getMinecraft().renderGlobal, partialTicks, renderPass)) {
|
||||||
|
//#endif
|
||||||
|
//#endif
|
||||||
ci.cancel();
|
ci.cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
//#if FABRIC>=1
|
||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint;
|
||||||
|
|
||||||
|
// Required for ReplayModMMLauncher.
|
||||||
|
//
|
||||||
|
// Chain-loading mixin configurations only works when the first class that is loaded doesn't have any mixins which
|
||||||
|
// target it. The first class would ordinarily be MC's Main but there are valid use cases for targeting it, see
|
||||||
|
// e.g. https://github.com/ReplayMod/ReplayMod/issues/327
|
||||||
|
// So, instead of relying on the bad assumption that Main doesn't have any mixins, we'll instead register this
|
||||||
|
// dummy pre-launch entry point which is practically guaranteed to not have any mixins and gets called before Main.
|
||||||
|
public class DummyChainLoadEntryPoint implements PreLaunchEntrypoint {
|
||||||
|
@Override
|
||||||
|
public void onPreLaunch() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
@@ -2,107 +2,221 @@ package com.replaymod.core;
|
|||||||
|
|
||||||
import com.google.common.collect.ArrayListMultimap;
|
import com.google.common.collect.ArrayListMultimap;
|
||||||
import com.google.common.collect.Multimap;
|
import com.google.common.collect.Multimap;
|
||||||
import net.minecraft.client.settings.KeyBinding;
|
import com.replaymod.core.events.PreRenderCallback;
|
||||||
import net.minecraft.crash.CrashReport;
|
import com.replaymod.core.mixin.KeyBindingAccessor;
|
||||||
import net.minecraft.crash.CrashReportCategory;
|
import de.johni0702.minecraft.gui.function.KeyInput;
|
||||||
import net.minecraft.util.ReportedException;
|
import de.johni0702.minecraft.gui.utils.EventRegistrations;
|
||||||
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
import com.replaymod.core.events.KeyBindingEventCallback;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import com.replaymod.core.events.KeyEventCallback;
|
||||||
import net.minecraftforge.fml.common.gameevent.InputEvent;
|
import net.minecraft.client.options.KeyBinding;
|
||||||
import net.minecraftforge.fml.common.gameevent.TickEvent;
|
import net.minecraft.util.crash.CrashReport;
|
||||||
import org.lwjgl.input.Keyboard;
|
import net.minecraft.util.crash.CrashReportSection;
|
||||||
|
import net.minecraft.util.crash.CrashException;
|
||||||
|
|
||||||
|
//#if FABRIC>=1
|
||||||
|
import com.replaymod.core.versions.LangResourcePack;
|
||||||
|
//#if MC>=11600
|
||||||
|
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
|
||||||
|
//#else
|
||||||
|
//$$ import net.fabricmc.fabric.api.client.keybinding.FabricKeyBinding;
|
||||||
|
//#endif
|
||||||
|
import net.minecraft.client.util.InputUtil;
|
||||||
|
import net.minecraft.util.Identifier;
|
||||||
|
import static com.replaymod.core.ReplayMod.MOD_ID;
|
||||||
|
import static de.johni0702.minecraft.gui.versions.MCVer.identifier;
|
||||||
|
//#else
|
||||||
|
//$$ import net.minecraftforge.fml.client.registry.ClientRegistry;
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.function.Consumer;
|
||||||
|
import java.util.function.Function;
|
||||||
|
|
||||||
public class KeyBindingRegistry {
|
public class KeyBindingRegistry extends EventRegistrations {
|
||||||
private Map<String, KeyBinding> keyBindings = new HashMap<String, KeyBinding>();
|
//#if MC>=12109
|
||||||
private Multimap<KeyBinding, Runnable> keyBindingHandlers = ArrayListMultimap.create();
|
//$$ private static final KeyBinding.Category CATEGORY = KeyBinding.Category.create(identifier(MOD_ID, "general"));
|
||||||
private Multimap<KeyBinding, Runnable> repeatedKeyBindingHandlers = ArrayListMultimap.create();
|
//#else
|
||||||
private Multimap<Integer, Runnable> rawHandlers = ArrayListMultimap.create();
|
private static final String CATEGORY = "replaymod.title";
|
||||||
|
//#if FABRIC>=1 && MC<11600
|
||||||
|
//$$ static { net.fabricmc.fabric.api.client.keybinding.KeyBindingRegistry.INSTANCE.addCategory(CATEGORY); }
|
||||||
|
//#endif
|
||||||
|
//#endif
|
||||||
|
|
||||||
public void registerKeyBinding(String name, int keyCode, Runnable whenPressed) {
|
private final Map<String, Binding> bindings = new HashMap<>();
|
||||||
keyBindingHandlers.put(registerKeyBinding(name, keyCode), whenPressed);
|
private Set<KeyBinding> onlyInReplay = new HashSet<>();
|
||||||
|
private Multimap<Integer, Function<KeyInput, Boolean>> rawHandlers = ArrayListMultimap.create();
|
||||||
|
|
||||||
|
public Binding registerKeyBinding(String name, int keyCode, Runnable whenPressed, boolean onlyInRepay) {
|
||||||
|
Binding binding = registerKeyBinding(name, keyCode, onlyInRepay);
|
||||||
|
binding.handlers.add(whenPressed);
|
||||||
|
return binding;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void registerRepeatedKeyBinding(String name, int keyCode, Runnable whenPressed) {
|
public Binding registerRepeatedKeyBinding(String name, int keyCode, Runnable whenPressed, boolean onlyInRepay) {
|
||||||
repeatedKeyBindingHandlers.put(registerKeyBinding(name, keyCode), whenPressed);
|
Binding binding = registerKeyBinding(name, keyCode, onlyInRepay);
|
||||||
|
binding.repeatedHandlers.add(whenPressed);
|
||||||
|
return binding;
|
||||||
}
|
}
|
||||||
|
|
||||||
private KeyBinding registerKeyBinding(String name, int keyCode) {
|
private Binding registerKeyBinding(String name, int keyCode, boolean onlyInRepay) {
|
||||||
KeyBinding keyBinding = keyBindings.get(name);
|
Binding binding = bindings.get(name);
|
||||||
if (keyBinding == null) {
|
if (binding == null) {
|
||||||
keyBinding = new KeyBinding(name, keyCode, "replaymod.title");
|
//#if FABRIC>=1
|
||||||
keyBindings.put(name, keyBinding);
|
if (keyCode == 0) {
|
||||||
ClientRegistry.registerKeyBinding(keyBinding);
|
keyCode = -1;
|
||||||
|
}
|
||||||
|
Identifier id = identifier(MOD_ID, name.substring(LangResourcePack.LEGACY_KEY_PREFIX.length()));
|
||||||
|
//#if MC>=11600
|
||||||
|
String key = String.format("key.%s.%s", id.getNamespace(), id.getPath());
|
||||||
|
KeyBinding keyBinding = new KeyBinding(key, InputUtil.Type.KEYSYM, keyCode, CATEGORY);
|
||||||
|
KeyBindingHelper.registerKeyBinding(keyBinding);
|
||||||
|
//#else
|
||||||
|
//$$ FabricKeyBinding fabricKeyBinding = FabricKeyBinding.Builder.create(id, InputUtil.Type.KEYSYM, keyCode, CATEGORY).build();
|
||||||
|
//$$ net.fabricmc.fabric.api.client.keybinding.KeyBindingRegistry.INSTANCE.register(fabricKeyBinding);
|
||||||
|
//$$ KeyBinding keyBinding = fabricKeyBinding;
|
||||||
|
//#endif
|
||||||
|
//#else
|
||||||
|
//$$ KeyBinding keyBinding = new KeyBinding(name, keyCode, CATEGORY);
|
||||||
|
//$$ ClientRegistry.registerKeyBinding(keyBinding);
|
||||||
|
//#endif
|
||||||
|
binding = new Binding(name, keyBinding);
|
||||||
|
bindings.put(name, binding);
|
||||||
|
if (onlyInRepay) {
|
||||||
|
this.onlyInReplay.add(keyBinding);
|
||||||
|
}
|
||||||
|
} else if (!onlyInRepay) {
|
||||||
|
this.onlyInReplay.remove(binding.keyBinding);
|
||||||
}
|
}
|
||||||
return keyBinding;
|
return binding;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void registerRaw(int keyCode, Runnable whenPressed) {
|
public void registerRaw(int keyCode, Function<KeyInput, Boolean> whenPressed) {
|
||||||
rawHandlers.put(keyCode, whenPressed);
|
rawHandlers.put(keyCode, whenPressed);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, KeyBinding> getKeyBindings() {
|
public Map<String, Binding> getBindings() {
|
||||||
return Collections.unmodifiableMap(keyBindings);
|
return Collections.unmodifiableMap(bindings);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
public Set<KeyBinding> getOnlyInReplay() {
|
||||||
public void onKeyInput(InputEvent.KeyInputEvent event) {
|
return Collections.unmodifiableSet(onlyInReplay);
|
||||||
handleKeyBindings();
|
|
||||||
handleRaw();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
{ on(PreRenderCallback.EVENT, this::handleRepeatedKeyBindings); }
|
||||||
public void onTick(TickEvent.RenderTickEvent event) {
|
|
||||||
if (event.phase != TickEvent.Phase.START) return;
|
|
||||||
handleRepeatedKeyBindings();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void handleRepeatedKeyBindings() {
|
public void handleRepeatedKeyBindings() {
|
||||||
for (Map.Entry<KeyBinding, Collection<Runnable>> entry : repeatedKeyBindingHandlers.asMap().entrySet()) {
|
for (Binding binding : bindings.values()) {
|
||||||
if (entry.getKey().isKeyDown()) {
|
if (binding.keyBinding.isPressed()) {
|
||||||
invokeKeyBindingHandlers(entry.getKey(), entry.getValue());
|
invokeKeyBindingHandlers(binding, binding.repeatedHandlers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleKeyBindings() {
|
{ on(KeyBindingEventCallback.EVENT, this::handleKeyBindings); }
|
||||||
for (Map.Entry<KeyBinding, Collection<Runnable>> entry : keyBindingHandlers.asMap().entrySet()) {
|
private void handleKeyBindings() {
|
||||||
while (entry.getKey().isPressed()) {
|
for (Binding binding : bindings.values()) {
|
||||||
invokeKeyBindingHandlers(entry.getKey(), entry.getValue());
|
while (binding.keyBinding.wasPressed()) {
|
||||||
|
invokeKeyBindingHandlers(binding, binding.handlers);
|
||||||
|
invokeKeyBindingHandlers(binding, binding.repeatedHandlers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void invokeKeyBindingHandlers(KeyBinding keyBinding, Collection<Runnable> handlers) {
|
private void invokeKeyBindingHandlers(Binding binding, Collection<Runnable> handlers) {
|
||||||
for (final Runnable runnable : handlers) {
|
for (final Runnable runnable : handlers) {
|
||||||
try {
|
try {
|
||||||
runnable.run();
|
runnable.run();
|
||||||
} catch (Throwable cause) {
|
} catch (Throwable cause) {
|
||||||
CrashReport crashReport = CrashReport.makeCrashReport(cause, "Handling Key Binding");
|
CrashReport crashReport = CrashReport.create(cause, "Handling Key Binding");
|
||||||
CrashReportCategory category = crashReport.makeCategory("Key Binding");
|
CrashReportSection category = crashReport.addElement("Key Binding");
|
||||||
category.addCrashSection("Key Binding", keyBinding);
|
category.add("Key Binding", () -> binding.name);
|
||||||
category.setDetail("Handler", runnable::toString);
|
category.add("Handler", runnable::toString);
|
||||||
throw new ReportedException(crashReport);
|
throw new CrashException(crashReport);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleRaw() {
|
{ on(KeyEventCallback.EVENT, this::handleRaw); }
|
||||||
int keyCode = Keyboard.getEventKey() == 0 ? Keyboard.getEventCharacter() + 256 : Keyboard.getEventKey();
|
private boolean handleRaw(KeyInput keyInput, int action) {
|
||||||
for (final Runnable runnable : rawHandlers.get(keyCode)) {
|
if (action != KeyEventCallback.ACTION_PRESS) return false;
|
||||||
|
for (final Function<KeyInput, Boolean> handler : rawHandlers.get(keyInput.key)) {
|
||||||
try {
|
try {
|
||||||
runnable.run();
|
if (handler.apply(keyInput)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} catch (Throwable cause) {
|
} catch (Throwable cause) {
|
||||||
CrashReport crashReport = CrashReport.makeCrashReport(cause, "Handling Raw Key Binding");
|
CrashReport crashReport = CrashReport.create(cause, "Handling Raw Key Binding");
|
||||||
CrashReportCategory category = crashReport.makeCategory("Key Binding");
|
CrashReportSection category = crashReport.addElement("Key Binding");
|
||||||
category.addCrashSection("Key Code", keyCode);
|
category.add("Key Code", () -> "" + keyInput.key);
|
||||||
category.setDetail("Handler", runnable::toString);
|
category.add("Handler", handler::toString);
|
||||||
throw new ReportedException(crashReport);
|
throw new CrashException(crashReport);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Binding {
|
||||||
|
public final String name;
|
||||||
|
public final KeyBinding keyBinding;
|
||||||
|
private final List<Runnable> handlers = new ArrayList<>();
|
||||||
|
private final List<Runnable> repeatedHandlers = new ArrayList<>();
|
||||||
|
private boolean autoActivation;
|
||||||
|
private Consumer<Boolean> autoActivationUpdate;
|
||||||
|
|
||||||
|
public Binding(String name, KeyBinding keyBinding) {
|
||||||
|
this.name = name;
|
||||||
|
this.keyBinding = keyBinding;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBoundKey() {
|
||||||
|
try {
|
||||||
|
return keyBinding.getBoundKeyLocalizedText().getString();
|
||||||
|
} catch (ArrayIndexOutOfBoundsException e) {
|
||||||
|
// Apparently windows likes to press strange keys, see https://www.replaymod.com/forum/thread/55
|
||||||
|
return "Unknown";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBound() {
|
||||||
|
//#if MC>=11400
|
||||||
|
return !keyBinding.isUnbound();
|
||||||
|
//#else
|
||||||
|
//$$ return keyBinding.getKeyCode() != 0;
|
||||||
|
//#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public void trigger() {
|
||||||
|
KeyBindingAccessor acc = (KeyBindingAccessor) keyBinding;
|
||||||
|
acc.setPressTime(acc.getPressTime() + 1);
|
||||||
|
handleKeyBindings();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void registerAutoActivationSupport(boolean active, Consumer<Boolean> update) {
|
||||||
|
this.autoActivation = active;
|
||||||
|
this.autoActivationUpdate = update;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean supportsAutoActivation() {
|
||||||
|
return autoActivationUpdate != null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isAutoActivating() {
|
||||||
|
return supportsAutoActivation() && autoActivation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAutoActivating(boolean active) {
|
||||||
|
if (this.autoActivation == active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.autoActivation = active;
|
||||||
|
this.autoActivationUpdate.accept(active);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
71
src/main/java/com/replaymod/core/LoadingPlugin.java
Executable file → Normal file
@@ -1,70 +1 @@
|
|||||||
package com.replaymod.core;
|
// 1.12.2 and below
|
||||||
|
|
||||||
import net.minecraftforge.fml.relauncher.CoreModManager;
|
|
||||||
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
|
||||||
import org.spongepowered.asm.launch.MixinBootstrap;
|
|
||||||
import org.spongepowered.asm.mixin.Mixins;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.security.CodeSource;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public class LoadingPlugin implements IFMLLoadingPlugin {
|
|
||||||
|
|
||||||
public LoadingPlugin() {
|
|
||||||
MixinBootstrap.init();
|
|
||||||
Mixins.addConfiguration("mixins.recording.replaymod.json");
|
|
||||||
Mixins.addConfiguration("mixins.render.replaymod.json");
|
|
||||||
Mixins.addConfiguration("mixins.replay.replaymod.json");
|
|
||||||
Mixins.addConfiguration("mixins.compat.mapwriter.replaymod.json");
|
|
||||||
Mixins.addConfiguration("mixins.compat.shaders.replaymod.json");
|
|
||||||
Mixins.addConfiguration("mixins.extras.playeroverview.replaymod.json");
|
|
||||||
|
|
||||||
CodeSource codeSource = getClass().getProtectionDomain().getCodeSource();
|
|
||||||
if (codeSource != null) {
|
|
||||||
URL location = codeSource.getLocation();
|
|
||||||
try {
|
|
||||||
File file = new File(location.toURI());
|
|
||||||
if (file.isFile()) {
|
|
||||||
// This forces forge to reexamine the jar file for FML mods
|
|
||||||
// Should eventually be handled by Mixin itself, maybe?
|
|
||||||
CoreModManager.getIgnoredMods().remove(file.getName());
|
|
||||||
}
|
|
||||||
} catch (URISyntaxException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
LogManager.getLogger().warn("No CodeSource, if this is not a development environment we might run into problems!");
|
|
||||||
LogManager.getLogger().warn(getClass().getProtectionDomain());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getASMTransformerClass() {
|
|
||||||
return new String[]{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getModContainerClass() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getSetupClass() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void injectData(Map<String, Object> data) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getAccessTransformerClass() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
14
src/main/java/com/replaymod/core/MixinExtrasInit.java
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
//#if FABRIC>=1
|
||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint;
|
||||||
|
|
||||||
|
public class MixinExtrasInit implements PreLaunchEntrypoint {
|
||||||
|
@Override
|
||||||
|
public void onPreLaunch() {
|
||||||
|
//#if MC>=11604
|
||||||
|
com.llamalad7.mixinextras.MixinExtrasBootstrap.init();
|
||||||
|
//#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
10
src/main/java/com/replaymod/core/Module.java
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
public interface Module {
|
||||||
|
// FMLCommonSetupEvent for 1.13+, FMLInitializationEvent below
|
||||||
|
default void initCommon() {}
|
||||||
|
// FMLClientSetupEvent for 1.13+, FMLInitializationEvent (if client) below
|
||||||
|
default void initClient() {}
|
||||||
|
// FMLClientSetupEvent for 1.13+, FMLInitializationEvent below
|
||||||
|
default void registerKeyBindings(KeyBindingRegistry registry) {}
|
||||||
|
}
|
||||||
427
src/main/java/com/replaymod/core/ReplayMod.java
Executable file → Normal file
@@ -1,85 +1,116 @@
|
|||||||
package com.replaymod.core;
|
package com.replaymod.core;
|
||||||
|
|
||||||
import com.google.common.io.Files;
|
import com.replaymod.compat.ReplayModCompat;
|
||||||
import com.google.common.util.concurrent.ListenableFutureTask;
|
import com.replaymod.core.files.ReplayFilesService;
|
||||||
|
import com.replaymod.core.files.ReplayFoldersService;
|
||||||
|
import com.replaymod.core.gui.GuiBackgroundProcesses;
|
||||||
import com.replaymod.core.gui.GuiReplaySettings;
|
import com.replaymod.core.gui.GuiReplaySettings;
|
||||||
import com.replaymod.core.gui.RestoreReplayGui;
|
import com.replaymod.core.versions.MCVer;
|
||||||
import com.replaymod.core.handler.MainMenuHandler;
|
import com.replaymod.core.versions.scheduler.Scheduler;
|
||||||
import com.replaymod.core.utils.OpenGLUtils;
|
import com.replaymod.core.versions.scheduler.SchedulerImpl;
|
||||||
|
import com.replaymod.editor.ReplayModEditor;
|
||||||
|
import com.replaymod.extras.ReplayModExtras;
|
||||||
|
import com.replaymod.recording.ReplayModRecording;
|
||||||
|
import com.replaymod.render.ReplayModRender;
|
||||||
|
import com.replaymod.replay.ReplayModReplay;
|
||||||
|
import com.replaymod.replaystudio.lib.viaversion.api.protocol.version.ProtocolVersion;
|
||||||
|
import com.replaymod.replaystudio.studio.ReplayStudio;
|
||||||
import com.replaymod.replaystudio.util.I18n;
|
import com.replaymod.replaystudio.util.I18n;
|
||||||
import de.johni0702.minecraft.gui.container.GuiScreen;
|
import com.replaymod.simplepathing.ReplayModSimplePathing;
|
||||||
import lombok.Getter;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.resource.DirectoryResourcePack;
|
||||||
import net.minecraft.client.settings.GameSettings;
|
import net.minecraft.text.LiteralText;
|
||||||
import net.minecraft.crash.CrashReport;
|
import net.minecraft.text.Style;
|
||||||
import net.minecraft.crash.CrashReportCategory;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.text.TranslatableText;
|
||||||
import net.minecraft.util.text.*;
|
import net.minecraft.util.Formatting;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraftforge.common.config.Configuration;
|
|
||||||
import net.minecraftforge.fml.client.FMLClientHandler;
|
|
||||||
import net.minecraftforge.fml.common.Loader;
|
|
||||||
import net.minecraftforge.fml.common.Mod;
|
|
||||||
import net.minecraftforge.fml.common.Mod.EventHandler;
|
|
||||||
import net.minecraftforge.fml.common.Mod.Instance;
|
|
||||||
import net.minecraftforge.fml.common.ModContainer;
|
|
||||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
|
||||||
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
|
||||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.EventBus;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|
||||||
import net.minecraftforge.fml.common.gameevent.TickEvent;
|
|
||||||
import org.apache.commons.io.FileUtils;
|
|
||||||
|
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.concurrent.ExecutionException;
|
||||||
|
import java.util.concurrent.TimeoutException;
|
||||||
|
|
||||||
@Mod(modid = ReplayMod.MOD_ID,
|
import static de.johni0702.minecraft.gui.versions.MCVer.identifier;
|
||||||
useMetadata = true,
|
|
||||||
version = "@MOD_VERSION@",
|
|
||||||
acceptedMinecraftVersions = "@MC_VERSION@",
|
|
||||||
acceptableRemoteVersions = "*",
|
|
||||||
clientSideOnly = true,
|
|
||||||
updateJSON = "https://raw.githubusercontent.com/ReplayMod/ReplayMod/master/versions.json",
|
|
||||||
guiFactory = "com.replaymod.core.gui.GuiFactory")
|
|
||||||
public class ReplayMod {
|
|
||||||
|
|
||||||
public static ModContainer getContainer() {
|
//#if MC>=12006
|
||||||
return Loader.instance().getIndexedModList().get(MOD_ID);
|
//$$ import net.minecraft.resource.ResourcePackInfo;
|
||||||
}
|
//$$ import net.minecraft.resource.ResourcePackSource;
|
||||||
|
//$$ import net.minecraft.text.Text;
|
||||||
|
//$$ import java.util.Optional;
|
||||||
|
//#endif
|
||||||
|
|
||||||
@Getter(lazy = true)
|
//#if MC>=11900
|
||||||
private static final String minecraftVersion = parseMinecraftVersion();
|
//#else
|
||||||
private static String parseMinecraftVersion() {
|
import net.minecraft.client.options.Option;
|
||||||
CrashReport crashReport = new CrashReport("", new Throwable());
|
//#endif
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
List<CrashReportCategory.Entry> list = crashReport.getCategory().children;
|
public class ReplayMod implements Module, Scheduler {
|
||||||
for (CrashReportCategory.Entry entry : list) {
|
|
||||||
if ("Minecraft Version".equals(entry.getKey())) {
|
|
||||||
return entry.getValue();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "Unknown";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final String MOD_ID = "replaymod";
|
public static final String MOD_ID = "replaymod";
|
||||||
|
|
||||||
public static final ResourceLocation TEXTURE = new ResourceLocation("replaymod", "replay_gui.png");
|
public static final Identifier TEXTURE = identifier("replaymod", "replay_gui.png");
|
||||||
public static final int TEXTURE_SIZE = 256;
|
public static final int TEXTURE_SIZE = 256;
|
||||||
|
public static final Identifier LOGO_FAVICON = identifier("replaymod", "favicon_logo.png");
|
||||||
|
|
||||||
private static final Minecraft mc = Minecraft.getMinecraft();
|
private static final MinecraftClient mc = MCVer.getMinecraft();
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public static Configuration config;
|
|
||||||
|
|
||||||
|
private final ReplayModBackend backend;
|
||||||
|
private final SchedulerImpl scheduler = new SchedulerImpl();
|
||||||
private final KeyBindingRegistry keyBindingRegistry = new KeyBindingRegistry();
|
private final KeyBindingRegistry keyBindingRegistry = new KeyBindingRegistry();
|
||||||
private final SettingsRegistry settingsRegistry = new SettingsRegistry();
|
private final SettingsRegistry settingsRegistry = new SettingsRegistry();
|
||||||
|
{
|
||||||
|
settingsRegistry.register(Setting.class);
|
||||||
|
}
|
||||||
|
|
||||||
// The instance of your mod that Forge uses.
|
{ instance = this; }
|
||||||
@Instance(MOD_ID)
|
|
||||||
public static ReplayMod instance;
|
public static ReplayMod instance;
|
||||||
|
|
||||||
|
private final List<Module> modules = new ArrayList<>();
|
||||||
|
|
||||||
|
private final GuiBackgroundProcesses backgroundProcesses = new GuiBackgroundProcesses();
|
||||||
|
public final ReplayFoldersService folders = new ReplayFoldersService(settingsRegistry);
|
||||||
|
public final ReplayFilesService files = new ReplayFilesService(folders);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the current MC version is supported by the embedded ReplayStudio version.
|
||||||
|
* If this is not the case (i.e. if this is variable true), any feature of the RM which depends on the ReplayStudio
|
||||||
|
* lib will be disabled.
|
||||||
|
*
|
||||||
|
* Only supported on Fabric builds, i.e. will always be false / crash the game with Forge/pre-1.14 builds.
|
||||||
|
* (specifically the code below and MCVer#getProtocolVersion make this assumption)
|
||||||
|
*/
|
||||||
|
private boolean minimalMode;
|
||||||
|
|
||||||
|
public ReplayMod(ReplayModBackend backend) {
|
||||||
|
this.backend = backend;
|
||||||
|
|
||||||
|
I18n.setI18n(net.minecraft.client.resource.language.I18n::translate);
|
||||||
|
|
||||||
|
// Check Minecraft protocol version for compatibility
|
||||||
|
if (!ProtocolVersion.isRegistered(MCVer.getProtocolVersion()) && !Boolean.parseBoolean(System.getProperty("replaymod.skipversioncheck", "false"))) {
|
||||||
|
minimalMode = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Register all RM modules
|
||||||
|
modules.add(this);
|
||||||
|
modules.add(new ReplayModRecording(this));
|
||||||
|
ReplayModReplay replayModule = new ReplayModReplay(this);
|
||||||
|
modules.add(replayModule);
|
||||||
|
modules.add(new ReplayModRender(this));
|
||||||
|
modules.add(new ReplayModSimplePathing(this));
|
||||||
|
modules.add(new ReplayModEditor(this));
|
||||||
|
modules.add(new ReplayModExtras(this));
|
||||||
|
modules.add(new ReplayModCompat());
|
||||||
|
|
||||||
|
settingsRegistry.register();
|
||||||
|
}
|
||||||
|
|
||||||
public KeyBindingRegistry getKeyBindingRegistry() {
|
public KeyBindingRegistry getKeyBindingRegistry() {
|
||||||
return keyBindingRegistry;
|
return keyBindingRegistry;
|
||||||
}
|
}
|
||||||
@@ -88,126 +119,133 @@ public class ReplayMod {
|
|||||||
return settingsRegistry;
|
return settingsRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
public File getReplayFolder() throws IOException {
|
public static final DirectoryResourcePack jGuiResourcePack = createJGuiResourcePack();
|
||||||
String path = getSettingsRegistry().get(Setting.RECORDING_PATH);
|
public static final String JGUI_RESOURCE_PACK_NAME = "replaymod_jgui";
|
||||||
File folder = new File(path.startsWith("./") ? getMinecraft().mcDataDir : null, path);
|
private static DirectoryResourcePack createJGuiResourcePack() {
|
||||||
FileUtils.forceMkdir(folder);
|
File folder = new File("../jGui/src/main/resources");
|
||||||
return folder;
|
if (!folder.exists()) {
|
||||||
}
|
folder = new File("../../../jGui/src/main/resources");
|
||||||
|
if (!folder.exists()) {
|
||||||
@EventHandler
|
return null;
|
||||||
public void preInit(FMLPreInitializationEvent event) {
|
|
||||||
// Initialize the static OpenGL info field from the minecraft main thread
|
|
||||||
// Unfortunately lwjgl uses static methods so we have to make use of magic init calls as well
|
|
||||||
OpenGLUtils.init();
|
|
||||||
|
|
||||||
I18n.setI18n(net.minecraft.client.resources.I18n::format);
|
|
||||||
|
|
||||||
config = new Configuration(event.getSuggestedConfigurationFile());
|
|
||||||
config.load();
|
|
||||||
settingsRegistry.setConfiguration(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
public void init(FMLInitializationEvent event) {
|
|
||||||
getSettingsRegistry().register(Setting.class);
|
|
||||||
|
|
||||||
new MainMenuHandler().register();
|
|
||||||
|
|
||||||
MinecraftForge.EVENT_BUS.register(keyBindingRegistry);
|
|
||||||
|
|
||||||
getKeyBindingRegistry().registerKeyBinding("replaymod.input.settings", 0, () -> {
|
|
||||||
new GuiReplaySettings(null, settingsRegistry).display();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
public void postInit(FMLPostInitializationEvent event) throws IOException {
|
|
||||||
settingsRegistry.save(); // Save default values to disk
|
|
||||||
|
|
||||||
if(!FMLClientHandler.instance().hasOptifine())
|
|
||||||
GameSettings.Options.RENDER_DISTANCE.setValueMax(64f);
|
|
||||||
|
|
||||||
testIfMoeshAndExitMinecraft();
|
|
||||||
|
|
||||||
runLater(() -> {
|
|
||||||
// Cleanup deleted corrupted replays
|
|
||||||
try {
|
|
||||||
File[] files = getReplayFolder().listFiles();
|
|
||||||
if (files != null) {
|
|
||||||
for (File file : files) {
|
|
||||||
if (file.isDirectory() && file.getName().endsWith(".mcpr.del")) {
|
|
||||||
if (file.lastModified() + 2 * 24 * 60 * 60 * 1000 < System.currentTimeMillis()) {
|
|
||||||
FileUtils.deleteDirectory(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore corrupted replays
|
|
||||||
try {
|
|
||||||
File[] files = getReplayFolder().listFiles();
|
|
||||||
if (files != null) {
|
|
||||||
for (File file : files) {
|
|
||||||
if (file.isDirectory() && file.getName().endsWith(".mcpr.tmp")) {
|
|
||||||
File origFile = new File(file.getParentFile(), Files.getNameWithoutExtension(file.getName()));
|
|
||||||
new RestoreReplayGui(GuiScreen.wrap(mc.currentScreen), origFile).display();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set when the currently running code has been scheduled by runLater.
|
|
||||||
* If this is the case, subsequent calls to runLater have to be delayed until all scheduled tasks have been
|
|
||||||
* processed, otherwise a livelock may occur.
|
|
||||||
*/
|
|
||||||
private boolean inRunLater = false;
|
|
||||||
|
|
||||||
public void runLater(Runnable runnable) {
|
|
||||||
if (mc.isCallingFromMinecraftThread() && inRunLater) {
|
|
||||||
EventBus bus = MinecraftForge.EVENT_BUS;
|
|
||||||
bus.register(new Object() {
|
|
||||||
@SubscribeEvent
|
|
||||||
public void onRenderTick(TickEvent.RenderTickEvent event) {
|
|
||||||
if (event.phase == TickEvent.Phase.START) {
|
|
||||||
runLater(runnable);
|
|
||||||
bus.unregister(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
synchronized (mc.scheduledTasks) {
|
//#if MC>=12006
|
||||||
mc.scheduledTasks.add(ListenableFutureTask.create(() -> {
|
//$$ return new DirectoryResourcePack(new ResourcePackInfo(JGUI_RESOURCE_PACK_NAME, Text.literal("jGui"), ResourcePackSource.NONE, Optional.empty()), folder.toPath()) {
|
||||||
inRunLater = true;
|
//#elseif MC>=11903
|
||||||
|
//$$ return new DirectoryResourcePack(JGUI_RESOURCE_PACK_NAME, folder.toPath(), true) {
|
||||||
|
//#else
|
||||||
|
return new DirectoryResourcePack(folder) {
|
||||||
|
//#endif
|
||||||
|
@Override
|
||||||
|
//#if MC>=11400
|
||||||
|
public String getName() {
|
||||||
|
//#else
|
||||||
|
//$$ public String getPackName() {
|
||||||
|
//#endif
|
||||||
|
return JGUI_RESOURCE_PACK_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
//#if MC>=11903
|
||||||
|
//$$ @Override
|
||||||
|
//$$ public net.minecraft.resource.InputSupplier<InputStream> openRoot(String... segments) {
|
||||||
|
//$$ if (segments.length == 1 && segments[0].equals("pack.mcmeta")) {
|
||||||
|
//$$ return () -> new ByteArrayInputStream(generatePackMeta());
|
||||||
|
//$$ }
|
||||||
|
//$$ return super.openRoot(segments);
|
||||||
|
//$$ }
|
||||||
|
//#else
|
||||||
|
@Override
|
||||||
|
protected InputStream openFile(String resourceName) throws IOException {
|
||||||
try {
|
try {
|
||||||
runnable.run();
|
return super.openFile(resourceName);
|
||||||
} finally {
|
} catch (IOException e) {
|
||||||
inRunLater = false;
|
if ("pack.mcmeta".equals(resourceName)) {
|
||||||
|
return new ByteArrayInputStream(generatePackMeta());
|
||||||
|
}
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}, null));
|
}
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
private byte[] generatePackMeta() {
|
||||||
|
//#if MC>=11400
|
||||||
|
int version = 4;
|
||||||
|
//#else
|
||||||
|
//$$ int version = 1;
|
||||||
|
//#endif
|
||||||
|
return ("{\"pack\": {\"description\": \"dummy pack for jGui resources in dev-env\", \"pack_format\": "
|
||||||
|
+ version + "}}").getBytes(StandardCharsets.UTF_8);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
void initModules() {
|
||||||
|
modules.forEach(Module::initCommon);
|
||||||
|
modules.forEach(Module::initClient);
|
||||||
|
modules.forEach(m -> m.registerKeyBindings(keyBindingRegistry));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void registerKeyBindings(KeyBindingRegistry registry) {
|
||||||
|
registry.registerKeyBinding("replaymod.input.settings", 0, () -> {
|
||||||
|
new GuiReplaySettings(null, settingsRegistry).display();
|
||||||
|
}, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initClient() {
|
||||||
|
backgroundProcesses.register();
|
||||||
|
keyBindingRegistry.register();
|
||||||
|
|
||||||
|
// 1.7.10 crashes when render distance > 16
|
||||||
|
// Post 1.19 this has become non-trivial to do, install Sodium+Bobby or OptiFine if you need it
|
||||||
|
//#if MC>=10800 && MC<11900
|
||||||
|
if (!MCVer.hasOptifine()) {
|
||||||
|
Option.RENDER_DISTANCE.setMax(64f);
|
||||||
}
|
}
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
runPostStartup(() -> files.initialScan(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void runSync(Runnable runnable) throws InterruptedException, ExecutionException, TimeoutException {
|
||||||
|
scheduler.runSync(runnable);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void runPostStartup(Runnable runnable) {
|
||||||
|
scheduler.runPostStartup(runnable);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void runLaterWithoutLock(Runnable runnable) {
|
||||||
|
scheduler.runLaterWithoutLock(runnable);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void runLater(Runnable runnable) {
|
||||||
|
scheduler.runLater(runnable);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void runTasks() {
|
||||||
|
scheduler.runTasks();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getVersion() {
|
public String getVersion() {
|
||||||
return getContainer().getVersion();
|
return backend.getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void testIfMoeshAndExitMinecraft() {
|
public String getMinecraftVersion() {
|
||||||
if("currentPlayer".equals("Moesh")) {
|
return backend.getMinecraftVersion();
|
||||||
System.exit(-1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Minecraft getMinecraft() {
|
public boolean isModLoaded(String id) {
|
||||||
|
return backend.isModLoaded(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MinecraftClient getMinecraft() {
|
||||||
return mc;
|
return mc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,18 +258,55 @@ public class ReplayMod {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void printToChat(boolean warning, String message, Object... args) {
|
private void printToChat(boolean warning, String message, Object... args) {
|
||||||
|
if (!mc.isOnThread()) {
|
||||||
|
runLater(() -> printToChat(warning, message, args));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (getSettingsRegistry().get(Setting.NOTIFICATIONS)) {
|
if (getSettingsRegistry().get(Setting.NOTIFICATIONS)) {
|
||||||
// Some nostalgia: "§8[§6Replay Mod§8]§r Your message goes here"
|
// Some nostalgia: "§8[§6Replay Mod§8]§r Your message goes here"
|
||||||
Style coloredDarkGray = new Style().setColor(TextFormatting.DARK_GRAY);
|
//#if MC>=10904
|
||||||
Style coloredGold = new Style().setColor(TextFormatting.GOLD);
|
//#if MC>=11600
|
||||||
ITextComponent text = new TextComponentString("[").setStyle(coloredDarkGray)
|
Style coloredDarkGray = Style.EMPTY.withColor(Formatting.DARK_GRAY);
|
||||||
.appendSibling(new TextComponentTranslation("replaymod.title").setStyle(coloredGold))
|
Style coloredGold = Style.EMPTY.withColor(Formatting.GOLD);
|
||||||
.appendSibling(new TextComponentString("] "))
|
Style alert = Style.EMPTY.withColor(warning ? Formatting.RED : Formatting.DARK_GREEN);
|
||||||
.appendSibling(new TextComponentTranslation(message, args).setStyle(new Style()
|
//#else
|
||||||
.setColor(warning ? TextFormatting.RED : TextFormatting.DARK_GREEN)));
|
//$$ Style coloredDarkGray = new Style().setColor(Formatting.DARK_GRAY);
|
||||||
|
//$$ Style coloredGold = new Style().setColor(Formatting.GOLD);
|
||||||
|
//$$ Style alert = new Style().setColor(warning ? Formatting.RED : Formatting.DARK_GREEN);
|
||||||
|
//#endif
|
||||||
|
Text text = new LiteralText("[").setStyle(coloredDarkGray)
|
||||||
|
.append(new TranslatableText("replaymod.title").setStyle(coloredGold))
|
||||||
|
.append(new LiteralText("] "))
|
||||||
|
.append(new TranslatableText(message, args).setStyle(alert));
|
||||||
|
//#else
|
||||||
|
//$$ ChatStyle coloredDarkGray = new ChatStyle().setColor(EnumChatFormatting.DARK_GRAY);
|
||||||
|
//$$ ChatStyle coloredGold = new ChatStyle().setColor(EnumChatFormatting.GOLD);
|
||||||
|
//$$ IChatComponent text = new ChatComponentText("[").setChatStyle(coloredDarkGray)
|
||||||
|
//$$ .appendSibling(new ChatComponentTranslation("replaymod.title").setChatStyle(coloredGold))
|
||||||
|
//$$ .appendSibling(new ChatComponentText("] "))
|
||||||
|
//$$ .appendSibling(new ChatComponentTranslation(message, args).setChatStyle(new ChatStyle()
|
||||||
|
//$$ .setColor(warning ? EnumChatFormatting.RED : EnumChatFormatting.DARK_GREEN)));
|
||||||
|
//#endif
|
||||||
// Send message to chat GUI
|
// Send message to chat GUI
|
||||||
// The ingame GUI is initialized at startup, therefore this is possible before the client is connected
|
// The ingame GUI is initialized at startup, therefore this is possible before the client is connected
|
||||||
mc.ingameGUI.getChatGUI().printChatMessage(text);
|
mc.inGameHud.getChatHud().addMessage(text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public GuiBackgroundProcesses getBackgroundProcesses() {
|
||||||
|
return backgroundProcesses;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This method is static because it depends solely on the environment, not on the actual RM instance.
|
||||||
|
public static boolean isMinimalMode() {
|
||||||
|
return ReplayMod.instance.minimalMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isCompatible(int fileFormatVersion, int protocolVersion) {
|
||||||
|
if (isMinimalMode()) {
|
||||||
|
return protocolVersion == MCVer.getProtocolVersion();
|
||||||
|
} else {
|
||||||
|
return new ReplayStudio().isCompatible(fileFormatVersion, protocolVersion, MCVer.getProtocolVersion());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
34
src/main/java/com/replaymod/core/ReplayModBackend.java
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
import net.fabricmc.api.ClientModInitializer;
|
||||||
|
import net.fabricmc.loader.api.FabricLoader;
|
||||||
|
import net.minecraft.SharedConstants;
|
||||||
|
|
||||||
|
import static com.replaymod.core.ReplayMod.MOD_ID;
|
||||||
|
|
||||||
|
public class ReplayModBackend implements ClientModInitializer {
|
||||||
|
private final ReplayMod mod = new ReplayMod(this);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onInitializeClient() {
|
||||||
|
mod.initModules();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVersion() {
|
||||||
|
return FabricLoader.getInstance().getModContainer(MOD_ID)
|
||||||
|
.orElseThrow(IllegalStateException::new)
|
||||||
|
.getMetadata().getVersion().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMinecraftVersion() {
|
||||||
|
//#if MC>=12106
|
||||||
|
//$$ return SharedConstants.getGameVersion().comp_4025();
|
||||||
|
//#else
|
||||||
|
return SharedConstants.getGameVersion().getName();
|
||||||
|
//#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isModLoaded(String id) {
|
||||||
|
return FabricLoader.getInstance().isModLoaded(id.toLowerCase());
|
||||||
|
}
|
||||||
|
}
|
||||||
31
src/main/java/com/replaymod/core/ReplayModMMLauncher.java
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
//#if FABRIC>=1
|
||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
import org.spongepowered.asm.mixin.Mixins;
|
||||||
|
|
||||||
|
// We need to wait for MM to call us, otherwise we might initialize our mixins before it calls optifabric which would
|
||||||
|
// result in OF classes not existing while our mixins get resolved.
|
||||||
|
public class ReplayModMMLauncher implements Runnable {
|
||||||
|
private static boolean ran;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
// If this is MM2, then we're currently getting called because of our entrypoint declaration.
|
||||||
|
// For backwards compatibility with MM1, we also declare our early_riser via custom metadata and MM2 supports
|
||||||
|
// that as well and will therefore call us twice.
|
||||||
|
if (ran) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ran = true;
|
||||||
|
|
||||||
|
Mixins.addConfiguration("mixins.compat.mapwriter.replaymod.json");
|
||||||
|
Mixins.addConfiguration("mixins.compat.shaders.replaymod.json");
|
||||||
|
Mixins.addConfiguration("mixins.core.replaymod.json");
|
||||||
|
Mixins.addConfiguration("mixins.extras.playeroverview.replaymod.json");
|
||||||
|
Mixins.addConfiguration("mixins.recording.replaymod.json");
|
||||||
|
Mixins.addConfiguration("mixins.render.blend.replaymod.json");
|
||||||
|
Mixins.addConfiguration("mixins.render.replaymod.json");
|
||||||
|
Mixins.addConfiguration("mixins.replay.replaymod.json");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
|
||||||
|
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
//#if FABRIC
|
||||||
|
import net.fabricmc.loader.api.FabricLoader;
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
//#if MC>=11400
|
||||||
|
import java.io.InputStream;
|
||||||
|
//#else
|
||||||
|
//$$ import net.minecraft.launchwrapper.Launch;
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
//#if MC>=11200
|
||||||
|
import org.objectweb.asm.tree.ClassNode;
|
||||||
|
//#else
|
||||||
|
//$$ import org.spongepowered.asm.lib.tree.ClassNode;
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
public class ReplayModMixinConfigPlugin implements IMixinConfigPlugin {
|
||||||
|
static boolean hasClass(String name) throws IOException {
|
||||||
|
//#if MC>=11400
|
||||||
|
InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(name.replace('.', '/') + ".class");
|
||||||
|
if (stream != null) stream.close();
|
||||||
|
return stream != null;
|
||||||
|
//#else
|
||||||
|
//$$ return Launch.classLoader.getClassBytes(name) != null;
|
||||||
|
//#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
private final Logger logger = LogManager.getLogger("replaymod/mixin");
|
||||||
|
private final boolean hasOF = hasClass("optifine.OptiFineForgeTweaker") || hasClass("me.modmuss50.optifabric.mod.Optifabric");
|
||||||
|
//#if FABRIC
|
||||||
|
private final boolean hasIris = FabricLoader.getInstance().isModLoaded("iris");
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
{
|
||||||
|
logger.debug("hasOF: " + hasOF);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
|
||||||
|
if (hasOF) {
|
||||||
|
//#if MC>=11500
|
||||||
|
// OF renames the lambda method name and I see no way we can target it now, so we give up on that patch
|
||||||
|
if (mixinClassName.endsWith("MixinTileEntityEndPortalRenderer")) return false;
|
||||||
|
//#endif
|
||||||
|
}
|
||||||
|
if (mixinClassName.endsWith("_OF")) return hasOF;
|
||||||
|
if (mixinClassName.endsWith("_NoOF")) return !hasOF;
|
||||||
|
//#if FABRIC
|
||||||
|
if (mixinClassName.endsWith("_Iris")) return hasIris;
|
||||||
|
//#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoad(String mixinPackage) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getRefMapperConfig() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String> getMixins() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public ReplayModMixinConfigPlugin() throws IOException {
|
||||||
|
}
|
||||||
|
}
|
||||||
62
src/main/java/com/replaymod/core/ReplayModNonMMLauncher.java
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
//#if FABRIC>=1
|
||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.objectweb.asm.tree.ClassNode;
|
||||||
|
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
|
||||||
|
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
// See ReplayModMMLauncher. This is the fallback if MM is not installed.
|
||||||
|
public class ReplayModNonMMLauncher implements IMixinConfigPlugin {
|
||||||
|
private final Logger logger = LogManager.getLogger("replaymod/nonmm");
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoad(String mixinPackage) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getRefMapperConfig() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String> getMixins() {
|
||||||
|
try {
|
||||||
|
if (ReplayModMixinConfigPlugin.hasClass("com.chocohead.mm.Plugin")) {
|
||||||
|
logger.debug("Detected MM, they should call us...");
|
||||||
|
} else {
|
||||||
|
logger.debug("Did not detect MM, initializing ourselves...");
|
||||||
|
new ReplayModMMLauncher().run();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
@@ -3,6 +3,7 @@ package com.replaymod.core;
|
|||||||
public final class Setting<T> extends SettingsRegistry.SettingKeys<T> {
|
public final class Setting<T> extends SettingsRegistry.SettingKeys<T> {
|
||||||
public static final Setting<Boolean> NOTIFICATIONS = make("notifications", "notifications", true);
|
public static final Setting<Boolean> NOTIFICATIONS = make("notifications", "notifications", true);
|
||||||
public static final Setting<String> RECORDING_PATH = advanced("recordingPath", null, "./replay_recordings/");
|
public static final Setting<String> RECORDING_PATH = advanced("recordingPath", null, "./replay_recordings/");
|
||||||
|
public static final Setting<String> CACHE_PATH = advanced("cachePath", null, "./.replay_cache/");
|
||||||
|
|
||||||
private static <T> Setting<T> make(String key, String displayName, T defaultValue) {
|
private static <T> Setting<T> make(String key, String displayName, T defaultValue) {
|
||||||
return new Setting<>("core", key, displayName, defaultValue);
|
return new Setting<>("core", key, displayName, defaultValue);
|
||||||
|
|||||||
@@ -1,28 +1,17 @@
|
|||||||
package com.replaymod.core;
|
package com.replaymod.core;
|
||||||
|
|
||||||
import com.replaymod.core.events.SettingsChangedEvent;
|
import com.replaymod.core.events.SettingsChangedCallback;
|
||||||
import net.minecraft.client.resources.I18n;
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
|
||||||
import net.minecraftforge.common.config.Configuration;
|
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Modifier;
|
import java.lang.reflect.Modifier;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
|
||||||
|
|
||||||
public class SettingsRegistry {
|
public class SettingsRegistry {
|
||||||
private static final Object NULL_OBJECT = new Object();
|
private final Map<SettingKey<?>, Object> settings = Collections.synchronizedMap(new LinkedHashMap<>());
|
||||||
private Map<SettingKey<?>, Object> settings = new ConcurrentHashMap<>();
|
final SettingsRegistryBackend backend = new SettingsRegistryBackend(settings);
|
||||||
private Configuration configuration;
|
|
||||||
|
|
||||||
public void setConfiguration(Configuration configuration) {
|
public void register() {
|
||||||
this.configuration = configuration;
|
backend.register();
|
||||||
|
|
||||||
List<SettingKey<?>> keys = new ArrayList<>(settings.keySet());
|
|
||||||
settings.clear();
|
|
||||||
for (SettingKey key : keys) {
|
|
||||||
register(key);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void register(Class<?> settingsClass) {
|
public void register(Class<?> settingsClass) {
|
||||||
@@ -39,23 +28,8 @@ public class SettingsRegistry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void register(SettingKey<?> key) {
|
public void register(SettingKey<?> key) {
|
||||||
Object value;
|
settings.put(key, key.getDefault());
|
||||||
if (configuration != null) {
|
backend.register(key);
|
||||||
if (key.getDefault() instanceof Boolean) {
|
|
||||||
value = configuration.get(key.getCategory(), key.getKey(), (Boolean) key.getDefault()).getBoolean();
|
|
||||||
} else if (key.getDefault() instanceof Integer) {
|
|
||||||
value = configuration.get(key.getCategory(), key.getKey(), (Integer) key.getDefault()).getInt();
|
|
||||||
} else if (key.getDefault() instanceof Double) {
|
|
||||||
value = configuration.get(key.getCategory(), key.getKey(), (Double) key.getDefault()).getDouble();
|
|
||||||
} else if (key.getDefault() instanceof String) {
|
|
||||||
value = configuration.get(key.getCategory(), key.getKey(), (String) key.getDefault()).getString();
|
|
||||||
} else {
|
|
||||||
throw new IllegalArgumentException("Default type " + key.getDefault().getClass() + " not supported.");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
value = NULL_OBJECT;
|
|
||||||
}
|
|
||||||
settings.put(key, value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<SettingKey<?>> getSettings() {
|
public Set<SettingKey<?>> getSettings() {
|
||||||
@@ -71,23 +45,13 @@ public class SettingsRegistry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public <T> void set(SettingKey<T> key, T value) {
|
public <T> void set(SettingKey<T> key, T value) {
|
||||||
if (key.getDefault() instanceof Boolean) {
|
backend.update(key, value);
|
||||||
configuration.get(key.getCategory(), key.getKey(), (Boolean) key.getDefault()).set((Boolean) value);
|
|
||||||
} else if (key.getDefault() instanceof Integer) {
|
|
||||||
configuration.get(key.getCategory(), key.getKey(), (Integer) key.getDefault()).set((Integer) value);
|
|
||||||
} else if (key.getDefault() instanceof Double) {
|
|
||||||
configuration.get(key.getCategory(), key.getKey(), (Double) key.getDefault()).set((Double) value);
|
|
||||||
} else if (key.getDefault() instanceof String) {
|
|
||||||
configuration.get(key.getCategory(), key.getKey(), (String) key.getDefault()).set((String) value);
|
|
||||||
} else {
|
|
||||||
throw new IllegalArgumentException("Default type " + key.getDefault().getClass() + " not supported.");
|
|
||||||
}
|
|
||||||
settings.put(key, value);
|
settings.put(key, value);
|
||||||
MinecraftForge.EVENT_BUS.post(new SettingsChangedEvent(this, key));
|
SettingsChangedCallback.EVENT.invoker().onSettingsChanged(this, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void save() {
|
public void save() {
|
||||||
configuration.save();
|
backend.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface SettingKey<T> {
|
public interface SettingKey<T> {
|
||||||
@@ -126,7 +90,7 @@ public class SettingsRegistry {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDisplayString() {
|
public String getDisplayString() {
|
||||||
return displayString == null ? null : I18n.format(displayString);
|
return displayString;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
189
src/main/java/com/replaymod/core/SettingsRegistryBackend.java
Normal file
@@ -0,0 +1,189 @@
|
|||||||
|
package com.replaymod.core;
|
||||||
|
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.GsonBuilder;
|
||||||
|
import com.google.gson.JsonArray;
|
||||||
|
import com.google.gson.JsonElement;
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
|
import com.google.gson.JsonPrimitive;
|
||||||
|
import com.replaymod.core.events.SettingsChangedCallback;
|
||||||
|
import net.minecraft.client.MinecraftClient;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.nio.file.StandardWatchEventKinds;
|
||||||
|
import java.nio.file.WatchEvent;
|
||||||
|
import java.nio.file.WatchKey;
|
||||||
|
import java.nio.file.WatchService;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import static com.replaymod.core.utils.Utils.ensureDirectoryExists;
|
||||||
|
import static com.replaymod.core.versions.MCVer.getMinecraft;
|
||||||
|
|
||||||
|
class SettingsRegistryBackend {
|
||||||
|
private static final Logger LOGGER = LogManager.getLogger();
|
||||||
|
private final Map<SettingsRegistry.SettingKey<?>, Object> settings;
|
||||||
|
|
||||||
|
private final Path configFile = getMinecraft().runDirectory.toPath().resolve("config/replaymod.json");
|
||||||
|
|
||||||
|
SettingsRegistryBackend(Map<SettingsRegistry.SettingKey<?>, Object> settings) {
|
||||||
|
this.settings = settings;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void register() {
|
||||||
|
load(true);
|
||||||
|
try {
|
||||||
|
registerWatcher();
|
||||||
|
} catch (IOException e) {
|
||||||
|
LOGGER.warn("Failed to setup file watcher for {}, live-reloading is disabled. Cause: {}", configFile, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void load(boolean createIfMissingOrBroken) {
|
||||||
|
String config;
|
||||||
|
if (Files.exists(configFile)) {
|
||||||
|
try {
|
||||||
|
config = new String(Files.readAllBytes(configFile), StandardCharsets.UTF_8);
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (createIfMissingOrBroken) {
|
||||||
|
save();
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Gson gson = new Gson();
|
||||||
|
JsonObject root = gson.fromJson(config, JsonObject.class);
|
||||||
|
if (root == null) {
|
||||||
|
LOGGER.error("Config file {} appears corrupted: {}", configFile, config);
|
||||||
|
if (createIfMissingOrBroken) {
|
||||||
|
save();
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (Map.Entry<SettingsRegistry.SettingKey<?>, Object> entry : settings.entrySet()) {
|
||||||
|
SettingsRegistry.SettingKey<?> key = entry.getKey();
|
||||||
|
JsonElement category = root.get(key.getCategory());
|
||||||
|
if (category != null && category.isJsonObject()) {
|
||||||
|
JsonElement valueElem = category.getAsJsonObject().get(key.getKey());
|
||||||
|
if (valueElem == null || !valueElem.isJsonPrimitive()) continue;
|
||||||
|
JsonPrimitive value = valueElem.getAsJsonPrimitive();
|
||||||
|
if (key.getDefault() instanceof Boolean && value.isBoolean()) {
|
||||||
|
entry.setValue(value.getAsBoolean());
|
||||||
|
}
|
||||||
|
if (key.getDefault() instanceof Integer && value.isNumber()) {
|
||||||
|
entry.setValue(value.getAsNumber().intValue());
|
||||||
|
}
|
||||||
|
if (key.getDefault() instanceof Double && value.isNumber()) {
|
||||||
|
entry.setValue(value.getAsNumber().doubleValue());
|
||||||
|
}
|
||||||
|
if (key.getDefault() instanceof String && value.isString()) {
|
||||||
|
String valueStr = value.getAsString();
|
||||||
|
if (entry instanceof SettingsRegistry.MultipleChoiceSettingKey) {
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
List<String> choices = ((SettingsRegistry.MultipleChoiceSettingKey<String>) entry).getChoices();
|
||||||
|
if (choices.stream().noneMatch(valueStr::equals)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
entry.setValue(valueStr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void registerWatcher() throws IOException {
|
||||||
|
WatchService watchService = configFile.getFileSystem().newWatchService();
|
||||||
|
configFile.getParent().register(watchService, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_MODIFY);
|
||||||
|
Thread thread = new Thread(() -> {
|
||||||
|
while (true) {
|
||||||
|
WatchKey nextKey;
|
||||||
|
try {
|
||||||
|
nextKey = watchService.take();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (WatchEvent<?> event : nextKey.pollEvents()) {
|
||||||
|
WatchEvent.Kind<?> kind = event.kind();
|
||||||
|
if (kind == StandardWatchEventKinds.OVERFLOW) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
Path fileName = ((Path) event.context());
|
||||||
|
if (fileName.equals(configFile.getFileName())) {
|
||||||
|
MinecraftClient.getInstance().send(this::reload);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!nextKey.reset()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
thread.setName("replaymod-config-watcher");
|
||||||
|
thread.setDaemon(true);
|
||||||
|
thread.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void reload() {
|
||||||
|
load(false);
|
||||||
|
|
||||||
|
SettingsRegistry settingsRegistry = ReplayMod.instance.getSettingsRegistry();
|
||||||
|
for (SettingsRegistry.SettingKey<?> key : settings.keySet()) {
|
||||||
|
SettingsChangedCallback.EVENT.invoker().onSettingsChanged(settingsRegistry, key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
public void register(SettingsRegistry.SettingKey<?> key) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
public <T> void update(SettingsRegistry.SettingKey<T> key, T value) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void save() {
|
||||||
|
JsonObject root = new JsonObject();
|
||||||
|
for (Map.Entry<SettingsRegistry.SettingKey<?>, Object> entry : settings.entrySet()) {
|
||||||
|
SettingsRegistry.SettingKey<?> key = entry.getKey();
|
||||||
|
JsonObject category = root.getAsJsonObject(key.getCategory());
|
||||||
|
if (category == null) {
|
||||||
|
category = new JsonObject();
|
||||||
|
root.add(key.getCategory(), category);
|
||||||
|
}
|
||||||
|
|
||||||
|
Object value = entry.getValue();
|
||||||
|
if (value instanceof Boolean) {
|
||||||
|
category.addProperty(key.getKey(), (Boolean) value);
|
||||||
|
}
|
||||||
|
if (value instanceof Number) {
|
||||||
|
category.addProperty(key.getKey(), (Number) value);
|
||||||
|
}
|
||||||
|
if (value instanceof String) {
|
||||||
|
category.addProperty(key.getKey(), (String) value);
|
||||||
|
if (key instanceof SettingsRegistry.MultipleChoiceSettingKey) {
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
List<String> choices = ((SettingsRegistry.MultipleChoiceSettingKey<String>) key).getChoices();
|
||||||
|
JsonArray array = new JsonArray();
|
||||||
|
for (String choice : choices) {
|
||||||
|
array.add(choice);
|
||||||
|
}
|
||||||
|
category.add(key.getKey() + "_valid_values", array);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
||||||
|
String config = gson.toJson(root);
|
||||||
|
try {
|
||||||
|
ensureDirectoryExists(configFile.getParent());
|
||||||
|
Files.write(configFile, config.getBytes(StandardCharsets.UTF_8));
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
// 1.7.10 and below
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
// 1.7.10 and below
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.replaymod.core.events;
|
||||||
|
|
||||||
|
import de.johni0702.minecraft.gui.utils.Event;
|
||||||
|
|
||||||
|
public interface KeyBindingEventCallback {
|
||||||
|
Event<KeyBindingEventCallback> EVENT = Event.create((listeners) ->
|
||||||
|
() -> {
|
||||||
|
for (KeyBindingEventCallback listener : listeners) {
|
||||||
|
listener.onKeybindingEvent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
void onKeybindingEvent();
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.replaymod.core.events;
|
||||||
|
|
||||||
|
import de.johni0702.minecraft.gui.function.KeyInput;
|
||||||
|
import de.johni0702.minecraft.gui.utils.Event;
|
||||||
|
|
||||||
|
public interface KeyEventCallback {
|
||||||
|
Event<KeyEventCallback> EVENT = Event.create((listeners) ->
|
||||||
|
(keyInput, action) -> {
|
||||||
|
for (KeyEventCallback listener : listeners) {
|
||||||
|
if (listener.onKeyEvent(keyInput, action)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
//#if MC>=11400
|
||||||
|
int ACTION_RELEASE = org.lwjgl.glfw.GLFW.GLFW_RELEASE;
|
||||||
|
int ACTION_PRESS = org.lwjgl.glfw.GLFW.GLFW_PRESS;
|
||||||
|
//#else
|
||||||
|
//$$ int ACTION_RELEASE = 0;
|
||||||
|
//$$ int ACTION_PRESS = 1;
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
boolean onKeyEvent(KeyInput keyInput, int action);
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.replaymod.core.events;
|
||||||
|
|
||||||
|
import de.johni0702.minecraft.gui.utils.Event;
|
||||||
|
|
||||||
|
public interface PostRenderCallback {
|
||||||
|
Event<PostRenderCallback> EVENT = Event.create((listeners) ->
|
||||||
|
() -> {
|
||||||
|
for (PostRenderCallback listener : listeners) {
|
||||||
|
listener.postRender();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
void postRender();
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.replaymod.core.events;
|
||||||
|
|
||||||
|
import de.johni0702.minecraft.gui.utils.Event;
|
||||||
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
|
|
||||||
|
public interface PostRenderWorldCallback {
|
||||||
|
Event<PostRenderWorldCallback> EVENT = Event.create((listeners) ->
|
||||||
|
(MatrixStack matrixStack) -> {
|
||||||
|
for (PostRenderWorldCallback listener : listeners) {
|
||||||
|
listener.postRenderWorld(matrixStack);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
void postRenderWorld(MatrixStack matrixStack);
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.replaymod.core.events;
|
||||||
|
|
||||||
|
import de.johni0702.minecraft.gui.utils.Event;
|
||||||
|
|
||||||
|
public interface PreRenderCallback {
|
||||||
|
Event<PreRenderCallback> EVENT = Event.create((listeners) ->
|
||||||
|
() -> {
|
||||||
|
for (PreRenderCallback listener : listeners) {
|
||||||
|
listener.preRender();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
void preRender();
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package com.replaymod.core.events;
|
||||||
|
|
||||||
|
import de.johni0702.minecraft.gui.utils.Event;
|
||||||
|
|
||||||
|
public interface PreRenderHandCallback {
|
||||||
|
Event<PreRenderHandCallback> EVENT = Event.create((listeners) ->
|
||||||
|
() -> {
|
||||||
|
for (PreRenderHandCallback listener : listeners) {
|
||||||
|
if (listener.preRenderHand()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
boolean preRenderHand();
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.replaymod.core.events;
|
||||||
|
|
||||||
|
import com.replaymod.core.SettingsRegistry;
|
||||||
|
import de.johni0702.minecraft.gui.utils.Event;
|
||||||
|
|
||||||
|
public interface SettingsChangedCallback {
|
||||||
|
Event<SettingsChangedCallback> EVENT = Event.create((listeners) ->
|
||||||
|
(registry, key) -> {
|
||||||
|
for (SettingsChangedCallback listener : listeners) {
|
||||||
|
listener.onSettingsChanged(registry, key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
void onSettingsChanged(SettingsRegistry registry, SettingsRegistry.SettingKey<?> key);
|
||||||
|
}
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
package com.replaymod.core.events;
|
|
||||||
|
|
||||||
import com.replaymod.core.SettingsRegistry;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.Event;
|
|
||||||
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class SettingsChangedEvent extends Event {
|
|
||||||
@Getter
|
|
||||||
private final SettingsRegistry settingsRegistry;
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
private final SettingsRegistry.SettingKey<?> key;
|
|
||||||
}
|
|
||||||
202
src/main/java/com/replaymod/core/files/DelegatingReplayFile.java
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
package com.replaymod.core.files;
|
||||||
|
|
||||||
|
import com.replaymod.replaystudio.data.Marker;
|
||||||
|
import com.replaymod.replaystudio.data.ModInfo;
|
||||||
|
import com.replaymod.replaystudio.data.ReplayAssetEntry;
|
||||||
|
import com.replaymod.replaystudio.io.ReplayInputStream;
|
||||||
|
import com.replaymod.replaystudio.io.ReplayOutputStream;
|
||||||
|
import com.replaymod.replaystudio.lib.guava.base.Optional;
|
||||||
|
import com.replaymod.replaystudio.pathing.PathingRegistry;
|
||||||
|
import com.replaymod.replaystudio.pathing.path.Timeline;
|
||||||
|
import com.replaymod.replaystudio.protocol.PacketTypeRegistry;
|
||||||
|
import com.replaymod.replaystudio.replay.ReplayFile;
|
||||||
|
import com.replaymod.replaystudio.replay.ReplayMetaData;
|
||||||
|
|
||||||
|
import java.awt.image.BufferedImage;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.UUID;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
public class DelegatingReplayFile implements ReplayFile {
|
||||||
|
private final ReplayFile delegate;
|
||||||
|
|
||||||
|
public DelegatingReplayFile(ReplayFile delegate) {
|
||||||
|
this.delegate = delegate;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<InputStream> get(String entry) throws IOException {
|
||||||
|
return this.delegate.get(entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<InputStream> getCache(String entry) throws IOException {
|
||||||
|
return this.delegate.getCache(entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, InputStream> getAll(Pattern pattern) throws IOException {
|
||||||
|
return this.delegate.getAll(pattern);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OutputStream write(String entry) throws IOException {
|
||||||
|
return this.delegate.write(entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OutputStream writeCache(String entry) throws IOException {
|
||||||
|
return this.delegate.writeCache(entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove(String entry) throws IOException {
|
||||||
|
this.delegate.remove(entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeCache(String entry) throws IOException {
|
||||||
|
this.delegate.removeCache(entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void save() throws IOException {
|
||||||
|
this.delegate.save();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void saveTo(File target) throws IOException {
|
||||||
|
this.delegate.saveTo(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ReplayMetaData getMetaData() throws IOException {
|
||||||
|
return this.delegate.getMetaData();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeMetaData(PacketTypeRegistry registry, ReplayMetaData metaData) throws IOException {
|
||||||
|
this.delegate.writeMetaData(registry, metaData);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ReplayInputStream getPacketData(PacketTypeRegistry registry) throws IOException {
|
||||||
|
return this.delegate.getPacketData(registry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ReplayOutputStream writePacketData() throws IOException {
|
||||||
|
return this.delegate.writePacketData();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<Integer, String> getResourcePackIndex() throws IOException {
|
||||||
|
return this.delegate.getResourcePackIndex();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeResourcePackIndex(Map<Integer, String> index) throws IOException {
|
||||||
|
this.delegate.writeResourcePackIndex(index);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<InputStream> getResourcePack(String hash) throws IOException {
|
||||||
|
return this.delegate.getResourcePack(hash);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OutputStream writeResourcePack(String hash) throws IOException {
|
||||||
|
return this.delegate.writeResourcePack(hash);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Timeline> getTimelines(PathingRegistry pathingRegistry) throws IOException {
|
||||||
|
return this.delegate.getTimelines(pathingRegistry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTimelines(PathingRegistry pathingRegistry, Map<String, Timeline> timelines) throws IOException {
|
||||||
|
this.delegate.writeTimelines(pathingRegistry, timelines);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<BufferedImage> getThumb() throws IOException {
|
||||||
|
return this.delegate.getThumb();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeThumb(BufferedImage image) throws IOException {
|
||||||
|
this.delegate.writeThumb(image);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<InputStream> getThumbBytes() throws IOException {
|
||||||
|
return this.delegate.getThumbBytes();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeThumbBytes(byte[] image) throws IOException {
|
||||||
|
this.delegate.writeThumbBytes(image);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<Set<UUID>> getInvisiblePlayers() throws IOException {
|
||||||
|
return this.delegate.getInvisiblePlayers();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeInvisiblePlayers(Set<UUID> uuids) throws IOException {
|
||||||
|
this.delegate.writeInvisiblePlayers(uuids);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<Set<Marker>> getMarkers() throws IOException {
|
||||||
|
return this.delegate.getMarkers();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeMarkers(Set<Marker> markers) throws IOException {
|
||||||
|
this.delegate.writeMarkers(markers);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Collection<ReplayAssetEntry> getAssets() throws IOException {
|
||||||
|
return this.delegate.getAssets();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<InputStream> getAsset(UUID uuid) throws IOException {
|
||||||
|
return this.delegate.getAsset(uuid);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OutputStream writeAsset(ReplayAssetEntry asset) throws IOException {
|
||||||
|
return this.delegate.writeAsset(asset);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeAsset(UUID uuid) throws IOException {
|
||||||
|
this.delegate.removeAsset(uuid);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Collection<ModInfo> getModInfo() throws IOException {
|
||||||
|
return this.delegate.getModInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeModInfo(Collection<ModInfo> modInfo) throws IOException {
|
||||||
|
this.delegate.writeModInfo(modInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void close() throws IOException {
|
||||||
|
this.delegate.close();
|
||||||
|
}
|
||||||
|
}
|
||||||