Closed DPr00f closed 11 years ago
So i did this
if(callback.getResult() == EResult.AccountLogonDenied){
Util.printConsole("This account is protected by Steam Guard. Enter the authentication code sent to the proper email: ", Bot.this, ConsoleColor.DarkRed);
try{
BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));
String s = bufferRead.readLine();
logOnDetails.authCode(s);
}
catch(IOException e)
{
e.printStackTrace();
}
}
if (callback.getResult() == EResult.InvalidLoginAuthCode)
{
Util.printConsole("An Invalid Authorization Code was provided. Enter the authentication code sent to the proper email: ", Bot.this, ConsoleColor.DarkRed);
try{
BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));
String s = bufferRead.readLine();
logOnDetails.authCode(s);
}
catch(IOException e)
{
e.printStackTrace();
}
}
And sure enough, it asks me for the auth code. When i input it, nothing happens. I tried different combinations, such as steamClient.disconnect() steamClient.connect; and steamuser.logOff(); steamUser.logon(logOnDetails); but i never get a callback. although, if i stop the program, restart and manually inser the authcode he connects to the steam. Any help on how can i achieve the login with a simple input from the console? And how about saving a sentry file? I can't find a way to the callback that should manage that.
That isn't a big enough excerpt to see what's wrong. If your code isn't on github, why?
Sorry dude, the reason why i didn't upload it is because i didn't change the code that much. None the less, i removed the mysql, cause i didn't have a copy of your database and i was lazy to search for the statements to reproduce it. And i tried to include the SteamGuard part. There you have it. https://github.com/DPr00f/SteamBot-Java
Just put
steamClient.connect();
after
logOnDetails.authCode(s);
I did try that mate. All i got was, disconnected, trying to reconnect. I can't change te code now. But if you have a time try it yourself, you'll find out it does not work. At least for me. But thx for the replies mate.
Well I have working bots... so...
Lol, ok mate, i'll give it a try. Thx
Resolved, steamClient.disconnect(); after the logOnDetails.authCode(s); does the trick, cause if i do connect, it'll disconnect, and the disconnect will connect again, so it will connect and disconnect() to the infinity and beyond... Thx again mate. Keep it up.
Hi again Thomas, i resolved the issue with the JCE, now the problem is other. I always get AccountLogonDenied and steam send me a message from steamguard, although there's no input to insert the Key, what do i do?
Thanks in advance.