rektbot Posted March 5, 2017 Report Posted March 5, 2017 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:Protobufs - Drop the proto file + dependency into protobufs folder -> your protobufs.js will import it and add to schemaMessages - Edit messages.js to add a SteamUser.EMsg.xxx reference for the request & response message (2 lines)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.xxxxxEMsg/Enums - Ensure EMsg exists for that messagePoint 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 Quote
rektbot Posted March 5, 2017 Author Report Posted March 5, 2017 Update: Realised that what i'm trying to do is handled by "SteamGameCoordinator" with a different CMsgProtoBufHeader. Probably more to it than I assume... sorry Quote
Dr. McKay Posted March 5, 2017 Report Posted March 5, 2017 GC messages go through the CM, but other than that they have no relation. Therefore, GC communication is out of scope for steam-user. You may want to check out node-globaloffensive. You could fork it and add whatever messages you need if they aren't there already. Quote
rektbot Posted March 5, 2017 Author Report Posted March 5, 2017 Wow I didn't even know node-globaloffensive existed! This is perfect! Quote
Recommended Posts
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.