ClashFarmer Discussion Forum

Full Version: The Automated Wall Upgrades
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've had a few issues, but the biggest one is the automated walls. 

I receive an error sometimes (seems random) that there "is an intel error with the th 10". The program attempts to recover and just loops and loops, problem is that it could happen while i'm not watching! Hours would be lost.

I know what is happening, the program is attempting to check resources for a walls upgrade, but whilst doing so the troop train tab is open and so the program can't identify the amount of resources. The troop screen covers everything but the gold, making only the amount of gold visible, so the program only identifies that and all other resources are blank and we get the intel error. 

Maybe if the program didn't try to train an army 14 times between cooks, the tab wouldn't be open so much. Or something. Is there a fix?
Could you provide a Screenshot with CF & Emulator.

Please activate debug mode before

Debug.flag activation
Code:
We would like to look into this bug in more detail. Can you please create a file named "debug.flag" in "C:\Program Files (x86)\ClashFarmer"
(Go into the directory, right click on the background, New -> Text Document. change the file name from "New Text Document.txt" to "debug.flag" )
Restart clashfarmer after creating the file and run the bot until the bug occurs.
Then, please copy&paste the log from the Bot Log inside the bot window and send it to us.
Also, here is a video how to create a debug,  https://www.youtube.com/watch?v=L_oqDhHtb64
If I turn walls upgrade off, it runs perfect, even if the troop deployment and leaving early happens. I can deal with that, the program is still running regardless. I will get you a log tomorrow.
(01-06-2017, 10:18 AM)clashguy Wrote: [ -> ]If I turn walls upgrade off, it runs perfect, even if the troop deployment and leaving early happens. I can deal with that, the program is still running regardless. I will get you a log tomorrow.

I would've got the log myself but all my walls are maxed
So it would be helpful to do a debug so we can identify which line in the code need adjustments
Thank you in advance and have a great day
The bot was paused.
Screen update took 0.08 (0.22)
The bot was resumed.
Clicking at 703, 101...
Clicking at 781, 326...
Updating screen...
Screen update took 0.08 (0.22)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.09 (0.21)
Updating screen...
Screen update took 0.08 (0.22)
Clicking on collect-de ([])
Clicking on collect-elixir ([])
Clicking on collect-gold ([])
Updating screen...
Screen update took 0.09 (0.21)
Clicking on collect-gold2 ([])
Clicking on tombstone ([])
Clicking on tombstone2 ([])
Clicking on lootCart/lootCart1 ([])
Checking if wall upgrade is possible...
Updating screen...
Screen update took 0.10 (0.20)
Current Resources:
Gold: 993707
Elixir:
Dark_Elixir:
Trophies:
Some Issue Occurred: invalid literal for int() with base 10: '', <type 'exceptions.ValueError'>
Traceback (most recent call last):
File "bot.pyc", line 181, in run
File "maintainer.pyc", line 590, in train_and_maintain
File "maintainer.pyc", line 93, in upgrade_wall
ValueError: invalid literal for int() with base 10: ''

Checking if bot needs a time out.
Professional License: 20 days left
Verifying Emulator and CoC...
Emulator comm established on port 2200
Preparing commands...
Still trying...
Updating screen...
Screen update took 0.10 (0.20)
Making sure the resolution is set correctly...
Updating screen...
Screen update took 0.10 (0.20)
Checking our status, please wait...
Checking if another device has connected...
Updating screen...
Screen update took 0.11 (0.19)
Checking whether the village is on a break...
Testing for inactivity disconnect...
Clicking on buttons/inactivity_disconnect_reload_game ([])
Testing server connectivity...
Clicking on buttons/server_disconnect_try_again ([])
Checking if there are open windows...
Clicking at 832, 94...
Clicking on buttons/close_window ([[815, 82]])
Closed window...
Updating screen...
Screen update took 0.08 (0.22)
Checking if chat sidebar is open...
Clicking on buttons/close_chat ([])
Checking if the village was attacked...
Clicking on buttons/endbattle_return_home ([])
Clicking on buttons/village_attacked_return_home ([])
Clicking on buttons/search_return_home ([])
Clicking on buttons/surrender ([])
Clicking on buttons/end_battle ([])
Updating screen...
Screen update took 0.08 (0.22)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.08 (0.22)
Checking if we need to lose trophies
Updating screen...
Screen update took 0.08 (0.22)
Current Resources:
Gold: 993707
Elixir: 4767321
Dark_Elixir: 39069
Trophies: 1270
Training and maintaining...
Updating screen...
Screen update took 0.08 (0.22)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.08 (0.22)
Checking if bot needs a time out.
Updating screen...
Screen update took 0.07 (0.23)
Clicking at 41, 524...
Clicking on buttons/army_overview ([[22, 507]])
Clicking at 113, 99...
Updating screen...
Screen update took 0.09 (0.21)
Clicking at 152, 553...
Updating screen...
Screen update took 0.08 (0.22)
army capacitiy: 67 / 220
Currently training: False
Updating screen...
Screen update took 0.10 (0.20)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.08 (0.22)
Capacity: 67/220
Army: {}
We are not training anything and the army is not ready, we need to train!
Updating screen...
Screen update took 0.09 (0.21)
Clicking at 152, 548...
Updating screen...
Screen update took 0.09 (0.21)
Clicking at 702, 98...
Clicking at 783, 327...
Updating screen...
Screen update took 0.10 (0.20)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.09 (0.21)
Updating screen...
Screen update took 0.09 (0.21)
Clicking on collect-de ([])
Clicking on collect-elixir ([])
Clicking on collect-gold ([])
Updating screen...
Screen update took 0.10 (0.20)
Clicking on collect-gold2 ([])
Clicking on tombstone ([])
Clicking on tombstone2 ([])
Clicking on lootCart/lootCart1 ([])
Checking if wall upgrade is possible...
Updating screen...
Screen update took 0.11 (0.19)
Current Resources:
Gold: 993707
Elixir:
Dark_Elixir:
Trophies:
Some Issue Occurred: invalid literal for int() with base 10: '', <type 'exceptions.ValueError'>
Traceback (most recent call last):
File "bot.pyc", line 181, in run
File "maintainer.pyc", line 590, in train_and_maintain
File "maintainer.pyc", line 93, in upgrade_wall
ValueError: invalid literal for int() with base 10: ''

Checking if bot needs a time out.
Professional License: 20 days left
Verifying Emulator and CoC...
Emulator comm established on port 2201
Preparing commands...
Still trying...
Updating screen...
Screen update took 0.10 (0.20)
Making sure the resolution is set correctly...
Updating screen...
Screen update took 0.09 (0.21)
Checking our status, please wait...
Checking if another device has connected...
Updating screen...
Screen update took 0.10 (0.20)
Checking whether the village is on a break...
Testing for inactivity disconnect...
Clicking on buttons/inactivity_disconnect_reload_game ([])
Testing server connectivity...
Clicking on buttons/server_disconnect_try_again ([])
Checking if there are open windows...
Clicking at 829, 94...
Clicking on buttons/close_window ([[815, 82]])
Closed window...
Updating screen...
Screen update took 0.08 (0.22)
Checking if chat sidebar is open...
Clicking on buttons/close_chat ([])
Checking if the village was attacked...
Clicking on buttons/endbattle_return_home ([])
Clicking on buttons/village_attacked_return_home ([])
Clicking on buttons/search_return_home ([])
Clicking on buttons/surrender ([])
Clicking on buttons/end_battle ([])
Updating screen...
Screen update took 0.08 (0.22)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.09 (0.21)
Checking if we need to lose trophies
Updating screen...
Screen update took 0.08 (0.22)
Current Resources:
Gold: 993707
Elixir: 4767321
Dark_Elixir: 39069
Trophies: 1270
Training and maintaining...
Updating screen...
Screen update took 0.08 (0.22)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.08 (0.22)
Checking if bot needs a time out.
Updating screen...
Screen update took 0.09 (0.21)
Clicking at 39, 532...
Clicking on buttons/army_overview ([[22, 507]])
Clicking at 113, 98...
Updating screen...
Screen update took 0.08 (0.22)
Clicking at 154, 550...
Updating screen...
Screen update took 0.11 (0.19)
army capacitiy: 72 / 220
Currently training: False
Updating screen...
Screen update took 0.08 (0.22)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.10 (0.20)
Capacity: 72/220
Army: {}
We are not training anything and the army is not ready, we need to train!
Updating screen...
Screen update took 0.10 (0.20)
Clicking at 154, 553...
Updating screen...
Screen update took 0.09 (0.21)
Clicking at 698, 101...
Clicking at 781, 325...
Updating screen...
Screen update took 0.08 (0.22)
Closing windows...
Clicking on buttons/close_window ([])
Checking zoom & position...
Updating screen...
Screen update took 0.09 (0.21)
Updating screen...
Screen update took 0.09 (0.21)
Clicking on collect-de ([])
Clicking on collect-elixir ([])
Clicking on collect-gold ([])
Updating screen...
Screen update took 0.10 (0.20)
Clicking on collect-gold2 ([])
Clicking on tombstone ([])
Clicking on tombstone2 ([])
Clicking on lootCart/lootCart1 ([])
Checking if wall upgrade is possible...
Updating screen...
Screen update took 0.09 (0.21)
Current Resources:
Gold: 993707
Elixir:
Dark_Elixir:
Trophies:
Some Issue Occurred: invalid literal for int() with base 10: '', <type 'exceptions.ValueError'>
Traceback (most recent call last):
File "bot.pyc", line 181, in run
File "maintainer.pyc", line 590, in train_and_maintain
File "maintainer.pyc", line 93, in upgrade_wall
ValueError: invalid literal for int() with base 10: ''

Checking if bot needs a time out.
Professional License: 20 days left
Verifying Emulator and CoC...
The bot was stopped.

Right before this happened the bot attacked a base and could not deploy all units because it kept clicking a unit already fully deployed.

You can see, it just loops and loops and loops

Screenshot, ignore the disconnected.
Thanks clashguy for the debug and the printscreen. We will check it.
(01-06-2017, 06:50 AM)clashguy Wrote: [ -> ]I've had a few issues, but the biggest one is the automated walls. 

I receive an error sometimes (seems random) that there "is an intel error with the th 10". The program attempts to recover and just loops and loops, problem is that it could happen while i'm not watching! Hours would be lost.

I know what is happening, the program is attempting to check resources for a walls upgrade, but whilst doing so the troop train tab is open and so the program can't identify the amount of resources. The troop screen covers everything but the gold, making only the amount of gold visible, so the program only identifies that and all other resources are blank and we get the intel error. 

Maybe if the program didn't try to train an army 14 times between cooks, the tab wouldn't be open so much. Or something. Is there a fix?

I've been running wall upgrade since Christmas day as all other upgrades are done except AQ/BK & wall upgrade for me has been working fine, i've never had this problem & ive upgraded 54 walls to lv11 ive been doing 1-3 upgrades a day, but i dont run the bot for long period i'm normally on from 5-6pm to 4am with 3 breaks
Could you maybe add a screenshot of your wallupgrade settings + coc showing your actual walls.

sometimes walls are "hidden" behind buildings, or maybe you checked the wrong walls?!