The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

v 5.4.1

Started by GkevinOD ยท Jan 8, 2015

103 replies1,599,154 viewsLocked
Jan 8, 2015#31

When i click hide:
[15:23:03] Barrack 1 is not available
[15:23:07] Barrack 2 is not available
[15:23:10] Barrack 3 is not available
[15:23:13] Barrack 4 is not available

So hide option doesnt work

Jan 8, 2015#32

@manutt hide option working awesome....locate your barracks manually again...

but dead base search option is not working well it attacks active bases having required gold and elixir

Jan 8, 2015#33

Hide doesn't work for me, but still i need to say i'm impressed, nice work guys!

Jan 8, 2015#34

I was out of laptop and when i turned back it was given me this:

[5:16:13 PM] ~~~~Welcome to COC Bot Pre-Alpha v5.4.1!~~~~
[5:16:13 PM] Executable running on X64 system
[5:16:13 PM] Bot is starting...
[5:16:16 PM] Training Troops...
[5:16:34 PM] Training Troops Complete
[5:16:35 PM] ~~~Waiting for full army~~~
[5:17:08 PM] Training Troops...
[5:17:23 PM] Training Troops Complete
[5:17:24 PM] Time Idle: 0 hours 0 minutes 49 seconds
[5:17:57 PM] Training Troops...
[5:18:13 PM] Training Troops Complete
[5:18:14 PM] Time Idle: 0 hours 1 minutes 38 seconds
[5:18:15 PM] Trying to get to main screen
[5:18:57 PM] Training Troops...
[5:19:11 PM] Training Troops Complete
[5:19:12 PM] Time Idle: 0 hours 2 minutes 37 seconds
[5:19:13 PM] Trying to get to main screen
[5:24:36 PM] Could not automatically load Clash Of Clans
[5:24:37 PM] Restarting BlueStacks
[5:24:52 PM] Trying to get to main screen
[5:30:14 PM] Could not automatically load Clash Of Clans
[5:30:15 PM] Restarting BlueStacks
[5:30:30 PM] Trying to get to main screen

LE: Also, i need to compile it to my system, win7 x86 because with autoit script when a dead base was found the bot stop worked.
LE2: Even with the script compiled same error, bot stop working when a base with the same criteria was found, but not a dead base which my settings are:

meet gold and elixir
dead bases
attack all sides equally
barbs plus archs
B arch algor.

LE3: It is because dead base is select it, not working this function.

Jan 8, 2015#35

@GkevinOD i try the latest alpha v5.4.1 its working nicely hide show was working good dead base but i have 1 notice issue that the system memory usage almost 80~95 % that why the pc was lagging...thanks ๐Ÿ™‚

Jan 8, 2015#36

Memory and CPU usage is much higher for this version. Makes the bot lag and causes errors for some reason.

Jan 8, 2015#37

@GkevinOD,
Impressed with the new _sleep function, greatly reduced CPU to also idle most time.. Think even kaz latest version still hot on cpu, running on around 35%.

However, not sure what's the problem with the hide function. I am on BS 0.9.6.4092 root windows 7 x64, nvidia graphic card and auto it latest version. Tried reinstall and upgrade graphic driver but still can't get hide to work.

Tried compiling using autoit beta, tried running in x32... Still can't work. Any requirement for _captureregion? Gdi32.dll already in system32.. Don't think any to do with it?

Jan 8, 2015#38

Can you guys describe what issues you have with hide function? (not hiding? not showing while running? hiding doesn't work? ...)

Jan 8, 2015#39

Hide/Show working (able to move windows out of screen and back)

When pressed start and followed by hide, error below.

2015-01-09 02:52:04 : ~~~~Welcome to COC Bot Pre-Alpha v5.4.1!~~~~
2015-01-09 02:52:04 : Executable running on X64 system
2015-01-09 02:52:04 : Bot is starting...
2015-01-09 02:52:05 : Trying to get to main screen

Thinking it takes times to capture screen, i waited for it to set log Starting bot and capture screen, then followed by hide. Error again below

2015-01-09 02:30:06 : ~~~~Welcome to COC Bot Pre-Alpha v5.4.1!~~~~
2015-01-09 02:30:07 : Executable running on X64 system
2015-01-09 02:30:07 : Bot is starting...
2015-01-09 02:30:08 : Trying to get to main screen
2015-01-09 02:30:22 : Training Troops...
2015-01-09 02:30:24 : Barrack 1 is not available
2015-01-09 02:30:28 : Barrack 2 is not available

I thinking version of bs/autoit or even hardware problem like graphics card. Seems like the capture region failed to take the coordinate.

Below are my Window info

>>>> Window <<<<
Title:	BlueStacks App Player
Class:	WindowsForms10.Window.8.app.0.33c0d9d
Position:	0, 0
Size:	866, 748
Style:	0x16CA0000
ExStyle:	0x00050108
Handle:	0x00000000001F03A0

>>>> Control <<<<
Class:	BlueStacksApp
Instance:	1
ClassnameNN:	BlueStacksApp1
Name:	
Advanced (Class):	[CLASS:BlueStacksApp; INSTANCE:1]
ID:	
Text:	_ctl.Window
Position:	0, 0
Size:	860, 720
ControlClick Coords:	716, 529
Style:	0x58000000
ExStyle:	0x00000000
Handle:	0x00000000003104D0

>>>> Mouse <<<<
Position:	719, 554
Cursor ID:	0
Color:	0x719338

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
_ctl.Window


>>>> Hidden Text <<<<
Jan 8, 2015#40

this release was causing extrem laggs even for me.
got 16gigs of ram and had 97% usage.
funny thing is that taskmanager didnt show the high usage at the process itself.
dead might have been caused by the deadbase func, trynig out without deadbase func now.

deadbase was skipping 2 much anyway. maybe implementing the screenshot of Kaz could be useful for debugging to see what bases got skipped and why.

also what i experienced what was causing the previous bots to hang up was bluestacks which sometimes shows a transparent message at the top left corner with stuff like "starting app", "analyzing data" or some stuff like that. this message is causing the bot to NOT recognizing main screen and hanging up!

This discussion is closed.