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] The script stops for no reason since the last update of the game #12

Closed Citrona closed 1 year ago

Citrona commented 1 year ago

Describe the bug It's been two times that the script stops for no reason, since the last update of the game. Do you have a solution?

Traceback` (most recent call last):

  File "C:\Scanner\rok-scanner.py", line 669, in <module>
    main()
  File "C:\Scanner\rok-scanner.py", line 665, in main
    scan(bluestacks_port, kingdom, scan_amount, resume_scan, track_inactives, reconstruct_fails)
  File "C:\Scanner\rok-scanner.py", line 505, in scan
    governor = governor_scan(device, port, next_gov_to_scan, inactive_players, track_inactives)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Scanner\rok-scanner.py", line 236, in governor_scan
    gov_id = int(re.sub("[^0-9]", "", gov_id))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

Your Setup (please complete the following information):

Citrona commented 1 year ago

Ok mb, it's just that a message slips over the userid when someone throws a rally on a Barbarian Fort in the alliance.

I close the ticket, sorry for the inconvenience

Cyrexxis commented 1 year ago

Hm that is interesting. I think it should be possible to catch that and try a second or third time. I probably didn't notice that because my scan accounts are either in no alliance or a very inactive alliance.