Poll: How interesting sound those changes ?
You do not have permission to vote in this poll.
Not interesting at all, go away!

1 3.45%
Yep, why not, you'll probably find something better to do at a later time

5 17.24%
I want it... NOW!

23 79.31%
Total 29 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FastFrench's changes
#1
Hello,

as I got some time today to play with the code, I've done some changes on the source script (still have to test them):
 - I've splitted the big script file  into several 3 smaller files:
     * the main file, with all the stuff except what is explicitely in one of the next 2 Wink
     * one with pixels configuration (that's where you'll have to go when images are changing when a new version of is launched). I've removed most hardcoded coordinates and colors (but not all, some coordinates are still not clear for me, so can't name them) from the main script to isolate them in a specific file. This way the code is much more maintenable.
     * OCR-related stuff. I also isolated this, as I guess it may be a temporary solution. For instance we will have to use a real OCR to make decent clan troops donations.
 - I've greatly reduced code redundancy, so now the same is done with significatively less lines (it should easier to read and maintain)
 - I now support only one "algorithm" for attacks with the following changes :
     * it uses all the troops available (restricted to barbarian, archers, goblins, wallbreakers, giants, king and queen)
     * you can ask it not to use the clan castle
     * instead of dropping troops in 5 discret points for each edge, it now makes a uniform distribution amongst the edge (so less vulnerable to area attacks).
 - Also added the possibility to attaque from a single edge (quite usefull when you uses giants and wallbreakers).


The fact some parts of the code are much smaller make it very EZ now to experiment new attack strategies (order, number and composition of waves, delays...).

It will probably take a couple of days to finalize and do some testing on this.

What do you think about those changes ?
And if someone is interested, where should I put the modified script ? (into a branch in GitHub, on the repository you use here, or somewhere else ?)
Reply
 


Messages In This Thread
FastFrench's changes - by FastFrench - 01-27-2015, 03:26 AM
RE: FastFrench's changes - by Konloch - 01-27-2015, 08:47 AM
RE: FastFrench's changes - by Envyus - 01-27-2015, 08:49 AM
RE: FastFrench's changes - by FastFrench - 01-27-2015, 06:52 PM
RE: FastFrench's changes - by Envyus - 01-28-2015, 01:43 AM
RE: FastFrench's changes - by FastFrench - 01-28-2015, 02:35 AM
RE: FastFrench's changes - by FastFrench - 01-29-2015, 02:18 AM
RE: FastFrench's changes - by rollbacks - 01-29-2015, 02:51 AM
RE: FastFrench's changes - by FastFrench - 01-29-2015, 03:59 AM
RE: FastFrench's changes - by FastFrench - 01-29-2015, 06:43 PM
RE: FastFrench's changes - by SongHyeKyo - 01-29-2015, 06:55 PM
RE: FastFrench's changes - by brunongmacho - 01-30-2015, 12:45 AM
RE: FastFrench's changes - by Black Hat - 01-30-2015, 12:54 AM
RE: FastFrench's changes - by FastFrench - 01-31-2015, 04:00 AM
RE: FastFrench's changes - by FastFrench - 01-31-2015, 04:05 AM
RE: FastFrench's changes - by DrImmo - 02-01-2015, 01:55 AM
RE: FastFrench's changes - by PusheR - 02-01-2015, 07:23 AM
RE: FastFrench's changes - by SongHyeKyo - 02-01-2015, 06:17 PM
RE: FastFrench's changes - by Zain - 02-01-2015, 07:05 PM
RE: FastFrench's changes - by SongHyeKyo - 02-01-2015, 07:11 PM
RE: FastFrench's changes - by Zain - 02-01-2015, 09:18 PM
RE: FastFrench's changes - by SongHyeKyo - 02-02-2015, 06:46 AM
RE: FastFrench's changes - by mahimulislam - 02-02-2015, 01:35 AM
RE: FastFrench's changes - by k3iroll - 02-02-2015, 07:02 PM
RE: FastFrench's changes - by dinobot - 02-02-2015, 07:51 PM
RE: FastFrench's changes - by sheva370 - 02-03-2015, 03:01 PM
RE: FastFrench's changes - by dinobot - 02-03-2015, 07:32 PM
RE: FastFrench's changes - by scaarx - 02-04-2015, 02:42 PM
RE: FastFrench's changes - by FastFrench - 02-06-2015, 01:21 AM
RE: FastFrench's changes - by SongHyeKyo - 02-06-2015, 08:41 AM

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