Jump to content
McKay Development

forum_win

Member
  • Posts

    1
  • Joined

  • Last visited

forum_win's Achievements

  1. import { CDataGCCStrike15_v2_MatchInfo, CMsgGCCStrike15_v2_MatchList, CMsgGCCStrike15_v2_MatchListRequestFullGameInfo, CMsgGCCStrike15_v2_MatchListRequestRecentUserGames, } from "csgo-protobuf"; import SteamUser from "steam-user"; const payload = new CMsgGCCStrike15_v2_MatchListRequestFullGameInfo({ matchid: 3679454899302563903n, outcomeid: 3679460199292207251n, token: 16014, }); const user = new SteamUser(); user.logOn({ accountName: "forum_win", password: "" }); user.on("debug", msg => { console.log("DEBUG", msg); }); user.on("error", msg => { console.log("error", msg); }); user.on("disconnected", (e, m) => console.log("DISCONNECTED", e, m)); user.on("loggedOn", () => { //https://github.com/SteamDatabase/Protobufs/blob/master/csgo/cstrike15_gcmessages.proto#L41 //https://steamdb.info/app/730/info/ user.sendToGC(730, 9147, {}, Buffer.from(payload.toBinary())); }); user.on("receivedFromGC", (appid, msgType, payload) => { console.log(`Received message ${msgType} from GC ${appid} with ${payload.length} bytes`); }); user.on("appQuit", () => { console.log(`quit!!!`); }); Following logic found: https://github.com/akiver/boiler-writter/blob/main/boiler-writter/main.cpp https://github.com/akiver/boiler-writter/blob/main/boiler-writter/CSGOMatchList.cpp https://github.com/akiver/boiler-writter/blob/main/boiler-writter/CSGOClient.cpp Trying to leverage steam-user to call protobuf GC, but never receinving receivedFromGC event. Using the @types as well. Tried stepping through and have had no luck. Wondering if there's just a miss in the implementation. Tried encoding the protobuf payload using a few different npm libs such as protobufjs and copying proto from: https://github.com/SteamDatabase/Protobufs/blob/master/csgo/cstrike15_gcmessages.proto#L41 Any direction would be greatly appreciated. Thanks!pre widget
×
×
  • Create New...