|
Post by zenkrye on Nov 9, 2017 22:18:30 GMT
This is my first draft and proof of concept for a Final Fantasy XV - A New Empire resource farming script. Note: All images are captured in 1280x720 on Bluestacks. Other resolutions have not been test. This script uses numberOCRNoFindException to determine the number of marches currently active. Update 12/02/2017: Add Troop Select, Guild Help, Quests, Guild Gifts. Many stability updates Update 11/10/2017: Fixed issues with OCR not recognizing March3. Add ability to farm loyalty by helping guild mates. Update 11/9/2017: The scripts now reads the coordinates for empires you want to farm from the coords.txt file. Need to work on:1) Some issues with quests. 2) Guild Gifts has not been tested. 3) Improve coordinates selection and typing text. 4) Include T3 Troops drive.google.com/file/d/1w310FdEyDUwkHzqrydPtLpA9EAZg11KF/view?usp=sharing
|
|
|
Post by AnkuLua on Nov 10, 2017 1:00:54 GMT
Congratulation for winning two Pro2 licenses. Please PM us the account to authorize the licenses. It could be authorized and recommended to the same account. Please register and active the account with Pro2 first.
It's better to let user input from dialog than editing files.
|
|
|
Post by zenkrye on Nov 10, 2017 1:02:08 GMT
Thank you for the heads up on the user inputs. I am working on putting that into the program. This is a learning experience for me.
|
|
|
Post by lerkista on Nov 28, 2017 5:16:20 GMT
Some problem i got is when you attack the same farm, for example if i send 3 marches (one with hero who has a march speed bonus) there's a time that a march is on top of farm when the script are trying to click it, and instead it selects the march and the script fails, you just need to attack a different farm per march to let the script works fine
I haven't find a workaround for my problem, there's not a way to send an attack without having to click in the empire first
|
|
|
Post by zenkrye on Nov 30, 2017 16:22:48 GMT
Thank you for the update on the failed march. I have been testing them in a loop so I did not encounter that. I have found a couple other issues that I resolved and will put out an update soon.
Other issues I found that should be resolved in my next release: it tries to send a march when a new event starts since the March icons are covered. Empire has moved and get occupy screen instead of attack. Empire has shielded and do not get an attack pop up.
|
|
|
Post by rhazel on Dec 2, 2017 2:26:33 GMT
Hello zenkrye, thank you very much for your hard work. I was able to experience successful results with your script. But I also tried some possibilities to improve the stability and the speed of march-sending. waitClick("Search.png") wait("SearchX.png") type(Location(265, 368),tbl[z][1]) --type x coordinate wait("SearchY.png") type(Location(483, 372),tbl[z][2]) --type y coordinate waitClick("SearchGoto.png") waitVanish("SearchGoto.png") click(Location(420, 650)) --open attack window waitClick("Attack.png", 60) waitVanish("Attack.png", 60) --waitClick("QueueMax.png") click(Location(525, 940)) --max siege count click(Location(525, 940)) --max siege count (necessary if banner appears) click(Location(525, 940)) --max siege count (necessary if banner appears) click(Location(500, 1020)) --send march --waitClick("March.png") waitVanish("March.png", 60) waitClick("EmpireCenter.png", 60) In your sendmarch() function I made some personal tweaks. After searching and finding an empire by entering the coordinates you were clicking on the center of the found empire, but I used different coordinates to click on the edge of the empire tile. I had some problems when marches were already on the tile, so I was clicking on the currently marching troops. Therefore I think clicking on the edge of the empire tile is the best option to prevent problems here. To enter the march-sending-menu you click on the empire and click on attack. Unfortunately there are some problems with this method. When clicking on an empire, the game sends a check to the server to check the current power level, guild, and other information. Therefore it can require some seconds until the attack option is available. I would recommend to double-click an empire here, so that you can skip the server check and go directly to the marching window. This saves time and decreases the dependency of server time. Unfortunately I wasn't able to get the doubleClick(Location(x,y)) function to work somehow. The script didn't seem to find the function at all. Two lines of click() didn't work, too. So maybe we need to build a double click function ourselves to make it work. Since mostly sieges are used for rss farming, I wanted to prevent the QueueMax button, since it sends the wrong troops for rss farming. Therefore I tried to select the sieges by drag'n'dropping the slider of sieges, but I found an easier way to max the slider. It's enough to click just between the end of the slider and between the number box. When clicking on the right spot, the bar will automatically fill up with max march size. I had to use the same click code 3 times, because sometimes when there are some events, like arriving marches or marches coming back, sometimes there were some popups in the screen which prevented the input. Therefore I use 3 clicks to make the popup disappear and still take my input. Since the "March" button isn't dependent on the server time it was enough to click on that button via coordinates, which skips the image-search-time of waitClick and reduces the sending time by around 1 sec. I added a secondsTimer of 60s to the important waitClick functions, so that the scripts waits enough until the server responds. Sometimes I had the case that I had to wait around 5secs until a button appeared, but the waitClick function throws an exception during that time. Therefore I guess the 60secs are enough buffer time. Aside from that I like the idea of entering the farms via the coords.txt file, because I have some farms in my area, whose coords I entered into the file and the script kept going through all the coords one by one. Maybe a userDialog like the snapAndRecord could be useful where you choose "start script", "show coordinates", "edit coordinates". Afterwards when choosing "edit coordinates" then some kind of window opens where you can add more x,y values to be automatically saved into the coords file without having to manually open and edit the file itself. With these tweaks I was able to make the script run pretty well. I'm interested in improving the script and open for new ideas. Regards Rhazel
|
|
|
Post by zenkrye on Dec 2, 2017 23:01:50 GMT
I made many updates. Please try the new upload.
|
|
|
Post by lerkista on Dec 5, 2017 22:31:59 GMT
Hi
Why T3 is not supported? you haven't reached it yet? :/ (i have T3)
I think i'm gonna wait to the next update
Thanks
|
|