Kyrluckechuck / TFT-Bot

Automate Teamfight Tactics (TFT) for token/mission farming. Updated for Set 8.5!
GNU Affero General Public License v3.0
50 stars 7 forks source link

not working on garena server #37

Closed luong232 closed 1 year ago

luong232 commented 1 year ago

when i start the bot,it close the game and got error,i try 3 times but it still close the game and error

Kyrluckechuck commented 1 year ago

Can you provide any information or context to this? Could you attach the log file the bot created?

Kyrluckechuck commented 1 year ago

Though it's also worth noting that you mention this is the Garena server, and while I'll try to provide basic support I do not plan to go largely out of my way to support that client since it will be discontinued this year (since it's merging to "League proper"), on top of it not being accessible to me

luong232 commented 1 year ago

Though it's also worth noting that you mention this is the Garena server, and while I'll try to provide basic support I do not plan to go largely out of my way to support that client since it will be discontinued this year (since it's merging to "League proper"), on top of it not being accessible to me

do u have any social media like twitter or telegram ? i will send you the clip that will explain my problem,my english is very bad so i cant provide the problem i got,sorry.

Kyrluckechuck commented 1 year ago

I would prefer to keep it to the project. If you could attach the log file at %APPDATA%/TFT Bot/tft.log or %APPDATA%/TFT Bot/TFT Bot.log, that would be helpful.

By the initial description, it sounds like this may be a duplicate of https://github.com/Kyrluckechuck/TFT-Bot/issues/35, which was resolved with the v0.9.5 release.

Kousuke-kun commented 1 year ago

I have the same issue, also Garena. TFT.Bot.log

luong232 commented 1 year ago

hi,sorry for late reply,this is my log TFT.Bot.log

Kyrluckechuck commented 1 year ago

Based on the bot failing to locate the League install location, I'm guessing the Garena league client must use a different registry entry and/or install location. (the log mentions Could not dynamically determine League install location).

Since I don't have it, if you can open the registry key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ and look for something along the lines of Riot Game league_of_legends.live (it might have a different name mentioning Garena), that may help. If that exists, I'm looking for any value that mentions the install location, such as InstallLocation in this screenshot: image

If neither of you can find any registry entry for where the Garena install location is, if you can manually tell me the path I can make it a configuration setting in the bot_settings.ini file for Garena = True or similar that will be hard-coded to the default install path you mention.

Kousuke-kun commented 1 year ago

I'm unable to find the registry key for the Garena install location, I'm assuming it's because the Garena client has you choose the install location?

Anyway, the path for my install is at here explorer_n8A0o24HBU

The parent folder (C:\Riot Games\League of Legends) was something I created myself though, so that would make the "*/32771" part the install location?

Kyrluckechuck commented 1 year ago

A interesting that you must specify the install location which makes that more difficult to automate.

I suppose at the very least, I could make it so the League install folder is configured via the bot_settings.ini config 🤔

Kyrluckechuck commented 1 year ago

I have implemented this via the new setting in bot_settings.ini, which according to the screenshot you included, I think that would be:

[SETTINGS]
OverrideInstallLocation = C:\Riot Games\League of Legends\32771

(Included in release https://github.com/Kyrluckechuck/TFT-Bot/releases/tag/main-b7da0943)