Closed adminerest closed 1 year ago
So current suggestion is could we just simple it by not implementing a new class so we can just use payload?
Don't see value in implementing this, except making it easy to send garbage. Any missing messages, should be implemented and mapped.
Description https://github.com/ValvePython/steam/blob/eb3bf3188f83252eedf7d31ea283fc94390a1127/steam/core/cm.py#L191-L219 In the
send
function, for the line 211, themessage
needs to doserialize()
https://github.com/ValvePython/steam/blob/eb3bf3188f83252eedf7d31ea283fc94390a1127/steam/core/msg/__init__.py#L118-L119 For bothMsg
andMsgProto
, they have both onlySerialize
the body. The problem is, if I pass amsg
which can't match any proto (e.g.EMsg.ClientMicroTxnAuthRequest
), thebody
can't be parsed and it will become to'!!! Failed to resolve message !!!'
. So when running thesend
function, the message can't serialize thebody
which will raiseAttributeError: 'str' object has no attribute 'SerializeToString'
Steps to Reproduce the behavior (Include debug logs if possible and relevant)
Expected behavior A clear and concise description of what you expected to happen. If
message.body
can't be parsed, theSerialize
function should usepayload
insteadVersions Report Python Version: 3.10.8 Package Version: 1.4.3