Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
APrabhu21 opened this issue Jun 10, 2022 · 34 comments · Fixed by #16
Closed
2 tasks done

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

APrabhu21 opened this issue Jun 10, 2022 · 34 comments · Fixed by #16
Assignees
Labels
bug Something isn't working solved Informs that a certain issue has been resolved

Comments

@APrabhu21
Copy link

Are you on the latest version?

  • I'm on the latest version

Is there a fix in progress related to your proposal?

  • I have searched the existing issues

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

@APrabhu21 APrabhu21 added the bug Something isn't working label Jun 10, 2022
@andsfonseca andsfonseca self-assigned this Jun 10, 2022
@andsfonseca
Copy link
Owner

andsfonseca commented Jun 10, 2022

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

@andsfonseca andsfonseca changed the title [Bug]: [Bug]: The application doesn't perform as expected Jun 10, 2022
@invoker-dev
Copy link

Same for me :/

@APrabhu21
Copy link
Author

APrabhu21 commented Jun 10, 2022 via email

@andsfonseca
Copy link
Owner

Same for me :/

Could you perform the same test mentioned above?

@andsfonseca
Copy link
Owner

andsfonseca commented Jun 10, 2022

@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
Copy link
Author

theres no file with thatname in that folder

@andsfonseca
Copy link
Owner

andsfonseca commented Jun 10, 2022

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
Copy link
Author

i put the file it still didnt work

@APrabhu21
Copy link
Author

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

@andsfonseca
Copy link
Owner

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

In Discord, make sure this option is enabled.

image

@APrabhu21
Copy link
Author

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

@andsfonseca
Copy link
Owner

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
Copy link
Author

any specific place to unzip it or wherever

@APrabhu21
Copy link
Author

ah i misclicked
and closed it

@andsfonseca
Copy link
Owner

any specific place to unzip it or wherever

wherever, just be careful not to delete the files later

@andsfonseca andsfonseca reopened this Jun 10, 2022
@APrabhu21
Copy link
Author

image
it shows me this error message

@andsfonseca
Copy link
Owner

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
Copy link
Author

it doesnt show any errors with the release version

@andsfonseca
Copy link
Owner

Can you run this same command in the release version?

dota2-rpc-client -f

@APrabhu21
Copy link
Author

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
Copy link
Owner

andsfonseca commented Jun 10, 2022

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: #1 (comment)

@APrabhu21
Copy link
Author

it still only shows as playing dota 2

@APrabhu21
Copy link
Author

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

@APrabhu21
Copy link
Author

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
Copy link
Owner

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

@APrabhu21
Copy link
Author

image
here you go

@andsfonseca
Copy link
Owner

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?

@andsfonseca andsfonseca pinned this issue Jun 10, 2022
@APrabhu21
Copy link
Author

APrabhu21 commented Jun 10, 2022 via email

@HyunJae5463
Copy link

HyunJae5463 commented Jun 12, 2022

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
Copy link
Owner

Hello @HyunJae5463, thx for use

Can you perform some tasks for me?

  • First uninstall the service if you have it installed.
  • Open the terminal in the application folder and enter the following command:
dota2-rpc-client -f
  • Close and Open Dota 2 and enter the demo
  • Send me the output of the program.

@andsfonseca andsfonseca added this to the DotA 2 RPC v1.0.3 milestone Jun 14, 2022
@andsfonseca andsfonseca linked a pull request Jun 15, 2022 that will close this issue
@andsfonseca andsfonseca reopened this Jun 15, 2022
@andsfonseca andsfonseca added the solved Informs that a certain issue has been resolved label Aug 13, 2022
@phola123
Copy link

@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)

  • "-f" command in terminal shows me failed to update status.

@andsfonseca
Copy link
Owner

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.

@andsfonseca andsfonseca reopened this Oct 16, 2022
@phola123
Copy link

phola123 commented Oct 16, 2022

image

in test map with bots shows nothing

image

After closing game

@andsfonseca
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved Informs that a certain issue has been resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants