Thread Rating:
  • 4 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
v5.4.0 (development)
#1
I modified v5.4.0's attack function to drop troop more naturally (resemble spreading troops around the borders). I'm not sure if efficiency will be the same as current one. If you guys need it you can test and help improve it Wink

================
UPDATE 08/01/2015
================
I'll update my development on 5.0.4 here in a single thread so it's easier for developers and testers to keep track of the changes in code.

I decided to make changes on 5.0.4 as there's quite major change in co-ords in this version due to different approach in reading values (GkevinOD's custom screencapture to enable backgrounding). It would be hard to write in 5.3 and have to redo in 5.4.0

Since 5.4.0 is not ready for dead base search yet I left it out until later. I've seen some interesting developments in dead base search in the other thread and very excited to have it in later release. For now I must make sure other function can run stably first, especially fixing the hanging GUI (otherwise it would defeat the purpose of the bot)

-------------------
~~Changelogs~~:
-------------------
- New attack resembling human's deployment with randomized co-ords and delay (human-like vs efficiency, if you prefer the current one just replace func AtkAlgorithmBarch with old one)
- Simplify getResource() to just skipping village if gold cannot be read (reduce time & less prone to errors)
- Rewrite _Sleep() and checkmainscreen() to handle both out of sync, inactivity and 6 hour break (need further testing)
- Include King & Queen attack (works fine with backgrounding, activate power 3 seconds after deployed, can change to your liking in code)
- Rewrite hide button to show/hide any time during bot's running, monitor BS's positions before hide, if bot's running and BS is shown Minimize and Close button of BS will be deactivated to prevent errors, if BS is minimized (accidentally) by clicking on taskbar's icon it will be immediately restored
- To give you guys the idea how interrupting message is handled so you know what to report for errors, when inactivity or out of sync message appear, it will check if it's 6 hour break (calling _sleep and checkmainscreen recursively), if not it will click on reload and wait 60 seconds for main screen. If main screen is not detected it will click home, wait for 60 seconds and launch CoC (minimum 60 seconds for CoC to reload instead of going back to previous screen). I give it abundant waiting time to be safe as it is a rare event. I haven't isolated the root of hanging GUI but at least the improved code will likely not trigger it.

I spent most free time writing code so not much time for testing, but at least let it run for a few hours to make sure. If you got any errors or suggestions, especially feedback on the hanging GUI issue feel free to report it here if it's a major/new bugs, otherwise please post in Bugs Reports so we can keep this thread not dilluted Wink


Attached Files
.rar   COC Bot v.5.4.0 (dev).rar (Size: 768.67 KB / Downloads: 210)
.au3   COC Bot v5.4.0 (dev).au3 (Size: 107.52 KB / Downloads: 58)
Reply
 


Messages In This Thread
v5.4.0 (development) - by Antidote - 01-06-2015, 11:11 AM
RE: v5.4.0 (natural attack) - by blindpick - 01-06-2015, 11:20 AM
RE: v5.4.0 (natural attack) - by missileplatypus - 01-06-2015, 11:22 AM
RE: v5.4.0 (natural attack) - by Kaz - 01-06-2015, 11:23 AM
RE: v5.4.0 (natural attack) - by Antidote - 01-06-2015, 11:27 AM
RE: v5.4.0 (natural attack) - by blindpick - 01-06-2015, 11:44 AM
RE: v5.4.0 (natural attack) - by Antidote - 01-06-2015, 11:50 AM
RE: v5.4.0 (natural attack) - by blindpick - 01-06-2015, 11:51 AM
RE: v5.4.0 (natural attack) - by Revial - 01-06-2015, 01:34 PM
RE: v5.4.0 (natural attack) - by k3iroll - 01-06-2015, 09:03 PM
RE: v5.4.0 (natural attack) - by Antidote - 01-07-2015, 03:23 AM
RE: v5.4.0 (natural attack) - by cryzies - 01-07-2015, 04:00 AM
RE: v5.4.0 (natural attack) - by Revial - 01-08-2015, 12:20 AM
RE: v5.4.0 (development) - by Antidote - 01-08-2015, 05:25 AM
RE: v5.4.0 (development) - by Cocsi - 01-08-2015, 05:45 AM
RE: v5.4.0 (development) - by pinay26 - 01-08-2015, 05:52 AM
RE: v5.4.0 (development) - by Antidote - 01-08-2015, 06:13 AM
RE: v5.4.0 (development) - by pinay26 - 01-08-2015, 07:41 AM
RE: v5.4.0 (development) - by youbrey - 01-08-2015, 08:22 AM
RE: v5.4.0 (development) - by shock - 01-08-2015, 12:39 PM
RE: v5.4.0 (development) - by GkevinOD - 01-08-2015, 01:29 PM
RE: v5.4.0 (development) - by indy - 01-20-2015, 10:10 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)

About The Bytecode Club

We're a community forum 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