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
47 stars 8 forks source link

[Bug]: Service doesn't start automatically #61

Open ER-95 opened 6 months ago

ER-95 commented 6 months ago

Are you on the latest version?

Is there a fix in progress related to your proposal?

Describe the bug

I installed the service, but I have to start it manually

Expected Behavior

Service should start automatically when game is opened

Dota 2 Patch

No response

Steps To Reproduce

  1. Install the service
  2. Open the game

Anything else?

No response

andsfonseca commented 6 months ago

Hello @ER-95 Can you check this issue to see if this service is working properly?

https://github.com/andsfonseca/dota2-rpc-client/issues/48

Search for dota2rpc and check if the service is started.

Check also if any errors appear when you use the direct command line:

dota2-rpc-client.exe -f

btw, https://github.com/andsfonseca/dota2-rpc-client/issues/58 we are investigating an issue related to discord threads, maybe can be related

but I can only be sure after you confirm it.

ER-95 commented 6 months ago

@andsfonseca The service starts fine (and stays running) if I start it manually from services.msc, but it doesn't automatically run.

andsfonseca commented 6 months ago

I don't have a computer at the moment, but if you access services.msc and search for dota2rpc. In the context menu you have the properties options. Could you check which startup type is defined?

ER-95 commented 6 months ago

@andsfonseca It shows as "Automatic" - full screenshots below: image image image image

andsfonseca commented 6 months ago

It is set to automatic which is correct. I believe that when initializing it is giving an error, similar to #58. I'll investigate.

Okay, also I'll try to find a way to see the error log from the services in the next update, thanks for reporting.

I'm trying to refactor the application threads so that these errors don't close the program immediately. I believe this solves or helps us to find the problem that is happening to you

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

phantom-lancer commented 1 month ago

тоже самое, что делать?

andsfonseca commented 1 month ago

You can try the same things that were used in this issue or in another issue. You can post the prints here if you have any questions.

I have already found out that the problem is with the Discord SDK which is not thread-safe which makes the application not work properly.

There is a refactoring in progress, but since I'm busy, I probably won't fix it any time soon.