$ KoLmafia --CLI daily.ash KoLmafia v10.9 Running on Linux Using Java 1.5.0_11 Validating login server... ... Validating login server... ... Concurrent logins detected. Debug log printed. java.lang.Exception В скрипте первой строчкой: cli_command("login username"); Проблема в коде: if ( command.equals( "login" ) ) { executeCommand( "logout", "" ); String password = getSaveState( parameters ); if ( password != null ) RequestThread.postRequest( new LoginRequest( parameters, password ) ); else updateDisplay( ERROR_STATE, "No password saved for that username." ); return; } // Next, handle any requests that request exiting. // Note that a logout request should be sent in // order to be friendlier to the server, if the // character has already logged in. if ( command.equals( "logout" ) ) { ... if ( StaticEntity.getClient() == DEFAULT_SHELL ) DEFAULT_SHELL.attemptLogin(); return; } Команда login зовёт logout, и потом логинится, а logout в свою очередь тоже логинится. В 10.9 release logout не выполнялся.
Нужно просто откатить тот патч, который вносит это изменение?
Ну наверно. @@ -957,14 +966,11 @@ public class KoLmafiaCLI extends KoLmafia if ( command.equals( "login" ) ) { - RequestThread.postRequest( new LogoutRequest() ); - KoLRequest.chooseRandomServer(); - + executeCommand( "logout", "" );
Created attachment 1923 [details] KoLmafia-10.9-fix-logout.patch Проще задавить перелогинивание.
Давно исправлено.
Ага, в апстриме.