This is new. From the gCLI:
Line 8462 is, essentially, the last line of the script. It's in a try/finally. The actual exception was obviously when the Maximizer was trying to maximize for "advs"; it aborted before actually putting on any equipment.
Here is the stack trace:
Yes. It's in the "maximize" function of the RuntimeLibrary, in the Maximizer, and in Speculation.calculate, in particular.
The script is robust, in that you can rerun it and it will end up taking up where it left off.
Maximizer: advs
Maximizing...
Net income = 1,338,172 Meat in 389 turns. Meat/Adventure = 3,440
Cumulative income = 1,073,713,429 Meat in 592,024 turns. Meat/Adventure = 1,813
(VeracityMeatFarm.ash, line 8462)
Script execution aborted (java.lang.NullPointerException: Cannot invoke "java.lang.Comparable.compareTo(Object)" because "left" is null): (VeracityMeatFarm.ash, line 8462)
Line 8462 is, essentially, the last line of the script. It's in a try/finally. The actual exception was obviously when the Maximizer was trying to maximize for "advs"; it aborted before actually putting on any equipment.
Here is the stack trace:
Code:
(VeracityMeatFarm.ash, line 8462)
class java.lang.NullPointerException: Cannot invoke "java.lang.Comparable.compareTo(Object)" because "left" is null
java.lang.NullPointerException: Cannot invoke "java.lang.Comparable.compareTo(Object)" because "left" is null
at net.java.dev.spellcast.utilities.SortedListModel.compare(SortedListModel.java:256)
at net.java.dev.spellcast.utilities.SortedListModel.normalIndexOf(SortedListModel.java:169)
at net.java.dev.spellcast.utilities.SortedListModel.indexOf(SortedListModel.java:127)
at net.sourceforge.kolmafia.AdventureResult.getCount(AdventureResult.java:1083)
at net.sourceforge.kolmafia.session.InventoryManager.getCount(InventoryManager.java:131)
at net.sourceforge.kolmafia.session.InventoryManager.getCount(InventoryManager.java:127)
at net.sourceforge.kolmafia.KoLCharacter.recalculateAdjustments(KoLCharacter.java:5039)
at net.sourceforge.kolmafia.Speculation.calculate(Speculation.java:171)
at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.getScore(MaximizerSpeculation.java:61)
at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1830)
at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:145)
at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:1604)
at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:90)
at net.sourceforge.kolmafia.textui.RuntimeLibrary.maximize(RuntimeLibrary.java:7306)
at net.sourceforge.kolmafia.textui.RuntimeLibrary.maximize(RuntimeLibrary.java:7287)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.sourceforge.kolmafia.textui.parsetree.LibraryFunction.execute(LibraryFunction.java:63)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:113)
at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:423)
at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:87)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:113)
at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:423)
at net.sourceforge.kolmafia.textui.parsetree.Try.execute(Try.java:36)
at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:423)
at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:87)
at net.sourceforge.kolmafia.textui.AshRuntime.executeScope(AshRuntime.java:254)
at net.sourceforge.kolmafia.textui.AshRuntime.execute(AshRuntime.java:182)
at net.sourceforge.kolmafia.textui.AshRuntime.execute(AshRuntime.java:175)
at net.sourceforge.kolmafia.textui.command.CallScriptCommand.call(CallScriptCommand.java:201)
at net.sourceforge.kolmafia.textui.command.CallScriptCommand.run(CallScriptCommand.java:34)
at net.sourceforge.kolmafia.KoLmafiaCLI.doExecuteCommand(KoLmafiaCLI.java:453)
at net.sourceforge.kolmafia.KoLmafiaCLI.executeCommand(KoLmafiaCLI.java:419)
at net.sourceforge.kolmafia.KoLmafiaCLI.executeLine(KoLmafiaCLI.java:338)
at net.sourceforge.kolmafia.KoLmafiaCLI.executeLine(KoLmafiaCLI.java:225)
at net.sourceforge.kolmafia.swingui.button.LoadScriptButton$LoadScriptRunnable.run(LoadScriptButton.java:26)
at net.sourceforge.kolmafia.RequestThread$SequencedRunnable.run(RequestThread.java:343)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
The script is robust, in that you can rerun it and it will end up taking up where it left off.
Maximizer: advs
Maximizing...
60 combinations checked, best score 62.00
Putting on leather aviator's cap...
Equipment changed.
Wielding Mer-kin hookspear...
Equipment changed.
Holding blue LavaCo Lamp™...
Equipment changed.
Putting on octolus-skin cloak...
Equipment changed.
Putting on General Sage's Lonely Diamonds Club Jacket...
Equipment changed.
Putting on Crimbylow-rise jeans...
Equipment changed.
Putting on fudgecycle...
Equipment changed.
Putting on Spacegate scientist's insignia...
Equipment changed.
Putting on gingerbeard...
Equipment changed.
Putting on solid shifting time weirdness...
Equipment changed.
Net income = 0 Meat in 0 turns. Meat/Adventure = 0
Cumulative income = 1,073,713,429 Meat in 592,024 turns. Meat/Adventure = 1,813[/code]