Repository navigation
v5.0.0
Breaking Changes
-
Renamed the
deadempackage to@deademx/deadlock. -
Moved UMD globals under the
deademnamespace (e.g.window.deadem.cs2,window.deadem.dota2,window.deadem.deadlock). -
Replaced
protobufjswith a built-in decoder. Consequences:- Changed 64-bit integers to
bigint(instead ofLong/ strings). - Removed underscores from field names (e.g. Dota 2
playerid_1→playerid1).
- Changed 64-bit integers to
-
Entity Fields:
- Prefixed names with the send node (e.g.
m_iGoldNetWorth→m_PlayerDataGlobal.m_iGoldNetWorth). - Changed
MatchID_tand Dota 2itemid_ttobigint.
- Prefixed names with the send node (e.g.
-
Replaced
StringTableEventsubscriptions with theSTRING_TABLEinterceptor stage. -
Made
Player.nextTick()synchronous.
New Features
- Added TypeScript declarations.
- Added the
STRING_TABLEinterceptor stage. - Extended the public API of packets, string tables and their types.
Improvements
- Added support for strict CSP environments.
- Sped up parsing: Deadlock +60%, CS2 +31%, Dota 2 +37%.
- Sped up
Playersteps and seeks. - Reduced minified bundles: Deadlock −12%, CS2 −14%, Dota 2 −16%.
Regressions
- Peak RSS increased: Deadlock 189 → 232 MB, Dota 2 277 → 429 MB.
Bug Fixes
-
Field Decoding:
- Fixed large signed integers off by 2^31 (zigzag).
- Fixed signed types read as unsigned:
CEntityIndex,GameTick_t,CPlayerSlot, DeadlockNPC_STATE, Dota 2PlayerID_tandAbilityID_t. - Fixed Dota 2
MatchID_tanditemid_ttruncated to 32 bits. - Fixed
HSequenceoff by one. - Fixed ammo counts in CS2
m_iClip1,m_iClip2and Deadlockm_iClip,m_iBonusClip. - Fixed 32-bit
QAngleread as zeros. - Fixed quantized float rounding and range (crashes on some CS2 demos).
- Fixed
CUtlBinaryBlockread as text. - Added missing
Quaternion,CTransformandCGlobalSymboldecoders. - Fixed unset send table field attributes read as 0 (no value changes).
-
Entity State:
- Fixed a crash on some older CS2 demos (PVS bits).
- Fixed entities re-created and losing fields at
DEM_FullPacket. - Fixed stale elements of shrunk arrays (
unpackFlattened()andgetField()could return removed values). - Fixed CS2 view models created from a foreign baseline (wrong owner and model in older demos).
-
String Tables:
- Fixed empty keys of updated entries and wrong keys in newer builds.
- Fixed tables jumping ahead at
DEM_FullPacket.
-
User Commands:
- Fixed nested
statemessages missing their defaults. - Fixed deltas dropping trailing repeated elements (CS2 subtick moves).
- Fixed nested
-
Player:
- Fixed
play()accepting invalid rates (zero, negative or non-finite). - Fixed
getStats().performancecounting idle seek time asPARSER.
- Fixed
-
Broadcast:
- Fixed
BroadcastAgent.stop()not stopping polling. - Fixed
BroadcastAgentpolling after its stream is closed (for exampleparser.abort()on a broadcast). - Fixed a failing broadcast gateway causing an unhandled rejection.
- Fixed
Schema
- Updated protobuf schema.
- Added message types:
- Shared:
svc_EncryptedData,GE_ClearDecalsForEntityEvent,GE_ClothStiffenAnimEvent,GE_ClothEffectAnimEvent. - Deadlock:
MusicQueue,CombatLogEntry,CombatLogBulkData,PlayerTyping,SoulBagPickup,HeroReleaseVote. - Dota 2:
TidehunterArcanaProgress_Ravages,TidehunterArcanaProgress_Fish.
- Shared:
- Removed message types:
- Shared:
EM_RemoveAllDecals. - Deadlock:
AG2ParamTrigger.
- Shared:
- Added string table types: Deadlock
COMBAT_LOG_NAMES, Dota 2UNIT_NAMES.
Examples
- Updated scripts for 5.0.
Documentation
- Rewrote the documentation.
Internal
- Added
@deademx/toolsfor internal repository scripts. - Added CI checks for generated protos and published types.