xKiv
Active member
Ezandora's guide has
Trying to activate it prints "Unexpected error, debug log printed." in the gCLI.
The exception is an outofboundsexception at net.sourceforge.kolmafia.textui.Parser.enforceSince(Parser.java:4431)
The line in question:
More context:
StaticEntity.getVersion returns "KoLmafia v17.12". No " r" in it (probably because StaticEntity.getVersion calls StaticEntity.getVersion( false ), which won't enforce including revision unless it's a non-RELEASE version of mafia; calling StaticEntity.getVersion( true ) directly instead seems to fix this, at least for me).
The "strip " rxxx" from end" bit looks like it was introduced recently, in r18287.
Code:
since 17.6;
Trying to activate it prints "Unexpected error, debug log printed." in the gCLI.
The exception is an outofboundsexception at net.sourceforge.kolmafia.textui.Parser.enforceSince(Parser.java:4431)
The line in question:
Code:
currentVersion = currentVersion.substring( 0, currentVersion.indexOf( " r" ) );
More context:
Code:
String currentVersion = StaticEntity.getVersion();
currentVersion = currentVersion.substring( currentVersion.indexOf( "v" ) + 1 );
// Strip " rxxxx" from end
currentVersion = currentVersion.substring( 0, currentVersion.indexOf( " r" ) );
StaticEntity.getVersion returns "KoLmafia v17.12". No " r" in it (probably because StaticEntity.getVersion calls StaticEntity.getVersion( false ), which won't enforce including revision unless it's a non-RELEASE version of mafia; calling StaticEntity.getVersion( true ) directly instead seems to fix this, at least for me).
The "strip " rxxx" from end" bit looks like it was introduced recently, in r18287.