andsfonseca / dota2-rpc-client

Allows you to observe the status of your DotA 2 (Defense of the Ancients 2) match within the Discord, through the Rich Presence service. 🎮
https://andsfonseca.github.io/dota2-rpc-client/
MIT License
41 stars 8 forks source link

[Bug]: The application doesn't perform as expected #1

Closed APrabhu21 closed 1 year ago

APrabhu21 commented 2 years ago

Are you on the latest version?

Is there a fix in progress related to your proposal?

Describe the bug

Installed following steps but nothing happened

Expected Behavior

Expected it to show hero in discord activity status

Dota 2 Patch

No response

Steps To Reproduce

uh just installed it by double clicking install.windows.bat and pressing space once it said press any key in the cmd window

Anything else?

No response

andsfonseca commented 2 years ago

Hello @APrabhu21, thanks for testing the application.

Could you check some things for me?

After confirming the application installation, could you open the task manager and check if this service is running?

image

Restart Dota 2, if it's open

galax-debug commented 2 years ago

Same for me :/

APrabhu21 commented 2 years ago

hey ithe service is working [image: image.png]

On Fri, Jun 10, 2022 at 10:17 AM Anderson Silva @.***> wrote:

Hello @APrabhu21 https://github.com/APrabhu21, thanks for testing the application.

Could you check some things for me?

After confirming the application installation, could you open the task manager and check if this service is running?

[image: image] https://user-images.githubusercontent.com/7833466/172992237-1a20bd3c-3ae0-4eab-9887-353d9a927816.png

— Reply to this email directly, view it on GitHub https://github.com/andsfonseca/dota2-rpc-client/issues/1#issuecomment-1151935088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYIDO3RKZ43ONVDA7IKK5F3VOLCENANCNFSM5YMLLWEQ . You are receiving this because you were mentioned.Message ID: @.***>

andsfonseca commented 2 years ago

Same for me :/

Could you perform the same test mentioned above?

andsfonseca commented 2 years ago

@APrabhu21, if it's running normally, check for me if the service was able to create the file gamestate_integration_rpc.cfg in this specific folder of dota files.

image

The content of this file is this:

"dota2-rpc-client Configuration"
{
    "uri"               "http://127.0.0.1:52424/"
    "timeout"           "5.0"
    "buffer"            "0.1"
    "throttle"          "0.1"
    "heartbeat"         "30.0"
    "data"
    {
        "provider"      "1"
        "map"           "1"
        "player"        "1"
        "hero"          "1"
        "draft"         "1"
        "wearables"     "1"
    }
    "auth"
    {
        "token"         "518quwZuBDWr"
    }
}
APrabhu21 commented 2 years ago

theres no file with thatname in that folder

andsfonseca commented 2 years ago

theres no file with thatname in that folder

There seems to be an error creating the file.

I'll upload the file for you to literally put inside the folder, let me know if this works correctly after that.

gamestate_integration_rpc.zip

Alternatively, I'll create a debug version. In case you want to help me look at this problem more closely.

APrabhu21 commented 2 years ago

i put the file it still didnt work

APrabhu21 commented 2 years ago

do i have to set it up in discord too or something

andsfonseca commented 2 years ago

do i have to set it up in discord too or something

In Discord, make sure this option is enabled.

image

APrabhu21 commented 2 years ago

image it still only shows normal dota while im in demo mode

andsfonseca commented 2 years ago

I just uploaded a debug version from this link.

https://github.com/andsfonseca/dota2-rpc-client/releases/download/v1.0.2/dota2-rpc-client-debug.zip

Can you unzip the file, open the terminal in the current folder and then type the following command:

dota2-rpc-client -f

Give me the output of the program. Expected is to have this output:

image

APrabhu21 commented 2 years ago

any specific place to unzip it or wherever

APrabhu21 commented 2 years ago

ah i misclicked and closed it

andsfonseca commented 2 years ago

any specific place to unzip it or wherever

wherever, just be careful not to delete the files later

APrabhu21 commented 2 years ago

image it shows me this error message

andsfonseca commented 2 years ago

I'm sorry about that, for some reason I thought you would have the development package installed on your machine. It's looking for Microsoft Visual C++ v140 Debug on your system.

Does the same error happen with the release version?

APrabhu21 commented 2 years ago

it doesnt show any errors with the release version

andsfonseca commented 2 years ago

Can you run this same command in the release version?

dota2-rpc-client -f
APrabhu21 commented 2 years ago

i ran that command and it executed as well but it still doesnt show whats expected in activity status c) Microsoft Corporation. All rights reserved.

E:\Tools\dc rich>dota2-rpc-client -f dota2rpc started \Unable to find DotA 2 files! Please create the following file with the name 'gamestate_integration_rpc.cfg' and insert it into the folder '{{STEAM_LIBRARY_PATH}}/dota 2 beta/game/dota/cfg/gamestate_integration/'.

=========== gamestate_integration_rpc.cfg ================ "dota2-rpc-client Configuration" { "uri" "http://127.0.0.1:52424/" "timeout" "5.0" "buffer" "0.1" "throttle" "0.1" "heartbeat" "30.0" "data" { "provider" "1" "map" "1" "player" "1" "hero" "1" "draft" "1" "wearables" "1" } "auth" { "token" "518quwZuBDWr" } }

Listening at http://127.0.0.1:52424. Press Ctrl+C twice to exit. |

heres whats in the cmd window rn

andsfonseca commented 2 years ago

This is the standard response when it fails to create the integration file automatically. It's a good sign actually.

Let's do one more test.

Uninstall the service, if you have it installed; Manually copy the cfg file to your Dota 2 folder; Close dota 2; Run the program using the command (Do not close the terminal); Open dota and enter the hero demo

The file is here: https://github.com/andsfonseca/dota2-rpc-client/issues/1#issuecomment-1152026794

APrabhu21 commented 2 years ago

it still only shows as playing dota 2

APrabhu21 commented 2 years ago

it says unable to find dota2 files at the top in cmd window

APrabhu21 commented 2 years ago

oh it worked the problme was i was directly putting the cfg file in the cfg folder while i had to create gamestate_integration folder and put it inside that. Sorry it was my fault

andsfonseca commented 2 years ago

Nice! Put a print here with your favorite hero so I can check if everything is ok.

APrabhu21 commented 2 years ago

image here you go

andsfonseca commented 2 years ago

Perfect, let me know if you find any more problems. I will try to improve this installation process later.

Then try to install again, so you don't have to keep opening the terminal every time.

I don't participate much in the reddit community but if you find someone with a similar problem can you ask them to check this issue?

APrabhu21 commented 2 years ago

Sure i can do that

On Fri, Jun 10, 2022, 1:29 PM Anderson Silva @.***> wrote:

Perfect, let me know if you find any more problems. I will try to improve this installation process later.

Then try to install again, so you don't have to keep opening the terminal every time.

I don't participate much in the reddit community but if you find someone with a similar problem can you ask them to check this issue?

— Reply to this email directly, view it on GitHub https://github.com/andsfonseca/dota2-rpc-client/issues/1#issuecomment-1152084044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYIDO3TC6JV7BM7NVGNUE3DVOLYUJANCNFSM5YMLLWEQ . You are receiving this because you modified the open/close state.Message ID: @.***>

HyunJae5463 commented 2 years ago

The Service is running and the gamestate_integration Folder exist but it still only shows Playing Dota 2 Tried to reinstall and restart PC but doesnt change anything Using dota2-rpc-client -f gives same result as from the other dude in this thread Also tried uninstalling, manually adding cfg file and restarting Dota

andsfonseca commented 2 years ago

Hello @HyunJae5463, thx for use

Can you perform some tasks for me?

phola123 commented 1 year ago

@andsfonseca hope you are supporting this project. I tried running it but its not showing in discord. -Files are created -Service is running (tried restarting it)

andsfonseca commented 1 year ago

Hello @phola123, let's test a few things.

  1. Go to your discord and make sure the option to display game activity is enabled and then restart discord.
  2. Check if the service is working. To do this, just open the task manager and go to the services tab. Look for a service called dota2-rpc and check if it is running
  3. Restart the service. (Or start if off)
  4. Restart Dota.
  5. Open a test map or a game with bots and check if discord has updated your profile

If nothing happened anyway.

  1. Stop the service in the task manager.
  2. Open the terminal with the command "-f", as you did before
  3. Open a test map or a game with bots and send me some screenshots of the terminal.
phola123 commented 1 year ago

image

in test map with bots shows nothing

image

After closing game

andsfonseca commented 1 year ago

It seems to be something related to discord.

I'll take a look and see if I can find out what's going on.

Recently the Discord SDK was updated, maybe something related to this.

I'll add some error messages related to discord connection failure instead of just a failure message.

Not very related, one user said he was able to run the app using administrative privileges. See #20.

I'll create a more specific issue for this.