Closed PanicIsReal closed 8 years ago
Does the problem remain if you use 'message'/send directly? If so, it's a Steam protocol issue. Maybe you didn't specify sufficient data in the ClientGetClientAppList request, or maybe Steam just doesn't support it anymore. Have you tried using NetHook to see what the official Steam client sends and receives?
Not sure what NetHook is, and I haven't tried using message / send directly I just basically copy pasta'd some code from your handlers, I will try to do that tonight when I get home from work in about 12 hours.
Exactly which class has the send method if you don't access it through this._client
https://github.com/seishun/node-steam#messagesend
https://github.com/SteamRE/SteamKit/tree/master/Resources/NetHook2
How did you find out about ClientGetClientAppList if not NetHook?
Ctrl+F on the protobufs and typing keywords in like Game or App till I found the proto that did what I thought it was doing to do :)
Use the NetHook, otherwise it's like trying to drive with your eyes closed.
Ok I will try that out when I'm back home, will report back.
But in terms of message/send, I see the bit of documentation there, but is that steamUser.send
or steamClient.send
or am I just having some reading comprehension issues
It's steamClient.send
, otherwise it would be documented in the README for SteamUser.
Ah ok fair enough, sorry, 5am here.
So I should just need to this.steamCli = steamClient;
in my constructor and then this.steamCli.send
... Will let you know what happens after I get to play around with it. Thanks.
But I do feel like that block of the readme could be easily clarified by not grouping message/send in the same title
Something like
Send
Is a method of steamClient
used to send messages to the steam servers, the callback is handled through the messages
event handler
Or something along those lines. Thanks though!
Also if it helps clarifying my intentions I'm trying to basically build my own steam client with electron and this package to add more functionality and hopefully a plugin system so people can add their own plugins to the steam client. It's open source and under my repos.
Looks like ClientGetClientAppList
is a request from server to client, and ClientGetClientAppListResponse
is a response from client to server.
Upd: I was right, just hethooked it ^_^ This is a part of remote control system.
Oh ok thanks for that. I'll need to find the one that gets the users owned apps/games so I can populate their app/game list in my own steam client. Thanks.
I'm trying to basically build my own steam client with electron and this package to add more functionality and hopefully a plugin system so people can add their own plugins to the steam client.
< offtopic > Might wanna contribute to Punk. 😄 I've been using it for over a year now but I don't have as much time to improve it as I'd like. It already has a plugin system + a bunch of other stuff.
If you have more questions, you might want to visit /r/SteamBot since it's better suited for Q/A type of thing. < /offtopic >
the callback is handled through the messages event handler
The callback is for the response to the message (if any), 'message' is for incoming messages that are NOT responses.
@scholtzm that does look nice, I will continue to work on mine but I sure don't mind contributing to yours
@seishun Thanks I wasn't 100% sure how to word it, was just more of an example. I will close this issue as I feel this is no longer really related to this package. Thanks for the input guys
I have included
steam-resources
and this is my little bit of code so far:Everything works fine, but I don't seem to get the handler to fire, I don't see the event handler firing, this is my console output after running this code:
I don't know if I'm sending the proto wrong or something but any information would be great.