itsjfx / node-dota2-user

A Node.js module to connect to and interact with the Dota 2 game coordinator.
GNU General Public License v3.0
14 stars 2 forks source link

does it support stream ? #11

Closed Un1xCr3wR0x closed 8 months ago

Un1xCr3wR0x commented 9 months ago

@itsjfx i wanna start watching some live matches based on the current live matches is it possible ? and 1 more thing how can i see the launched game client ?

Un1xCr3wR0x commented 9 months ago

and iam trying

to use this get all live matches

    dota2.on('connectedToGC', () => {
        dota2.send(EDOTAGCMsg.k_EMsgGCToGCGetLiveLeagueMatches);
    });

but iam getting

Expected 2 arguments, but got 1.ts(2554)
Dota2User.d.ts(22, 61): An argument for 'body' was not provided.
(enum member) EDOTAGCMsg.k_EMsgGCToGCGetLiveLeagueMatches = 7631
Un1xCr3wR0x commented 9 months ago

any updates ? @itsjfx

itsjfx commented 9 months ago

hey @Un1xCr3wR0x , what are you after specifically? do you want to see top matches that get shown in the game client? or do you want to get information about a specific live match id?

Un1xCr3wR0x commented 9 months ago

i wanna get all top live matches then i wanna start streaming to twitch and give the viewers the ability to choose the game they wanna watch

itsjfx commented 8 months ago

I believe you can progamatically get the list of top games with this module, and then using a mixture of this module and public APIs extract information about the games. However you cannot use this module to "watch games". I don't provide support for the relays implementation to live spectate games to get data live.

This module does not actually launch a game client, instead it communicates to the Dota 2 game servers progamatically and acts like a real client. There is no client other than API calls the module makes for you, and that you make with the module. So there's no way to spectate a game live with this module like you can within the game.

Un1xCr3wR0x commented 8 months ago

aha ok thanks.