Cyrexxis / RokTracker

Open Source Rise of Kingdoms Stats Management Tool. Track TOP X Players of kingdom / alliance / honor leaderboard.
MIT License
47 stars 18 forks source link

Bug report & Feature request #4

Closed Citrona closed 1 year ago

Citrona commented 1 year ago

The script works for me, I noticed some errors in reading the text.

Can you add the number of rss collected please.

Very good work thanks you

Cyrexxis commented 1 year ago

Regarding the wrong characters i can try to improve the accuracy but i am not sure how much it will get improved (i can only try to adjust the pre processing of the image). Regarding rss collected i will add it when i have time in the next couple of days.

Citrona commented 1 year ago

Thank you very much for your answer, I think the reliability of the character reading cannot be 100%.

Other questions: Do you think it is possible to add an option to scan the honor points?

Cyrexxis commented 1 year ago

Well, scan for honor has the same problems as the "alliance scanner", that means there is no way of coping the username (because the governor profile can't be opened) and no automatic scrolling from the game. Those two cause a few problems:

  1. No name coping means OCR needs to be used. I tried that and the results are terrible (as soon as there are non-Latin characters like Arabic, Chinese or Japanese). I postponed looking into that and decided a picture of the name in addition to the OCR is a temporary fix for that.
  2. A problem that is also resulting from no governor profile is that it is only possible to record the name, but not the governor ID (I think that is unfixable)
  3. The non-automatic scrolling on the other hand is the bigger problem. I tried to use adb input swipe for scrolling, but that is too inaccurate because it doesn't stop exactly where it should (resulting in breaking after 20-60 players). After some looking into it, the best I could find is to record/playback the input events manually. However, I am not sure if that results in a very strict bluestacks + android version combination. (I didn't test the record and playback option yet.)

That being said, I am still interested in getting those features to work (especially the third), but really don't know when I will be able to. When those problems are fixed it would be possible to scan all six stats in the alliance leaderboard, the honor ranking in KVK and probably even MGE rankings. (everything with a list of names + scores that doesn't allow coping and needs to be scrolled manually)

Citrona commented 1 year ago

Thank you for your answer, good luck :)

Cyrexxis commented 1 year ago

The inital bug and feature request is closed by commit 62f5a745f1dae1f2919184f98ade3583b7ec5b45. I will close this issue but continue working on the alliance / honor points scanner.