Jump to content
Sign in to follow this  
Skylark1

MyBot 5.2.1 Training Archers Instead of Wizards & Not donating dark spells

Recommended Posts

Hi guys,

 

I've tried to follow the instructions on bug reporting but when I run it with the debug variables set, I get an infinite cycle of this in my log:

 

[17:26:35] **Post Defense Page not visible**
[17:26:35] IsPostDefenseSummaryPage_12.03.2016 at 17.26.35.png
[17:26:35] ChkObstl Loop = 8ExitLoop = 8
[17:26:35] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[17:26:35] AndroidScreencap (51ms,50,0): l=0,t=0,w=860,h=780, My Bot v5.2.1 (MEmu).rgba: w=0,h=0,f=0
[17:26:37] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[17:26:37] AndroidScreencap (53ms,52,0): l=457,t=331,w=3,h=11, My Bot v5.2.1 (MEmu).rgba: w=0,h=0,f=0


 

Not sure what to do from here.

 

Aside from that, let me get onto my problem. I use MyBot (mEmu) for auto-donating wiz and loons to my clan and have it setup to train 14 loons and 37 wiz, donating to certain keywords. When I check on it every few hours, I'll find that there's up to 30 loons and loads of archers - it will often run out of wiz and be full of archers.

 

I also have it set to donate dark spells which is just doesn't do; it used to but it just stopped working.

 

What can I do to help debug this?

 

Thanks!

Share this post


Link to post
Share on other sites

1) Bot (specifically train code) isn't designed to only donate. When training, it needs to make sure the army camps will full, even if the resulting army composition isn't exactly what the user sets it to.

Example: all barracks are currently training Balloons (5 space). Army camps are 199/200. If the bot is farming, and it needs 100% full camps to attack, this will result in the bot becoming stuck, which is devastating for loot gained. If bot deletes current troops and trains some archers, farming can resume.

 

2) Make sure you have the latest version of AutoIt from here. Activate the debug variables and try running the bot again.

Share this post


Link to post
Share on other sites

Thanks for your quick reply.

 

Thanks for your example, but why would it be training 5 balloons if the camps were at 199/200? I've watched it train troops for a while to try and catch it doing something wrong, but it always seems to delete things it doesn't need. If I added a minion to the mix to bring the total camp space to 220/220, would I avoid this problem? Assuming it trains everything correctly, it should never need to make these filler archers.

 

Updated my AutoIt and it's no longer having the debug issue.

 

As for the dark spell donation bug, in the log I can see it's successfully detecting the request text: "ppoison" but it doesn't donate to this keyword like it should. I even copied this text and put it in the poison spell keywords box to check I wasn't using some weird unicode character or something (getting really desperate lol), but had no such luck. Here's the log of the event:

 

[18:44:36] Chat Request: ppoison
[18:44:36] Started dual getOcrSpaceCastleDonate
[18:44:36] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:36] AndroidScreencap (63ms,60,0): l=110,t=167,w=40,h=12, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1
[18:44:36] $aCapTroops :28#30
[18:44:36] $aCapSpells :0#1
[18:44:36] $aTempCapTroops splitted :28/30
[18:44:36] $aTempCapSpells splitted :0/1
[18:44:36] Chat Troops: 28/30, Spells: 0/1
[18:44:36] DonateWindow Open Start
[18:44:36] AndroidFastClick: $times=1, $loops=1, $remaining=0
[18:44:36] Send ADB shell command: dd if="/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).click" of=/dev/input/event8 obs=128>/dev/null 2>&1
[18:44:36] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:36] AndroidScreencap (66ms,63,0): l=330,t=199,w=2,h=2, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1
[18:44:37] $DonationWindowY: 58
[18:44:37] DonateWindow Open Exit
[18:44:37] Troop/Spell checkpoint.
[18:44:37] DonateCapWindow Start
[18:44:37] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:37] AndroidScreencap (63ms,61,0): l=768,t=72,w=30,h=14, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1
[18:44:37] $sReadCCTroopsCap: 0#8
[18:44:37] $aTempReadCCTroopsCap splitted :0/8
[18:44:37] $bSkipDonTroops: False
[18:44:37] $bSkipDonSpells: True
[18:44:37] DonateCapWindow End
[18:44:37] Troop checkpoint.
[18:44:37] Bad call of CheckDonateTroop:5=Balloon
[18:44:37] Bad call of CheckDonateTroop:6=Wizard
[18:44:37] DonateWindow Close Start
[18:44:37] AndroidFastClick: $times=1, $loops=1, $remaining=0
[18:44:37] Send ADB shell command: dd if="/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).click" of=/dev/input/event8 obs=128>/dev/null 2>&1
[18:44:37] DonateWindow Close Exit
[18:44:37] AndroidFastClick: $times=1, $loops=1, $remaining=0
[18:44:37] Send ADB shell command: dd if="/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).click" of=/dev/input/event8 obs=128>/dev/null 2>&1
[18:44:37] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:37] AndroidScreencap (55ms,53,0): l=202,t=210,w=1,h=470, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1
[18:44:38] More Donate buttons found, new $DonatePixel: (202,502)
[18:44:38] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:38] AndroidScreencap (67ms,65,0): l=180,t=186,w=118,h=24, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1
[18:44:38] Personal Break OCR result = 
[18:44:39] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:39] AndroidScreencap (63ms,61,0): l=202,t=210,w=1,h=510, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1
[18:44:39] $DonatePixel: (202,502)
[18:44:39] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:39] AndroidScreencap (66ms,64,0): l=30,t=438,w=280,h=18, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1
[18:44:39] Send ADB shell command: screencap "/mnt/shell/emulated/0/Pictures/mybot.run/My Bot v5.2.1 (MEmu).rgba"
[18:44:39] AndroidScreencap (95ms,93,0): l=30,t=449,w=280,h=18, My Bot v5.2.1 (MEmu).rgba: w=860,h=768,f=1


 

Not really sure what's going on here.

 

Thanks again for your help here and efforts with the bot in general :)

Share this post


Link to post
Share on other sites

Train code will attempt to keep camps full with archers when using elixir troops, and minions when using dark elixir troops.

If you remove this, bot gets stuck when farming. So, Will ALWAYS spam archers.  

 

Way to reduce this using custom army is be sure that troop space count in custom army is exactly same as camp space.  If using only 1 donate troop type, will seldom add filler troops.  When using more than one type, especially different troop space/size; when code rounds up/down to ensure full camps, it will add filler troops every train cycle.

 

There are many threads on challenges for donate only bot.  Please search and educate on these.

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...