• Home
  • Forums
  • Search
  • Members
  • Calendar
  • Help
Forum stats
Show team
View New Posts
View Today's Posts
Link five here
ClashFarmer Discussion Forum
Login to account Create an account
Login
Username:
Password:
Lost Password?
 

  ClashFarmer Discussion Forum General Discussions General
1 2 3 4 5 … 16 Next »
Troop donations explanation

Thread Modes
Troop donations explanation
gopostal Offline
Member
***
Posts: 33
Threads: 5
Joined: Mar 2019
Reputation: 5
#1
08-12-2019, 05:41 AM
I didn't want to post this in Help and Support because it's not a technical problem, it's more of a "do it this way" thing. Here's my issue:

My wife is way lower level than I am and I want to send her various troops as she needs them. I want her to be able to select barbs, pekkas, or bowlers and I see that she can request those via troop request chat using the bot. The issue I'm having is that if she chats at me with a troop request and it says "bowler" and I don't have enough bowlers the bot locks up and begins a restarting loop. Can someone share the setup they use so that I can prevent my bot from stopping? I'm sure I don't have a setting correct but I've tried different combinations and it always fails to a looping crash.

If I leave the bot at normal settings with barb default it sends her barb troops correctly.

Thanks guys!
Find
Reply
Supreme Leader Offline
Moderator
*****
Posts: 3,366
Threads: 38
Joined: Mar 2016
Reputation: 159
#2
08-12-2019, 11:48 AM
Can you enable debug and add the logs when the bot loops
Before posting "BOT IS NOT WORKING!" Check the links below!
FAQ
ClashFarmer Tools
ClashFarmer Discord Support
Find
Reply
gopostal Offline
Member
***
Posts: 33
Threads: 5
Joined: Mar 2019
Reputation: 5
#3
08-12-2019, 01:43 PM
Sure but it will be a half day or so before I can post them, it's going to be a long work day. I'll add them tonight to this post. Thanks for looking into this.
Find
Reply
Supreme Leader Offline
Moderator
*****
Posts: 3,366
Threads: 38
Joined: Mar 2016
Reputation: 159
#4
08-12-2019, 01:55 PM
(08-12-2019, 01:43 PM)gopostal Wrote: Sure but it will be a half day or so before I can post them, it's going to be a long work day. I'll add them tonight to this post. Thanks for looking into this.

Thanks no rush post it when ever you can
Before posting "BOT IS NOT WORKING!" Check the links below!
FAQ
ClashFarmer Tools
ClashFarmer Discord Support
Find
Reply
gopostal Offline
Member
***
Posts: 33
Threads: 5
Joined: Mar 2019
Reputation: 5
#5
08-13-2019, 01:08 AM
OK, I set up debugging and here is the crash....

Environment: I have almost a full army trained up consisting of barbs, archers, and hogs. I was sent a request with the text "bowler" but I do not have any currently in my army. I have enabled "Donate by keyword" and made sure the text "bowler" is assigned to the Bowler.

Opened the chat window
Updating screen...
Screen update took 0.07 (0.23)
Clicking on buttons/chat_clan_tab ([])
Currently on clan chat.
Section [0, 506, 310, 622] ocr: bowler
Donate buttons located: [('bowler', [225, 578])]
Clicking at 228, 577...
Updating screen...
Screen update took 0.07 (0.23)
Updating screen...
Screen update took 0.36 (0.00)
Some Issue Occurred: , <type 'exceptions.AssertionError'>
Traceback (most recent call last):
File "bot.py", line 186, in run
File "maintainer.py", line 515, in train_and_maintain
File "donation.py", line 246, in donate
File "donation.py", line 155, in _donate_to_players
File "donation.py", line 166, in _donate_troops
File "player.py", line 262, in locate
File "player.py", line 230, in load_image
AssertionError

Checking if bot needs a time out.
Professional License: 24 days left
Verifying Emulator and CoC...
Emulator comm established on port 2200
Preparing commands...
Still trying...
Updating screen...
Screen update took 1.08 (0.00)
Making sure the resolution is set correctly...
Updating screen...
Screen update took 1.08 (0.00)
Waiting for CoC to load completely...
Updating screen...
The bot was paused.
Screen update took 0.38 (0.00)
The bot was stopped.

After this the bot ends up in a loop where it keeps trying to restart because the left donation/chat slider stays open and it can't find what it needs to initialize. Let me know if you need anything else, I'm happy to help. Thank you for looking at this.
Find
Reply
Supreme Leader Offline
Moderator
*****
Posts: 3,366
Threads: 38
Joined: Mar 2016
Reputation: 159
#6
08-13-2019, 01:38 AM
Thank you very much for taking the time to post the debug I will forward it to the dev's
Before posting "BOT IS NOT WORKING!" Check the links below!
FAQ
ClashFarmer Tools
ClashFarmer Discord Support
Find
Reply
gopostal Offline
Member
***
Posts: 33
Threads: 5
Joined: Mar 2019
Reputation: 5
#7
08-13-2019, 02:20 PM
If you are going to talk with them I might also add that there are times when the bot will 'split' and become multiple instances. I've narrowed it down to this:

You are in a battle while the bot is on. Without pausing the bot you end the match and return home. If you then hop over to the builder base and the bot is still alive it will sometimes split and you can see two instances running in the task manager. One is listed as an App and another is listed in the Background Processes (Windows 10). The resulting behavior is that pausing the bot won't always work and even though it's marked as paused it will try to continue on. You need to manually kills the ClashFarmer that's in Background Processes to make things work smoothly again.

I think that may be the root of a lot of the weird behavior you get posted as feedback, especially the stuff that's totally fixed with a restart. I'd guess the exe is split and restarting removes the phantom instance.
Find
Reply
Share Thread:            


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)

  • Contact Us
  • Forum team
  • Forum stats
  • Return to Top
 
  • RSS Syndication
  • Lite mode
  • ClashFarmer
  • Help
 
Forum software by © MyBB - Theme © iAndrew 2014



Linear Mode
Threaded Mode