Winterbay's Helpful Automatic Monsterbasher (WHAM)

I noticed something interesting last night, it tried to use Goodfella Contracts while I was using a fairy instead of my penguin. ¯\_(ツ)_/¯
 
I noticed something interesting last night, it tried to use Goodfella Contracts while I was using a fairy instead of my penguin. ¯\_(ツ)_/¯

Fixed in 3.0.5, which should also actually use the stun with a saucesplash if one is calculated to be profitable.
 
Running WHAM 3.05 with Mafia r11268 in hardcore bugbear as a sauceror:

Code:
[217] Belilafs Comedy Club
Encounter: Carbuncle Top
Round 0: Arbos wins initiative!
WHAM: Running SmartStasis
WHAM: Starting evaluation and performing of attack
Round 1: Arbos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Failed to enqueue . There's more detailed information in the gCLI.
You're on your own, partner.

> zlib verbosity = 10

Previous value of verbosity: 3
Changed to 10.
Running ZLib version: r36 (current)
1 HP costs 3.322μ. ( 56 / 56 )
1 MP costs 7.143μ. ( 77 / 108 )
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 3.0.5 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 216.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
Value of stat gain: 201.25μ
Value of stat gain: 201.25μ
ATT: 80 (94% × 30.32, death in 2)
DEF: 72 (8.8% × 51.97 (3) (3) (3) (27) (5), win in 8)
HP: 80, Value: 201.25 μ
Parsed round number: 1
Building options...
Evaluating 'min(15.0+3,10)+floor(sqrt(max(15.0-7,0)))'...
Evaluating '1.2*(12+min(0.15*44.0,20)+min(10.0,40)+0.0)'...
Evaluating '1.2*(28+min(0.25*44.0,30)+min(10.0,60)+0.0)*1.5'...
Evaluating '1.2*(3.5+min(0.1*44.0,10)+min(17.0+0.0,10))'...
Evaluating '1.2*(16+min(0.2*44.0,25)+min(17.0+0.0,15))'...
Evaluating '1.2*(22+min(0.3*44.0,30)+min(17.0+0.0,25))'...
Evaluating '1.2*(2.5+min(17.0+0.0,5))'...
Options built! (25 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 216.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Carbuncle Top. Mafia considers that this monster has an attack of 80 or 80 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 72 or 72 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 80 or 80 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 80.0.
WHAM: WHAM added the following to BatRound: if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; 
WHAM: We currently think that the round number is: 1 and that the turn number is 216.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 1 and that the turn number is 216.
Value of stat gain: 201.25μ
WHAM: Attack option chosen: skill 2015 (round 1, profit: -28.57)
WHAM: No need to stun this monster
Queued: skill 2015
Building options...
Evaluating 'min(15.0+3,10)+floor(sqrt(max(15.0-7,0)))'...
Evaluating '1.2*(12+min(0.15*44.0,20)+min(10.0,40)+0.0)'...
Evaluating '1.2*(28+min(0.25*44.0,30)+min(10.0,60)+0.0)*1.5'...
Evaluating '1.2*(3.5+min(0.1*44.0,10)+min(17.0+0.0,10))'...
Evaluating '1.2*(16+min(0.2*44.0,25)+min(17.0+0.0,15))'...
Evaluating '1.2*(22+min(0.3*44.0,30)+min(17.0+0.0,25))'...
Evaluating '1.2*(2.5+min(17.0+0.0,5))'...
Options built! (25 actions)
Parsed round number: 1
Building options...
Evaluating 'min(15.0+3,10)+floor(sqrt(max(15.0-7,0)))'...
Evaluating '1.2*(12+min(0.15*44.0,20)+min(10.0,40)+0.0)'...
Evaluating '1.2*(28+min(0.25*44.0,30)+min(10.0,60)+0.0)*1.5'...
Evaluating '1.2*(3.5+min(0.1*44.0,10)+min(17.0+0.0,10))'...
Evaluating '1.2*(16+min(0.2*44.0,25)+min(17.0+0.0,15))'...
Evaluating '1.2*(22+min(0.3*44.0,30)+min(17.0+0.0,25))'...
Evaluating '1.2*(2.5+min(17.0+0.0,5))'...
Options built! (25 actions)
WHAM: Evaluating the attack but not performing it took 2.56 seconds.
WHAM: Debug printing the damage dealt by your options.
 
WHAM: Kneebutt: 80.00 potential damage (raw damage: 81.17) and a hitchance of 75.18%.
WHAM: Lunging Thrust-Smack: 80.00 potential damage (raw damage: 147.63) and a hitchance of 83.45%.
WHAM: Stringozzi Serpent: 80.00 potential damage (raw damage: 88.20) and a hitchance of 100.00%.
WHAM: Fearful Fettucini: 80.00 potential damage (raw damage: 88.08) and a hitchance of 100.00%.
WHAM: Saucegeyser: 80.00 potential damage (raw damage: 86.88) and a hitchance of 100.00%.
WHAM: Wave of Sauce: 62.64 potential damage (raw damage: 62.64) and a hitchance of 100.00%.
WHAM: Saucestorm: 47.76 potential damage (raw damage: 47.76) and a hitchance of 100.00%.
WHAM: Cannelloni Cannon: 34.32 potential damage (raw damage: 34.32) and a hitchance of 100.00%.
WHAM: Spectral Snapper: 33.00 potential damage (raw damage: 33.00) and a hitchance of 100.00%.
WHAM: Clobber: 23.00 potential damage (raw damage: 23.00) and a hitchance of 100.00%.
WHAM: Stream of Sauce: 21.48 potential damage (raw damage: 21.48) and a hitchance of 100.00%.
WHAM: Tango of Terror: 16.50 potential damage (raw damage: 16.50) and a hitchance of 100.00%.
WHAM: Disco Face Stab: 16.50 potential damage (raw damage: 16.50) and a hitchance of 100.00%.
WHAM: Toss: 12.00 potential damage (raw damage: 12.00) and a hitchance of 100.00%.
WHAM: Attack with your weapon: 10.95 potential damage (raw damage: 8.18) and a hitchance of 8.80%.
WHAM: Salsaball: 9.00 potential damage (raw damage: 9.00) and a hitchance of 100.00%.
WHAM: Chronic Indigestion: 8.50 potential damage (raw damage: 8.50) and a hitchance of 100.00%.
WHAM: Knob Goblin firecracker: 3.00 potential damage (raw damage: 3.00) and a hitchance of 100.00%.
WHAM: razor-sharp can lid: 2.50 potential damage (raw damage: 2.50) and a hitchance of 100.00%.

WHAM: Evaluating the attack but not performing it took 3.39 seconds.
Round 2: Arbos executes a macro!
KoLmafia thinks it is round 3 but KoL thinks it is round 1
WHAM: Verbosity of 10 or more is set. Data files for denugging have been generated. Aborting.
You're on your own, partner.

The two WHAM data files were identical and contained this:

Code:
0	0.0	0.0	0.0	skill 2015

Any ideas?
 
WHAM wanted to use Kneebutt, but failed to do so for some reason. Or at least that's the suggestion in the debug example. No idea, well, a potential idea, about why but I thought I had fixed that...

Could you try the same thing with verbosity between 7 and 9?
 
As requested:

Code:
[334] Defiled Alcove
Encounter: conjoined zmombie
Strategy: G:\software\Kol\ccs\default.ccs [default]
Round 0: Arbos wins initiative!
WHAM: Running SmartStasis
Round 1: Arbos executes a macro!
Round 1: Arbos casts ENTANGLING NOODLES!
Round 2: Arbos uses the half-rotten brain!
Round 3: conjoined zmombie takes 70 damage.
WHAM: Starting evaluation and performing of attack
Round 3: Arbos executes a macro!
KoLmafia thinks it is round 4 but KoL thinks it is round 3
WHAM: Failed to enqueue . There's more detailed information in the gCLI.
You're on your own, partner.
Click here to continue in the relay browser.


> zlib verbosity = 9

Previous value of verbosity: 3
Changed to 9.
Sending kmail to Chez...
sendmessage.php: redirected to a fight page.
Running ZLib version: r36 (current)
1 HP costs 3.322μ. ( 71 / 72 )
1 MP costs 5.882μ. ( 96 / 143 )
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 3.0.5 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 333.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
cranberries (29.0 @ +80.0): 29μ * 52.2% = 15.138000000000002
cranberries (8.0 @ +80.0): 29μ * 14.4% = 4.176
loose teeth (8.0 @ +80.0): 17μ * 14.4% = 2.448
Grateful Undead T-shirt (1.0 @ +80.0): 75μ * 1.8% = 1.35
Value of stat gain: 220.94μ
cranberries (29.0 @ +80.0): 29μ * 52.2% = 15.138000000000002
cranberries (8.0 @ +80.0): 29μ * 14.4% = 4.176
loose teeth (8.0 @ +80.0): 17μ * 14.4% = 2.448
Grateful Undead T-shirt (1.0 @ +80.0): 75μ * 1.8% = 1.35
Value of stat gain: 220.94μ
ATT: 89 (94% × 22.27, death in 4)
DEF: 73 (49.22% × 55.24 (3) (3) (3) (30) (5), win in 2)
HP: 65, Value: 806.05 μ
Parsed round number: 3
Building options...
Options built! (25 actions)
WHAM: We currently think that the round number is: 3 and that the turn number is 333.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Conjoined Zmombie. Mafia considers that this monster has an attack of 89 or 89 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 73 or 73 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 60 or 130 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 65.0.
WHAM: WHAM added the following to BatRound: if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; 
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Building custom actions...
Custom actions built! (0 actions)
Stasis action chosen: skill 4014 (round 3, profit: -49.9)
cranberries (29.0 @ +80.0): 29μ * 52.2% = 15.138000000000002
cranberries (8.0 @ +80.0): 29μ * 14.4% = 4.176
loose teeth (8.0 @ +80.0): 17μ * 14.4% = 2.448
Grateful Undead T-shirt (1.0 @ +80.0): 75μ * 1.8% = 1.35
Value of stat gain: 220.94μ
Attack action chosen: skill 2015 (round 3, profit: -23.53)
This monster is not your huckleberry.
Stasis loop complete.
WHAM: SmartStasis complete.
WHAM: Running SmartStasis took 0.53 seconds.
WHAM: We currently think that the round number is: 3 and that the turn number is 333.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 3 and that the turn number is 333.
cranberries (29.0 @ +80.0): 29μ * 52.2% = 15.138000000000002
cranberries (8.0 @ +80.0): 29μ * 14.4% = 4.176
loose teeth (8.0 @ +80.0): 17μ * 14.4% = 2.448
Grateful Undead T-shirt (1.0 @ +80.0): 75μ * 1.8% = 1.35
Value of stat gain: 220.94μ
WHAM: Attack option chosen: skill 2015 (round 3, profit: -23.53)
WHAM: No need to stun this monster
Queued: skill 2015
Building options...
Options built! (25 actions)
Parsed round number: 3
Building options...
Options built! (25 actions)
WHAM: Evaluating the attack but not performing it took 1.96 seconds.
WHAM: Enqueuing a stun to help with the battle
Queued: skill 2015
Building options...
Options built! (25 actions)
WHAM: We can't Saucesplash.
false, false, false, true, true
WHAM: Enqueueing (macroid ).
Unable to enqueue empty action.
WHAM: Failed to enqueue (entry 11 in the strategy).
WHAM: The following combat strategy was attempted: 
Kneebutt

Round 4: Arbos executes a macro!
KoLmafia thinks it is round 5 but KoL thinks it is round 3
WHAM: Failed to enqueue . There's more detailed information in the gCLI.
You're on your own, partner.

Code:
0	0.0	0.0	0.0	skill 2015

Could this be a side-effect of the fact that the character is spending a lot of time with no weapon equipped? Since I've permed both Master of the Surprising Fist and Kung Fu Hustler I've found that, as a Myst-class, the bonuses from going weaponless outweigh the worth of using a weapon.
 
Last edited:
Try 3.0.6, that should not do this anymore. I had forgotten that "normal" skills (like kneebutt) can have stun-effects as well :)
 
Is there a way to exclude items from use? I have a script to burn off MP summon love songs, it will often decide to use them against the knott yeti. As a work-around, I added closeting the love songs into my MP Burn script.
 
Not at the moment, I could look at including that as a zlib variable I guess. Shouldn't be too hard.
In case you want to do it yourself quickly change line 398:
Code:
if(tower_items(true) contains to_item(aid.group(2))) return false; //Don't throw items we will/might need for the tower
to
Code:
return false
which should make most item safe for use (unless any of the conditions in the first switch are fulfilled).
 
Last edited:
Not quite sure what's going on here but whenever I encounter a bugbear on my low skilled hardcore character WHAM freaks out and can't kill him. I can quickly switch back and plink him down but it happens literally with all of them.

Code:
[174] Fantasy Airship
Encounter: Battlesuit Bugbear Type
Round 0:     fewyn wins initiative!

[COLOR=olive]> zlib verbosity = 9[/COLOR]

Previous     value of verbosity: 3
Changed to 9.
[COLOR=gray]Running ZLib     version: r36 (current)[/COLOR]
[COLOR=#880000]1 HP costs 3.721μ.     ( 101 / 101 )[/COLOR]
[COLOR=#000088]1 MP costs 8μ. ( 53 / 137 )[/COLOR]
[COLOR=gray]Running     BatBrain version: 1.23 (current)[/COLOR]
[COLOR=gray]Running     SmartStasis version: 3.15 (current)[/COLOR]
[COLOR=gray]Running     WHAM version: 3.0.6 (current)[/COLOR]
[COLOR=purple]WHAM: We     currently think that the round number is: 0 and that the turn number is     754.[/COLOR]
[COLOR=purple]WHAM: Setting up variables via BatBrain[/COLOR]
Value     of stat gain: 0μ
Value of stat gain: 687.5μ
ATT: [B]200[/B]     (94% × 65.28, death in 2)
DEF: [B]180[/B] (8.59% × 28.72, win in     82)
HP: [B]201[/B], Value: [B][COLOR=green]687.5 μ[/COLOR][/B]
[COLOR=black]Parsed     round number: 1[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options     built! (19 actions)[/COLOR]
[COLOR=purple]WHAM: We currently     think that the round number is: 1 and that the turn number is 754.[/COLOR]
[COLOR=purple]WHAM:     You have no profitable MP restoratives.[/COLOR]
[COLOR=purple]WHAM:     You have no profitable HP restoratives.[/COLOR]
[COLOR=purple]WHAM:     You are fighting a battlesuit bugbear type. Mafia considers that this     monster has an attack of 0 or 0 when given a monster name.[/COLOR]
[COLOR=purple]WHAM:     Mafia further considers that this monster has a defense value of 0 or 0     when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia     further further considers that this monster has a HP value of 0 or 0 when     given a monster name.[/COLOR]
[COLOR=purple]WHAM: Your current     ML-adjustment is: 10.[/COLOR]
[COLOR=purple]WHAM: Monster HP is     201.0.[/COLOR]
[COLOR=black]WHAM: WHAM added the following to     BatRound: if pastround 49; abort "Stopping fight because it has gone on     for too long (set WHAM_maxround to a higher value if you think this was in     error)"; endif; [/COLOR]
[COLOR=purple]WHAM: Running     SmartStasis[/COLOR]
Profit per round:     [TABLE="width: 100%"]
[TR]
[TH]          Action[/TH]
[TH]          Profit[/TH]
[TH]          Damage[/TH]
[TH]          Other[/TH]
[/TR]
[TR]
[TD="align: left"]          base (0μ)[/TD]
[TD="align: right"]          [B]0μ[/B][/TD]
[TD="align: center"]          --[/TD]
[TD="align: center"][/TD]
[/TR]
[/TABLE]
    
    [COLOR=black]Building custom actions...[/COLOR]
[COLOR=black]Custom     actions built! (0 actions)[/COLOR]
[COLOR=black]Stasis action     chosen: skill 5021 (round 1, profit: -223.1)[/COLOR]
[COLOR=black]No     valid attacks (Best attack 'skill 5008' not good enough).[/COLOR]
[COLOR=black]This     monster is not your huckleberry.[/COLOR]
[COLOR=black]Stasis loop     complete.[/COLOR]
[COLOR=purple]WHAM: SmartStasis complete.[/COLOR]
[COLOR=purple]WHAM:     Running SmartStasis took 0.23 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     754.[/COLOR]
[COLOR=purple]WHAM: SS did not finish the fight,     continuing with script execution. [/COLOR]
[COLOR=purple]WHAM:     Starting evaluation and performing of attack[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     754.[/COLOR]
[COLOR=purple]WHAM: No valid attacks.[/COLOR]
[COLOR=purple]WHAM:     No profitable stun option[/COLOR]
[COLOR=black]Queued: use 1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1958' and 'use 1958'.[/COLOR]
[COLOR=black]Queued: use 1958,1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1958' and 'use 1958'.[/COLOR]
[COLOR=black]Queued: use 1958,1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1958' and 'use 1958'.[/COLOR]
[COLOR=black]Queued: use 1958,1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1958' and 'use 1958'.[/COLOR]
[COLOR=black]Queued: use 1958,1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1958' and 'use 1958'.[/COLOR]
[COLOR=black]Queued: use 1958,1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1958' and 'use 1958'.[/COLOR]
[COLOR=black]Queued: use 1958,1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (19 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 1958[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (18 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1958' and 'use 452'.[/COLOR]
[COLOR=black]Queued: use 1958,452[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (18 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 452[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (14 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 2966[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (14 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 2966[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (14 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 2966[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (14 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 2966[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (14 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 2966[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (13 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     2966' and 'use 3020'.[/COLOR]
[COLOR=black]Queued: use 2966,3020[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (13 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 3020[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (13 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 3020[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (13 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 3020[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (13 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 3020[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (13 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 3020[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (12 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     3020' and 'use 1907'.[/COLOR]
[COLOR=black]Queued: use 3020,1907[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (12 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 1907[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (11 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     1907' and 'use 469'.[/COLOR]
[COLOR=black]Queued: use 1907,469[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (11 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 469[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (10 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Auto-funk: merging 'use     469' and 'use 208'.[/COLOR]
[COLOR=black]Queued: use 469,208[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (10 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 208[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (10 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=black]Queued: use 208[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (10 actions)[/COLOR]
[COLOR=purple]WHAM:     No valid attacks.[/COLOR]
[COLOR=red]Can't enqueue 'use 208':     combat too long.[/COLOR]
[COLOR=purple]WHAM: Unable to delevel     until you can kill the monster without it killing you. Try it yourself.[/COLOR]
[COLOR=purple]WHAM:     Unable to determine a valid combat strategy. For your benefit here are the     numbers for you combat skills.[/COLOR]
[COLOR=blue]WHAM: Attack     with your weapon: 128.12 potential damage (raw damage: 128.12) and a     hitchance of 95.45%.[/COLOR]
[COLOR=blue]WHAM: Knob Goblin     firecracker: 3.00 potential damage (raw damage: 3.00) and a hitchance of     100.00%.[/COLOR]
[COLOR=blue]WHAM: razor-sharp can lid: 2.50     potential damage (raw damage: 2.50) and a hitchance of 100.00%.[/COLOR]
[COLOR=blue]WHAM:     Disco Eye-Poke: 2.00 potential damage (raw damage: 2.00) and a hitchance     of 100.00%.[/COLOR]
[COLOR=blue]WHAM: Suckerpunch: 1.00 potential     damage (raw damage: 1.00) and a hitchance of 100.00%.[/COLOR]
[COLOR=purple]WHAM:     You now have the knowledge needed to go forward and be victorious[/COLOR]
Round     1: fewyn executes a macro!
KoLmafia thinks it is round 2 but KoL thinks     it is round 1
[COLOR=red]WHAM: Unable to figure out a combat     strategy. Helpful information regarding your skills have been printed to     the CLI[/COLOR]
[COLOR=red]WHAM: Unable to figure out a combat     strategy. Helpful information regarding your skills have been printed to     the CLI[/COLOR]
[COLOR=purple]WHAM: Evaluating the attack and     performing it took 6.48 seconds.[/COLOR]
[COLOR=purple]WHAM:     Current monster HP is calculated to 138.0[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 30 and that the turn number     is 754.[/COLOR]
Round 2: fewyn executes a macro!
KoLmafia thinks it     is round 3 but KoL thinks it is round 1
[COLOR=red]WHAM: The     fight has gone on for longer than your WHAM_maxround setting. Reverting     power to manual.[/COLOR]
[COLOR=red]You're on your own, partner[/COLOR]
 
The problem is that the bugbears are not added to Mafia and WHAM uses estimates of ML to set up unknown_ml for them. It's possible that it is a bit high if it thinks it'll kill you in 2 rounds while you plink it down...
 
I am getting the following error when trying to run this script

[3361] Giant's Castle
Encounter: Furry Giant
Strategy: C:\Users\Josh\Downloads\ccs\script.ccs [default]
Round 0: jorsh2 wins initiative!
Unknown variable 'smack' (SmartStasis.ash, line 423)
Consult script 'WHAM.ash' not found.
You're on your own, partner.
Click here to continue in the relay browser.

I have just downloaded the most recent versions of smartstasis.ash, zlib.ash, batbrain.ash, and WHAM.ash. All are in my scripts directory, and my CCS is set as follows

[ default ]
consult WHAM.ash

I've done what I oculd with my limited knowledge however I have no idea what is causing the error, so any help would be appreciated.
 
Make sure you don't have multiple versions of either batbrain or smartstasis anywhere in your Mafia installation. I think that could lead to that sort of problem. If it's not that then I'll have to dig deeper.
 
Hmmm, ok turns out I had an older version of smartstasis sitting in the same folder as the mafia client, never knew it would check there. Thanks for the help.
 
I'm having issues with black crayon monsters (goth kids) - it keeps crapping out short of my end round (which I have set to 28) with teh following-
Code:
Round 26: oh shazbot executes a macro!
Round 26: oh shazbot uses the spectre scepter!
You gain 5 hit points
Happened: use 2678
Parsed round number: 27
WHAM: Current monster HP is calculated to 2.0
WHAM: Starting evaluation and performing of attack
WHAM: No valid attacks.
Stun option chosen: use 5560 (round 27, profit: 0)
Queued: use 5560
WHAM: No valid attacks.
Auto-funk: merging 'use 5560' and 'use 5703'.
Queued: use 5560
Queued: use 5703
WHAM: No valid attacks.
Queued: use 5703
WHAM: No valid attacks.
Auto-funk: merging 'use 5703' and 'use 5719'.
Queued: use 5703
Queued: use 5719
WHAM: No valid attacks.
Queued: use 5719
WHAM: No valid attacks.
Can't enqueue 'use 5719': combat too long.
WHAM: Unable to delevel until you can kill the monster without it killing you. Try it yourself.
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: You now have the knowledge needed to go forward and be victorious
Round 27: oh shazbot executes a macro!
KoLmafia thinks it is round 28 but KoL thinks it is round 27
WHAM: Unable to figure out a combat strategy. Helpful information regarding your skills have been printed to the CLI
You're on your own, partner.
Click here to continue in the relay browser.

I have no issues killing it with a stuffed mortar shells, etc. I'm guessing this has to do with the unknown monster hp, but I figured I'd check.
 
Due to popular demand you can now tell the script to skip items altogether should you so desire. It's easier to implement than a black-list, but if that's something people want I'll look at implementing that as well.

---

On the Black Crayon monster I could definitely think that's an unknown monster issue. If you have a good estimate for its level I can add it to WHAM's manual override of uknown_ml (the same as is done for the bugbears at the moment), but other than that you'll have to set your unknown_ml to something that works (or do it manually/via a more complicated CCS).
 
Back
Top