I want to write a bot to one game. I thought of everything, but I ran into one problem - how to find out the coordinates of my character. I suppose these are variables. How can one java application read the values of variables of another java application?
- no way If this is done legally, that is, the API is appropriate, if not - then break the game :) - pavel
- Damn, it probably can not be done. How do games break in general? - Maxgmer
- Download the APK file, then unzip it. If the developer did not use the "encryption" of the source code, then after decompiling you can get a quite readable listing of the game's java code. - plesser
- So I will get the default values of the variables. I need to have exactly the values that the running application has. - Maxgmer
|
1 answer
Try running the application in the emulator (for example, Bluestack www.bluestacks.com/ru/), launch any clicker, perform the necessary actions, loop and so on. If you want to write for android yourself, you will encounter that one application did not give to perform actions to another application.
- This is a problem. A character cannot pass through moving monsters, that is, he may encounter one and skip a couple of steps. Accordingly, there is no pattern rolls. You need to somehow track whether the coordinates of the character have changed. - Maxgmer
- Alternatively: Track and analyze pixel color. Take a screenshot and perform a full analysis. For example, a bot for Yves-on-line is tracking enemies like that, I got pixel color using Robot in Java or other solutions, it was slow and crooked, but I coped with my task. - B_CCCPcekca_HET
- Look in the direction of Sikuli Script sikuli.org/gaming.html ? very good tool, and specifically look there video examples. Then I think, you will understand ) - B_CCCPcekca_HET
|