Jump to content
McKay Development

Integrating cstrike15_gcmessages.proto


rektbot

Recommended Posts

Hi There,

 

I'm currently using a couple of messages from the cstrike15 proto in a standalone script. I'd like to integrate this into my steambot but for the sake of cleanliness and consistency I want to manage it through steam-user.

 

I'd like to know if there are any impediments or advice you might have for me. My understanding is:

  1. Protobufs - Drop the proto file + dependency into protobufs folder -> your protobufs.js will import it and add to schema
  2. Messages - Edit messages.js to add a SteamUser.EMsg.xxx reference for the request & response message (2 lines)
  3. Component - Add a new function in friends.js (or another file & add to index.js) to send a message for that proto eg. this._send(SteamUser.EMsg.xxxxx
  4. EMsg/Enums - Ensure EMsg exists for that message
Point 4 is where I get stuck. There already appears to be a reference within EMsg.js but it's for a different message. I'm not sure what happens if i override this number. Within cstrike15 proto the enum type  is "ECsgoGCMsg".

 

Nb. I don't really want to post what i'm trying to do because it could be abused from copy/paste script kiddies. Happy to provide more info 1:1 though.

 

Thanks in advance for any guidance/advice/help.

 

Regards,

Kai
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...