h1z1-server 0.46.2-2 → 0.47.0
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/package.json
CHANGED
|
@@ -377,7 +377,9 @@ export class H1Z1Protocol {
|
|
|
377
377
|
packetData = DataSchema.pack(packet.schema, object);
|
|
378
378
|
} catch (error) {
|
|
379
379
|
console.error(`${packetName} : ${error}`);
|
|
380
|
-
|
|
380
|
+
if (packetName !== "SendSelfToClient") {
|
|
381
|
+
console.error(`${packetName} : ${JSON.stringify(object)}`);
|
|
382
|
+
}
|
|
381
383
|
}
|
|
382
384
|
if (packetData) {
|
|
383
385
|
data = Buffer.allocUnsafe(packetTypeBytes.length + packetData.length);
|
|
@@ -152,7 +152,7 @@ async function worldSaveUnitTests(t: any, mongoAddress: string) {
|
|
|
152
152
|
world.lastGuidItem
|
|
153
153
|
);
|
|
154
154
|
});
|
|
155
|
-
await t.test("load vehicles", async () => {
|
|
155
|
+
await t.test("load vehicles", { skip: true }, async () => {
|
|
156
156
|
const loadedVehicles = await wdmanager.loadVehiclesData();
|
|
157
157
|
removeMongoDbId(loadedVehicles);
|
|
158
158
|
assert.deepStrictEqual(loadedVehicles, world.vehicles);
|
|
@@ -8696,7 +8696,7 @@ export class ZoneServer2016 extends EventEmitter {
|
|
|
8696
8696
|
this.tasksManager.process(Math.floor(this.gameLoopUpdateRate / 2));
|
|
8697
8697
|
const endTime = Date.now();
|
|
8698
8698
|
const timeTaken = endTime - startTime;
|
|
8699
|
-
if (timeTaken
|
|
8699
|
+
if (timeTaken > this.gameLoopUpdateRate / 2) {
|
|
8700
8700
|
console.warn(
|
|
8701
8701
|
`Routine took ${timeTaken}ms to execute, which is more than the half tickRate ${this.gameLoopUpdateRate}`
|
|
8702
8702
|
);
|
package/config.yaml
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
server:
|
|
2
|
-
welcomeMessage: "Welcome to H1emu! :D"
|
|
3
|
-
adminMessage: "You are an Admin!"
|
|
4
|
-
gameMode: "SURVIVAL"
|
|
5
|
-
proximityItemsDistance: 2
|
|
6
|
-
interactionDistance: 3
|
|
7
|
-
charactersRenderDistance: 350
|
|
8
|
-
tickRate: 20
|
|
9
|
-
worldRoutineRate: 10000
|
|
10
|
-
enableLoginServerKickRequests: true
|
|
11
|
-
rebootTime: 48 # hours (0 to disable)
|
|
12
|
-
rebootWarnTime: 600 # seconds
|
|
13
|
-
isPvE: false
|
|
14
|
-
isHeadshotOnly: false
|
|
15
|
-
isFirstPersonOnly: false
|
|
16
|
-
isNoBuildInPois: true
|
|
17
|
-
baseConstructionDamage: 34000
|
|
18
|
-
damageWeapons: true # Damage weapons on firing
|
|
19
|
-
disablePOIManager: false # Disables the POI messages
|
|
20
|
-
disableMapBoundsCheck: false # Disables inboundscheck
|
|
21
|
-
|
|
22
|
-
# Rcon
|
|
23
|
-
|
|
24
|
-
rcon:
|
|
25
|
-
password: ""
|
|
26
|
-
port: 0
|
|
27
|
-
|
|
28
|
-
# Challenges
|
|
29
|
-
|
|
30
|
-
challenges:
|
|
31
|
-
enabled: true
|
|
32
|
-
challengePerDay: 6
|
|
33
|
-
|
|
34
|
-
# Random events
|
|
35
|
-
|
|
36
|
-
randomevents:
|
|
37
|
-
enabled: true
|
|
38
|
-
|
|
39
|
-
# VoiceChat
|
|
40
|
-
|
|
41
|
-
voicechat:
|
|
42
|
-
useVoiceChatV2: false
|
|
43
|
-
joinVoiceChatOnConnect: false
|
|
44
|
-
serverAccessToken: ""
|
|
45
|
-
|
|
46
|
-
# Fairplay / anticheat config
|
|
47
|
-
|
|
48
|
-
fairplay:
|
|
49
|
-
useFairplay: true
|
|
50
|
-
maxPing: 250
|
|
51
|
-
|
|
52
|
-
# Removing an entry below will allow clients with a certain rejectionFlag to join
|
|
53
|
-
# ex. Removing "5 # UNVERIFIED" will allow users with an unverified h1emu status to join
|
|
54
|
-
|
|
55
|
-
# by default, globally banned, hwid banned, vpn detected, and unverified clients will have their
|
|
56
|
-
# connections rejected
|
|
57
|
-
acceptedRejectionTypes:
|
|
58
|
-
# LOCAL_BAN, SERVER_LOCKED, and SERVER_REBOOT are always accepted
|
|
59
|
-
- 2 # GLOBAL_BAN
|
|
60
|
-
- 3 # VPN
|
|
61
|
-
- 4 # HWID
|
|
62
|
-
- 5 # UNVERIFIED
|
|
63
|
-
|
|
64
|
-
useAssetValidation: true
|
|
65
|
-
# how long the client has to send it's hashes before it's kicked (3 min default)
|
|
66
|
-
hashSubmissionTimeout: 180000
|
|
67
|
-
|
|
68
|
-
# clients with these packs are allowed to join, but they are optional (must be in numerical order)
|
|
69
|
-
allowedPacks:
|
|
70
|
-
#- file_name: ""
|
|
71
|
-
# crc32_hash: ""
|
|
72
|
-
|
|
73
|
-
# clients without these packs will be kicked (must be in numerical order)
|
|
74
|
-
requiredPacks:
|
|
75
|
-
#- file_name: ""
|
|
76
|
-
# crc32_hash: ""
|
|
77
|
-
|
|
78
|
-
weather:
|
|
79
|
-
defaultTemplate: "h1emubaseweather"
|
|
80
|
-
dynamicEnabled: true
|
|
81
|
-
|
|
82
|
-
airdrop:
|
|
83
|
-
minimumPlayers: 10
|
|
84
|
-
planeMovementSpeed: 140000
|
|
85
|
-
crateDropSpeed: 60000
|
|
86
|
-
|
|
87
|
-
# Anything to do with loot, vehicle, and npc spawning / despawning
|
|
88
|
-
worldobjects:
|
|
89
|
-
# Respawn timers
|
|
90
|
-
|
|
91
|
-
hasCustomLootRespawnTime: false
|
|
92
|
-
lootRespawnTimer: 1200000 # 30 minutes
|
|
93
|
-
vehicleRespawnTimer: 600000 # 10 minutes
|
|
94
|
-
npcRespawnTimer: 600000 # 10 minutes
|
|
95
|
-
|
|
96
|
-
# Despawn timers
|
|
97
|
-
|
|
98
|
-
# Player dropped items on the ground
|
|
99
|
-
itemDespawnTimer: 600000 # 10 minutes
|
|
100
|
-
# Spawned objects on the ground
|
|
101
|
-
lootDespawnTimer: 2400000 # 40 minutes
|
|
102
|
-
deadNpcDespawnTimer: 600000 # 10 minutes
|
|
103
|
-
lootbagDespawnTimer: 1800000 # 30 minutes
|
|
104
|
-
|
|
105
|
-
# Misc
|
|
106
|
-
vehicleSpawnCap: 120
|
|
107
|
-
# How far any other vehicle has to be for another to spawn
|
|
108
|
-
vehicleSpawnRadius: 50
|
|
109
|
-
# How far another spawned npc has to be for another to spawn
|
|
110
|
-
npcSpawnRadius: 3
|
|
111
|
-
chanceNpc: 100 # To be reworked: 100 max
|
|
112
|
-
chanceScreamer: 5 # To be reworked: 1000 max
|
|
113
|
-
|
|
114
|
-
chanceWornLetter: 1 # 100 max
|
|
115
|
-
|
|
116
|
-
waterSourceRefillAmount: 2
|
|
117
|
-
waterSourceReplenishTimer: 300000 # 5 minutes
|
|
118
|
-
|
|
119
|
-
crowbarHitRewardChance: 20 # 100 max
|
|
120
|
-
crowbarHitDamage: 10 # Default 25
|
|
121
|
-
|
|
122
|
-
# Trees, blackberry bushes, and sticks
|
|
123
|
-
speedtree:
|
|
124
|
-
minBlackberryHarvest: 1
|
|
125
|
-
maxBlackberryHarvest: 2
|
|
126
|
-
# from blackberry bushes only
|
|
127
|
-
branchHarvestChance: 0.1 # maximum of 1 for 100% chance
|
|
128
|
-
|
|
129
|
-
minStickHarvest: 1
|
|
130
|
-
maxStickHarvest: 2
|
|
131
|
-
|
|
132
|
-
treeRespawnTimeMS: 1800000 # 30 minutes
|
|
133
|
-
minWoodLogHarvest: 2
|
|
134
|
-
maxWoodLogHarvest: 6
|
|
135
|
-
minTreeHits: 12 # minimum hits it takes to chop a tree
|
|
136
|
-
maxTreeHits: 20 # maximum hits it takes to chop a tree
|
|
137
|
-
|
|
138
|
-
construction:
|
|
139
|
-
# allowPOIPlacement: false - deprecated in favor of isNoBuildInPOIs ^
|
|
140
|
-
allowStackedPlacement: false
|
|
141
|
-
allowOutOfBoundsPlacement: false
|
|
142
|
-
placementRange: 30
|
|
143
|
-
spawnPointBlockedPlacementRange: 25
|
|
144
|
-
vehicleSpawnPointBlockedPlacementRange: 30
|
|
145
|
-
playerFoundationBlockedPlacementRange: 70
|
|
146
|
-
playerShackBlockedPlacementRange: 20
|
|
147
|
-
|
|
148
|
-
decay:
|
|
149
|
-
decayTickInterval: 1200000 # 20 minutes per decay tick
|
|
150
|
-
constructionDamageTicks: 3 # damage structures every hour
|
|
151
|
-
|
|
152
|
-
# with default values it'll take 10 days for a base to fully decay
|
|
153
|
-
ticksToFullDecay: 240 # how many decay ticks * constructionDamageTicks it takes to fully decay any construction entity.
|
|
154
|
-
|
|
155
|
-
# unused for now but is planned
|
|
156
|
-
worldFreeplaceDecayMultiplier: 2 # used to multiply decay damage for freeplace constuction with no parent
|
|
157
|
-
|
|
158
|
-
##### DEPRECATED - NO LONGER DOES ANYTHING #####
|
|
159
|
-
baseConstructionDamage: 125000 # construction damage per required ticks
|
|
160
|
-
repairBoxHealValue: 1000000 # heals base to full condition
|
|
161
|
-
##### #####
|
|
162
|
-
|
|
163
|
-
vehicleDamageTicks: 3 # damage vehicles every hour
|
|
164
|
-
vacantFoundationTicks: 3 # destroy empty foundations after 1 hour
|
|
165
|
-
griefFoundationTimer: 72 # destroy grief foundations after 3 days (72 hours)
|
|
166
|
-
griefCheckSlotAmount: 4 # must have a minimum of 4 wall slots to avoid anti-grief
|
|
167
|
-
baseVehicleDamage: 2000 # 2% damage per 3 ticks (1 hour)
|
|
168
|
-
maxVehiclesPerArea: 2 # the max amount of vehicles that can be in an area before they start taking more damage
|
|
169
|
-
vehicleDamageRange: 25 # how large of a range to detect maxVehiclesPerArea
|
|
170
|
-
dailyRepairMaterials:
|
|
171
|
-
- itemDefinitionId: 16 # wood log
|
|
172
|
-
requiredCount: 1
|
|
173
|
-
- itemDefinitionId: 109 # wood plank
|
|
174
|
-
requiredCount: 10
|
|
175
|
-
- itemDefinitionId: 135 # nail
|
|
176
|
-
requiredCount: 4
|
|
177
|
-
- itemDefinitionId: 141 # metal bracket
|
|
178
|
-
requiredCount: 4
|
|
179
|
-
- itemDefinitionId: 46 # metal sheet
|
|
180
|
-
requiredCount: 1
|
|
181
|
-
- itemDefinitionId: 114 # metal shard
|
|
182
|
-
requiredCount: 8
|
|
183
|
-
- itemDefinitionId: 111 # wood stick
|
|
184
|
-
requiredCount: 2
|
|
185
|
-
|
|
186
|
-
smelting:
|
|
187
|
-
burnTime: 120000 # consume fuel every 120 seconds
|
|
188
|
-
smeltTime: 7000 # smelt 1 item every 7 seconds
|
|
189
|
-
gametime:
|
|
190
|
-
timeFrozen: false # Froze ingameTime
|
|
191
|
-
nightTimeMultiplier: 2 # This way night time pass 2 times faster than daytime
|
|
192
|
-
timeMultiplier: 36 # 1 hour IRL = 36 hours ingame, so 20 min for a full day
|
|
193
|
-
baseTime: 6 # server ingameTime start at 6 AM, 18 = 6PM
|
|
194
|
-
|
|
195
|
-
groups:
|
|
196
|
-
enabled: true
|
|
197
|
-
player_limit: 12
|
|
198
|
-
foundation_player_limit: 12
|