Connect function seems to misspell account/password
The connect function like randomly throws 'incorrect acc/pass provided to connect function' errors. I know the provided ones were correct, as function looks like this
function relogTo(login, password, character)
logDebug('in relogTo function', character, 'with pass:', login, password)
setsetting('Persistent/Scripts/reconnect/Enabled', 'no')
disconnect()
while not $connected do
connect(login:lower(), password, character) wait(1000, 1200)
end
setsetting('Persistent/Scripts/reconnect/Enabled', 'yes')
logDebug('relogTo function ends', character)
end
and what happens is it throws few errors, like 1-4, possibly more and then succeeding to log in which all happens within one call of relogTo. The password is correct apparently because it does log in eventually, besides, I log these credentials, and then I checked them, they were correct.
This all happens when multiple clients with bots are running. What from some observations before could be causing it, is holding shift what interfers other bots (I don't know how would it be possible) but it looked like it, or well anything else. I suggest to make sure the bot tests correctly what it types in before hitting that enter, or give an option to simulate pasting the paste the password from clipboard (which would have to be somehow isolated).
Why this problem actually hurts is, that it eventually gives the user IP block (so don't say it's irrelevant)
here is how it looks like http://i.imgur.com/dUbUTkU.png @Lucas Terra
03-08-2015, 04:16 PM
Gaxeo
After more than one day being nice - where is the fuckin answer or any comment in this thread for the fucks sake ?!
I can't bot for more than two hours with this shit, I did format PC and it didn't help.
@SuNe, @Raphael, @Leonardo, @Lucas Terra @ozzix, @Imba.
03-08-2015, 04:22 PM
ozzix
I cant rly help you and the mass-tagging will hardly do you any good
03-08-2015, 04:43 PM
Gaxeo
Quote:
Originally Posted by ozzix
I cant rly help you and the mass-tagging will hardly do you any good
I need to try anything... Maybe some one will answer.
0fc you can help, just pm to lucas or write smth on yours windbot's skype chat.
03-08-2015, 05:08 PM
Raphael
Here is your answer: enjoy your week vacation.
And don't come with another account, or I'll ban both permanently.
Oh, and don't try and contact me on Skype, I won't accept it.
03-08-2015, 08:09 PM
Wobbuffet
So, is anyone else experiencing this? Or is there any news? @Raphael @Leonardo
03-08-2015, 08:26 PM
Raphael
Quote:
Originally Posted by Wobbuffet
So, is anyone else experiencing this? Or is there any news? @Raphael @Leonardo
AFAIK, Lucas is working on something to fix all reconnecting issues at the moment.
Stay tuned.
03-08-2015, 08:32 PM
Wobbuffet
Quote:
Originally Posted by Raphael
AFAIK, Lucas is working on something to fix all reconnecting issues at the moment.
Stay tuned.
I have h0pe it wi11 be fixed bef0re christmas 2017 @Raphael
03-09-2015, 10:09 AM
dawacwindbota
Sometimes bot gets stucked and I have : 'Incorrect account or password provided to connect function.' After manual login and logout it's starting to work.
If your password has any CAPITALIZED member it'll obviously type it wrong.
while not $connected do
connect(login:lower(), password, character) wait(1000, 1200)
end
This is also a part of a really bad code, the function 'connect' already tries to connect several times before exiting, inserting it into a while loop won't do any difference except for fucking up the code.
You should use ready to use scripts found on forum and stop doing this shitty persistents if you really want to bot, I use my own reconnecter and I have no problems.
If your password has any CAPITALIZED member it'll obviously type it wrong.
while not $connected do
connect(login:lower(), password, character) wait(1000, 1200)
end
This is also a part of a really bad code, the function 'connect' already tries to connect several times before exiting, inserting it into a while loop won't do any difference except for fucking up the code.
You should use ready to use scripts found on forum and stop doing this shitty persistents if you really want to bot, I use my own reconnecter and I have no problems.
Grr, it's c0de by @walukasz, I kn0w 0nly h0w t0 l0ad script and d0n't say smth is fucked up if y0u d0n't kn0w what wa1ukasz wanted t0 d0
I msg t0 him right n0w,
If your password has any CAPITALIZED member it'll obviously type it wrong.
while not $connected do
connect(login:lower(), password, character) wait(1000, 1200)
end
This is also a part of a really bad code, the function 'connect' already tries to connect several times before exiting, inserting it into a while loop won't do any difference except for fucking up the code.
You should use ready to use scripts found on forum and stop doing this shitty persistents if you really want to bot, I use my own reconnecter and I have no problems.
For the first thing password is not being lowered, so it's obviously typed correct. Account is lowered as it is case insensitive, as you can easly check, it was added as a desperate try to reduce use of shift key by the bot.
Besides, it was clearly said, function usually eventually connects, being in the loop called with the same arguments, so if the lower() was the problem, how could for the same data give errors and then succeed?
Don't search problems where there are none, the problem was explained and it seems it's bot internal problem, and it was reported as a bug, not as 'my function doesn't work ;( someone fix plox'
It's not a shitty persistent, it's not even a persistent, it is a function that relogs to (as name says, doesn't it?) to a specified character from specified account, and it's called when needed in other functions, that are called in specified waypoints. Connect function, even if it maybe tries more than once, does it try untill connected? I doubt it.
You know what is bad programming practice?
This is (callback[2] ~= nil and stopattack() and callback[2]()) or false
03-09-2015, 01:39 PM
Leonardo
Quote:
Originally Posted by walukasz
For the first thing password is not being lowered, so it's obviously typed correct. Account is lowered as it is case insensitive, as you can easly check, it was added as a desperate try to reduce use of shift key by the bot.
It's not a shitty persistent, it's not even a persistent, it is a function that relogs to (as name says, doesn't it?) to a specified character from specified account, and it's called when needed in other functions, that are called in specified waypoints. Connect function, even if it maybe tries more than once, does it try untill connected? I doubt it.
My bad, it's not the password but the account, indeed, I have no idea if this Deepling guy is just a troll or this is for real, anyway he copied part of the code, which means I can't guess if it's an action or persistent. Maybe in his case (not all of your scripts) he should do in a different way, changing type press/focus/button stuck policies to fill the password correctly.
If you really want to go via the while loop, I recommend this in a future use:
while not $connected do
setlifetime(60000)
connect(a,b,c)
end
03-09-2015, 01:45 PM
Wobbuffet
Quote:
Originally Posted by Leonardo
My bad, it's not the password but the account, indeed, I have no idea if this Deepling guy is just a troll or this is for real, anyway he copied part of the code, which means I can't guess if it's an action or persistent. Maybe in his case (not all of your scripts) he should do in a different way, changing type press/focus/button stuck policies to fill the password correctly.
If you really want to go via the while loop, I recommend this in a future use:
while not $connected do
setlifetime(60000)
connect(a,b,c)
end
i'm not trolling when i speak about my profit.
I didn't copied anything, walukasz gave me this title/description, screenshot was my.
03-09-2015, 02:32 PM
walukasz
Quote:
Originally Posted by Leonardo
My bad, it's not the password but the account, indeed, I have no idea if this Deepling guy is just a troll or this is for real, anyway he copied part of the code, which means I can't guess if it's an action or persistent. Maybe in his case (not all of your scripts) he should do in a different way, changing type press/focus/button stuck policies to fill the password correctly.
If you really want to go via the while loop, I recommend this in a future use:
while not $connected do
setlifetime(60000)
connect(a,b,c)
end
No, he wasn't trolling, even had pictures to prove it. The way function is used could been guessed from it's name, or as you said if you couldn't guess, don't :d. You could be right, policies can help, it is kind of roulette though, but probably worth trying. Actual solution is to make or improve connect function checking what it typed before confirming.
I don't want to do it through while loop, I have to, I want to relog to another character and I want it to happen for sure, there is no point to proceed before relogging.
About the lifetime thing, how exacly would it help? I mean that for sure wouldn't resolve the current problem, but could resolve a problem I am not even aware of, but afaik there is no problem such aborts connect function execution before it did what it had to.
03-09-2015, 08:38 PM
Leonardo
Quote:
Originally Posted by walukasz
No, he wasn't trolling, even had pictures to prove it. The way function is used could been guessed from it's name, or as you said if you couldn't guess, don't :d. You could be right, policies can help, it is kind of roulette though, but probably worth trying. Actual solution is to make or improve connect function checking what it typed before confirming.
I don't want to do it through while loop, I have to, I want to relog to another character and I want it to happen for sure, there is no point to proceed before relogging.
About the lifetime thing, how exacly would it help? I mean that for sure wouldn't resolve the current problem, but could resolve a problem I am not even aware of, but afaik there is no problem such aborts connect function execution before it did what it had to.
Quote:
Originally Posted by walukasz
You know what is bad programming practice?
This is (callback[2] ~= nil and stopattack() and callback[2]()) or false
This is called "noob proof". In other words this script will do what it must even with wrong user input without raising errors the user can't manage to fix. You should learn this to improve your scripting skills.
Another thing to learn is how the environment of windbot events works before placing them in structures they don't belong to.
I agree it could be a problem with the function itself but first I wanna try all possibilities I can create to help the affected user. So, if you don't have anything that could help then step aside.
03-10-2015, 08:38 AM
walukasz
Quote:
Originally Posted by Leonardo
This is called "noob proof". In other words this script will do what it must even with wrong user input without raising errors the user can't manage to fix. You should learn this to improve your scripting skills.
Another thing to learn is how the environment of windbot events works before placing them in structures they don't belong to.
I agree it could be a problem with the function itself but first I wanna try all possibilities I can create to help the affected user. So, if you don't have anything that could help then step aside.
Maybe you are not getting something here. I am the author of the script, this is why I talk in here.
If you are still in there about this loop, well, bot doesn't always succeed, and it's not always scripter fault, like why people put opening backpacks in loops? Because it sometimes fails. Same goes for connect function, it fails. If it fails with timeout, I don't care, try again, same for internet connection not working, try again till internet is back, till servers are back up or whatever, this is how user expects it to work, this is the expected behaviour. If he had 10 min net kick, he doesn't want to have houndreds of bots stopped, he wants them to login, when possible. Besides this function does not return errors, how do you expect me to detect it's type?
This function is internal, it's not for the user to call, and it does what it's supposed to. User does not provide the login data, its provided by another application, and before trying to log in to the next account, account is also checked by another program whether data is valid (account exists (not deleted)). Besides script is raising error, that is the error connect function raises, which says password are incorrect, and provides enough log messages to track the problem, what else you expect? The error appears shouldn't happen, it is a bug of bot as said before. Maybe you would check every function for errors to be sure? assert(2+2==4)
It could be problem with function? It obviously is problem with function, but there might be workarounds that might help which would be good, but still connect function should work always, not with specific settings.
Really it does not occur to you it's obviously a bug? Only reason I shown the code is that it clearly shows that.
When you call the function like this relogTo("1234", "asd12", "Leonardo")
then the function calls connect("1234", "asd12", "Leonardo") multiple times with the very same arguments, how come it can twice say the password is incorrect, and then using the very same data succeed to login on the third try?
I never deeply looked in to events tho, but afaik setlifetime would just let the connect function to do what it wanted for longer than default, but it doesn't seem to be the case, calling it repetedly shouldn't be a problem either as waitforevents is true by default, or no?
03-10-2015, 09:15 AM
dawacwindbota
Quote:
Originally Posted by Leonardo
Another thing to learn is how the environment of windbot events works before placing them in structures they don't belong to.
Some resources for 'environment of windbot events' thing?
Why is setlifetime needed here.
Code:
while not $connected do
setlifetime(60000)
connect(a,b,c)
end
03-10-2015, 04:52 PM
Raphael
Shit is getting quite hot in here, so let me clear the air:
The code in question is totally valid. There is nothing wrong with it and, apart from styling and naming conventions, that's pretty much how I'd write such function.
setlifetime doesn't add much. Even though it could be helpful and should probably be included, it doesn't factor much into the problem being faced. What it does is give connect more (or less) time to execute. Also worth to note that it shouldn't (or rather doesn't need to) be placed inside the while loop because, as I already explained on other occasions, it is script scoped, which means that all events inside the script that called the function will have that lifetime from that point. It's also a good reason why you should probably call setlifetime again outside the loop to reset the default lifetime for the other events, which I believe to be 30000ms.
This thread is valid and helpful. It did report a real bug and did propose a decent fix. The issue will be looked at and solved when we deem appropriate.
Gaxeo is a troll.
Now, if we could stop with the ad hominem and focus on the issue here, I'd appreciate.
03-10-2015, 04:59 PM
Wobbuffet
Quote:
Originally Posted by Raphael
Shit is getting quite hot in here, so let me clear the air:
[*]Gaxeo is a troll.
I was botting 4 chars per client with your script it reloggs when it goes low on stamina etc, is there no way to make a script something like; if last character name was X1 then write account 1 and password 1 but if last char was X3 then write account 3 and password 3? Making it possible for me to me and others to bot again?
I was botting 4 chars per client with your script it reloggs when it goes low on stamina etc, is there no way to make a script something like; if last character name was X1 then write account 1 and password 1 but if last char was X3 then write account 3 and password 3? Making it possible for me to me and others to bot again?
Thanks in advance
I dont think that is possible to do right now.
04-01-2015, 12:40 PM
Tobbysch
Quote:
Originally Posted by Diaxy
I dont think that is possible to do right now.
So maybe make a HUD to show the last character that was online in the client, so at least I know what account I should relogg back into? :P
04-01-2015, 01:28 PM
SuNe
Quote:
Originally Posted by Tobbysch
So maybe make a HUD to show the last character that was online in the client, so at least I know what account I should relogg back into? :P
Would be totally possible to do and not that hard (even if I'm a total noob on huds)
04-01-2015, 07:58 PM
Tobbysch
Quote:
Originally Posted by SuNe
Would be totally possible to do and not that hard (even if I'm a total noob on huds)
Well... so am I :(
04-01-2015, 08:09 PM
Deepling
back t0 thread,,, ctr1 + g sti11 d0n't w0rk, sti11 b0t d0n't check passw0rd after write them in c1ient :/
04-01-2015, 08:43 PM
SuNe
Quote:
Originally Posted by Deepling
back t0 thread,,, ctr1 + g sti11 d0n't w0rk, sti11 b0t d0n't check passw0rd after write them in c1ient :/
And it will for a long time untill a bot update, or maybe even untill Windbot 3.
If you do not stop spamming every single day, even if you have gotten your answer so many times, i will ban you and if you come back on a alt account and keep spamming, i will ban every single account of yours for a month.
Closing this thread as you have already got your answer multiply times.