nuke
Nightraider
Posts: 91
inherit
4486
0
8
nuke
91
Aug 29, 2017 21:30:09 GMT
August 2017
nuke
|
Post by nuke on Mar 9, 2018 17:29:31 GMT
Warning to all - be careful of your glory settings. When I was running my tool to search for 15k+ over a year ago, I woke up once to 100million gold missing. Don't be too greedy, consider setting a specific raiding deck (if not already), maybe consider adding a timeout feature that after so many failed attempts, it waits so many minutes before continuing. Very simple to add if desired. 100 million? If we assume one cycle of refreshing, checking glory then refreshing again takes on average around 3 seconds (as it does with this tool), then: 100000000/1000(cost per refresh) = 100000 refreshes, multiplied by 3 per refresh = 300,000 seconds 300000/60*60*24 = 3.47222 days You left your script running for 3.5 days without finding a 15k+ plunder?
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 9, 2018 17:34:23 GMT
Warning to all - be careful of your glory settings. When I was running my tool to search for 15k+ over a year ago, I woke up once to 100million gold missing. Don't be too greedy, consider setting a specific raiding deck (if not already), maybe consider adding a timeout feature that after so many failed attempts, it waits so many minutes before continuing. Very simple to add if desired. Nice remark indeed. I'm working on a version with a new class implementing emulator behaviours. For the moment, you choose the emulator in a dropdown before starting, and then the correct calculations are performed accordingly. I'm about to look at how I can store this choice in a settings file. Next I'm gonna make it work for my main on a a windows phone, thanks to "Project My Screen App". This app will be considered as another emulator to chose at the start. Afterwards, I'll give the opportunity to set a max gold cost.
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 9, 2018 19:45:30 GMT
Here it is Ladies and Gentlemen Raiding Bot V1.1Just download the file and copy its content into Sikulix (v1.1.2 now )Freshly implemented : - Select your emulator at the start - ... it will be stored once for all - ... and used next time you launch the script Emulators : Nox, BluestacksPost Note : PLEASE READ CAREFULLY THE INSTALLATION GUIDE.
|
|
inherit
2227
0
Dec 25, 2018 18:50:07 GMT
29
Doomkin✪NFS
97
Dec 23, 2015 14:51:28 GMT
December 2015
doomkin
|
Post by Doomkin✪NFS on Mar 9, 2018 20:06:10 GMT
Warning to all - be careful of your glory settings. When I was running my tool to search for 15k+ over a year ago, I woke up once to 100million gold missing. Don't be too greedy, consider setting a specific raiding deck (if not already), maybe consider adding a timeout feature that after so many failed attempts, it waits so many minutes before continuing. Very simple to add if desired. 100 million? If we assume one cycle of refreshing, checking glory then refreshing again takes on average around 3 seconds (as it does with this tool), then: 100000000/1000(cost per refresh) = 100000 refreshes, multiplied by 3 per refresh = 300,000 seconds 300000/60*60*24 = 3.47222 days You left your script running for 3.5 days without finding a 15k+ plunder? Good point. It was over a year ago I was doing this and I made a fully functional bot.. so it could have been multiple days but doubtful more than 2. My script is 1 refresh every ~1 second though, if not faster. It's only reading 1 value then click, actual screen refreshes fairly fast. I digress, to your point it could have been multiple segments of refreshes, but the point remains valid of excess spending.
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 9, 2018 23:42:02 GMT
I'm probably the only one here playing with a windows phone, but... I made it work with "Project my screen app" (with windows phone plugged on the PC). ... By the way, I'm gonna simplify the code, because I found a way to resize the emulator window. At first, I used ratios, thinking it will work no matter the window size. But that's not true. The OCR needs the window to be small to work right. So I'm gonna be able to use simple coordinates to define the capture/info/click regions ... since the window size will be constant.
Far simpler to read, far simpler to maintain.
|
|
inherit
2227
0
Dec 25, 2018 18:50:07 GMT
29
Doomkin✪NFS
97
Dec 23, 2015 14:51:28 GMT
December 2015
doomkin
|
Post by Doomkin✪NFS on Mar 10, 2018 14:43:24 GMT
I'm probably the only one here playing with a windows phone, but... I made it work with "Project my screen app" (with windows phone plugged on the PC). ... By the way, I'm gonna simplify the code, because I found a way to resize the emulator window. At first, I used ratios, thinking it will work no matter the window size. But that's not true. The OCR needs the window to be small to work right. So I'm gonna be able to use simple coordinates to define the capture/info/click regions ... since the window size will be constant. Far simpler to read, far simpler to maintain. Not sure what OCR engine you're using but tesseract didn't have problems with me running my emulator full screen 1920x1080
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 10, 2018 17:01:08 GMT
I'm probably the only one here playing with a windows phone, but... I made it work with "Project my screen app" (with windows phone plugged on the PC). ... By the way, I'm gonna simplify the code, because I found a way to resize the emulator window. At first, I used ratios, thinking it will work no matter the window size. But that's not true. The OCR needs the window to be small to work right. So I'm gonna be able to use simple coordinates to define the capture/info/click regions ... since the window size will be constant. Far simpler to read, far simpler to maintain. Not sure what OCR engine you're using but tesseract didn't have problems with me running my emulator full screen 1920x1080 it's tesseract. during my tests, it was not working at all full screen.
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 11, 2018 19:18:10 GMT
Hello everyone, as promised here is a new version of the raiding tool. I made a choice to enable people to tweak the script very easily, by : - positioning the emulator window to top left of the screen - resizing the emulator window to a size that I tested and validate myself - using simple coordinates that can be changed easily even by people not having development skills Each emulator uses a specific behaviour class that deals with emulator specifics. You use BlueStacks ? Edit BlueStacksBehaviour class. You use Nox ? Edit NoxBehaviour class. My resolution is 1920*1080. If you use higher resolution, you may have to tweak the coordinates and sizes. The script : Raiding Bot v1.2
Notes: 1) PLEASE READ THE PRE-REQUISITES CAREFULLY (one of the previous posts in this thread) 2) THE EMULATOR MUST NOT BE IN FULL SCREEN MODE (WINDOW WON'T BE RESIZED) 3) FOR WP USERS, PROJECT MY SCREEN APP MUST BE IN EXPANDED MODE Tricks (if you have to edit the behaviour class of your emulator): - the three regions are highlighted when the script starts. useful to check whether they are well set... or not. - Alt+print screen on your emulator window. paste in mspaint. you'll have your emulator window size at the bottom of mspaint. In mspaint, you can play with the rectangle selector to know the positions of the three regions, and their sizes. - Info Region : A rectangle surrounding player name, power and glory - Glory Region : A rectangle surrounding player glory (from left of "Glory" to right of amount, keep some space on both sides) - Button Region : A rectangle surrounding next opponent Button To make it work, the regions should be set like in the picture below ------------------------------------------------------------------------------------------------------------ Now... What about a Trials bot ?
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 12, 2018 18:15:52 GMT
Ok guys, today I tested my script on another computer, working with a different resolution. And of course - and as specified - all the regions were wrong.
So I had an idea.
Sorry about this. Sometimes the best ideas don't come first.
I wrote it today on this very computer, will validate it at home and if everything is ok, will post it here.
This one should work for everyone, provided you choose a window size for the emulator that suits the OCR. But even if you don't, it will be easy to start again.
Raiding Bot V2 should be the right one. I'm sure you'll like it.
SkAl
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 12, 2018 21:28:36 GMT
Here it is. This one does not care about the different resolutions. It is different. It is something else. I love it. And it's for you guys. Remember before starting : - Start in the Raids Opponent window - Your emulator window should not be too big... or too small. - Emulator size and position, and all three region rectangles will be saved and reused - if it does not work, you can start again, until you find the right size - It just needs a few seconds to start... or restart Raiding Tool v2.0
|
|
inherit
4846
0
Mar 15, 2018 21:05:04 GMT
0
bandor
1
Mar 12, 2018 22:50:17 GMT
March 2018
bandor
|
Post by bandor on Mar 12, 2018 23:00:33 GMT
First of all Skal75, I just want to say thank you. I tried working with the first script with limited success, as it was skipping some rather large glory totals (just moving on to the next opponent) along with some sizing issues. Now the script is geared better for different emulators (I use Nox) as well as being much more user friendly. I have used it, it works, basically 25k glory or so per day with little or no effort. It's a pretty sweet deal, if you ask me. Also, I have been in conversation with Skal 75 for a few days now, and he's been great, so if you wish to suggest improvements or bug fixes, just send him a line, on Line ;-)
|
|
#ff3008
1791
0
1
749
Sinister22✪NFS
1,896
October 2015
sinister22
Lucy
|
Post by Sinister22✪NFS on Mar 13, 2018 11:26:58 GMT
shouldn't this be illegal...
I should ban your @sses for this you know...
:>
|
|
#8f0a7f
ApexNFS Guild
2488
0
1
795
NFS✪Grandfather
Madness, as you know, is a lot like gravity; all it takes is a little push.
1,742
Feb 15, 2016 19:07:07 GMT
February 2016
grandfather
NFS
gramps
|
Post by NFS✪Grandfather on Mar 13, 2018 12:24:28 GMT
shouldn't this be illegal... I should ban your @sses for this you know... :> You come here after decade and talking nonsense...or drugs become legal in Singapore? All good here, actually i support any kind of action like this which makes gaming easier or "illegal" as you say. Just ignore him skal75 you did great work with this IT thing
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 13, 2018 12:40:11 GMT
shouldn't this be illegal... I should ban your @sses for this you know... :> Well I cannot see why it would be ? Pressing next opponent for an hour - LIKE A ROBOT - to do 5 raids is really a pain in the a**. We'll still pay 1000 gold per opponent skip. And we still can lose the fight. So no, I don't understand. It's not like the guys who made a bot to get 1 Zillion gems thanks to a known bug in 7 day gala... That is cheating. In fact, I just created a BOT to do a ROBOT job that us human beings had to do until now
|
|
#0d6ad6
4234
0
116
dendeze
460
May 2017
dendeze
100
BK
|
Post by dendeze on Mar 13, 2018 12:50:14 GMT
*triggered* What is this know bug in 7 day gala you are talking about =)
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 13, 2018 13:17:44 GMT
Guys this feature is so REPETITIVE AND BORING I swear I fell asleep a number of times, just doing it. Not to mention the times when my thumb, not equipped with an independent brain, just slipped and skipped a huge amount of glory.
|
|
#8f0a7f
ApexNFS Guild
2488
0
1
795
NFS✪Grandfather
Madness, as you know, is a lot like gravity; all it takes is a little push.
1,742
Feb 15, 2016 19:07:07 GMT
February 2016
grandfather
NFS
gramps
|
Post by NFS✪Grandfather on Mar 13, 2018 13:17:55 GMT
shouldn't this be illegal... I should ban your @sses for this you know... :> Well I cannot see why it would be ? Pressing next opponent for an hour - LIKE A ROBOT - to do 5 raids is really a pain in the a**. We'll still pay 1000 gold per opponent skip. And we still can lose the fight. So no, I don't understand. It's not like the guys who made a bot to get 1 Zillion gems thanks to a known bug in 7 day gala... That is cheating. In fact, I just created a BOT to do a ROBOT job that us human beings had to do until now He was just joking, he just have weird type of humor Relax amigo its all good
|
|
#ff3008
1791
0
1
749
Sinister22✪NFS
1,896
October 2015
sinister22
Lucy
|
Post by Sinister22✪NFS on Mar 13, 2018 13:22:48 GMT
Well I cannot see why it would be ? Pressing next opponent for an hour - LIKE A ROBOT - to do 5 raids is really a pain in the a**. We'll still pay 1000 gold per opponent skip. And we still can lose the fight. So no, I don't understand. It's not like the guys who made a bot to get 1 Zillion gems thanks to a known bug in 7 day gala... That is cheating. In fact, I just created a BOT to do a ROBOT job that us human beings had to do until now He was just joking, he just have weird type of humor Relax amigo its all good hahahaha I was, plus Im retired. Good to see grandy here.
|
|
#8f0a7f
ApexNFS Guild
2488
0
1
795
NFS✪Grandfather
Madness, as you know, is a lot like gravity; all it takes is a little push.
1,742
Feb 15, 2016 19:07:07 GMT
February 2016
grandfather
NFS
gramps
|
Post by NFS✪Grandfather on Mar 13, 2018 13:32:29 GMT
He was just joking, he just have weird type of humor Relax amigo its all good hahahaha I was, plus Im retired. Good to see grandy here. Good to see you still hanging around fatass
|
|
inherit
4517
0
Sept 26, 2018 6:23:38 GMT
15
zamock
106
Sept 7, 2017 19:42:08 GMT
September 2017
zamock
|
Post by zamock on Mar 13, 2018 15:25:44 GMT
Guys this feature is so REPETITIVE AND BORING I swear I fell asleep a number of times, just doing it. Not to mention the times when my thumb, not equipped with an independent brain, just slipped and skipped a huge amount of glory. Story of my life! Lol. I have wanted to make an autoit script with tesseract but was just too lazy to do it. Thanks for sharing.
|
|
asder
Stormkalar
Posts: 9
inherit
3731
0
0
asder
9
Nov 29, 2016 19:10:27 GMT
November 2016
asder
|
Post by asder on Mar 13, 2018 15:55:46 GMT
Guys this feature is so REPETITIVE AND BORING I swear I fell asleep a number of times, just doing it. Not to mention the times when my thumb, not equipped with an independent brain, just slipped and skipped a huge amount of glory. Thank you for this amazing script skal75. Praise your legendary humility. Just an added feature, would it be possible to see how much gold was spent in trying to find the opponent? Take (starting gold - ending gold)/1000 = "Your lucky opponent arrived after 430K gold was spent for bribes".
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 13, 2018 17:19:03 GMT
So I'm refactoring the whole thing. v2.1 should look like like this
Emulator
| => Setup emulator | - Select the emulator | - Let the user resize the window as he likes | - Let the user position the window where he likes | - Store in preferences |
Raids
|--- Regions | => Define the 3 raids regions | - Select the 3 raids regions (raid info, glory, change opponent button) | - (*new) glory region will be validated by reading glory amount through OCR | - Store in preferences | |--- Settings | => Define the raids settings | - Define minimum amount of glory | - (*new) define max amount of gold per raid | - Store in preferences | |--- Hunt | => Go raiding | - Click on change opponent button repeatedly until : | a) (*new) defined max amount of gold per raid was reached | b) an opponent with at least the defined minimum amount of glory was found | - (*new) display a nice message if glory amount cannot be read inviting user | to redefine the raids regions or the emulator window | - (*new) find a way to display how much gold was spend |
(Trials)
| => (future) |
(Friends)
| => (future) |
Praise
| => the most important feature |
Exit
|
|
nuke
Nightraider
Posts: 91
inherit
4486
0
8
nuke
91
Aug 29, 2017 21:30:09 GMT
August 2017
nuke
|
Post by nuke on Mar 14, 2018 8:38:21 GMT
How to set up regions in v2: After installing SikuliX and running the script (with your emulator window visible on screen), select the emulator you use. Then select Praise first. This is very important. Just kidding. But it is important to switch to the Raids tab and find your first opponent, so that the appropriate regions are ready to be highlighted. Select Hunt first, then resize and position your emulator window to the size and position you would like it to be in future when you run the script. Click ok. Next, drag your mouse to define a rectangle over the region containing the Name, Power and Glory Points of your opponent as shown here: This is the Info region. Click Yes if your rectangle approximates this one. Next, drag your mouse to define a rectangle over the region showing your opponent's glory points. This is the most important region to capture accurately. Don't be shy, be overly generous in width just in case you find someone with 1,000,000 glory points one day . Draw from the right edge inside the border to about midway between the Glory Points text and the Power text, shown here: Click Yes. Finally, drag your mouse to define a rectangle around the Change Opponent button. This rectangle doesn't have to be accurate at all, as long as the middle of the rectangle is on the button, because the mouse will move to the exact middle of this rectangle. Shown here: Click Yes. That's it! Now sit back, watch TV and let the robot do the boring, repetitive work. Points to note: 1) The emulator has to be on screen with the regions visible for the script to work. If you can't see the Glory Points, neither can it. If you can't see the button, it can't either. 2) If your script refuses to run, or occasionally skips over plunders that are over the min glory you defined, then most likely the emulator window is too small, and Optical Character Recognition is not working properly. Select Reset when you run the script, then make your window slightly larger and try again. 3) If you are having trouble finding the right size for your window, download and run script v1.1 (they use the same OCR technology) and use it to find your sweet spot without having to constantly redefine the regions. Once v1.1 is running flawlessly, keep the window at that size then set up v2 again. Happy hunting!
|
|
inherit
2725
0
259
sblip
1,049
Apr 12, 2016 19:54:23 GMT
April 2016
sblip
102
sblip
|
Post by sblip on Mar 14, 2018 9:12:48 GMT
I am not using this, but if I were, and I were using another computer / watching netflix / playing boggle on my phone while I was waiting for it to find something, aaand I wanted to be audibly alerted when it did, I'd add this at the top:
import java.awt.Toolkit
.. and add:
java.awt.Toolkit.getDefaultToolkit().beep();
between these two:
glory = rg.findOpponent(MIN_GLORY); popup("Hey! I found a guy with "+ str(glory) + " glory!");
And then praise Skal for lessening the amount of carpel tunnel that I'm going to inevitably have in the future.
Cheers
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 14, 2018 17:47:25 GMT
2.1 status ................................................ Popup based menu hierarchy ................ DONE Edit/Validate/Store Min Amount Of Glory ... DONE Edit/Validate/Store Max Amount Of Gold .... DONE Subtle popup titles and messages .......... DONE Read and appreciate Praise Feature code ... DONE Beep when an opponent is found ............ DONE Appreciate the beauty of my own code ...... DONE
Validate glory region using OCR ........... TBD Check Max Amount Of Gold .................. TBD Display amount of gold spent .............. TBD
|
|
asder
Stormkalar
Posts: 9
inherit
3731
0
0
asder
9
Nov 29, 2016 19:10:27 GMT
November 2016
asder
|
Post by asder on Mar 15, 2018 3:12:42 GMT
just a thought, me being human I have done it once. When an opponent is found, possible to change it to praise tab rather than hunt tab. In case someone presses ok again and it starts the hunt process again.
Another thought I had, I am fiddling around with, after an opponent is found, the mouse goes over to battle button, again for those of us who click first and look later.
|
|
nuke
Nightraider
Posts: 91
inherit
4486
0
8
nuke
91
Aug 29, 2017 21:30:09 GMT
August 2017
nuke
|
Post by nuke on Mar 15, 2018 12:23:26 GMT
just a thought, me being human I have done it once. When an opponent is found, possible to change it to praise tab rather than hunt tab. In case someone presses ok again and it starts the hunt process again. Another thought I had, I am fiddling around with, after an opponent is found, the mouse goes over to battle button, again for those of us who click first and look later. For the first point, even if you press hunt again when you haven't attacked the opponent that it found, there's no problem, because it will check their Glory Points, find (of course) that they are still above your minimum, notify you and stop again. As for the second one, I guess that's not a bad idea. Never happened to me yet but I can see how I might be distracted and just click without thinking. As long as it doesn't actually click the button! Some opponents it finds are unbeatable for my decks.
|
|
inherit
4276
0
84
skal75
WH lvl 5 runes status : not ready
274
May 21, 2017 12:45:54 GMT
May 2017
skal75
102
Revelations 2
skal75
|
Post by skal75 on Mar 15, 2018 17:56:53 GMT
Hello guys, here is what I hope will be the last version of the Raiding Tool Raiding Tool V2.1- Min Glory To Raid For (now editable, stored in prefs) - Max Gold Per Raid Limit ( editable, stored in prefs) - Check glory with OCR when defining Glory Region - Beep when max gold limit reached or opponent found Enjoy !
|
|
inherit
4618
0
May 25, 2018 13:49:24 GMT
1
fenryx
14
Oct 27, 2017 13:05:45 GMT
October 2017
fenryx
|
Post by fenryx on Mar 15, 2018 20:41:05 GMT
Hello Skal75, first thanks for this! For me it almost works, sometimes it seems to click too fast (twice every second) on Next opponnent. It's so fast that I got the pop up but it already moved to the next opponent and the high glory amount is the one of the prevoius opponent.
Is there a possibility to add a delay or a tempo?
Thanks in advance
|
|
#0d6ad6
4234
0
116
dendeze
460
May 2017
dendeze
100
BK
|
Post by dendeze on Mar 16, 2018 8:51:26 GMT
Hey Skal75, Nice work, just a feature request here Could add on option to click the rewards automaticly (on the home screen the little chest at the top right corner?) So i can leave nox open all day =)
|
|