Enhanced bot using memory reads - Printable Version +- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club) +-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1) +--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97) +--- Thread: Enhanced bot using memory reads (/showthread.php?tid=348) |
RE: Enhanced bot using memory reads - Greyman - 01-18-2015 (01-17-2015, 10:22 PM)madalilng Wrote: 1000021 = xbow. 1000025 = Archer Queen RE: Enhanced bot using memory reads - Greyman - 01-18-2015 A bit of progress last night: - Clan Castle troop compositions - Collector resources (gold, elixir, DE) - Basic trap info This is a dump from a TH9 opponent in the war the clan leader started last night (great opportunity to look at TH9's for more than 2 minutes at a time!). As you can see, clan castle troops and traps are visible, despite being an enemy base. I have a good feeling about this war RE: Enhanced bot using memory reads - Greyman - 01-18-2015 (01-17-2015, 09:58 PM)Greyman Wrote:(01-17-2015, 09:01 PM)madalilng Wrote: here's my computation to calculate miners/pumps this should work. Hi Madalilng, So the "res_time" parameter isn't directly readable from memory for a collector, but has to be calculated from a couple of values elsewhere in the struct and then divided by a constant. There's two separate "last collected time" and "active time this session" variables that are inputs into the equation. Other than that, your formula was perfect. There's a couple of VMT methods that expose the details, including the locations of the two variables and the constant divider. Thanks again for the information, it was incredibly useful in narrowing down the correct routines to analyze. Grey. RE: Enhanced bot using memory reads - Greyman - 01-18-2015 Oops, I've broken storage capacities. Ah well, not terribly important for this particular application. RE: Enhanced bot using memory reads - madalilng - 01-18-2015 good to hear that bro... maybe i'm analyzing packets that server sends to client that's why they're not the same variables... btw can you see the loots in finding match? RE: Enhanced bot using memory reads - Greyman - 01-18-2015 (01-18-2015, 12:46 PM)madalilng Wrote: good to hear that bro... Do you mean in raids? Those are not working at the moment - I get a null reference exception in my code when I try to look at an enemy base that's a potential raid. The code works for war enemies though, so I'm assuming it's something simple that I've broken. Hopefully will be able to fix it this evening after the kids go to bed. RE: Enhanced bot using memory reads - madalilng - 01-18-2015 can you elaborate how to setup your method in reading memory? and how about static variables ? RE: Enhanced bot using memory reads - Greyman - 01-18-2015 (01-18-2015, 01:09 PM)madalilng Wrote: can you elaborate how to setup your method in reading memory? and how about static variables ? For development, I use Cheat Engine server for Android running on the Andy emulator. CEServer isn't available from the creator as an Android x86 version, so you can find one that I've compiled here: http://greyman.org/ceserver.zip Once you're set up, let me know and I'll help you out with some additional details RE: Enhanced bot using memory reads - madalilng - 01-18-2015 it will work with bluestacks? RE: Enhanced bot using memory reads - Greyman - 01-18-2015 (01-18-2015, 01:26 PM)madalilng Wrote: it will work with bluestacks? It will, so long as your BlueStacks instance is rooted. I just prefer Andy because I have more control over some of the lower-level OS stuff I use for other projects. |