saul / demofile-net

Blazing fast cross-platform demo parser library for Counter-Strike 2 and Valve's Deadlock, written in C#.
MIT License
111 stars 10 forks source link

Unrecognised serializer field: m_nPlatformType #110

Closed laPeregrin closed 1 month ago

laPeregrin commented 1 month ago

Research

Description

System.NotSupportedException: Unrecognised serializer field: m_nPlatformType at DemoFile.Sdk.CEntityInstance.CreateFieldDecoder(SerializableField field, DecoderSet decoderSet) at DemoFile.Sdk.CBaseEntity.CreateFieldDecoder(SerializableField field, DecoderSet decoderSet) at DemoFile.Sdk.CBaseModelEntity.CreateFieldDecoder(SerializableField field, DecoderSet decoderSet) at DemoFile.Sdk.CBaseAnimGraph.CreateFieldDecoder(SerializableField field, DecoderSet decoderSet) at DemoFile.Sdk.CEconEntity.CreateFieldDecoder(SerializableField field, DecoderSet decoderSet) at System.Linq.Enumerable.SelectArrayIterator2.Fill(ReadOnlySpan1 source, Span1 destination, Func2 func) at System.Linq.Enumerable.SelectArrayIterator2.ToArray() at DemoFile.Sdk.DecoderSet.CreateDecoder[T](SerializerKey serializerKey) at DemoFile.Sdk.DecoderSet.GetDecoder[T](SerializerKey serializerKey) at DemoFile.Sdk.DecoderSet.TryGetDecoder(String className, Type& classType, SendNodeDecoder1& decoder) at DemoFile.DemoParser.OnDemoClassInfo(CDemoClassInfo msg) at DemoFile.DemoEvents.ReadDemoCommandCore[T](Action1 callback, MessageParser1 parser, ReadOnlySpan1 buffer, Boolean isCompressed) at DemoFile.DemoEvents.ReadDemoCommand(EDemoCommands msgType, ReadOnlySpan1 buffer, Boolean isCompressed) at DemoFile.DemoParser.MoveNextCoreAsync(EDemoCommands msgType, Boolean isCompressed, Int32 size, CancellationToken cancellationToken) at DemoFile.DemoParser.StartReadingAsync(Stream stream, CancellationToken cancellationToken) at DemoFile.DemoParser.ReadAllAsync(Stream stream, CancellationToken cancellationToken)

Code to reproduce

No response

Affected demos

http://replay274.valve.net/730/003710909414417367157_1236038047.dem.bz2

Theoya commented 1 month ago

I'm getting the exact same issue

saul commented 1 month ago

Thanks for reporting. The fix is available in v0.24.1