Winterbay's Helpful Automatic Monsterbasher (WHAM)

morgad

Member
Winterbay - don't worry about us, family is more important :)

data point: 1.9.6 works ok with pirates, just a problem with 2.1

best regards
Dave
 

fronobulax

Developer
Staff member
This may be a game mechanic thing I have missed, being sub-optimal and all, but why is SS/WHAM trying to use a cocktail napkin on a larval filthworm and then failing to enqueue it?

[1058] Hatching Chamber
Encounter: larval filthworm
Strategy: C:\KoLMafia\dist\ccs\CafeBoob.ccs [default]
Round 0: cafeboob wins initiative!
BCC: Round: 0 Opp: larval filthworm
BCC: You have selected to do casual runs like hardcore (using your CCS). Feel free to change this setting in the relay browser if you want a one-day-casual set of runaways..
WHAM: Running SmartStasis
Round 1: cafeboob executes a macro!
Round 1: cafeboob tries to steal an item!
Round 2: Trog fangs your opponent in the head and greedily sucks the vital juices from the wound. It then slimes its way over to you and bites your ankle, injecting you with the aforementioned juices while blinking its big brown eyes at you. It's so adorable!
Round 2: larval filthworm takes 36 damage.
You gain 36 hit points
WHAM: Failed to enqueue cocktail napkin. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.

Thank you.
 

morgad

Member
that was supposed to match 'guy with pitchfork, and his wife', but could not get it to work, until I cut it down to 'guy' - what should have been there?

but for the purposes of this thread - suggest monsters for WHAM to banish, not critical if pasted code 100% perfect :)

having said that bumcheekascend + wham did the right thing (by accident?) this afternoon
Code:
[768] Haunted Bathroom
Encounter: Having a Medicine Ball
Took choice 105/3: guy made of bees
choice.php?whichchoice=105&option=3&pwd
Encounter: The Guy Made Of Bees
Round 0: morgad wins initiative!
 > BCC: We are fighting the GMOB!
Round 1: morgad uses the rock band flyers!
You lose 75,040 hit points

Dave
 

Winterbay

Active member
that was supposed to match 'guy with pitchfork, and his wife', but could not get it to work, until I cut it down to 'guy' - what should have been there?

but for the purposes of this thread - suggest monsters for WHAM to banish, not critical if pasted code 100% perfect :)

having said that bumcheekascend + wham did the right thing (by accident?) this afternoon
Code:
[768] Haunted Bathroom
Encounter: Having a Medicine Ball
Took choice 105/3: guy made of bees
choice.php?whichchoice=105&option=3&pwd
Encounter: The Guy Made Of Bees
Round 0: morgad wins initiative!
 > BCC: We are fighting the GMOB!
Round 1: morgad uses the rock band flyers!
You lose 75,040 hit points

Dave

That would be because BCCascend has special code for the GmoB :)

Regarding the errors:
1) Any problem with flyering, insulting and so on must lie within the smartsstais-function. It is possible it needs an extra "macro()"-call at the end of that function. I've uploaded version 2.1.1 which should fix that...
2) Regarding queueing up odd stuff: The script uses BatBrain's attack_action() (well a slightly modified version of it to remove some of the pessimism of said function since it would otherwise way too often fail to do anything and to change what is being considered slightly) and if that reports "cocktail napkin" the script'll try and use that. I have no idea why it fails though...
Could those experiencing that problem tell me how many of the item they have in inventory when it fails to enqueue them and also run one fight on verbosity 10 to get the printout of your options?

(I'm back home with the baby but not fully active yet... :) )
 

fronobulax

Developer
Staff member
The new release, combined with a recent ascension means that things are behaving as expected but I don't feel like I have tested the "bad" cases. In the case of failing to enqueue the napkin, I wonder if the fact that I have one napkin and double funk slinging was an issue? I seem to recall problems with ducks and feathers over the weekend as well. Glad baby is home...
 

morgad

Member
Definately getting better :)
not sure why it tried to cleave when not enough MP left over after the broadside, a couple of axe blows were all that was needed ...

Code:
[359] Barrrney's Barrr
Encounter: tipsy pirate
Strategy: /home/fit/.kolmafia/ccs/boris.ccs [default]
Round 0: morgad wins initiative!
WHAM: Running SmartStasis
Round 1: morgad executes a macro!
Round 1: morgad casts BROADSIDE!
Round 2: morgad uses the The Big Book of Pirate Insults!
Round 3: tipsy pirate drops 9 attack power.
Round 3: tipsy pirate drops 8 defense.
WHAM: Failed to enqueue Cleave. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.


BCC: You aborted, so so am I. This abort may have been caused by a rogue condition not being met. If this is unexpected, please paste the CLI output, as well as the results of typing 'condition check' without the quotes, into the mafia CLI window now.
Round 3: morgad casts MIGHTY AXING!
Round 4: tipsy pirate takes 91 damage.
Round 4: morgad casts MIGHTY AXING!
Round 5: tipsy pirate takes 108 damage.
Round 5: morgad wins the fight!
You gain 53 Meat
You acquire an item: bottle of rum
You acquire an item: tip jar
You gain 24 Beefiness
You gain 4 Mysteriousness
You gain 13 Cheek

best regards
Dave
 

Rinn

Developer
Not sure why this is aborting, or whether it's in wham or batbrain.

Code:
        Request 1 of 23 (The Sea: The Briny Deeps) in progress...

[829] The     Briny Deeps
Encounter: pumped-up bass
Strategy:     /Users/Rinn/Library/Application Support/KoLmafia/ccs/ascension.ccs     [default]
Round 0: [COLOR=#2cae33]Epicgamer[/COLOR] loses     initiative!
[COLOR=purple]WHAM: Monster HP is 505.0.[/COLOR]
[COLOR=purple]WHAM:     Running SmartStasis[/COLOR]
The string "5005; skill 5008" is not an     integer; returning 50055008 (BatBrain.ash, line 1077)
The string "5003;     skill 5005; skill 5008" does not look like an integer; returning 0     (BatBrain.ash, line 1077)
Round 1: [COLOR=#2cae33]Epicgamer[/COLOR]     executes a macro!
Round 1: [COLOR=#2cae33]Epicgamer[/COLOR] casts     DISCO DANCE OF DOOM!
Round 2: pumped-up bass takes 6 damage.
Round     2: pumped-up bass drops 5 attack power.
Round 2: pumped-up bass drops 5     defense.
Round 2: [COLOR=#2cae33]Epicgamer[/COLOR] casts DISCO     DANCE II: ELECTRIC BOOGALOO!
Round 3: pumped-up bass takes 9 damage.
You     acquire an effect: Disco Nirvana (duration: 1 Adventure)
Round 3:     pumped-up bass drops 7 attack power.
Round 3: pumped-up bass drops 7     defense.
Round 3: [COLOR=#2cae33]Epicgamer[/COLOR] casts DISCO     EYE-POKE!
Round 4: pumped-up bass takes 3 damage.
Round 4: pumped-up     bass drops 3 attack power.
Round 4: pumped-up bass drops 3 defense.
Round     4: [COLOR=#2cae33]Epicgamer[/COLOR] casts DISCO DANCE OF DOOM!
Round     5: pumped-up bass takes 7 damage.
Round 5: pumped-up bass drops 5     attack power.
Round 5: pumped-up bass drops 5 defense.
Round 5: [COLOR=#2cae33]Epicgamer[/COLOR]     casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 6: pumped-up bass takes     8 damage.
You acquire an effect: Disco Concentration (duration: 1     Adventure)
Round 6: pumped-up bass drops 7 attack power.
Round 6:     pumped-up bass drops 7 defense.
[COLOR=purple]WHAM: Monster is     weak. We are just going to bash its head in. It'll take 13 rounds.[/COLOR]
[COLOR=purple]WHAM:     Monster HP is 472.0.[/COLOR]
[COLOR=purple]WHAM: Running     SmartStasis[/COLOR]
[COLOR=purple]WHAM: Monster is weak. We are     just going to bash its head in. It'll take 13 rounds.[/COLOR]
[COLOR=purple]WHAM:     Monster HP is 472.0.[/COLOR]
[COLOR=purple]WHAM: Running     SmartStasis[/COLOR]
[COLOR=purple]WHAM: Monster is weak. We are     just going to bash its head in. It'll take 13 rounds.[/COLOR]
[COLOR=red]You're     on your own, partner.[/COLOR]
[URL="http://kolmafia.us/main.php"]Click     here to continue in the relay browser.[/URL]

Here's another combat with verbosity set to 9

Code:
        [831] The Briny Deeps
Encounter: pumped-up bass
Strategy:     /Users/Rinn/Library/Application Support/KoLmafia/ccs/ascension.ccs     [default]
Round 0: [COLOR=#2cae33]Epicgamer[/COLOR] loses     initiative!
You lose 21 hit points
[COLOR=gray]Running ZLib     version: r35 (current)[/COLOR]
[COLOR=#880000]1 HP costs 0.242μ.     ( 293 / 320 )[/COLOR]
[COLOR=#000088]1 MP costs 3.077μ. ( 116 /     355 )[/COLOR]
[COLOR=gray]Running BatBrain version: 1.23 (current)[/COLOR]
[COLOR=gray]Running     SmartStasis version: 3.15 (current)[/COLOR]
[COLOR=gray]Running     WHAM version: 2.1.1 (current)[/COLOR]
[COLOR=purple]WHAM: We     currently think that the round number is: 0 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: No need to do anything with this     monster.[/COLOR]
[COLOR=purple]WHAM: Setting up variables via     BatBrain[/COLOR]
[COLOR=black]dull fish scale (15.0 @ +117.7905):     200μ * 32.668575% = 65.33715[/COLOR]
[COLOR=black]beefy fish     meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431[/COLOR]
Value     of stat gain: 1,134.38μ
[COLOR=black]dull fish scale (15.0     @ +117.7905): 200μ * 32.668575% = 65.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431[/COLOR]
Value     of stat gain: 1,134.38μ
ATT: [B]330[/B] (6% × 15.35, death in 319)
DEF:     [B]270[/B] (97.73% × 37.53, win in 14)
HP: [B]505[/B], Value: [COLOR=green][B]1,856.73     μ[/B][/COLOR]
[COLOR=black]Parsed round number: 1[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (78 actions)[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     830.[/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     Pumped-up Bass. Mafia considers that this monster has an attack of 330 or     330 when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia     further considers that this monster has a defense value of 270 or 270 when     given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia further     further considers that this monster has a HP value of 500 or 500 when     given a monster name.[/COLOR]
[COLOR=purple]WHAM: Your current     ML-adjustment is: 0.[/COLOR]
[COLOR=purple]WHAM: Monster HP is     505.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]dull fish scale     (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715[/COLOR]
[COLOR=black]dull     fish scale (18.0 @ +117.7905): 200μ * 39.20229% = 78.40458[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431[/COLOR]
[COLOR=black]beefy     fish meat (6.0 @ +117.7905): 2,250μ * 13.06743% = 294.01718[/COLOR]
[COLOR=black]dull     fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431[/COLOR]
Value     of stat gain: 1,134.38μ
[COLOR=black]Attack action chosen:     attack (round 1, profit: -0.25)[/COLOR]
The string "5005; skill 5008" is     not an integer; returning 50055008 (BatBrain.ash, line 1077)
[COLOR=black]Queued:     skill 5005; skill 5008[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options     built! (78 actions)[/COLOR]
[COLOR=black]dull fish scale (15.0 @     +117.7905): 200μ * 32.668575% = 65.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431[/COLOR]
Value     of stat gain: 1,093.13μ
[COLOR=black]Attack action chosen:     attack (round 3, profit: -0.24)[/COLOR]
The string "5003; skill 5005;     skill 5008" does not look like an integer; returning 0 (BatBrain.ash, line     1077)
[COLOR=black]Queued: skill 5003; skill 5005; skill 5008[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (78 actions)[/COLOR]
[COLOR=black]Stasis     action chosen: use 5561 (round 6, profit: 7.58)[/COLOR]
[COLOR=black]dull     fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431[/COLOR]
Value     of stat gain: 1,041.56μ
[COLOR=black]Attack action chosen:     attack (round 6, profit: -0.23)[/COLOR]
[COLOR=black]This monster     is not your huckleberry.[/COLOR]
[COLOR=black]Stasis loop     complete (queue still contains 2 actions).[/COLOR]
[COLOR=black]Constructed     macro: scrollwhendone; sub 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; endsub; skill 5005; skill     5008; call batround; skill 5003; skill 5005; skill 5008; call batround; [/COLOR]
Round     1: [COLOR=#2cae33]Epicgamer[/COLOR] executes a macro!
Round 1: [COLOR=#2cae33]Epicgamer[/COLOR]     casts DISCO DANCE OF DOOM!
Round 2: pumped-up bass takes 6 damage.
Round     2: pumped-up bass drops 5 attack power.
Round 2: pumped-up bass drops 5     defense.
Round 2: [COLOR=#2cae33]Epicgamer[/COLOR] casts DISCO     DANCE II: ELECTRIC BOOGALOO!
Round 3: pumped-up bass takes 8 damage.
You     acquire an effect: Disco Nirvana (duration: 1 Adventure)
Round 3:     pumped-up bass drops 7 attack power.
Round 3: pumped-up bass drops 7     defense.
Round 3: [COLOR=#2cae33]Epicgamer[/COLOR] casts DISCO     EYE-POKE!
Round 4: pumped-up bass takes 2 damage.
Round 4: pumped-up     bass drops 3 attack power.
Round 4: pumped-up bass drops 3 defense.
Round     4: [COLOR=#2cae33]Epicgamer[/COLOR] casts DISCO DANCE OF DOOM!
Round     5: pumped-up bass takes 8 damage.
Round 5: pumped-up bass drops 5     attack power.
Round 5: pumped-up bass drops 5 defense.
Round 5: [COLOR=#2cae33]Epicgamer[/COLOR]     casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 6: pumped-up bass takes     9 damage.
You acquire an effect: Disco Concentration (duration: 1     Adventure)
Round 6: pumped-up bass drops 7 attack power.
Round 6:     pumped-up bass drops 7 defense.
You lose 22 hit points
[COLOR=black]Happened:     skill 5005[/COLOR]
[COLOR=black]Happened: skill 5008[/COLOR]
[COLOR=black]Happened:     skill 5003[/COLOR]
[COLOR=black]Happened: skill 5005[/COLOR]
[COLOR=black]Happened:     skill 5008[/COLOR]
[COLOR=black]Parsed round number: 6[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (78 actions)[/COLOR]
[COLOR=purple]WHAM:     SmartStasis complete.[/COLOR]
[COLOR=purple]WHAM: Running     SmartStasis took 1.99 seconds.[/COLOR]
[COLOR=purple]WHAM: We     currently think that the round number is: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: SS did not finish the script     off, 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: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: You will kill the monster in 13     rounds with your basic attack.[/COLOR]
[COLOR=purple]WHAM: The     monster will take more than 30 rounds to kill you.[/COLOR]
[COLOR=purple]rounds_to_kill:     13, round_limit: 24, maxround: 30, die_rounds(): 324, hitchance("attack"):     0.97727275[/COLOR]
[COLOR=purple]WHAM: Expected received damage     per round: 0.837682, Rounds to kill: 13, Expected damage: 36.67216, Hit     chance: 1.0[/COLOR]
[COLOR=purple]WHAM: Monster is weak. We are     just going to bash its head in. It'll take 13 rounds.[/COLOR]
[COLOR=red]Unable     to enqueue empty action.[/COLOR]
[COLOR=purple]WHAM: Evaluating     the attack and performing it took 1.999 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: We currently think that the     round number is: 6 and that the turn number is 830.[/COLOR]
[COLOR=gray]Running     ZLib version: r35 (current)[/COLOR]
[COLOR=#880000]1 HP costs     0.242μ. ( 271 / 320 )[/COLOR]
[COLOR=#000088]1 MP costs     3.077μ. ( 89 / 355 )[/COLOR]
[COLOR=gray]Running BatBrain     version: 1.23 (current)[/COLOR]
[COLOR=gray]Running SmartStasis     version: 3.15 (current)[/COLOR]
[COLOR=gray]Running WHAM version:     2.1.1 (current)[/COLOR]
[COLOR=purple]WHAM: We currently think     that the round number is: 0 and that the turn number is 830.[/COLOR]
[COLOR=purple]WHAM:     No need to do anything with this monster.[/COLOR]
[COLOR=purple]WHAM:     Setting up variables via BatBrain[/COLOR]
[COLOR=black]dull fish     scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143[/COLOR]
Value     of stat gain: 1,134.38μ
[COLOR=black]dull fish scale (15.0     @ +137.7905): 200μ * 35.668575% = 71.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143[/COLOR]
Value     of stat gain: 1,134.38μ
ATT: [B]303[/B] (6% × 13.96, death in 324)
DEF:     [B]243[/B] (97.73% × 37.53, win in 13)
HP: [B]472[/B], Value: [COLOR=green][B]1,945.23     μ[/B][/COLOR]
[COLOR=black]Happened: skill 5005[/COLOR]
[COLOR=black]Happened:     skill 5008[/COLOR]
[COLOR=black]Happened: skill 5003[/COLOR]
[COLOR=black]Happened:     skill 5005[/COLOR]
[COLOR=black]Happened: skill 5008[/COLOR]
[COLOR=black]Parsed     round number: 6[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options     built! (78 actions)[/COLOR]
[COLOR=purple]WHAM: We currently     think that the round number is: 6 and that the turn number is 830.[/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 Pumped-up Bass. Mafia considers that this monster has     an attack of 303 or 330 when given a monster name.[/COLOR]
[COLOR=purple]WHAM:     Mafia further considers that this monster has a defense value of 243 or     270 when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia     further further considers that this monster has a HP value of 467 or 500     when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Your     current ML-adjustment is: 0.[/COLOR]
[COLOR=purple]WHAM: Monster     HP is 472.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: use 5561 (round 6, profit: 11.87)[/COLOR]
[COLOR=black]dull     fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143[/COLOR]
Value     of stat gain: 1,134.38μ
[COLOR=black]Attack action chosen:     attack (round 6, profit: -0.23)[/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.52 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: SS did not finish the script     off, 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: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: You will kill the monster in 13     rounds with your basic attack.[/COLOR]
[COLOR=purple]WHAM: The     monster will take more than 30 rounds to kill you.[/COLOR]
[COLOR=purple]rounds_to_kill:     13, round_limit: 24, maxround: 30, die_rounds(): 324, hitchance("attack"):     0.97727275[/COLOR]
[COLOR=purple]WHAM: Expected received damage     per round: 0.837682, Rounds to kill: 13, Expected damage: 36.67216, Hit     chance: 1.0[/COLOR]
[COLOR=purple]WHAM: Monster is weak. We are     just going to bash its head in. It'll take 13 rounds.[/COLOR]
[COLOR=red]Unable     to enqueue empty action.[/COLOR]
[COLOR=purple]WHAM: Evaluating     the attack and performing it took 0.525 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: We currently think that the     round number is: 6 and that the turn number is 830.[/COLOR]
[COLOR=gray]Running     ZLib version: r35 (current)[/COLOR]
[COLOR=#880000]1 HP costs     0.242μ. ( 271 / 320 )[/COLOR]
[COLOR=#000088]1 MP costs     3.077μ. ( 89 / 355 )[/COLOR]
[COLOR=gray]Running BatBrain     version: 1.23 (current)[/COLOR]
[COLOR=gray]Running SmartStasis     version: 3.15 (current)[/COLOR]
[COLOR=gray]Running WHAM version:     2.1.1 (current)[/COLOR]
[COLOR=purple]WHAM: We currently think     that the round number is: 0 and that the turn number is 830.[/COLOR]
[COLOR=purple]WHAM:     No need to do anything with this monster.[/COLOR]
[COLOR=purple]WHAM:     Setting up variables via BatBrain[/COLOR]
[COLOR=black]dull fish     scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143[/COLOR]
Value     of stat gain: 1,134.38μ
[COLOR=black]dull fish scale (15.0     @ +137.7905): 200μ * 35.668575% = 71.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143[/COLOR]
Value     of stat gain: 1,134.38μ
ATT: [B]303[/B] (6% × 13.96, death in 324)
DEF:     [B]243[/B] (97.73% × 37.53, win in 13)
HP: [B]472[/B], Value: [COLOR=green][B]1,945.23     μ[/B][/COLOR]
[COLOR=black]Happened: skill 5005[/COLOR]
[COLOR=black]Happened:     skill 5008[/COLOR]
[COLOR=black]Happened: skill 5003[/COLOR]
[COLOR=black]Happened:     skill 5005[/COLOR]
[COLOR=black]Happened: skill 5008[/COLOR]
[COLOR=black]Parsed     round number: 6[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options     built! (78 actions)[/COLOR]
[COLOR=purple]WHAM: We currently     think that the round number is: 6 and that the turn number is 830.[/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 Pumped-up Bass. Mafia considers that this monster has     an attack of 303 or 330 when given a monster name.[/COLOR]
[COLOR=purple]WHAM:     Mafia further considers that this monster has a defense value of 243 or     270 when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia     further further considers that this monster has a HP value of 467 or 500     when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Your     current ML-adjustment is: 0.[/COLOR]
[COLOR=purple]WHAM: Monster     HP is 472.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: use 5561 (round 6, profit: 11.87)[/COLOR]
[COLOR=black]dull     fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715[/COLOR]
[COLOR=black]beefy     fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143[/COLOR]
Value     of stat gain: 1,134.38μ
[COLOR=black]Attack action chosen:     attack (round 6, profit: -0.23)[/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.426 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: SS did not finish the script     off, 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: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: You will kill the monster in 13     rounds with your basic attack.[/COLOR]
[COLOR=purple]WHAM: The     monster will take more than 30 rounds to kill you.[/COLOR]
[COLOR=purple]rounds_to_kill:     13, round_limit: 24, maxround: 30, die_rounds(): 324, hitchance("attack"):     0.97727275[/COLOR]
[COLOR=purple]WHAM: Expected received damage     per round: 0.837682, Rounds to kill: 13, Expected damage: 36.67216, Hit     chance: 1.0[/COLOR]
[COLOR=purple]WHAM: Monster is weak. We are     just going to bash its head in. It'll take 13 rounds.[/COLOR]
[COLOR=red]Unable     to enqueue empty action.[/COLOR]
[COLOR=purple]WHAM: Evaluating     the attack and performing it took 0.469 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 6 and that the turn number is     830.[/COLOR]
[COLOR=purple]WHAM: We currently think that the     round number is: 6 and that the turn number is 830.[/COLOR]
[COLOR=red]You're     on your own, partner.[/COLOR]
[URL="http://kolmafia.us/main.php"]Click     here to continue in the relay browser.[/URL]
 

Winterbay

Active member
That's a good question. Also, I had the error with the cocktail napkins today (it tried to enqeue 4 while I only had 1). I think I've fixed this now... Try 2.2... :)
 

Winterbay

Active member
Definately getting better :)
not sure why it tried to cleave when not enough MP left over after the broadside, a couple of axe blows were all that was needed ...

Code:
[359] Barrrney's Barrr
Encounter: tipsy pirate
Strategy: /home/fit/.kolmafia/ccs/boris.ccs [default]
Round 0: morgad wins initiative!
WHAM: Running SmartStasis
Round 1: morgad executes a macro!
Round 1: morgad casts BROADSIDE!
Round 2: morgad uses the The Big Book of Pirate Insults!
Round 3: tipsy pirate drops 9 attack power.
Round 3: tipsy pirate drops 8 defense.
WHAM: Failed to enqueue Cleave. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.


BCC: You aborted, so so am I. This abort may have been caused by a rogue condition not being met. If this is unexpected, please paste the CLI output, as well as the results of typing 'condition check' without the quotes, into the mafia CLI window now.
Round 3: morgad casts MIGHTY AXING!
Round 4: tipsy pirate takes 91 damage.
Round 4: morgad casts MIGHTY AXING!
Round 5: tipsy pirate takes 108 damage.
Round 5: morgad wins the fight!
You gain 53 Meat
You acquire an item: bottle of rum
You acquire an item: tip jar
You gain 24 Beefiness
You gain 4 Mysteriousness
You gain 13 Cheek

best regards
Dave

Part of the problem there is that the stun from Broadside isn't being propagated to the rest of WHAM. That knowledge stays with SS which means the script does no longer know that the monster is stunned and that you can kill the monster without resorting to heavier stuff.

I think the enqueueing of a skill you no longer can cast could be because the script got out of sync with KoL since the variables were set up before anything had happened and then SS did it's stuff. I've added an extra act()-call in 2.3 which may or may not fix this... :)

My latest fight against The Big Wisniewski went fine at least, allthough no items were used:
Code:
Encounter: The Big Wisniewski
Round 0: Winterbay wins initiative!
1 HP costs 5.333μ. ( 526 / 526 )
1 MP costs 8μ. ( 97 / 148 )
ATT: 300 (94% × 92.09, death in 7)
DEF: 270 (95.45% × 85.2 (15), win in 19)
HP: 2,030, Value: 5,864.07 μ
Running away would cost you 6364.073 meat.
Getting beaten up would cost you 5674.198 meat.
Monster resistances: 0 (-1) (-1) (1)
Player resistances: 0 (0.2) (0.2) (0.2) (0.2) (0.3)
1 HP costs 5.333μ. ( 526 / 526 )
1 MP costs 8μ. ( 97 / 148 )
ATT: 300 (94% × 92.09, death in 7)
DEF: 270 (95.45% × 85.2 (15), win in 19)
HP: 2,030, Value: 5,864.07 μ
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: Monster HP is 2030.0.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Round 1: Winterbay executes a macro!
Round 1: Winterbay casts INTIMIDATING BELLOW!
Round 2: the big wisniewski drops 84 attack power.
Round 2: the big wisniewski drops 84 defense.
WHAM: SmartStasis complete.
WHAM: You will kill the monster in 11 rounds with your basic attack.
WHAM: The monster will take 11 rounds to kill you.
WHAM: Enqueuing a stun to help with the battle
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Mighty Axing (macroid skill 11000).
WHAM: We are going to 4-shot with Cleave, Cleave, Cleave and Mighty Axing.
Round 2: Winterbay executes a macro!
Round 2: Winterbay casts BROADSIDE!
Round 3: Winterbay casts CLEAVE!
Round 4: the big wisniewski takes 556 damage.
Round 4: Winterbay casts CLEAVE!
Round 5: the big wisniewski takes 436 damage.
Round 5: Winterbay casts CLEAVE!
Round 6: the big wisniewski takes 262 damage.
Round 6: Winterbay casts MIGHTY AXING!
Round 7: the big wisniewski takes 288 damage.
You lose 59 hit points
WHAM: Current monster HP is calculated to 488.0
WHAM: You will kill the monster in 3 rounds with your basic attack.
WHAM: The monster will take 10 rounds to kill you.
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Mighty Axing (macroid skill 11000).
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Mighty Axing (macroid skill 11000).
WHAM: We are going to 4-shot with Cleave, Mighty Axing, Cleave and Mighty Axing.
Round 7: Winterbay executes a macro!
Round 7: Winterbay casts CLEAVE!
Round 8: the big wisniewski takes 256 damage.
You lose 59 hit points
Round 8: Winterbay casts MIGHTY AXING!
Round 9: the big wisniewski takes 307 damage.
Round 9: Winterbay wins the fight!
You acquire an item: solid gold bowling ball
You gain 142 Strongness
You gain 88 Wizardliness
You gain 60 Chutzpah
You gain a Moxie point!
War finished: hippies defeated
Look! You found 1 solid gold bowling ball (5,000μ)!

Also, sorry for the rush of updates today. I'll wait until tomorrow, at least, to do any more :)
 

Rinn

Developer
The output was basically the same as the stuff I already posted. I'm pretty sure it was trying to attack but was submitting an empty macro.
 
Not sure if this was covered, but does anyone know why I'm getting this on the cyrpt monsters? I updated to 2.3 after fighting the huge ghuol and it died again.

Code:
[367] Haert of the Cyrpt
Encounter: The Haert of Darkness
Encounter: The Bonerdagon
Strategy: /home/bhanes/.kolmafia/ccs/WHAM.ccs [default]
Round 0: chef_rannos wins initiative!
WHAM: Running SmartStasis
WHAM: Unable to delevel until you can kill the monster without it killing you. Try it yourself.
Round 1: chef_rannos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: flaregun: 0.0 potential damage and a hitchance of 75.0%.
WHAM: stick of dynamite: 13.125 potential damage and a hitchance of 75.0%.
WHAM: sonar-in-a-biscuit: 4.5 potential damage and a hitchance of 75.0%.
WHAM: razor-sharp can lid: 1.875 potential damage and a hitchance of 75.0%.
WHAM: You now have the knowledge needed to go forward and be victorious
You're on your own, partner.
Click here to continue in the relay browser.

One intimidating bellow and 2 regular attacks killed the monster easily.

Code:
Round 2: chef_rannos casts INTIMIDATING BELLOW!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: the bonerdagon drops 15 attack power.
Round 3: the bonerdagon drops 15 defense.
You lose 18 hit points
Round 3: chef_rannos casts MIGHTY AXING!
KoLmafia thinks it is round 4 but KoL thinks it is round 3
You lose 19 hit points
Round 4: chef_rannos casts MIGHTY AXING!
KoLmafia thinks it is round 5 but KoL thinks it is round 4
You lose 18 hit points
Round 5: chef_rannos attacks!
KoLmafia thinks it is round 6 but KoL thinks it is round 5
Round 6: the bonerdagon takes 112 damage.
You lose 19 hit points
Round 6: chef_rannos attacks!
KoLmafia thinks it is round 7 but KoL thinks it is round 6
Round 7: the bonerdagon takes 122 damage.
Round 7: chef_rannos wins the fight!
You gain 6 Muscularity Points
You acquire an item: skull of the Bonerdagon
You acquire an item: chest of the Bonerdagon
You acquire an item: vertebra of the Bonerdagon
You gain 58 Strengthliness
You gain 35 Magicalness
You gain a Mysticality point!
You gain 36 Chutzpah
 

Winterbay

Active member
That would be because the Bonerdagon and the Sorceress has a base block-chance of 50% and the default value of WHAM_hitchance is set to 0.5 which is compared strictly larger than, which is a bug. 2.4 fixes that. It is also a problem that it wasn't considering attack at all due to me removing some code for that a while ago, 2.4 puts that back in again.

Also, 2.4 fixes the bug Rinn had with attacking (the problem was that attack was not an option because the setting-up of options was after the call to try and use it...).

With that I think that all the reported issues are solved. I'm slightly optimistic about that :)
 
I'm more optimistic. Downloaded and running with my banked turns for muscle day. :)

EDIT: Ok, ran into a problem, I think that it's not re-calculating after really quite poisoned is removed:

Code:
[611] Black Forest
Encounter: black adder
Strategy: /home/bhanes/.kolmafia/ccs/WHAM.ccs [default]
Round 0: chef_rannos loses initiative!
You lose 41 hit points
You acquire an effect: Really Quite Poisoned (duration: 5 Adventures)
You're dangerously poisoned! Will try to remove if possible.
Round 1: chef_rannos uses the anti-anti-antidote!
You lose an effect: Really Quite Poisoned
You lose 42 hit points
WHAM: Running SmartStasis
WHAM: Unable to delevel until you can kill the monster without it killing you. Try it yourself.
Round 2: chef_rannos executes a macro!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: Mighty Axing: 32.582905 potential damage and a hitchance of 91.72727%.
WHAM: plot hole: 22.5 potential damage and a hitchance of 100.0%.
WHAM: flaregun: 19.800001 potential damage and a hitchance of 100.0%.
WHAM: stick of dynamite: 17.5 potential damage and a hitchance of 100.0%.
WHAM: Heroic Belch: 8.0 potential damage and a hitchance of 100.0%.
WHAM: sonar-in-a-biscuit: 6.0 potential damage and a hitchance of 100.0%.
WHAM: razor-sharp can lid: 2.5 potential damage and a hitchance of 100.0%.
WHAM: You now have the knowledge needed to go forward and be victorious
You're on your own, partner.
Click here to continue in the relay browser.

Finish:

Code:
Round 3: chef_rannos casts MIGHTY AXING!
KoLmafia thinks it is round 4 but KoL thinks it is round 3
Round 4: black adder takes 265 damage.
Round 4: chef_rannos wins the fight!
You gain 9 Muscularity Points
You gain 115 Meat
You gain 18 Strengthliness
You gain 8 Enchantedness
You gain 10 Roguishness
 
Last edited:
Top