Hey,
I've been working on a turn burning script for using drum machines. Right now it's really simplistic but here it is:
Here's the contents of the steal_and_kill.ccs:
However when I try to run it I get an error and it dumps to the log. The log basically contains the following:
Those last 3 lines are repeated several times...
Any clue what's going on here?
I've been working on a turn burning script for using drum machines. Right now it's really simplistic but here it is:
Code:
//drum machine turn burning script
set_property("battleAction","custom combat script");
set_property("customCombatScript","steal_and_kill.ccs");
int drums = item_amount($item[drum machine]);
int i = 1;
while(i <= drums)
{
use(1, $item[drum machine]);
i = i + 1;
}
print("Done!");
Here's the contents of the steal_and_kill.ccs:
Code:
[ default ]
1: skill pickpocket
2: attack
However when I try to run it I get an error and it dumps to the log. The log basically contains the following:
Code:
Unexpected error, debug log printed.
class java.lang.StackOverflowError: null
java.lang.StackOverflowError
at net.sourceforge.kolmafia.session.CustomCombatManager.getSettingKey(CustomCombatManager.java:478)
at net.sourceforge.kolmafia.request.FightRequest.updateCurrentAction(FightRequest.java:404)
at net.sourceforge.kolmafia.request.FightRequest.nextRound(FightRequest.java:346)
at net.sourceforge.kolmafia.request.FightRequest.nextRound(FightRequest.java:261)
at net.sourceforge.kolmafia.request.FightRequest.updateCurrentAction(FightRequest.java:417)
at net.sourceforge.kolmafia.request.FightRequest.nextRound(FightRequest.java:346)
at net.sourceforge.kolmafia.request.FightRequest.nextRound(FightRequest.java:261)
Those last 3 lines are repeated several times...
Any clue what's going on here?