Skip to content

CMsgClientWelcome does not appear to be reliable on newer NodeJs version. #109

@19a1047

Description

@19a1047

Happens only 50% of the time, but if i start a csgo session, it throws out the error following.
Tried with NodeJS 18; 20; 22; 23 -> failed. 14 -> works.
Maybe not related but the node-tf2 GC was initiated successfully in all node version.

message.location = $root.CMsgClientWelcome.Location.decode(reader, reader.uint32());

^

TypeError: Cannot read properties of undefined (reading 'decode')

Try to manually patched the \node_modules\globaloffensive\protobufs\generated\gcsdk_gcmessages.js:6740

to if ($root.CMsgClientWelcome && $root.CMsgClientWelcome.Location && typeof $root.CMsgClientWelcome.Location.decode === 'function') { message.location = $root.CMsgClientWelcome.Location.decode(reader, reader.uint32()); } else { reader.skipType(tag & 7); };

it skipped that CMsgClientWelcome decoding and succeeded to initiate the GC connection.

other dependencies:
"globaloffensive": "3.1.0",
"steam-session": "^1.7.2",
"steam-totp": "^2.1.1",
"steam-tradeoffer-manager": "^2.12.1",
"steam-user": "5.2.3",
"steamcommunity": "^3.48.8",
"tf2": "^4.0.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions