h1z1-server 0.26.2-4 → 0.26.2-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.yaml +71 -0
- package/data/2016/encryptedData/fairPlayData.json +74 -74
- package/data/2016/sampleData/defaultconfig.yaml +71 -0
- package/package.json +3 -1
- package/src/packets/ClientProtocol/ClientProtocol_1080/accessedCharacter.ts +98 -98
- package/src/packets/ClientProtocol/ClientProtocol_1080/base.ts +3463 -3463
- package/src/packets/ClientProtocol/ClientProtocol_1080/group.ts +417 -417
- package/src/packets/ClientProtocol/ClientProtocol_1080/h1emu.ts +32 -32
- package/src/packets/ClientProtocol/ClientProtocol_1080/h1z1packets.ts +140 -140
- package/src/packets/ClientProtocol/ClientProtocol_1080/replication.ts +89 -89
- package/src/packets/ClientProtocol/ClientProtocol_1080/shared.ts +2600 -2600
- package/src/packets/ClientProtocol/ClientProtocol_1080/ui.ts +83 -83
- package/src/packets/ClientProtocol/ClientProtocol_1080/weapon.ts +641 -641
- package/src/protocols/h1emuprotocol.ts +233 -233
- package/src/servers/H1emuServer/h1emuLoginServer.ts +58 -58
- package/src/servers/LoginServer/loginclient.ts +19 -19
- package/src/servers/LoginServer/loginserver.ts +1182 -1182
- package/src/servers/ZoneServer2016/classes/weapon.ts +52 -51
- package/src/servers/ZoneServer2016/classes/zoneclient.ts +0 -2
- package/src/servers/ZoneServer2016/commands/commandhandler.ts +149 -149
- package/src/servers/ZoneServer2016/commands/commands.ts +11 -138
- package/src/servers/ZoneServer2016/commands/dev.ts +0 -2
- package/src/servers/ZoneServer2016/commands/internalcommands.ts +162 -162
- package/src/servers/ZoneServer2016/commands/types.ts +29 -29
- package/src/servers/ZoneServer2016/data/Recipes.ts +2540 -2538
- package/src/servers/ZoneServer2016/data/lootspawns.ts +2 -2
- package/src/servers/ZoneServer2016/entities/baseentity.ts +1 -1
- package/src/servers/ZoneServer2016/entities/basefullcharacter.ts +2 -2
- package/src/servers/ZoneServer2016/entities/baselightweightcharacter.ts +112 -112
- package/src/servers/ZoneServer2016/entities/character.ts +2 -2
- package/src/servers/ZoneServer2016/entities/constructionchildentity.ts +557 -552
- package/src/servers/ZoneServer2016/entities/constructiondoor.ts +323 -315
- package/src/servers/ZoneServer2016/entities/constructionparententity.ts +8 -3
- package/src/servers/ZoneServer2016/entities/crate.ts +1 -3
- package/src/servers/ZoneServer2016/entities/itemobject.ts +106 -106
- package/src/servers/ZoneServer2016/entities/lootableconstructionentity.ts +198 -193
- package/src/servers/ZoneServer2016/entities/plantingdiameter.ts +41 -38
- package/src/servers/ZoneServer2016/entities/vehicle.ts +2 -2
- package/src/servers/ZoneServer2016/managers/chatmanager.ts +202 -202
- package/src/servers/ZoneServer2016/managers/configmanager.ts +250 -0
- package/src/servers/ZoneServer2016/managers/constructionmanager.ts +2326 -0
- package/src/servers/ZoneServer2016/managers/fairplaymanager.ts +531 -0
- package/src/servers/ZoneServer2016/managers/groupmanager.ts +473 -473
- package/src/servers/ZoneServer2016/managers/rconmanager.ts +14 -0
- package/src/servers/ZoneServer2016/managers/speedtreemanager.ts +142 -0
- package/src/servers/ZoneServer2016/managers/weathermanager.ts +491 -300
- package/src/servers/ZoneServer2016/managers/worlddatamanager.ts +11 -7
- package/src/servers/ZoneServer2016/managers/worlddatamanagerthread.ts +59 -56
- package/src/servers/ZoneServer2016/managers/worldobjectmanager.ts +577 -577
- package/src/servers/ZoneServer2016/models/config.ts +83 -0
- package/src/servers/ZoneServer2016/models/enums.ts +669 -667
- package/src/servers/ZoneServer2016/zonepackethandlers.ts +63 -145
- package/src/servers/ZoneServer2016/zoneserver.ts +473 -3069
- package/src/types/zoneserver.ts +5 -0
- package/src/utils/constants.ts +22 -22
- package/src/utils/enums.ts +57 -57
- package/src/utils/utils.ts +888 -888
package/config.yaml
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
server:
|
|
2
|
+
welcomeMessage: "Welcome to H1emu! :D"
|
|
3
|
+
adminMessage: "You are an Admin!"
|
|
4
|
+
proximityItemsDistance: 2
|
|
5
|
+
interactionDistance: 3
|
|
6
|
+
charactersRenderDistance: 350
|
|
7
|
+
tickRate: 2000
|
|
8
|
+
worldRoutineRate: 30000
|
|
9
|
+
|
|
10
|
+
# Fairplay / anticheat config
|
|
11
|
+
fairplay:
|
|
12
|
+
useFairplay: true
|
|
13
|
+
maxPing: 250
|
|
14
|
+
pingTimeoutTime: 30000
|
|
15
|
+
|
|
16
|
+
weather:
|
|
17
|
+
cycleSpeed: 100
|
|
18
|
+
frozeCycle: false
|
|
19
|
+
defaultTemplate: "z1br"
|
|
20
|
+
|
|
21
|
+
# Anything to do with loot, vehicle, and npc spawning / despawning
|
|
22
|
+
worldobjects:
|
|
23
|
+
# Respawn timers
|
|
24
|
+
|
|
25
|
+
lootRespawnTimer: 1200000 # 30 minutes
|
|
26
|
+
vehicleRespawnTimer: 600000 # 10 minutes
|
|
27
|
+
npcRespawnTimer: 600000 # 10 minutes
|
|
28
|
+
|
|
29
|
+
# Despawn timers
|
|
30
|
+
|
|
31
|
+
# Player dropped items on the ground
|
|
32
|
+
itemDespawnTimer: 600000 # 10 minutes
|
|
33
|
+
# Spawned objects on the ground
|
|
34
|
+
lootDespawnTimer: 2400000 # 40 minutes
|
|
35
|
+
deadNpcDespawnTimer: 600000 # 10 minutes
|
|
36
|
+
|
|
37
|
+
# Misc
|
|
38
|
+
|
|
39
|
+
vehicleSpawnCap: 100
|
|
40
|
+
# How far any other vehicle has to be for another to spawn
|
|
41
|
+
vehicleSpawnRadius: 50
|
|
42
|
+
# How far another spawned npc has to be for another to spawn
|
|
43
|
+
npcSpawnRadius: 3
|
|
44
|
+
chanceNpc: 100 # To be reworked: 100 max
|
|
45
|
+
chanceScreamer: 5 # To be reworked: 1000 max
|
|
46
|
+
|
|
47
|
+
# Trees, blackberry bushes, and sticks
|
|
48
|
+
speedtree:
|
|
49
|
+
minBlackberryHarvest: 1
|
|
50
|
+
maxBlackberryHarvest: 2
|
|
51
|
+
# from blackberry bushes only
|
|
52
|
+
branchHarvestChance: 0.1 # maximum of 1 for 100% chance
|
|
53
|
+
|
|
54
|
+
minStickHarvest: 1
|
|
55
|
+
maxStickHarvest: 2
|
|
56
|
+
|
|
57
|
+
treeRespawnTimeMS: 1800000 # 30 minutes
|
|
58
|
+
minWoodLogHarvest: 2
|
|
59
|
+
maxWoodLogHarvest: 6
|
|
60
|
+
minTreeHits: 12 # minimum hits it takes to chop a tree
|
|
61
|
+
maxTreeHits: 20 # maximum hits it takes to chop a tree
|
|
62
|
+
|
|
63
|
+
construction:
|
|
64
|
+
allowPOIPlacement: false
|
|
65
|
+
allowStackedPlacement: false
|
|
66
|
+
allowOutOfBoundsPlacement: false
|
|
67
|
+
placementRange: 30
|
|
68
|
+
spawnPointBlockedPlacementRange: 25
|
|
69
|
+
vehicleSpawnPointBlockedPlacementRange: 30
|
|
70
|
+
playerFoundationBlockedPlacementRange: 70
|
|
71
|
+
playerShackBlockedPlacementRange: 20
|
|
@@ -1,150 +1,150 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"iv": "
|
|
4
|
-
"encryptedData": "
|
|
3
|
+
"iv": "2b48ee30a254dd80dc4d0e6a95c650e7",
|
|
4
|
+
"encryptedData": "cfe1fd810cba02bd45db47dc995e7756"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
|
-
"iv": "
|
|
8
|
-
"encryptedData": "
|
|
7
|
+
"iv": "2af5b9b060781f3396c4e5a833998397",
|
|
8
|
+
"encryptedData": "1160785c17ad86248ce992754aa2258b"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"iv": "
|
|
12
|
-
"encryptedData": "
|
|
11
|
+
"iv": "3baa34430d5e6e203f9f971171752c42",
|
|
12
|
+
"encryptedData": "eb7e6fb4320911f6b0aadc47b4834106"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"iv": "
|
|
16
|
-
"encryptedData": "
|
|
15
|
+
"iv": "c06ce26d111f16a5471c0010853b1c1c",
|
|
16
|
+
"encryptedData": "7998a2208e9f5028195e4f409a6ce56c"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"iv": "
|
|
20
|
-
"encryptedData": "
|
|
19
|
+
"iv": "2ee850532a5c49c523ee530f6fd06cca",
|
|
20
|
+
"encryptedData": "fc8193ec83a8d5a95bd6ce7f89827115"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"iv": "
|
|
24
|
-
"encryptedData": "
|
|
23
|
+
"iv": "09dbdbda68d9955090f7f5a974d7728f",
|
|
24
|
+
"encryptedData": "ca29d6e5841c45eeb495844339021724"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"iv": "
|
|
28
|
-
"encryptedData": "
|
|
27
|
+
"iv": "dd6010930ade0acbdf0de5fa5f6d9f3c",
|
|
28
|
+
"encryptedData": "6cde5deeb449c49f735cdc30cd18f0c8"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
"iv": "
|
|
32
|
-
"encryptedData": "
|
|
31
|
+
"iv": "0f32ecf8adac83f748541cb476910e45",
|
|
32
|
+
"encryptedData": "07091cdf9880af2526865efa6efc72f1"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"iv": "
|
|
36
|
-
"encryptedData": "
|
|
35
|
+
"iv": "c96255ac6a605d0251fe43cb4d576813",
|
|
36
|
+
"encryptedData": "e34a8f8555054f962e1f2060324563a2"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
"iv": "
|
|
40
|
-
"encryptedData": "
|
|
39
|
+
"iv": "9db8e16d8fc05e459844fa7837a09113",
|
|
40
|
+
"encryptedData": "e04e729d86b5824d3edafe78bc5ae157"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
"iv": "
|
|
44
|
-
"encryptedData": "
|
|
43
|
+
"iv": "619515abae23e9648dc328091e68245f",
|
|
44
|
+
"encryptedData": "8332f9fc03eb535667397db003318bf4"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"iv": "
|
|
48
|
-
"encryptedData": "
|
|
47
|
+
"iv": "c2221c8863f016ed653acf96fcb2c5bd",
|
|
48
|
+
"encryptedData": "1e7565aa455e3361ade6f512841e95b2"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"iv": "
|
|
52
|
-
"encryptedData": "
|
|
51
|
+
"iv": "7935b070629b3f22095731d10c4f2766",
|
|
52
|
+
"encryptedData": "d8cb8f1afde5edc5715dbf00e788b4e8"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"iv": "
|
|
56
|
-
"encryptedData": "
|
|
55
|
+
"iv": "f2c06b384ff3b8043d3e1390140a039d",
|
|
56
|
+
"encryptedData": "56d816c1b019e921a10455a684d79646"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
"iv": "
|
|
60
|
-
"encryptedData": "
|
|
59
|
+
"iv": "87eda56002a90e8b032a7a79b08a0c10",
|
|
60
|
+
"encryptedData": "725089b885f763280ce65e50e1a5b92a"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
"iv": "
|
|
64
|
-
"encryptedData": "
|
|
63
|
+
"iv": "9396af3d9cd84028f331dfa1a2c0d62a",
|
|
64
|
+
"encryptedData": "935b19e0ceb8cce804a0491314b509ee"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
"iv": "
|
|
68
|
-
"encryptedData": "
|
|
67
|
+
"iv": "60f15b680f4cfb1de3ce74240e91b70f",
|
|
68
|
+
"encryptedData": "3b738454f6a39b5b9ee986fc1d12b31a"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
"iv": "
|
|
72
|
-
"encryptedData": "
|
|
71
|
+
"iv": "1dfa30e7b2187ae977e2a3c8ffa22d78",
|
|
72
|
+
"encryptedData": "1c84dac304f81e4110122a3fe22800f0"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
"iv": "
|
|
76
|
-
"encryptedData": "
|
|
75
|
+
"iv": "4a13a3d44eb86a4f0c0834fb89e8ee01",
|
|
76
|
+
"encryptedData": "9f12b60d2840b5989fa80dd00a7df51b"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
"iv": "
|
|
80
|
-
"encryptedData": "
|
|
79
|
+
"iv": "d267136c11956aaee83466267626a8ef",
|
|
80
|
+
"encryptedData": "20304f2fbdad4eb928c30a8bfe518b73"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"iv": "
|
|
84
|
-
"encryptedData": "
|
|
83
|
+
"iv": "bf03ff841e1e36650e51f5e1ac40fe7c",
|
|
84
|
+
"encryptedData": "bea5c8ea1a86893de458877d3598a0a7"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
"iv": "
|
|
88
|
-
"encryptedData": "
|
|
87
|
+
"iv": "3ee7f4a5b111daed4332e3de4db15d1c",
|
|
88
|
+
"encryptedData": "1d2604718c0fc0d94bae1808348f442b"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"iv": "
|
|
92
|
-
"encryptedData": "
|
|
91
|
+
"iv": "a0560744770373d4b18a9f383f24dc5c",
|
|
92
|
+
"encryptedData": "a4cfa4dbc523378bb3a823c4b9f2d07d"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
"iv": "
|
|
96
|
-
"encryptedData": "
|
|
95
|
+
"iv": "a93db412f566ee3e1cf7164a9b3be9ad",
|
|
96
|
+
"encryptedData": "ac64c4080689e54553ea997018b50ffa"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
"iv": "
|
|
100
|
-
"encryptedData": "
|
|
99
|
+
"iv": "e76eccc8264b5cf024f739671043b6b9",
|
|
100
|
+
"encryptedData": "f30bc273ade3979998508cb4358a6b7b"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
"iv": "
|
|
104
|
-
"encryptedData": "
|
|
103
|
+
"iv": "35d2bee726ccf4b4863f83022b80d271",
|
|
104
|
+
"encryptedData": "cebd5ec2255cfaeabb20657f1f908cc9"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
"iv": "
|
|
108
|
-
"encryptedData": "
|
|
107
|
+
"iv": "fb136b15a80a717d28d2a6c6611bee40",
|
|
108
|
+
"encryptedData": "68def6e6f9c218fb6618ffb146532472"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
"iv": "
|
|
112
|
-
"encryptedData": "
|
|
111
|
+
"iv": "df6c0878e4efa2f2c14864e9906bfd41",
|
|
112
|
+
"encryptedData": "dbfeff6affed62ee974127049a524c76"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
"iv": "
|
|
116
|
-
"encryptedData": "
|
|
115
|
+
"iv": "aff3a166c3842b5e2bc8aeb655f6189f",
|
|
116
|
+
"encryptedData": "96ee6c543da5d1ed0905d7ebdba70a9a"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
"iv": "
|
|
120
|
-
"encryptedData": "
|
|
119
|
+
"iv": "f114b410b87f1569b7207d963e3a36d8",
|
|
120
|
+
"encryptedData": "e50804596de013a31c3a289608a11fd3"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
"iv": "
|
|
124
|
-
"encryptedData": "
|
|
123
|
+
"iv": "ea043fc0a66a96f804c53b285c9dcbfa",
|
|
124
|
+
"encryptedData": "3dc040929cc2f1f20ccc7b335b843076511f9760523aa86c88d881b1879d4484"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
"iv": "
|
|
128
|
-
"encryptedData": "
|
|
127
|
+
"iv": "9755049555722a513424670a85289ce5",
|
|
128
|
+
"encryptedData": "225a347b79c813706be1f4e0d7941916526c94969d3f4803de9864d8346660a7"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
"iv": "
|
|
132
|
-
"encryptedData": "
|
|
131
|
+
"iv": "ceadface7364f5212f81c01c6fd53d29",
|
|
132
|
+
"encryptedData": "2ba1959c7686a1a330eb05497e3496b8"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"iv": "
|
|
136
|
-
"encryptedData": "
|
|
135
|
+
"iv": "fc982708f6a5c775200ad3a045e8c26c",
|
|
136
|
+
"encryptedData": "e642dd593bee40671149befe513022ab"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
"iv": "
|
|
140
|
-
"encryptedData": "
|
|
139
|
+
"iv": "b5e6f0f083d2edf45c50b7d1fef1e52c",
|
|
140
|
+
"encryptedData": "2c79e7fb6fe68661b8c83619567c2a03"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
|
-
"iv": "
|
|
144
|
-
"encryptedData": "
|
|
143
|
+
"iv": "c74682c5eb30a5fac140c22095ba271c",
|
|
144
|
+
"encryptedData": "432735281822b6d5aa504dadbb0659c6"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
"iv": "
|
|
148
|
-
"encryptedData": "
|
|
147
|
+
"iv": "97aa2d1dfcd17ddc36a3d9c196972d0c",
|
|
148
|
+
"encryptedData": "90e9e9f9bb950ea82409478f1137db95"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
server:
|
|
2
|
+
welcomeMessage: "Welcome to H1emu! :D"
|
|
3
|
+
adminMessage: "You are an Admin!"
|
|
4
|
+
proximityItemsDistance: 2
|
|
5
|
+
interactionDistance: 3
|
|
6
|
+
charactersRenderDistance: 350
|
|
7
|
+
tickRate: 2000
|
|
8
|
+
worldRoutineRate: 30000
|
|
9
|
+
|
|
10
|
+
# Fairplay / anticheat config
|
|
11
|
+
fairplay:
|
|
12
|
+
useFairplay: true
|
|
13
|
+
maxPing: 250
|
|
14
|
+
pingTimeoutTime: 30000
|
|
15
|
+
|
|
16
|
+
weather:
|
|
17
|
+
cycleSpeed: 100
|
|
18
|
+
frozeCycle: false
|
|
19
|
+
defaultTemplate: "z1br"
|
|
20
|
+
|
|
21
|
+
# Anything to do with loot, vehicle, and npc spawning / despawning
|
|
22
|
+
worldobjects:
|
|
23
|
+
# Respawn timers
|
|
24
|
+
|
|
25
|
+
lootRespawnTimer: 1200000 # 30 minutes
|
|
26
|
+
vehicleRespawnTimer: 600000 # 10 minutes
|
|
27
|
+
npcRespawnTimer: 600000 # 10 minutes
|
|
28
|
+
|
|
29
|
+
# Despawn timers
|
|
30
|
+
|
|
31
|
+
# Player dropped items on the ground
|
|
32
|
+
itemDespawnTimer: 600000 # 10 minutes
|
|
33
|
+
# Spawned objects on the ground
|
|
34
|
+
lootDespawnTimer: 2400000 # 40 minutes
|
|
35
|
+
deadNpcDespawnTimer: 600000 # 10 minutes
|
|
36
|
+
|
|
37
|
+
# Misc
|
|
38
|
+
|
|
39
|
+
vehicleSpawnCap: 100
|
|
40
|
+
# How far any other vehicle has to be for another to spawn
|
|
41
|
+
vehicleSpawnRadius: 50
|
|
42
|
+
# How far another spawned npc has to be for another to spawn
|
|
43
|
+
npcSpawnRadius: 3
|
|
44
|
+
chanceNpc: 100 # To be reworked: 100 max
|
|
45
|
+
chanceScreamer: 5 # To be reworked: 1000 max
|
|
46
|
+
|
|
47
|
+
# Trees, blackberry bushes, and sticks
|
|
48
|
+
speedtree:
|
|
49
|
+
minBlackberryHarvest: 1
|
|
50
|
+
maxBlackberryHarvest: 2
|
|
51
|
+
# from blackberry bushes only
|
|
52
|
+
branchHarvestChance: 0.1 # maximum of 1 for 100% chance
|
|
53
|
+
|
|
54
|
+
minStickHarvest: 1
|
|
55
|
+
maxStickHarvest: 2
|
|
56
|
+
|
|
57
|
+
treeRespawnTimeMS: 1800000 # 30 minutes
|
|
58
|
+
minWoodLogHarvest: 2
|
|
59
|
+
maxWoodLogHarvest: 6
|
|
60
|
+
minTreeHits: 12 # minimum hits it takes to chop a tree
|
|
61
|
+
maxTreeHits: 20 # maximum hits it takes to chop a tree
|
|
62
|
+
|
|
63
|
+
construction:
|
|
64
|
+
allowPOIPlacement: false
|
|
65
|
+
allowStackedPlacement: false
|
|
66
|
+
allowOutOfBoundsPlacement: false
|
|
67
|
+
placementRange: 30
|
|
68
|
+
spawnPointBlockedPlacementRange: 25
|
|
69
|
+
vehicleSpawnPointBlockedPlacementRange: 30
|
|
70
|
+
playerFoundationBlockedPlacementRange: 70
|
|
71
|
+
playerShackBlockedPlacementRange: 20
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "h1z1-server",
|
|
3
|
-
"version": "0.26.2-
|
|
3
|
+
"version": "0.26.2-5",
|
|
4
4
|
"description": "Library for emulating h1z1 servers",
|
|
5
5
|
"author": "Quentin Gruber <quentingruber@gmail.com> (http://github.com/quentingruber)",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
"h1z1-server-demo-2016": "scripts/h1z1-server-demo-2016.js"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
+
"@types/js-yaml": "4.0.5",
|
|
16
17
|
"@types/node": "18.13.0",
|
|
17
18
|
"debug": "4.3.4",
|
|
18
19
|
"h1emu-core": "1.1.2",
|
|
19
20
|
"h1z1-dataschema": "1.7.0",
|
|
21
|
+
"js-yaml": "4.1.0",
|
|
20
22
|
"mongodb": "5.0.1",
|
|
21
23
|
"threads": "1.7.0",
|
|
22
24
|
"typescript": "4.9.5"
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
// ======================================================================
|
|
2
|
-
//
|
|
3
|
-
// GNU GENERAL PUBLIC LICENSE
|
|
4
|
-
// Version 3, 29 June 2007
|
|
5
|
-
// copyright (C) 2020 - 2021 Quentin Gruber
|
|
6
|
-
// copyright (C) 2021 - 2023 H1emu community
|
|
7
|
-
//
|
|
8
|
-
// https://github.com/QuentinGruber/h1z1-server
|
|
9
|
-
// https://www.npmjs.com/package/h1z1-server
|
|
10
|
-
//
|
|
11
|
-
// Based on https://github.com/psemu/soe-network
|
|
12
|
-
// ======================================================================
|
|
13
|
-
|
|
14
|
-
import { itemSchema } from "./shared";
|
|
15
|
-
|
|
16
|
-
export const accessedCharacterPackets: any = [
|
|
17
|
-
[
|
|
18
|
-
"AccessedCharacter.BeginCharacterAccess",
|
|
19
|
-
0xf10100,
|
|
20
|
-
{
|
|
21
|
-
fields: [
|
|
22
|
-
{ name: "objectCharacterId", type: "uint64string", defaultValue: "0" },
|
|
23
|
-
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
24
|
-
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
25
|
-
{
|
|
26
|
-
name: "itemsData",
|
|
27
|
-
type: "byteswithlength",
|
|
28
|
-
defaultValue: null,
|
|
29
|
-
fields: [
|
|
30
|
-
{
|
|
31
|
-
name: "items",
|
|
32
|
-
type: "array",
|
|
33
|
-
defaultValue: [],
|
|
34
|
-
fields: [
|
|
35
|
-
{
|
|
36
|
-
name: "item",
|
|
37
|
-
type: "schema",
|
|
38
|
-
defaultValue: {},
|
|
39
|
-
fields: itemSchema,
|
|
40
|
-
},
|
|
41
|
-
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
[
|
|
51
|
-
"AccessedCharacter.EndCharacterAccess",
|
|
52
|
-
0xf10200,
|
|
53
|
-
{
|
|
54
|
-
fields: [],
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
"AccessedCharacter.Unknown1",
|
|
59
|
-
0xf10400,
|
|
60
|
-
{
|
|
61
|
-
fields: [
|
|
62
|
-
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
63
|
-
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
[
|
|
68
|
-
"AccessedCharacter.Unknown2",
|
|
69
|
-
0xf10600,
|
|
70
|
-
{
|
|
71
|
-
fields: [
|
|
72
|
-
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
73
|
-
{
|
|
74
|
-
name: "itemsData",
|
|
75
|
-
type: "byteswithlength",
|
|
76
|
-
defaultValue: null,
|
|
77
|
-
fields: [
|
|
78
|
-
{
|
|
79
|
-
name: "items",
|
|
80
|
-
type: "array",
|
|
81
|
-
defaultValue: [],
|
|
82
|
-
fields: [
|
|
83
|
-
{
|
|
84
|
-
name: "item",
|
|
85
|
-
type: "schema",
|
|
86
|
-
defaultValue: {},
|
|
87
|
-
fields: itemSchema,
|
|
88
|
-
},
|
|
89
|
-
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
];
|
|
1
|
+
// ======================================================================
|
|
2
|
+
//
|
|
3
|
+
// GNU GENERAL PUBLIC LICENSE
|
|
4
|
+
// Version 3, 29 June 2007
|
|
5
|
+
// copyright (C) 2020 - 2021 Quentin Gruber
|
|
6
|
+
// copyright (C) 2021 - 2023 H1emu community
|
|
7
|
+
//
|
|
8
|
+
// https://github.com/QuentinGruber/h1z1-server
|
|
9
|
+
// https://www.npmjs.com/package/h1z1-server
|
|
10
|
+
//
|
|
11
|
+
// Based on https://github.com/psemu/soe-network
|
|
12
|
+
// ======================================================================
|
|
13
|
+
|
|
14
|
+
import { itemSchema } from "./shared";
|
|
15
|
+
|
|
16
|
+
export const accessedCharacterPackets: any = [
|
|
17
|
+
[
|
|
18
|
+
"AccessedCharacter.BeginCharacterAccess",
|
|
19
|
+
0xf10100,
|
|
20
|
+
{
|
|
21
|
+
fields: [
|
|
22
|
+
{ name: "objectCharacterId", type: "uint64string", defaultValue: "0" },
|
|
23
|
+
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
24
|
+
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
25
|
+
{
|
|
26
|
+
name: "itemsData",
|
|
27
|
+
type: "byteswithlength",
|
|
28
|
+
defaultValue: null,
|
|
29
|
+
fields: [
|
|
30
|
+
{
|
|
31
|
+
name: "items",
|
|
32
|
+
type: "array",
|
|
33
|
+
defaultValue: [],
|
|
34
|
+
fields: [
|
|
35
|
+
{
|
|
36
|
+
name: "item",
|
|
37
|
+
type: "schema",
|
|
38
|
+
defaultValue: {},
|
|
39
|
+
fields: itemSchema,
|
|
40
|
+
},
|
|
41
|
+
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"AccessedCharacter.EndCharacterAccess",
|
|
52
|
+
0xf10200,
|
|
53
|
+
{
|
|
54
|
+
fields: [],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
"AccessedCharacter.Unknown1",
|
|
59
|
+
0xf10400,
|
|
60
|
+
{
|
|
61
|
+
fields: [
|
|
62
|
+
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
63
|
+
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
"AccessedCharacter.Unknown2",
|
|
69
|
+
0xf10600,
|
|
70
|
+
{
|
|
71
|
+
fields: [
|
|
72
|
+
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
73
|
+
{
|
|
74
|
+
name: "itemsData",
|
|
75
|
+
type: "byteswithlength",
|
|
76
|
+
defaultValue: null,
|
|
77
|
+
fields: [
|
|
78
|
+
{
|
|
79
|
+
name: "items",
|
|
80
|
+
type: "array",
|
|
81
|
+
defaultValue: [],
|
|
82
|
+
fields: [
|
|
83
|
+
{
|
|
84
|
+
name: "item",
|
|
85
|
+
type: "schema",
|
|
86
|
+
defaultValue: {},
|
|
87
|
+
fields: itemSchema,
|
|
88
|
+
},
|
|
89
|
+
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
];
|