Bot managment bot?!?!

11/12/2018 03:14 darkriftvs#1
Is there a way to have a program or something to manage like all your jq bots to relog them in if they crash or to "poke" them to make sure they arnt hung up or something? that way you dont have to check them every hour and you can keep things going, cause what im running into now is every morning i have 2 -4 crashed out of XX and its just annoying to have to relog them in and figure out which gw copy needs restarted and such


or am i just being lazy i use multi launch as kinda of a autologger but if something could interface with it and select the correct character and coorisponding jq character and do it everytime it crashes that would be pretty useful, i may try to make my own but im pretty terrible at writing stuff lol
11/12/2018 19:28 Sleipnir Xiv#2
Sure, pretty easy to do. Here's the most basic lazy man's approach using AutoIT:

Make an array and populate it with your account info, leaving one extra field free for the process id (pid). Now start some endless loop and iterate through your account array row by row. Check if a pid is present, and if it is use ProcessExists() to find out if a process with that pid is (still) running. If not, launch GWMultiClient using the Run() command and [Only registered and activated users can see links. Click Here To Register...] which you read from your array. Run() outputs the pid of the process spawned, so you directly place that into the respective field in your account array. Then you'll probably have to do some lazyass SendKey() Enter for the initial character login and inject/launch the bot script. Sleep() for a while if you have many accounts and let the loop do it's thing.

Once you have that basic construct running, you can add checks for things like err7 which doesnt terminate the process (to prevent stucks), or let your bot communicate with your launcher about farmstatus (s.t. the launcher can kill the bot if no success since x amount of time or something like that.)

It might sound difficult at first if you're inexp in writing stuff, but if that is the case consider starting real basic by letting your script launch a single acc, get the bot running etc, then abstract it a little to let it run the other accs and so on ("inside out"). Good luck!
11/12/2018 21:42 darkriftvs#3
Thank you for the useful information, i'll have to try it at least im very new when it comes to this so yeah it will be a solid project for me thanks going to keep this thread going to see maybe what others have/ or see what they also suggest Thanks again sleipnir
11/13/2018 06:29 savsuds#4
Quote:
Originally Posted by darkriftvs View Post
Thank you for the useful information, i'll have to try it at least im very new when it comes to this so yeah it will be a solid project for me thanks going to keep this thread going to see maybe what others have/ or see what they also suggest Thanks again sleipnir
There is no reason to wait.

Sleipnir Xiv has a VAST amount of knowledge on the subject.