ClashFarmer Discussion Forum
Attack Log with Statistic - Printable Version

+- ClashFarmer Discussion Forum (https://www.clashfarmer.com/forum)
+-- Forum: General Discussions (https://www.clashfarmer.com/forum/forumdisplay.php?fid=5)
+--- Forum: Feature Requests (https://www.clashfarmer.com/forum/forumdisplay.php?fid=6)
+--- Thread: Attack Log with Statistic (/showthread.php?tid=134)



Attack Log with Statistic - TheGentleMan - 03-29-2016

I would like to see a new Attack log that can show how many time the bot is running, how much Gold/Elexir and DE im getting by hour.
I Also like to see every single attack in attack log, because after 20-30 attacks, it delete you're first attacks on Attack log screen.


I'd like too see How much walls did the Bot upgrate and how much left, in any level of walls.

Here's an Example :


RE: Attack Log with Statistic - TwilightKillerX - 03-30-2016

(03-29-2016, 11:52 PM)TheGentleMan Wrote: I would like to see a new Attack log that can show how many time the bot is running, how much Gold/Elexir and DE im getting by hour.
I Also like to see every single attack in attack log, because after 20-30 attacks, it delete you're first attacks on Attack log screen.


I'd like too see How much walls did the Bot upgrate and how much left, in any level of walls.

Here's an Example :

Perhaps this shouldn't overwrite the current log, but should be put into a separate tab.

It shouldn't take too long to code the averages and the time module is already imported, so all that's left is just taking the variables from the main_tab.pyc and changing their format as seen in the update_me(self) function.


Interesting code by the way! Just curious why self.tag_configure('COUNT', foreground='black') exists. It's not used in the formatting of the Log  Huh

Code:
else:
                   gold, elixir, dark_elixir, trophies, seek_count = line
                   gold = '{:,d}'.format(gold).rjust(9)
                   elixir = '{:,d}'.format(elixir).rjust(9)
                   dark_elixir = '{:,d}'.format(dark_elixir).rjust(5)

                   e.t.c...

I've commented on this idea in my other thread which had the principal of averages:

Quote:OUT OF 58 ATTACKS, THE AVERAGES ARE:

GOLD: 13390035 / 58 = 230862.67241379
ELIXIR: 14042526 / 58 = 242112.51724138
DARK ELIXIR: 26758 / 58 = 461.34482758621
TROPHIES: -3 / 58 = -0.051724137931034
SEARCHES: 1774 / 58 = 30.586206896552