Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[BUG] v5.5.1 Variable used without being declared
#1
When the bot try to train the troops on barrack and it's full, I've got this error:
Quote:Line 24223: (File "C:\PATH\COC Bot.exe"):

Error: Variable used without being declared

Info and screenshot "Hidden Capture":

Code:
------------------------
    BLUESTACKS
------------------------
Version: 0.9.6.4092
BlueStacks is open and not minimized
Resolution: 860, 720
------------------------
    AUTOIT
------------------------
Version: 3.3.12.0
Native x32
Au3 Script
------------------------
    SPECS
------------------------
CPU: X64
OS: X64; WIN_7
------------------------
    DESKTOP
------------------------
Aero Enabled
Depth: 32
Resolution: 768, 1366
Refresh rate: 60
------------------------
    FUNCTION CALL
------------------------
_WinAPI_GetDC: 0xA001065F
_WinAPI_CreateCompatibleDC: 0x11010206
_WinAPI_CreateCompatibleBitmap: 0xB4050E3A

[Image: 2lic6es.jpg]
Reply
#2
please run from script and test again.
Do screenshot/ paste your few lines of bot log and what is the status of your BS?

Please fix your thread title to be more specific.
Reply
#3
(02-07-2015, 05:40 AM)dinobot Wrote:  please run from script and test again.
Do screenshot/ paste your few lines of bot log and what is the status of your BS?

Please fix your thread title to be more specific.

LOG:
Quote:2015-02-06 20:28:48 : ~~~~Welcome to COC Bot v5.5.1!~~~~
2015-02-06 20:28:48 : Executable running on X64 OS
2015-02-06 20:28:48 : Bot is starting...
2015-02-06 20:28:50 : Trying to locate Main Screen
2015-02-06 20:28:50 : Main Screen Located
2015-02-06 20:28:51 : Zooming Out
2015-02-06 20:29:03 : All traps armed
2015-02-06 20:29:05 : Training Troops...
2015-02-06 20:29:33 : Training Troops Complete
2015-02-06 20:29:35 : Requesting for Clan Castle's Troops
2015-02-06 20:29:42 : Donating Troops
2015-02-06 20:29:50 : Chat Text: barb
2015-02-06 20:29:52 : Finished Donating
2015-02-06 20:29:54 : Collecting Resources
2015-02-06 20:30:06 : ============Searching For Dead Base============
2015-02-06 20:30:06 : ~Gold: 150000; Elixir: 150000; Dark: 0; Trophy: 0; Townhall: 10
2015-02-06 20:30:08 : (1) [G]: 25314 [E]: 33268 [D]: 0 [T]: 27 [TH]: 7, Inside
2015-02-06 20:30:15 : (2) [G]: 61753 [E]: 39955 [D]: 9 [T]: 29 [TH]: 8, Inside
2015-02-06 20:30:21 : (3) [G]: 132005 [E]: 259412 [D]: 696 [T]: 34 [TH]: 8, Inside
2015-02-06 20:30:22 : ~~~~~~~Not dead base, skipping~~~~~~~
2015-02-06 20:30:29 : (4) [G]: 16561 [E]: 23775 [D]: 45 [T]: 13 [TH]: 7, Inside
2015-02-06 20:30:35 : (5) [G]: 130732 [E]: 82966 [D]: 706 [T]: 27 [TH]: 9, Inside
2015-02-06 20:30:42 : (6) [G]: 59777 [E]: 57858 [D]: 272 [T]: 27 [TH]: 8, Outside
2015-02-06 20:30:48 : (7) [G]: 31974 [E]: 38961 [D]: 108 [T]: 31 [TH]: 7, Inside
2015-02-06 20:30:55 : (Shadehappy [G]: 70165 [E]: 45777 [D]: 371 [T]: 28 [TH]: -, -
2015-02-06 20:31:02 : (9) [G]: 199271 [E]: 51704 [D]: 1697 [T]: 18 [TH]: 10, Inside
2015-02-06 20:31:03 : ~~~~~~~Not dead base, skipping~~~~~~~
2015-02-06 20:31:10 : (10) [G]: 35168 [E]: 34792 [D]: 76 [T]: 15 [TH]: 8, Inside
2015-02-06 20:31:16 : (11) [G]: 64167 [E]: 82843 [D]: 1183 [T]: 13 [TH]: 9, Inside
2015-02-06 20:31:30 : Cannot locate Next button, Restarting Bot
2015-02-06 20:31:30 : Trying to locate Main Screen
2015-02-06 20:31:37 : Waiting for Main Screen
2015-02-06 20:31:48 : Main Screen Located
2015-02-06 20:31:51 : Trying to locate Main Screen
2015-02-06 20:31:51 : Main Screen Located
2015-02-06 20:31:52 : Zooming Out
2015-02-06 20:32:09 : All traps armed
2015-02-06 20:32:10 : Training Troops...
BS was in bakground mode
Reply
#4
Try download latest 5.5.1 again and try again
https://github.com/Konloch/Clash-Of-Clan.../tag/5.5.1
Reply
#5
I got the same error twice.
It happened to me while it was trying to train barbs.
Reply
#6
(02-07-2015, 05:47 AM)dinobot Wrote:  Try download latest 5.5.1 again and try again
https://github.com/Konloch/Clash-Of-Clan.../tag/5.5.1
I redownloaded the latest version but another time I've got the same error on the same line Sad
This time the bot can try to train barbarians on first barracks (there are 71 barbs on queue).

LOG:
Quote:2015-02-06 20:38:31 : ~~~~Welcome to COC Bot v5.5.1!~~~~
2015-02-06 20:38:31 : Executable running on X64 OS
2015-02-06 20:38:31 : Bot is starting...
2015-02-06 20:38:33 : Trying to locate Main Screen
2015-02-06 20:38:33 : Main Screen Located
2015-02-06 20:38:39 : All traps armed
2015-02-06 20:38:41 : Training Troops...
2015-02-06 20:39:00 : Training Troops Complete
2015-02-06 20:39:02 : Requesting for Clan Castle's Troops
2015-02-06 20:39:05 : Request's already been made
2015-02-06 20:39:06 : Donating Troops
2015-02-06 20:39:08 : Chat Text: ladies
2015-02-06 20:39:10 : Chat Text: mininions
2015-02-06 20:39:12 : Chat Text: wb
2015-02-06 20:39:14 : Finished Donating
2015-02-06 20:39:15 : Collecting Resources
2015-02-06 20:39:27 : ============Searching For Dead Base============
2015-02-06 20:39:28 : ~Gold: 150000; Elixir: 150000; Dark: 0; Trophy: 0; Townhall: 10
2015-02-06 20:39:29 : (1) [G]: 18776 [E]: 6493 [D]: 133 [T]: 14 [TH]: 7, Inside
2015-02-06 20:39:36 : (2) [G]: 5696 [E]: 3910 [D]: 8 [T]: 28 [TH]: 7, Inside
2015-02-06 20:39:44 : (3) [G]: 33917 [E]: 51967 [D]: 404 [T]: 23 [TH]: 8, Inside
2015-02-06 20:39:51 : (4) [G]: 11228 [E]: 13824 [D]: 0 [T]: 17 [TH]: -, -
2015-02-06 20:39:59 : (5) [G]: 18510 [E]: 51231 [D]: [T]: 34 [TH]: 7, Inside
2015-02-06 20:40:07 : (6) [G]: 16886 [E]: 41652 [D]: 78 [T]: 23 [TH]: 7, Inside
2015-02-06 20:40:14 : (7) [G]: 101975 [E]: 69814 [D]: [T]: 27 [TH]: 7, Inside
2015-02-06 20:40:22 : (Shadehappy [G]: 263832 [E]: 182636 [D]: 1451 [T]: 22 [TH]: 9, Inside
2015-02-06 20:40:24 : ~~~~~~~Not dead base, skipping~~~~~~~
2015-02-06 20:40:31 : (9) [G]: 2946 [E]: 44462 [D]: 0 [T]: 19 [TH]: 7, Inside
2015-02-06 20:40:38 : (10) [G]: 27092 [E]: 39585 [D]: 110 [T]: 19 [TH]: 7, Inside
2015-02-06 20:40:46 : (11) [G]: 65569 [E]: 113608 [D]: 437 [T]: 33 [TH]: 8, Inside
2015-02-06 20:40:54 : (12) [G]: 49878 [E]: 32897 [D]: 155 [T]: 17 [TH]: 7, Inside
2015-02-06 20:41:02 : (13) [G]: 25000 [E]: 17250 [D]: 0 [T]: 24 [TH]: 7, Inside
2015-02-06 20:41:08 : (14) [G]: 11296 [E]: 24845 [D]: [T]: 30 [TH]: -, -
2015-02-06 20:41:17 : (15) [G]: 116997 [E]: 130750 [D]: 572 [T]: 19 [TH]: 8, Outside
2015-02-06 20:41:26 : (16) [G]: 54319 [E]: 99472 [D]: 269 [T]: 14 [TH]: 8, Inside
2015-02-06 20:41:33 : (17) [G]: 56871 [E]: 273562 [D]: 1824 [T]: 21 [TH]: 8, Outside
2015-02-06 20:41:35 : ~~~~~~~Not dead base, skipping~~~~~~~
2015-02-06 20:41:44 : (1Shadehappy [G]: 40379 [E]: 63644 [D]: 64 [T]: 17 [TH]: 7, Inside
2015-02-06 20:41:50 : (19) [G]: 101708 [E]: 35709 [D]: 2 [T]: 32 [TH]: 7, Inside
2015-02-06 20:41:58 : (20) [G]: 25674 [E]: 22931 [D]: 6 [T]: 23 [TH]: 7, Inside
2015-02-06 20:41:58 : ~Gold: 145000; Elixir: 145000; Dark: 0; Trophy: 0; Townhall: 10
2015-02-06 20:42:05 : (21) [G]: 17164 [E]: 22438 [D]: 119 [T]: 21 [TH]: 7, Inside
2015-02-06 20:42:13 : (22) [G]: 18332 [E]: 60332 [D]: 222 [T]: 24 [TH]: 8, Inside
2015-02-06 20:42:21 : (23) [G]: 44365 [E]: 62279 [D]: 175 [T]: 22 [TH]: 7, Inside
2015-02-06 20:42:29 : (24) [G]: 18875 [E]: 43486 [D]: [T]: 33 [TH]: 7, Inside
2015-02-06 20:42:36 : (25) [G]: 20917 [E]: 13052 [D]: 45 [T]: 29 [TH]: 7, Inside
2015-02-06 20:42:43 : (26) [G]: 97945 [E]: 44278 [D]: 146 [T]: 19 [TH]: -, -
2015-02-06 20:42:50 : (27) [G]: 177352 [E]: 774 [D]: 125 [T]: 14 [TH]: 8, Inside
2015-02-06 20:42:50 : ~~~~~~~Not dead base, skipping~~~~~~~
2015-02-06 20:42:58 : (2Shadehappy [G]: 13605 [E]: 45540 [D]: [T]: 15 [TH]: -, -
2015-02-06 20:43:05 : (29) [G]: 110533 [E]: 212773 [D]: 780 [T]: 24 [TH]: -, -
2015-02-06 20:43:06 : ~~~~~~~Not dead base, skipping~~~~~~~
2015-02-06 20:43:12 : (30) [G]: 39112 [E]: 30704 [D]: 598 [T]: 16 [TH]: 8, Inside
2015-02-06 20:43:18 : (31) [G]: 14036 [E]: 79941 [D]: 39 [T]: 29 [TH]: 7, Inside
2015-02-06 20:43:24 : (32) [G]: 44520 [E]: 28517 [D]: 42 [T]: 18 [TH]: 7, Inside
2015-02-06 20:43:31 : (33) [G]: 34995 [E]: 15143 [D]: 0 [T]: 13 [TH]: -, -
2015-02-06 20:43:36 : (34) [G]: 39793 [E]: 23934 [D]: 0 [T]: 20 [TH]: 7, Inside
2015-02-06 20:43:43 : (35) [G]: 60896 [E]: 87843 [D]: 22 [T]: 33 [TH]: 8, Inside
2015-02-06 20:43:49 : (36) [G]: 52276 [E]: 18122 [D]: 115 [T]: 24 [TH]: 7, Inside
2015-02-06 20:43:55 : (37) [G]: 12971 [E]: 21620 [D]: 0 [T]: 22 [TH]: 4-6, Inside
2015-02-06 20:44:01 : (3Shadehappy [G]: 61845 [E]: 61041 [D]: 195 [T]: 23 [TH]: 7, Inside
2015-02-06 20:44:07 : (39) [G]: 8980 [E]: 28953 [D]: 0 [T]: 25 [TH]: -, -
2015-02-06 20:44:13 : (40) [G]: 52885 [E]: 61075 [D]: 135 [T]: 34 [TH]: 7, Inside
2015-02-06 20:44:13 : ~Gold: 140000; Elixir: 140000; Dark: 0; Trophy: 0; Townhall: 10
2015-02-06 20:44:19 : (41) [G]: 10906 [E]: 15829 [D]: 2 [T]: 14 [TH]: 7, Inside
2015-02-06 20:44:25 : (42) [G]: 274199 [E]: 350639 [D]: 479 [T]: 33 [TH]: -, -
2015-02-06 20:44:25 : ~~~~~~~Dead Base Found!~~~~~~~
2015-02-06 20:44:27 : ===============Searching Complete===============
2015-02-06 20:44:28 : Preparing to attack
2015-02-06 20:44:28 : -Barbarians 134
2015-02-06 20:44:29 : -Archers 66
2015-02-06 20:44:29 : -Clan castle 1
2015-02-06 20:44:30 : ======Beginning Attack======
2015-02-06 20:44:32 : ~Attacking in all sides...
2015-02-06 20:44:33 : Dropping first wave of 67 Barbarians
2015-02-06 20:44:39 : Dropping first wave of 33 Archers
2015-02-06 20:44:42 : Dropping second wave of 67 Barbarians
2015-02-06 20:44:48 : Dropping second wave of 33 Archers
2015-02-06 20:44:55 : Dropping Clan Castle
2015-02-06 20:44:56 : Dropping left over troops
2015-02-06 20:44:56 : Checking remainding unlaunched troops
2015-02-06 20:44:56 : -Clan castle 1
2015-02-06 20:44:58 : ~Finished Attacking, waiting to finish
2015-02-06 20:46:51 : Gold & Elixir change detected, waiting...
2015-02-06 20:47:54 : Returning Home
2015-02-06 20:47:57 : Taking snapshot of your loot
2015-02-06 20:48:13 : Trying to locate Main Screen
2015-02-06 20:48:13 : Main Screen Located
2015-02-06 20:48:19 : All traps armed
2015-02-06 20:48:21 : Training Troops...
2015-02-06 20:48:46 : Training Troops Complete
2015-02-06 20:48:48 : Requesting for Clan Castle's Troops
2015-02-06 20:48:51 : Request's already been made
2015-02-06 20:48:52 : Donating Troops
2015-02-06 20:48:55 : Finished Donating
2015-02-06 20:48:56 : Collecting Resources
2015-02-06 20:49:01 : ~~~Waiting for full army~~~
2015-02-06 20:49:31 : Trying to locate Main Screen
2015-02-06 20:49:31 : Main Screen Located
2015-02-06 20:49:34 : Training Troops...
BS wasn't in background mode
Reply
#7
Don't run the exe file.
Run the au3 script without compiling. Run it as x86.

It will show more detail on the error.
Reply
#8
Try adding this line to Global Variables.au3

;Troop Settings
Global $txtNumGiants
Global $txtNumWallbreakers
Global $txtArchers
Global $txtGoblins
Global $txtBarbarians
Reply
#9
have the same problem even after adding the variables you told to add to the Global Variables, using B.A.G.G Wall strategy.
Reply
#10
lol.. those $txt was for the GUI... sorry.. please remove them....
Reply
 


Forum Jump:


Users browsing this thread: 1 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website